
function lib_bwcheck(){ //Browsercheck (needed)

	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

	return this
}
var bw=new lib_bwcheck();


function makeObj(obj,nest,menu){
	nest = (!nest) ? "":'document.'+nest+'.';
	this.elm = bw.ns4?eval(nest+"document.layers." +obj):bw.ie4?document.all[obj]:document.getElementById(obj);
	
   	this.css = bw.ns4?this.elm:this.elm.style;
	this.scrollWidth = bw.ns4?this.css.document.width:this.elm.offsetWidth;
	this.x = bw.ns4?this.css.left:this.elm.offsetLeft;
	this.y = bw.ns4?this.css.top:this.elm.offsetTop;
	this.moveBy = b_moveBy;
	this.moveIt = b_moveIt;
	this.clipTo = b_clipTo;
	this.coord_x=coord_x;
	this.coord_y=coord_y;
	return this;
}
var px = bw.ns4||window.opera?"":"px";
function b_moveIt(x,y){
	if (x!=null){this.x=x; this.css.left=this.x+px;}
	if (y!=null){this.y=y; this.css.top=this.y+px;}
}
function b_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x+px; this.css.top=this.y+px;}
function b_clipTo(t,r,b,l){
	if(bw.ns4){this.css.clip.top=t; this.css.clip.right=r; this.css.clip.bottom=b; this.css.clip.left=l;}
	else this.css.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";
}

function coord_x(){
	x=0;
	y=0;
	e = this.elm;
	while (e != null) {
		x += e.offsetTop;
		y += e.offsetLeft ;
		e = e.offsetParent;
	}
	return (x);
}

function coord_y(){
	x=0;
	y=0;
	e = this.elm;
	while (e != null) {
		x += e.offsetTop;
		y += e.offsetLeft ;
		e = e.offsetParent;
	}
	return (y);
}

var oBg;
var oBg2;
function sideInit()
{
	var expe=new makeObj('Image10');
	oBg = new makeObj('divBg');
	oBg.css.visibility = "hidden";
	oBg.moveIt(expe.coord_y(),expe.coord_x()+17 ) ;

}

if (bw.bw) onload = sideInit;

function MM_swapImage3() {
var i,j=0,x,a=MM_swapImage3.arguments;
 document.MM_sr=new Array;
 for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; 
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	if(x.id=="Image10" || x.id=="Image1" || x.id=="Image11" || x.id=="Image7" ){
		ShowIt(x.id);
	}else{
		setTimer();
	}
}

function ShowIt(a)
{
	if(a=="Image10")
	{
		var expe=new makeObj('Image10');
		oBg = new makeObj('divBg');
		oBg.css.visibility = "hidden";
		oBg.moveIt(expe.coord_y(),expe.coord_x()+17 ) ;
		oBg.css.visibility = "visible";
		clearTimer();
	}

	if(a=="Image1")
	{
		var expe2=new makeObj('Image1');
		oBg2 = new makeObj('divBg2');
		oBg2.css.visibility = "hidden";
		oBg2.moveIt(expe2.coord_y(),expe2.coord_x()+17 ) ;
		oBg2.css.visibility = "visible";
		clearTimer();
	}

	if(a=="Image11")
	{
		var expe2=new makeObj('Image11');
		oBg2 = new makeObj('divBg30');
		oBg2.css.visibility = "hidden";
		oBg2.moveIt(expe2.coord_y(),expe2.coord_x()+17 ) ;
		oBg2.css.visibility = "visible";
		clearTimer();
	}

	if(a=="Image7")
	{
		var expe2=new makeObj('Image7');
		oBg2 = new makeObj('divBg20');
		oBg2.css.visibility = "hidden";
		oBg2.moveIt(expe2.coord_y(),expe2.coord_x()+17 ) ;
		oBg2.css.visibility = "visible";
		clearTimer();
	}

}

function CloseAll(a){
if(oBg && oBg.css)
	oBg.css.visibility = "hidden";
if(oBg2 && oBg2.css)
	oBg2.css.visibility = "hidden";

}
function MM_swapImgRestore3(){var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
var Timer=null;
function clearTimer(){if (Timer){clearTimeout (Timer);Timer = null;}}
function setTimer(){clearTimer();Timer = window.setTimeout('CloseAll(0)', 500);}
