// JavaScript Document

function go(url) 
{
window.location=url;
}
function go2(url) 
{
	window.open(url,'New') 

}
function checkSize(){
var width;
var height;
if(document.layers) {
width = window.innerWidth;
height = window.innerHeight;
} else {
width = document.body.clientWidth;
height = document.body.clientHeight;
}
if((width < 600)||(height < 450)){
setTimeout("resizeOuterTo(600,450)",400);
}
}
function resizeOuterTo(w,h) {
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
top.outerWidth=w;
top.outerHeight=h+40;
} else{
top.resizeTo((w+12),(h+30));
}

}

}
function alignment(){






var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
//document.getElementById("FloatLogo").style.left=(tempX-112)+"px";
//document.getElementById("FloatLogo").style.top=(tempY-100)+"px";


return true;
}
//  End -->















var width;
var height;
if(document.layers) {
width = window.innerWidth;
height = window.innerHeight;
} else {
width = document.body.clientWidth;
height = document.body.clientHeight;
//mX = document.body.clientX;
//mY = document.body.clientY;
}
if(width<=860)
{
document.getElementById("Slide").style.left="55px";
document.getElementById("FloatLogo").style.left="540px";




document.getElementById("homeText").style.left="515px";
document.getElementById("productsText").style.left="515px";
document.getElementById("aboutusText").style.left="515px";
document.getElementById("contactusText").style.left="515px";
document.getElementById("funstuffText").style.left="515px";
document.getElementById("ordernowText").style.left="515px";



document.getElementById("Logo").style.left="344px";
document.getElementById("navBar").style.left="75px";


document.getElementById("Content").style.left="43px"
document.getElementById("Content").style.width="753px"


document.getElementById("contentback").style.width="864px"
document.getElementById("banner").style.width="860px"

}
else
{
document.getElementById("Slide").style.left="9%";
document.getElementById("FloatLogo").style.left=((document.body.clientWidth*.953)-241)+"px";




document.getElementById("homeText").style.left="60%";
document.getElementById("productsText").style.left="60%";
document.getElementById("aboutusText").style.left="60%";
document.getElementById("contactusText").style.left="60%";
document.getElementById("funstuffText").style.left="60%";
document.getElementById("ordernowText").style.left="60%";

document.getElementById("Logo").style.left=Math.round( (  (document.body.clientWidth)/2) - 119 ) +"px";
document.getElementById("navBar").style.left="9%";


document.getElementById("Content").style.left="5%"
document.getElementById("Content").style.width="90%"


document.getElementById("contentback").style.width=document.body.clientWidth+20+"px";
document.getElementById("banner").style.width="100%"
}
}
function showText(elemID)
{
	var thisElem;
	switch(elemID)
	{
		case "homeText":
				thisElem="item1";
				break;
		case "productsText":
				thisElem="item2";
				break;		
		
		case "aboutusText":
				thisElem="item3";
				break;
		
		case "contactusText":
				thisElem="item4";
				break;
		
		case "funstuffText":
				thisElem="item5";
				break;
		case "ordernowText":
				thisElem="item6";
				break;
		default:
		         thisElem="";
				 break;
	
	}
document.getElementById("homeText").style.visibility="hidden";
document.getElementById("productsText").style.visibility="hidden";
document.getElementById("aboutusText").style.visibility="hidden";
document.getElementById("contactusText").style.visibility="hidden";
document.getElementById("funstuffText").style.visibility="hidden";
document.getElementById("ordernowText").style.visibility="hidden";
document.getElementById(elemID).style.visibility="visible";
document.getElementById(thisElem).style.filter="alpha(opacity='100')";
document.getElementById(thisElem).style.opacity="1";

}
function hideText()
{
document.getElementById("homeText").style.visibility="hidden";
document.getElementById("productsText").style.visibility="hidden";
document.getElementById("aboutusText").style.visibility="hidden";
document.getElementById("contactusText").style.visibility="hidden";
document.getElementById("funstuffText").style.visibility="hidden";
document.getElementById("ordernowText").style.visibility="hidden";
for(var a=1;a<=6;a++)
{
	document.getElementById('item'+a).style.filter="alpha(opacity='70')";
	document.getElementById('item'+a).style.opacity=".7";
}
}

function changeclass(Elem, myClass) {
	var elem;
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
	elem.className = myClass;
	
}

function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible";
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden";
}
