function BrowserCheck(){ 
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if (navigator.userAgent.indexOf("Opera")>0) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('Unidentified browser./nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns5=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.opera=(this.b=="opera");
	this.dom=((document.createRange&&(document.createRange().createContextualFragment))?true:false);
}
document.Browser=new BrowserCheck();
getWidth = function() {
	this.findDimensions();
	return this.w;
};
getHeight = function() {
	this.findDimensions();
	return this.h
};
findDimensions = function() {
	this.w=(document.Browser.ns)? window.innerWidth : document.body.clientWidth;
	this.h=(document.Browser.ns)? window.innerHeight : document.body.clientHeight;
};
function P_layerVisibility(){  // P_layerVisibility(getObject('MnC1'),0);
 var args=P_layerVisibility.arguments,PlV_sty,i;
 for (i=0; i<(args.length); i+=2){ 
 PlV_sty = args[i].style?'.style':''; 
 eval("args[i]" + PlV_sty + ".visibility=args[i+1]?'visible':'hidden'")
 }
}
function P_setPos(obj, x, y) {
  if (document.Browser.dom) {
	x=='null'?'':obj.style.left = x + "px";
	y=='null'?'':obj.style.top = y + "px";
  }
  else if (document.Browser.ns4) {
	//obj.moveTo(x,y)
	x=='null'?'':obj.x=x;
	y=='null'?'':obj.y=y;
  } 
  else if (document.Browser.ie) {
	x=='null'?'':obj.style.pixelLeft = x;
	y=='null'?'':obj.style.pixelTop = y;
  }
}
function getObject(obj,f) {
var range="",cap="",frm=f?f+'.':'';
	if(document.Browser.ns4){
	}else if(document.Browser.dom){
	    range = "getElementbyId(\"";
	    cap = "\")";
	}else{ //ie
	    range = "all.";
	}
	var theObj = eval(frm + "document." + range + obj + cap);
	return theObj;
} 
function PpInit(){
// 540 344 // 430+214=644
	preloadImages();
	if(getHeight()>=526){
	P_setPos(getObject('MnC1'),0, getHeight()-190);
	}else{
	P_setPos(getObject('MnC1'),0, 430);
	}

}
function PpResize(){
window.status = getHeight();

	if(document.Browser.ns)location.reload();

	if(getHeight()>=570){

	P_setPos(getObject('MnC1'),0, getHeight()-190);

	}

}


onload=PpInit;
onresize=PpResize;



function tmenu(){
this.args=tmenu.arguments;
this.menu1State = false;
this.menu2State = false;
this.menu3State = false;
this.menu4State = false;
this.menu5State = false;
this.mPos = new Array(124,93,176,198,312);
}

tmenu.prototype.over = function(mn) {
if(parent.frames['main']){

if(getObject(mn,"parent.frames['main']")){

	if(!eval("this."+mn+"State")){
	eval("this."+mn+"State = true")

	var sPos = 0;
	if(document.Browser.ns){
	sPos = parent.frames['main'].document.body.scrollTop;
	}else{
	sPos = parent.frames['main'].document.body.scrollTop;
	}
	sPos += this.mPos[Number(mn.substring(4,mn.length))-1];
	P_setPos(getObject(mn,"parent.frames['main']"), 0, sPos);
	P_layerVisibility(getObject(mn,"parent.frames['main']"),1);
	}

}

}
};
tmenu.prototype.out = function(mn) {
if(parent.frames['main']){
if(getObject(mn,"parent.frames['main']")){
	if(eval("this."+mn+"State")){
	eval("this."+mn+"State = false")
	setTimeout("m1.out2('"+mn+"')",1000);	
	}
}
}
};
tmenu.prototype.out2 = function(mn) {
if(parent.frames['main']){
if(getObject(mn,"parent.frames['main']")){
	if(!eval("this."+mn+"State")){
	P_layerVisibility(getObject(mn,"parent.frames['main']"),0)
	}
}
}
};

tmenu.prototype.closeAllF = function(mn) {
if(parent.frames['main']){
if(getObject(mn,"parent.frames['main']")){
	eval("this."+mn+"State = false")
	P_layerVisibility(getObject(mn,"parent.frames['main']"),0)
}
}
};
tmenu.prototype.closeAll = function() {
if(parent.frames['main']){
	this.closeAllF("menu1");
	this.closeAllF("menu2");
	this.closeAllF("menu3");
	this.closeAllF("menu4");
	this.closeAllF("menu5");
}
};
	var m1 = new tmenu();