function showSWF() {  document.getElementById("navholder").style.height = "550px";  //alert("show");}function hideSWF() {  document.getElementById("navholder").style.height = "193px";  //alert("hide");}function _newWindow(url,name,fwidth,fheight,status,directories,location,toolbar,menubar,scrollbars,resizable,vLeft,vTop,fCloseSelf,fResizeParent) {    // setting the new window size dependng on whats passed    switch (fwidth){        case "max":            fwidth = screen.width;        break        case "half":            fwidth = screen.width/2;        break        default:            fwidth = Number(fwidth);            /*if(document.sPlatform.indexOf("Mac") == -1){                fwidth += 10;// add window width for pcs            }/**/    }    switch (fheight){        case "max":            fheight = screen.height-15;//adjust for browser chrome            /*if(document.sPlatformType.indexOf("Mac") == -1){                fheight -= 45;// take off extra for pcs            }/**/        break        case "half":            fheight = screen.height/2;        break        default:            fheight = Number(fheight);            /*if(document.sPlatformType.indexOf("Mac") == -1){                fheight += 15;// add extra for pcs            }/**/    }    // set the position     if(vLeft == "center"){vLeft = (screen.width/2) - (fwidth/2);}    if(vTop == "center"){vTop = (screen.height/2)  - (fheight/2);}    //alert("Top="+vTop+" Left="+vLeft);    //    options = ((fwidth!="")?"width="+fwidth:"")+((fheight!="")?",height="+fheight:"")+",status="+((status=="1")?"yes":"no")+",directories="+((directories=="1")?"yes":"no")+",location="+((location=="1")?"yes":"no")+",toolbar="+((toolbar=="1")?"yes":"no")+",menubar="+((menubar=="1")?"yes":"no")+",scrollbars="+((scrollbars=="1")?"yes":"no")+",resizable="+((resizable=="1")?"yes":"no")+",left="+vLeft+",top="+vTop ;    var sWinObject = name.replace(" ","_");    eval(sWinObject+"=window.open('"+url+"','"+sWinObject+"','"+options+"')");    if (fCloseSelf == true){this.close();}        if(fResizeParent == true){        self.moveTo(0,0);        window.resizeTo(screen.width,screen.height);    };}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}
// Mainly used to open SendToFriend page
function openWindow(url)
{
	window.open( url, "dialog", "height=500,width=500,toolbar=0,menubar=0,resizeable=0,status=0,scrollbars=1,location=0" );
}

// THis function retrieves a query string, parses it and returns it as an array object
function getQueryString() {
    var QUERY = new Object();
    var sep = ';';
    var keyName;
    var keyValue;
    var queryURL = '' + this.location;
    queryURL = queryURL.substring((queryURL.indexOf('?')) + 1);
    if (queryURL.length < 1) { return false; }
    var pair = new Object();
    var kV = 1;
    while (queryURL.indexOf('&') > -1) {
        pair[kV] = queryURL.substring(0,queryURL.indexOf('&'));
        queryURL = queryURL.substring((queryURL.indexOf('&')) + 1);
        kV++; 
    }
    pair[kV] = queryURL;
    for (i in pair) {
        keyName = pair[i].substring(0,pair[i].indexOf('='));
        keyValue = pair[i].substring((pair[i].indexOf('=')) + 1);
        while (keyValue.indexOf('+') > -1) {
            keyValue = keyValue.substring(0,keyValue.indexOf('+')) + '' + keyValue.substring(keyValue.indexOf('+') + 1); 
        }
        keyValue = unescape(keyValue);
        if (QUERY[keyName]) { QUERY[keyName] = QUERY[keyName] + sep + keyValue; }
        else { QUERY[keyName] = keyValue; }
    }
    return QUERY;
}