// Global Variables set here

var TextOutColor = "#000000";
var TextOverColor = "#333333";
var MenuOutBgColor = "#D9CCAE";
var MenuOverBgColor = "#777C82";

var PageNoOverColor = "#A01559";
var PageNoOutColor = "#837B8A";

var MenuOutColor, MenuOverColor;

function JVM_ButtonMOver(Button){
		if(document.getElementById){
			 document.getElementById("Button" + Button).src = "images/buttondown.gif";
		}	 
		if (document.all){ 
		  document.images("Button" + Button).src = "images/buttondown.gif";
			return;
	  }
}

function JVM_ButtonMOut(Button){
		if(document.getElementById){
		   document.getElementById("Button" + Button).src = "images/buttonup.gif";
		}	 
		if (document.all){ 
		  document.images("Button" + Button).src = "images/buttonup.gif";
			return;
	  }
}

		// used for buttons to behave like links
		function ButtonLinkOver(ButtonObject){
			if(document.getElementById){
					ButtonObject.style.color = BuyNowColorOver;
		  return;}	 
		  if (document.all){ 
		     ButtonObject.style.color = BuyNowColorOver;
			return;}
		}
		function ButtonLinkOut(ButtonObject){
		if(document.getElementById){
				 ButtonObject.style.color = BuyNowColorOut;
		  return;}	 
		  if (document.all){ 
		     ButtonObject.style.color = BuyNowColorOut;
			return;}
		}
		
// from small store system		
		



function Null(){
}

function Class_MenuHeader(ChildMenuID, ThisObjectName){
		this.ChildMenuID = ChildMenuID;
		this.ThisObjectName = ThisObjectName;
		var ChildOpened, HeaderObject;
		this.ChildOpened = ChildOpened;
		this.HeaderObject = HeaderObject;
		this.ChildOpened = false;
		this.TextOutColor;
		this.TextOverColor;
		this.MenuOutBgColor;
		this.MenuOverBgColor;
		this.HeaderOver = MenuH_OnMouseOver;
		this.HeaderOverA =MenuH_OnMouseOverA;
		this.HeaderOut = MenuH_OnMouseOut;
		this.DropOver = DropMenu_OnMouseOver;
		this.DropOut = DropMenu_OnMouseOut;
		this.CloseChildMenu = CloseChildMenu;
}		

function MenuH_OnMouseOver(ThisObject){
		ThisObject.style.backgroundColor = this.MenuOverBgColor;
		ThisObject.style.color = this.TextOverColor;
		this.HeaderObject = ThisObject;
		if(document.getElementById(this.ChildMenuID)){
		  document.getElementById(this.ChildMenuID).style.visibility = "visible";}
}

function MenuH_OnMouseOverA(){
		this.HeaderObject.style.backgroundColor = this.MenuOverBgColor;
		this.HeaderObject.style.color = this.TextOverColor;
		if(document.getElementById(this.ChildMenuID)){
		  document.getElementById(this.ChildMenuID).style.visibility = "visible";}
		this.ChildOpened = true;
}

function MenuH_OnMouseOut(){	
		 setTimeout(this.ThisObjectName + ".CloseChildMenu(false)", 100)			 
		 this.ChildOpened = false;
}
function DropMenu_OnMouseOver(){
		this.ChildOpened = true;
}
function DropMenu_OnMouseOut(){
				 setTimeout(this.ThisObjectName + ".CloseChildMenu(true)", 100)
				 this.ChildOpened = false;
}

function CloseChildMenu(ischild){
		if (!this.ChildOpened){
			 this.HeaderObject.style.backgroundColor = this.MenuOutBgColor;
			 this.HeaderObject.style.color = this.TextOutColor;
			 if(document.getElementById(this.ChildMenuID)){
		   			document.getElementById(this.ChildMenuID).style.visibility = "hidden";}			 
		}
}

// For text over graphics buttons
function JVM_ButtonMOver(Button){
		if(document.getElementById){
			 document.getElementById("Button" + Button).src = "images/buttondown.gif";
		}	 
		if (document.all){ 
		  document.images("Button" + Button).src = "images/buttondown.gif";
			return;
	  }
		if(document.layers){
				document["layerFbutton" + Button].document["Button" + Button].src = "images/buttondown.gif";
				return;
		}
}

function JVM_ButtonMOut(Button){
		if(document.getElementById){
		   document.getElementById("Button" + Button).src = "images/buttonup.gif";
		}	 
		if (document.all){ 
		  document.images("Button" + Button).src = "images/buttonup.gif";
			return;
	  }
		if(document.layers){
				document["layerFbutton" + Button].document["Button" + Button].src = "images/buttonup.gif";
				return;
		}
}

function JVM_OpenNewWindow(URL, windowName){
				 try{
						eval(windowName + ".close()");
				 }
    catch(e){
        // ignore the error
    }
		eval(windowName + '=window.open("' + URL + '", "' + windowName + '" )');
}