function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		
		buttons_sch_02_buttons_sch_03_over = newImage("images/buttons-sch_02-buttons-sch_.jpg");
		buttons_sch_02_over = newImage("images/buttons-sch_02-over.jpg");
		
		
		buttons_sch_03_buttons_sch_02_over = newImage("images/buttons-sch_03-buttons-sch_.jpg");
		buttons_sch_03_over = newImage("images/buttons-sch_03-over.jpg");
		
		
		buttons_sch_04_buttons_sch_02_over = newImage("images/buttons-sch_04-buttons-sch_.jpg");
		buttons_sch_04_over = newImage("images/buttons-sch_04-over.jpg");
		
		
		buttons_sch_05_buttons_sch_02_over = newImage("images/buttons-sch_05-buttons-sch_.jpg");
		buttons_sch_05_over = newImage("images/buttons-sch_05-over.jpg");
		
		
		buttons_sch_06_buttons_sch_02_over = newImage("images/buttons-sch_06-buttons-sch_.jpg");
		buttons_sch_06_over = newImage("images/buttons-sch_06-over.jpg");
		
		
		preloadFlag = true;
	}
}

//// Schematic Pop Up
function popupPage(l, t, w, h, URL, windowName) {
var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" +
",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

popup = window.open(URL,windowName,windowprops);
}
//// Schematic Pop Up

//// Title Tag / Status Bar

/*var default1 = "Welcome to Anko Products!"; 
var text1 = "Welcome to Anko Products!";

var changeRate = 2000; 
var messageNumber = 0;

function changeStatus() {
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }


  messageNumber++;
  setTimeout("changeStatus();",changeRate);

}

changeStatus(); 


function openWin( windowURL, windowName, windowFeatures ) { 
  return window.open( windowURL, windowName, windowFeatures ) ; 
 }*/
//// Title Tag / Status Bar
 


//// Disable Text Select
function disableselect(e){
return false
}

function reEnable(){
return true
}

document.onselectstart=new Function ("return false")

if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//// Disable Text Select

//// Disable Right Click
var message="";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

////document.oncontextmenu=new Function("return false")
//// Disable Right Click

//// CSS Dropdown
activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('nav'); 
    }
//// CSS Dropdown
