var docHeight=0;
function pageHeight(){var un='undefine';
if((typeof(document.height)!=un)&&parseInt(document.height)){docHeight=document.height;}
else if((document.compatMode)&&(document.compatMode!='BackCompat')){docHeight=document.documentElement.scrollHeight;}
else if(document.body&&(typeof(document.body.scrollHeight)!=un)){docHeight=document.body.scrollHeight;};
var clh=0;
if((typeof(window.innerHeight)!=un)&&parseInt(window.innerHeight)){clh=parseInt(window.innerHeight);}
else if((typeof(document.body.clientHeight)!=un)&&parseInt(document.body.clientHeight)){clh=parseInt(document.body.clientHeight);}
else if((typeof(document.documentElement.clientHeight)!=un)&&parseInt(document.documentElement.clientHeight)){clh=parseInt(document.documentElement.clientHeight);}
if(clh>docHeight){docHeight=clh;}
return(docHeight);
}
function mouse_png(obj,ev){
  var itm=new Array();
	for(var i=0;i<obj.childNodes.length;i++){if(obj.childNodes[i].tagName=='DIV'){itm[itm.length]=obj.childNodes[i];obj.childNodes[i].style.visibility='hidden';}}
  var a_id=0;var s_id=1;
  switch(ev.type){
		case'click':itm[a_id].style.visibility='visible';break;
    case'mouseover':itm[a_id].style.visibility='visible';break;
		case'mouseout':itm[s_id].style.visibility='visible';break;
  }
}
function switch_contacts(){
  var contacts_wnd=document.getElementById('contacts_wnd');
  var contacts_wnd_shade=document.getElementById('contacts_wnd_shade');
  if(contacts_wnd&&contacts_wnd_shade){
    contacts_wnd.style.display=(contacts_wnd.style.display=='none')?'block':'none';
    contacts_wnd_shade.style.display=(contacts_wnd_shade.style.display=='none')?'block':'none';
    contacts_wnd_shade.style.height=pageHeight()+'px';
  }
}
