// 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<=800)
{






document.getElementById("Logo").style.left="281px";
document.getElementById("navBar2").style.left="205px";


document.getElementById("Content").style.left="40px"
document.getElementById("Content").style.width="700px"
document.getElementById("content-fade").style.left="40px"
document.getElementById("content-fade").style.width="670px"

document.getElementById("contentback").style.width="804px"
document.getElementById("banner").style.width="800px"

}
else
{


document.getElementById("Logo").style.left=Math.round( (  (document.body.clientWidth)/2) - 119 ) +"px";
document.getElementById("navBar2").style.left=Math.round( (  (document.body.clientWidth)/2) - 255 ) +"px" ;


document.getElementById("Content").style.left="5%"
document.getElementById("Content").style.width="90%"
document.getElementById("content-fade").style.left="5%"
document.getElementById("content-fade").style.width="87%"

document.getElementById("contentback").style.width=document.body.clientWidth+4+"px";
document.getElementById("banner").style.width=document.body.clientWidth;
}
}
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(elemID).style.visibility="visible";
document.getElementById(thisElem).style.filter="alpha(opacity='100')";
document.getElementById(thisElem).style.opacity="1";
document.getElementById(thisElem).style.color="#96ac81";

}
function hideText()
{

for(var a=1;a<=6;a++)
{
	document.getElementById('item'+a).style.filter="alpha(opacity='100')";
	document.getElementById('item'+a).style.opacity="1";
	document.getElementById('item'+a).style.color="#631762";
	
}
}

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";
}

function show(whr, wht){
        document.getElementById(whr).innerHTML = wht+"<br><a href=javascript:clearA();>Close<\/a><\/div><br><br><br>";
}
function clearA(){
        document.getElementById("Who").innerHTML = "<br>";
		document.getElementById("What").innerHTML = "<br>";
		document.getElementById("Where").innerHTML = "<br>";
	
}

