﻿function HighlighTheSelectedSubMenuItem()
{
        var substring=new Array();
        var sub=new Array();
        var subca=new Array();
        var url=window.location.href.toString();     
        if(url.indexOf("id=")!=-1)
        {
            substring=url.split("id=");
            sub=substring[1].split("&ca=");
            if(sub[1].indexOf("%20")!=-1)
            {
                  subca=sub[1].split("%20");
                  sub[1]=subca[0];
                  for(var i=1;i<subca.length;i++)
                      sub[1]=sub[1]+" "+subca[i];
            }
            if( (sub[0]!=0)&&(document.getElementById('sub_'+sub[0])!=null) )    
                  document.getElementById('sub_'+sub[0]).style.color="#333333";
            if(document.getElementById(sub[1])!=null)
                  document.getElementById(sub[1]).style.color="#333333";
        }
}

function FullTheBroswer() 
{
      var myWidth = 0, myHeight = 0;
      var container=document.getElementById("PageContainer");
      if( typeof( window.innerWidth ) == 'number' ) 
      {
          //Non-IE
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
      } 
      else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
      {
          //IE 6+ in 'standards compliant mode'
          myWidth = document.documentElement.clientWidth;
          myHeight = document.documentElement.clientHeight;
      } 
      else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
      {
          //IE 4 compatible
          myWidth = document.body.clientWidth;
          myHeight = document.body.clientHeight;
      }
      container.style.height=myHeight+"px";
}




