window.onload = function()
{
   try
   {
	//var hmenus = new simpleMenu('menu-h', 'hmenu');
	 
	 //SetWidthforPages();
	//SetPageLineHeight('ImgBlueLine','0');
	 }
	     catch(e)
        {
        alert(e);
        }

};




function MouseHovermethod(objSender)
{
    try
    {
      //  alert("show this" + objSender);
      
       //var i = document.getElementById(objSender);
        // alert(i.className);
        if(objSender.className=="menuColumn")
        {
        objSender.className = "menuColumnHover";
        }
       

    }
    catch(e)
    {
        alert(e.message);
    }
}
function MouseOutmethod(objSender)
{
    try
    {
       // alert("show this" + objSender);
      
       // var i = document.getElementById(objSender);
        //  alert(i.id);
        if(objSender.className=="menuColumnHover")
        {
        objSender.className = "menuColumn";
       }

    }
    catch(e)
    {
        alert(e.message);
    }
}
function MouseHover(objSender,oldClassName,newClassName)
{
    try
    {
      //  alert("show this" + objSender);
      
       //var i = document.getElementById(objSender);
        // alert(i.className);
        if(objSender.className==oldClassName)
        {
        objSender.className = newClassName;
        }
       

    }
    catch(e)
    {
        alert(e.message);
    }
}
function MouseOut(objSender,oldClassName,newClassName)
{
    try
    {
       // alert("show this" + objSender);
      
       // var i = document.getElementById(objSender);
        //  alert(i.id);
        if(objSender.className==oldClassName)
        {
        objSender.className = newClassName;
       }

    }
    catch(e)
    {
        alert(e.message);
    }
}
function newLocation(URL)
{
    try
    {
    window.location=URL;
    }
    catch(e)
    {
        alert(e.message);
    }
}
   function OpenPrintPopup(URL)
{
	
   PrintWindow =  window.open(URL,'PrintWindow','width=1000,height=800,left=50,top=50,toolbar=no,fullscreen=no,location=0,titlebar=0,directories=no,status=yes,menubar=no,scrollbars=auto,copyhistory=no,resizable=yes');
    PrintWindow.focus();
}
function PopupCenter(pageURL, title,w,h) 
{
    if(w==0)
    {
        w=screen.width-50;
    }
    if(h==0)
    {
        h=screen.height-100;
    }
    var left = (screen.width/2)-(w/2);
    var top = (screen.height/2)-(h/2);

    var targetWin = window.open(pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
    targetWin.focus();
} 

function collapse (id) 
{ 
         if(!document.getElementById)
         {
            exit;
         } 
         else
         {
            menu_id=document.getElementById(id); 
            menu_id.style.display=(menu_id.style.display!="none")?"none":"block"; 
        } 
} 

// Lets change the value of an existing property in CSS
function changecss(theclass,property,value) 
{
    var cssRules;
    if (document.all) {
        cssRules = 'rules';
    }
    else if (document.getElementById) {
        cssRules = 'cssRules';
    }
    for (var S = 0; S < document.styleSheets.length; S++){
        for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
            if (document.styleSheets[S][cssRules][R].selectorText == theclass) {
                document.styleSheets[S][cssRules][R].style[property] = value;
            }
        }
    }
}

