

function highlight()
{
 var oObj = event.srcElement
 oObj.style.color = "#FF0000" ;
 //oObj.style.textDecoration = "underline" ;
}

function lolight()
{
 var oObj = event.srcElement
 oObj.style.color = "#fceeb1" ;
 oObj.style.textDecoration = "none" ;
}

//Floater Script
var Type = 'Z';

function StartFloat() 
{
}

//function StartFloat() 
//{
//if(document.all) {
//	document.all.AdFloater.style.pixelLeft = (document.body.clientWidth/2) - (775/2);// - document.all.AdFloater.offsetWidth;
	//document.all.AdFloater.style.pixelTop = document.body.scrollTop + document.body.clientHeight - 21;
	//document.all.AdFloater.style.visibility = 'visible';
	//Type = 'A';
//}
//if (document.all) { window.onscroll = Float; }
//else { setInterval('Float()', 100); }
//}


function Float() {
if (Type == 'A') { 
	//alert(document.body.scrollTop + document.body.clientHeight - 20)
	//alert(document.body.scrollHeight  - 20)
	
	if (document.body.scrollTop + document.body.clientHeight - 21 < document.body.scrollHeight) 
	{
		document.all.AdFloater.style.pixelTop = document.body.scrollTop + document.body.clientHeight - 21;
 	}
	else
	{
		document.all.AdFloater.style.pixelTop = document.body.offsetHeight+document.body.scrollTop;
	}

}
} //-->

			function PopUpPrivacy(PopUpUrl, width, height)
			{
				var ScreenWidth=window.screen.width;
				var ScreenHeight=window.screen.height;
				var movefromedge=20;
				placementx=movefromedge;
				placementy=movefromedge;
				WinPop=window.open("PrivacyPolicy.aspx","","width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
			}		
			
			function PopUpTerms(PopUpUrl, width, height)
			{
				var ScreenWidth=window.screen.width;
				var ScreenHeight=window.screen.height;
				var movefromedge=20;
				placementx=movefromedge;
				placementy=movefromedge;
				WinPop=window.open("UsageTerms.aspx","","width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
			}	
			
			function PopUpOrderPolicy(PopUpUrl, width, height)
			{
				var ScreenWidth=window.screen.width;
				var ScreenHeight=window.screen.height;
				var movefromedge=20;
				placementx=movefromedge;
				placementy=movefromedge;
				WinPop=window.open("OrderingPolicy.aspx","","width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
			}	
			
			function PopUp(PopUpUrl, width, height)
			{
				var ScreenWidth=window.screen.width;
				var ScreenHeight=window.screen.height;
				var movefromedge=20;
				placementx=movefromedge;
				placementy=movefromedge;
				WinPop=window.open("" + PopUpUrl + "","","width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
			}		


//Buidling Client Side Cookies
function setCookie(value) 
{
	var d = new Date();
	d.setTime(d.getTime()+1000*60*60*24*1);
	document.cookie = "CurrentCatMenu=" + escape(value)+ "; expires=" + d.toGMTString();
}

function setCookie2(value) 
{
	var d = new Date();
	d.setTime(d.getTime()+1000*60*60*24*1);
	document.cookie = "CurrentCatMenuTop=" + escape(value)+ "; expires=" + d.toGMTString();
}


function getCookie() 
{
	var search = "CurrentCatMenu=" 
	if(document.cookie.length>0)
	{
		offset = document.cookie.indexOf(search);
		if(offset != -1)
		{
			offset += search.length;
			end = document.cookie.indexOf(";",offset);
			
			if(end == -1)
				end = document.cookie.length;
				
			return unescape(document.cookie.substring(offset, end));
		}
	}
}

function getCookie2() 
{
	var search = "CurrentCatMenuTop=" 
	if(document.cookie.length>0)
	{
		offset = document.cookie.indexOf(search);
		if(offset != -1)
		{
			offset += search.length;
			end = document.cookie.indexOf(";",offset);
			
			if(end == -1)
				end = document.cookie.length;
				
			return unescape(document.cookie.substring(offset, end));
		}
	}
}





//begin IE 4+ And NS6 dHTML Outlines
function hideshow(which)
{
	if (!document.getElementById|document.all)
	{
		return
	}
	else
	{
		if (document.getElementById)
		{
			oWhich = eval ("document.getElementById('" + which + "')")
		}
		else
		{
			oWhich = eval ("document.all." + which)
		}
	}

	window.focus()

	if (oWhich.style.display=="none")
	{
		oWhich.style.display=""
	}
	else
	{
		oWhich.style.display="none"
	}
}


/* Javascript Browser */
var isIE = false;
var isOther = false;
var isNS4 = false;
var isNS6 = false;
if(document.getElementById)
{
	if(!document.all)
	{
		isNS6=true;
	}
	if(document.all)
	{
		isIE=true;
	}
}
else
{
	if(document.layers)
	{
		isNS4=true;
	}
	else
	{
		isOther=true;
	}
}

/*
End of Browser
 */

/*
Access Layer Style Properties
*/
function aLs(layerID)
{
var returnLayer;
	if(isIE)
	{
		returnLayer = eval("document.all." + layerID + ".style");
	}
	if(isNS6)
	{
		returnLayer = eval("document.getElementById('" + layerID + "').style");
	}
	if(isNS4)
	{
		returnLayer = eval("document." + layerID);
	}
	if(isOther)
	{
		returnLayer = "null";
		alert("-[Error]-\nDue to your browser you will probably not\nbe able to view all of the following page\nas it was designed to be viewed. We regret\nthis error sincerely.");
	}
return returnLayer;
}
/*
End of Accessing Layer Style Properties
*/


function Hide(ID)
{
		aLs(ID).display  = "none";
}

function Show(ID)
{
		aLs(ID).display  = "inline";
}
/*
End of HideShow 1.0
*/

