<!--
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];}}
}

// JavaScript Document
var ovimages = new Array();
ovimages[0] = 'images/nav/about_ov.gif';
ovimages[1] = 'images/nav/host_ov.gif';
ovimages[2] = 'images/nav/download_ov.gif';
ovimages[3] = 'images/nav/donate_ov.gif';
ovimages[4] = 'images/nav/store_ov.gif';
ovimages[5] = 'images/nav/contact_ov.gif';
ovimages[6] = 'images/nav/signup_ov.gif';
ovimages[7] = 'images/nav/sendfriend_ov.gif';

var upimages = new Array();
upimages[0] = 'images/nav/about_up.gif';
upimages[1] = 'images/nav/host_up.gif';
upimages[2] = 'images/nav/download_up.gif';
upimages[3] = 'images/nav/donate_up.gif';
upimages[4] = 'images/nav/store_up.gif';
upimages[5] = 'images/nav/contact_up.gif';
upimages[6] = 'images/nav/signup_up.gif';
upimages[7] = 'images/nav/sendfriend_up.gif';

// BEGIN TO PRELOAD ALL THE ROLLOVER IMAGES.
var counter;
for (counter=0; counter<ovimages.length; counter++){
	MM_preloadImages(ovimages[counter]);
}

function swpimg(imgname,theimg){
    if (thisone != imgname) {
    	theovimg = ovimages[theimg];
		document.images[imgname].src = theovimg;
    }
    return true;
}

function swpback(upname, upimg) {
    if (thisone != upname) {
    	theupimg = upimages[upimg];
    	document.images[upname].src = theupimg;
    }
    return true;
}

var thisone;
var backtothis;

function rtnimg() {
    document.images[thisone].src = backtothis;
	return true;
}

function MM_openBrWindow(theURL,winName,features) {
 	window.open(theURL,winName,features);
 	window.focus;
}
     
function shutdown() {
   window.close();
}

//for writing email address - to prevent spam, to a degree
function writemail(alias,thestyle,thesite){
    document.write ("<A HREF='mailto:" + alias + "@" + thesite + "' class="+ thestyle + ">" + alias + "@" + thesite + "</A>");
}
// this function will be used to see if the canadians page has been
// entered, if so then it will allow for the links to point to the 
// canadian pages.
function getCookieValue(cookieName){
    var cookieValue = document.cookie;
    var cookieStartsAt = cookieValue.indexOf(" " + cookieName + "=");
    if (cookieStartsAt == -1){
	cookieStartsAt = cookieValue.indexOf(cookieName + "=");
    }
    if (cookieStartsAt == -1){
	cookieValue = null;
    } else {
	cookieStartsAt = cookieValue.indexOf("=", cookieStartsAt) + 1;
	var cookieEndsAt = cookieValue.indexOf(";", cookieStartsAt);
	if (cookieEndsAt == -1){
	    cookieEndsAt = cookieValue.length;
	}
	cookieValue = unescape(cookieValue.substring(cookieStartsAt, cookieEndsAt));
    }

    
    return cookieValue;
    
}
//-->