function getURL(brand){
	if(document.location){
		// set up variables
		// set up variables
		// str - contains the page URL
		// brand - contains which templete is being used
		str = document.location.href;
				
		// search to see if there is a query string at the end of the page name
		// if there is take it off
		pos = str.indexOf("?");
		if(pos!=-1){str = str.substr(0,pos);}	
	
		// search for the brand and get everything after it
		pos = str.lastIndexOf(brand);
		if(pos!=-1){str = str.substr((pos+brand.length));}
	
		// search for "." and get everything before it
		pos = str.indexOf(".");	
		if(pos!=-1){str = str.substr(0,pos);}	
	
		if(str){return "/" + str;}
		else{return "";	}
	
	}
	else
	{		
		return "";	
	}
	
	


	
}

function redeye(ns_l){		
	if(document.images){
		ns_1=new Image();
		ns_1.src=ns_l;
	}else  document.write("<img src="+ns_l+" border=1 nosave width=1 height=1>");}
