
// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
//
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
//
// --- Version Date 8-15-02 --------------------------------------------------------------------------------------------------------------
//
// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

var w3c = document.getElementById ? true : false;
var iex = document.all ? true : false;
var ns4 = document.layers ? true : false;

function fixNetscape(){
	if(origWidth != window.innerWidth || origHeight != window.innerHeight){
		window.location.reload();
	}	
}
if(ns4){
	origWidth = window.innerWidth;
	origHeight = window.innerHeight;
	window.onresize = fixNetscape;
}
function newImage(src){
	img = new Image();
	img.src = src;
	return img;
}

function getStyle(name, nest){
	nest = nest ? 'document.'+nest+'.' : '';
	return w3c ? document.getElementById(name).style : iex ? document.all[name].style : ns4 ? eval(nest+'document.'+name) : false;
}

// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

Menus = new Object();
var curMenu = null;

MakeMenu = function(name,left,top,rollimg,rollout,rollover,rolldiv,showParent){
	this.name = name;
	this.left = left;
	this.top = top;
	this.timer = null;
	this.rollimg = rollimg;
	this.rollout = newImage(rollout);
	this.rollover = newImage(rollover);
	this.rolldiv = (rolldiv != null) ? rolldiv : null;
	this.showParent = showParent;
	this.obj = name+'Object';
	eval(this.obj+'=this');
}
MakeMenu.prototype.show = function(){
	clearTimeout(this.timer);
	getStyle(this.name).visibility = 'visible';
	curMenu = this.name;
}
MakeMenu.prototype.hide = function(){
		this.timer = setTimeout(this.obj+'.hideIt()',300);
}
MakeMenu.prototype.hideIt = function(){
	getStyle(this.name).visibility = 'hidden';
}
MakeMenu.prototype.startMenu = function(){
	var html;
	if(ns4){
		html = '<layer name="'+this.name+'" left="'+this.left+'" top="'+this.top+'" z-index="1000" visibility="hidden" ';
	}else{
		html = '<div id="'+this.name+'" style="position:absolute; left:'+this.left+'px; top:'+this.top+'px; z-index:1000; visibility:hidden" ';
	}
	//html += ' onMouseOver="Menus.'+this.name+'.show()" ';
	//html += ' onMouseOut="Menus.'+this.name+'.hide()" ';
	
	if (this.showParent) {
		html += ' onMouseOver="Menus.'+this.showParent+'.show(); Menus.'+this.name+'.show();" ';
		html += ' onMouseOut="Menus.'+this.showParent+'.hide(); Menus.'+this.name+'.hide();" ';	
	}
	else
	{
		html += ' onMouseOver="Menus.'+this.name+'.show()" ';
		html += ' onMouseOut="Menus.'+this.name+'.hide()" ';	
	}
	html += '>';
	return html;
}
hideCur = function(){
	if(curMenu != null){
		Menus[curMenu].hideIt();
		curMenu = null;
	}
}
endMenu = function(){
	 return ns4 ? '<\/layer>' : '<\/div>';
}
createMenu = function(name,left,top,rollimg,rollout,rollover,rolldiv,showParent){
	Menus[name] = new MakeMenu(name,left,top,rollimg,rollout,rollover,rolldiv,showParent);
}

// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

// object name | left position | top position | rollover image name | normal image src | rollover image src | rollover div name (optional)

createMenu('submenu1', 109,  358, 'img_1', '#', '#', '', '');
createMenu('submenu2', 197, 358, 'img_2', '#', '#', '', '');
createMenu('submenu3', 285, 358, 'img_3', '#', '#', '', '');
createMenu('submenu4', 373, 358, 'img_4', '#', '#', '', '');
createMenu('submenu5', 461, 358, 'img_5', '#', '#', '', '');
createMenu('submenu6', 549, 358, 'img_6', '#', '#', '', '');
createMenu('submenu7', 637, 358, 'img_7', '#', '#', '', '');
createMenu('submenu8', 154,  141, 'img_8', '#', '#', '', '');
createMenu('submenu9', 215, 141, 'img_9', '#', '#', '', '');
createMenu('submenu9a', 255, 155, 'img_10', '#', '#', '', 'submenu8');
createMenu('submenu10', 286, 141, 'img_11', '#', '#', '', '');
createMenu('submenu10a', 255, 169, 'img_11', '#', '#', '','submenu8');
createMenu('submenu11', 335, 141, 'img_12', '#', '#', '', '');

// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
