//top_menu_begin
browserName = navigator.appName;   
browserVer = parseInt(navigator.appVersion);

if((browserVer>=4)||((browserVer>=3)&&(browserName == "Netscape")))
{
             m11 = new Image();
             m11.src = "Images/main/top_menu/on_top_menu_1.gif";

             m21 = new Image();
             m21.src = "Images/main/top_menu/on_top_menu_2.gif";

             m31 = new Image();
             m31.src = "Images/main/top_menu/on_top_menu_3.gif";

             m41 = new Image();
             m41.src = "Images/main/top_menu/on_top_menu_4.gif";

             m51 = new Image();
             m51.src = "Images/main/top_menu/on_top_menu_5.gif";
			 
			 	 
      
             m12 = new Image();
             m12.src = "Images/main/top_menu/top_menu_1.gif";

             m22 = new Image();
             m22.src = "Images/main/top_menu/top_menu_2.gif";

             m32 = new Image();
             m32.src = "Images/main/top_menu/top_menu_3.gif";

             m42 = new Image();
             m42.src = "Images/main/top_menu/top_menu_4.gif";

             m52 = new Image();
             m52.src = "Images/main/top_menu/top_menu_5.gif";
 
}

function img_act(imgName)
{
	if((browserVer>=4)||((browserVer>=3)&&(browserName == "Netscape")))
	{
             imgOn = eval(imgName + "1.src");
             document [imgName].src = imgOn;
	}
}

function img_inact(imgName)
{
	if((browserVer>=4)||((browserVer>=3)&&(browserName == "Netscape")))
	{
             imgOff = eval(imgName + "2.src");
             document [imgName].src = imgOff;
	}
}
//top_menu_end




//scroll_begin
function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser()
 
var speed=50
 
var loop, timer
 
function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.up=MoveAreaUp;this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
 
function PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
} 
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer') 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 




function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//scoll_end


//div_control_begin
function Is() {
	var agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.ns = ((agent.indexOf('mozilla') != -1) &&
	(agent.indexOf('spoofer') == -1) &&
	(agent.indexOf('compatible') == -1) &&
	(agent.indexOf('opera') == -1) &&
	(agent.indexOf('webtv') == -1));
	this.ns4 = (this.ns && (this.major == 4));
	this.ns6 = (this.ns && (this.major >= 5));
	this.ie = (agent.indexOf("msie") != -1);
	this.ie3 = (this.ie && (this.major < 4));
	this.ie4 = (this.ie && (this.major >= 4));
	this.ie5 = (this.ie && (this.major == 4) &&
	(agent.indexOf("msie 5.0") != -1));
	this.ieX = (this.ie && !this.ie3 && !this.ie4);
}

var is = new Is();

function layerObject(id,left,top) {
	if (is.ie5||is.ns6){
		this.obj = document.getElementById(id).style;
		this.obj.left = left;
		this.obj.top = top;
		return this.obj;
	} else if(is.ie4) {
		this.obj = document.all[id].style;
		this.obj.left = left;
		this.obj.top = top;
		return this.obj;
	} else if(is.ns4) {
		this.obj = document.layers[id] ;
		this.obj.left = left;
		this.obj.top = top;
		return this.obj;
	} 
}

function resizePage() {
	if(is.ns4 ||is.ns6||is.ie4||is.ie5) {
	history.go(0);
	}
}
//div_control_end
