 
function mouseOver(obj)
{
document.getElementById(obj).style.backgroundColor ="#194384";
document.getElementById(obj).style.borderBottom ="1px solid #5b5b69";
document.getElementById(obj).style.borderTop ="1px solid #e9e9fc";
document.getElementById(obj).style.borderLeft ="1px solid #e1e0fb";
document.getElementById(obj).style.borderRight ="1px solid #89889e";
document.getElementById('1_'+obj).style.color ="#ed1b23";




} 
function mouseOut(obj)
{
//document.getElementById("but").style ="background-color:#194384; border-bottom: 1px solid #0a1cff; border-top: 1px solid #7a93b8;border-left: 1px solid #4a6b9e;border-right: 1px solid #102a53;"
document.getElementById(obj).style.backgroundColor ="#194384";
document.getElementById(obj).style.borderBottom ="1px solid #0a1cff";
document.getElementById(obj).style.borderTop ="1px solid #7a93b8";
document.getElementById(obj).style.borderLeft ="1px solid #4a6b9e";
document.getElementById(obj).style.borderRight ="1px solid #102a53";
document.getElementById('1_'+obj).style.color ="#ffffff";
} 

function menuOver(obj)

{
document.getElementById(obj).style.backgroundColor ="#194384";

document.getElementById('1'+obj).style.color ="#ffffff";




} 
function menuOut(obj)
{
document.getElementById(obj).style.backgroundColor ="#fff3dc";

document.getElementById('1'+obj).style.color ="#594E88";
} 

function subMenuOver(obj)

{
document.getElementById(obj).style.backgroundColor ="#8387c2";

document.getElementById('a_'+obj).style.color ="#ffffff";




} 
function subMenuOut(obj)
{
document.getElementById(obj).style.backgroundColor ="#aeaee5";

document.getElementById('a_'+obj).style.color ="#594E88";
} 

function getCookie(c_name)
{
if (document.cookie.length > 0)
  {
  c_start=document.cookie.indexOf(c_name + "=")
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1
    c_end=document.cookie.indexOf(";",c_start)
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end))
    }
  }
return ""
}




function swapImgRestore() {
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function preloadImages() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function swapImage() {
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i <(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function showHideLayers() {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i < (args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style	; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}



function getBounds(element)
{
  var left = element.offsetLeft;
  var top = element.offsetTop;
  for (var parent = element.offsetParent; parent; parent = parent.offsetParent)
  {
    left += parent.offsetLeft - parent.scrollLeft;
    top += parent.offsetTop - parent.scrollTop
  }
  return {left: left, top: top, width: element.offsetWidth, height: element.offsetHeight};
}


function SetDivPosition (id,id_s)
{
	var b=getBounds(document.getElementById(id_s));
	var name= id.substring(2);

	var h=document.getElementById(id).offsetHeight;
	var dis=1;

	while (dis <=8)
	{
		document.getElementById('d_img'+dis+'_big').style.display="none";
		dis+=1;
	}

	var hiegh=0;
	var temp;
	var x;

	//document.getElementById(id).innerHTML= footerImagesHeight[name];
	document.getElementById(id).style.top=(b.top+b.height+document.body.scrollTop)-footerImagesHeight[name];
	document.getElementById(id).style.left=b.left;

	document.getElementById(id).style.display="block";
}

function hidebig(id)
{
document.getElementById(id).style.display='none';
}



