function openWindow(URL){
   window.open(URL,"home","width=680,height=600,resizable=1,scrollbars=1");
}

function openFlash(URL) {
		window.open(URL,'home','width=680,height=580');
}	

function closeWindow(){
   window.close();
}

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}

var arDiv=new Array("home","product","order","support","download");

function hideOther(objectID) {
	for (i=0;i<arDiv.length;i++) {
		if (arDiv[i] != objectID) {
			document.layers[arDiv[i]].visibility="hide";
		}
	}
}
function show(objectID)
{
   if (document.layers) {
		document.layers[objectID].visibility="show";
		//hideOther(objectID);
	}
	else if (document.getElementById) {
		 document.getElementById(objectID).style.visibility="visible";
		 //document.getElementById(objectID).style.top = event.clientY;
		 //document.getElementById(objectID).style.left = event.clientX;
	}
	else if (document.all) {
		 document.all[objectID].style.visibility="visible";
	}
}

function hide(objectID)
{
   if (document.layers) {
		document.layers[objectID].visibility="hide";
	}
	else if(document.getElementById) {
		 document.getElementById(objectID).style.visibility="hidden";
	}
	else if (document.all) {
		 document.all[objectID].style.visibility="hidden";
	}
}

function preload(imag)
{
   im=new Array();
   for (var i=0; i<imag.length; i++)
   {
	im[i]=new Image();
	im[i].src=imag[i];
   }
}

function changeImg(imgName,num)
{
   imgName.src=im[num].src;
}