// JScript File


Event.observe( window, "load", setUpPageMargin );
//Script for margin top
function setUpPageMargin()
{
if(document.getElementById('toplevelHeader'))
{
if(document.getElementById('div_center'))
{
document.getElementById('div_center').style.marginTop="0px";
}

}
else
{
if(document.getElementById('aboutbg'))
{
document.getElementById('aboutbg').style.backgroundPosition="0px -100px";
}
if(document.getElementById('div_center'))
{
document.getElementById('div_center').style.marginTop="10px";

}
}
}

//function to give effects in image mouseover
 function ImageOver(id)
    {
    document.getElementById(id).style.height="25px";
    document.getElementById(id).style.backgroundPosition ="0px -25px";
    document.getElementById(id).firstChild.style.height="25px";
    document.getElementById(id).firstChild.style.backgroundPosition ="right -25px";
    }
    function ImageNormal(id)
    {
    document.getElementById(id).style.height="25px";
    document.getElementById(id).style.backgroundPosition ="left top";
    document.getElementById(id).firstChild.style.height="25px";
    document.getElementById(id).firstChild.style.backgroundPosition ="right top";
    }





function clickclear(thisfield, defaulttext) {
    if (thisfield.value == defaulttext) {
        thisfield.value = "";
    }
}
function clickrecall(thisfield, defaulttext) {
    if (thisfield.value == "") {
        thisfield.value = defaulttext;
    }
}
function df()
{
document.getElementById("div_serchback").style.display="block";
document.getElementById("div_searchmain").style.width="208px";
document.getElementById("div_searchmain").className="div_searchmain_hover";
}
function df1()
{
document.getElementById("div_serchback").style.display="none";
document.getElementById("div_searchmain").style.width="70px";
document.getElementById("div_searchmain").className="div_searchmain";
}



    function showGlobalLinks()
    {
    document.getElementById('ulglobal').style.display="block";
    }
    function hideGlobalLinks()
    {
    document.getElementById('ulglobal').style.display="none";
    }
 function span_showstakeholderLink()
    {
    document.getElementById('span_shareholderLink').className = 'shareholderLink';
    }
    function span_hidestakeholderLink()
    {
    document.getElementById('span_shareholderLink').className = 'shareholderLink';
    }
 function  u_showstakeholderLink()
    {
    document.getElementById('u_shareholderLink').className = 'shareholderLink';
    }
    function u_hidestakeholderLink()
    {
    document.getElementById('u_shareholderLink').className = 'shareholderLink';
    }

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}
