// GLobal JavaScript Document

//Function to Pop-Up new window for external links
function openExternal(URLJump) { 
//below allows the java to determine the screen width and height
//the -### at the end of each is half the size of the window
//below is to align to top
	var top = 0;
//below is to center the window vertical
//	var top = (screen.height/2)-225;
//below is to center the window horizontal
	var left = (screen.width/2)-450;
//define the features of the window
	var externalFeatures =  " status=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,width=900,height=600,top=" + top + ",left=" + left;
//open the window
	var windowName = "ExternalWindow";
	window.open(URLJump,windowName,externalFeatures);
}

//Function to Pop-Up new window for video
function openVideo(URLJump) { 
//below allows the java to determine the screen width and height
//the -### at the end of each is half the size of the window
//below is to align to top
	var top = 0;
//below is to center the window vertical
//	var top = (screen.height/2)-200;
//below is to center the window horizontal
	var left = (screen.width/2)-250;
//define the features of the window
	var videoFeatures =  " status=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,width=500,height=500,top=" + top + ",left=" + left;
//open the window
	var windowName = "Video";
	window.open(URLJump,windowName,videoFeatures);
}

//Function to Pop-Up new window for Large Window
function openBigBox(URLJump) { 
//below allows the java to determine the screen width and height
//the -### at the end of each is half the size of the window
//below is to align to top
	var top = 0;
//below is to center the window vertical
//	var top = (screen.height/2)-200;
//below is to center the window horizontal
	var left = (screen.width/2)-425;
//define the features of the window
	var bigboxFeatures =  " status=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,width=850,height=550,top=" + top + ",left=" + left;
//open the window
	var windowName = "Window";
	window.open(URLJump,windowName,bigboxFeatures);
}

//Function to Pop-Up new window for glass samples
function openGlass(URLJump) { 
//below allows the java to determine the screen width and height
//the -### at the end of each is half the size of the window
//below is to align to top
	var top = 0;
//below is to center the window vertical
//	var top = (screen.height/2)-200;
//below is to center the window horizontal
	var left = (screen.width/2)-350;
//define the features of the window
	var glassFeatures =  " status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=no,width=700,height=820,top=" + top + ",left=" + left;
//open the window
	var windowName = "Glass";
	window.open(URLJump,windowName,glassFeatures);
}

//Function to Pop-Up new window for Print Order
function openOrder(URLJump) { 
//below allows the java to determine the screen width and height
//the -### at the end of each is half the size of the window
//below is to align to top
	var top = 0;
//below is to center the window vertical
//	var top = (screen.height/2)-200;
//below is to center the window horizontal
	var left = (screen.width/2)-350;
//define the features of the window
	var orderFeatures =  " status=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,width=710,height=700,top=" + top + ",left=" + left;
//open the window
	var windowName = "Order";
	window.open(URLJump,windowName,orderFeatures);
}

//Function to Pop-Up new window for Glossary
function openGlossary(URLJump) { 
//below allows the java to determine the screen width and height
//the -### at the end of each is half the size of the window
//below is to align to top
	var top = 0;
//below is to center the window vertical
//	var top = (screen.height/2)-200;
//below is to center the window horizontal
	var left = (screen.width/2)-300;
//define the features of the window
	var glossaryFeatures =  " status=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,width=600,height=600,top=" + top + ",left=" + left;
//open the window
	var windowName = "Glossary";
	window.open(URLJump,windowName,glossaryFeatures);
}

//Function for hide and seek
function toggleDisplay(element) {
	if (document.getElementById) { // is IE
		if (document.getElementById(element).style.display=='block') {
			eval("document.getElementById('"+element+"').style.display='none';");
		} else {
			eval("document.getElementById('"+element+"').style.display='block';");
		}
	} else { // is NS?
		if (document.layers[element].display=='block') {
			eval("document.layers['"+element+"'].display='none';");
		} else {
			eval("document.layers['"+element+"'].display='block';");
		}
	}
	return false;
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//copyright years Start
{ 
	var copyright = "2007-2010";
}
//copyright years End