var ie = (document.all);
var i=0;
////////////////////////////////////////////////////////////////////////////////////////////////
function getElementByIdCompatible (the_id) {
if (typeof the_id != 'string') {
return the_id;
}

if (typeof document.getElementById != 'undefined') {
return document.getElementById(the_id);
} else if (typeof document.all != 'undefined') {
return document.all[the_id];
} else if (typeof document.layers != 'undefined') {
return document.layers[the_id];
} else {
return null;
}
}

function hideMenu(id){
  setTimeout("hide("+id+");",350);
}
function showMenu(id){
   setTimeout("show("+id+");",400);
}
function hide(id){
  if (!eff.active[id]) {
    eval("document.all.m"+id+".style.visibility=\"hidden\";");
    /*if (ie) eval("document.all.m"+id+".style.visibility=\"hidden\";");
    else  eval("document.layers.m"+id+".style.visibility=\"hidden\";");*/
  }
}
function show(id){
  if (eff.active[id]) {
    eval("document.all.m"+id+".style.visibility=\"visible\";");
    for (i=1; i<=5; i++){
		eval("document.all.m"+id+".style.filter=\"alpha(opacity="+20*i+")\";");
	}
    /*if (ie) eval("document.all.m"+id+".style.visibility=\"visible\";");
    else  eval("document.layers.m"+id+".style.visibility=\"visible\";");
	for (i=1; i<=5; i++){
		eval("document.all.m"+id+".style.filter=\"alpha(opacity="+20*i+")\";");
	} */
	
  }   
}
//
var eff=new effect;

function effect(){
  this.opas=100;
  this.active=new Array();
}


function winwidth(){
//1074
var tbl=0;
/*if (screen.width==1280){ tbl=screen.width-950;}
if (screen.width==1024){ tbl=screen.width-822;}
if (screen.width==800){ tbl=screen.width-594;}*/
tbl=208;
tbl2=tbl+250;
document.all.m1.style.pixelLeft=tbl;
document.all.m2.style.pixelLeft=tbl;
document.all.m3.style.pixelLeft=tbl;
document.all.m4.style.pixelLeft=tbl+250;
document.all.m5.style.pixelLeft=tbl;
document.all.m6.style.pixelLeft=tbl;
document.all.m7.style.pixelLeft=tbl;
document.all.m8.style.pixelLeft=tbl;
document.all.m9.style.pixelLeft=tbl;
document.all.m10.style.pixelLeft=tbl;
document.all.m11.style.pixelLeft=tbl;
document.all.m12.style.pixelLeft=tbl+250;
}

/////////////////////////////////////////////////



