function MiddlePage(div){
       var left=(screen.width/2);
   var width=document.getElementById(div).style.width;
    width=width.substring(0,width.indexOf("px"))/2;
   document.getElementById(div).style.left=left-width+"px";
   if(div=='wait')
    document.getElementById(div).style.display='block';
}
function ShowContent(url,div)
  {
    
    MiddlePage('wait');
    var req= zXmlHttp.createRequest() ;
    req.open("post",url,true);
    req.onreadystatechange = function()
    {
        if (req.readyState == 4)
        {	
           if (req.status == 200)
           {
                         var  strres = req.responseText;
			  document.getElementById(div).innerHTML=strres
			  document.getElementById('wait').style.display='none';
           }
        }
    }
    req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")  ;
    req.send("") ;
 }
 function setBgcolor(a)
 {
	 a.style.backgroundColor='#C5DEE3';
 }
 function getBgcolor(a){
     a.style.backgroundColor='#ffffff';
 }
 function showTabs(parent,id){
    elms=document.getElementById(parent).getElementsByTagName("div");
    for(i=0;i<elms.length;i++)     
       if(document.getElementById(elms[i].id+"_content")){
         document.getElementById(elms[i].id+"_content").style.display='none';
         document.getElementById(elms[i].id).style.backgroundImage='none';
         document.getElementById(elms[i].id).style.marginRight='-4px';
         document.getElementById(elms[i].id).style.border='1px solid #9FADB7';
       } 
        document.getElementById(id).style.backgroundImage='url(SIBISP/images/TabBackground.gif)';       
        document.getElementById(id).style.border='1px solid #6F7843';
        document.getElementById(id).style.borderRight='none';
        document.getElementById(id).style.marginRight='0';
    document.getElementById(id+"_content").style.display='block';
 }
function showPic(src){
     MiddlePage('sib_pics_contain');
    document.getElementById('sib_pics_contain').style.background='#EBF0F4 url('+src+') no-repeat center';
	$('#sib_pics_contain').fadeIn(1000);
}

