
function alertSize()
{
  var myWidth = 0, myHeight = 0;
  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;
  }
  // window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
  var y = new Array(2);		
  y[0] = myWidth+15;
  y[1] = myHeight+8;
  return y;
}   
var size  = alertSize();

function new_div(id,width,height,left,top,html)
{
   var newdiv = document.createElement('div');
   newdiv.setAttribute('id', id);
   
   if (width) {
       newdiv.style.width = width+'px';
   }
   
   if (height) {
       newdiv.style.height = height+'px';
   }
   newdiv.style.border="0px";
   if ((left || top) || (left && top)) {
       newdiv.style.position = "absolute";
       
       if (left) {
	   //alert(left);
           newdiv.style.left = left+'px';
       }
       
       if (top) {
           newdiv.style.top = top+'px';
       }
   }
   
  // newdiv.style.background = "#00C";
  // newdiv.style.border = "1px solid #99BBE8";
   
 //  newdiv.onload = '';
 // f (html) {
       newdiv.innerHTML = html;
  // } else {
  //     newdiv.innerHTML = "nothing";
  // }
   
   document.getElementById('b1').appendChild(newdiv);
return newdiv;
} 
function create_divs()
{
new_div('d1',(size[0]-20)-5,40,5,0,"");
new_div('d2',250,(size[1]-20)-110,5,110,"");
new_div('toolbar',(size[0]-20)-10,26,5,80,"");
new_div('d3',(size[0]-20)-262,(size[1]-20)-112,260,110,"");
new_div('ht_logo',150,50,(size[0]-200),(size[1]-110),"LOGO");
var browserName=navigator.appName; 

 if (browserName=="Microsoft Internet Explorer")
 {
  document.getElementById('d3').className ="soria";
  
 }
 else
  {
    document.getElementById('d3').setAttribute("class", "soria");
   }
   
    document.getElementById('d3').style.border= "1px solid #99BBE8";
	//document.getElementById('d3').style.borderTop= "0px solid #99BBE8";   	
	document.getElementById('d3').style.background = "White";
	//document.getElementById('toolbar').style.border= "1px solid #99BBE8";
	//document.getElementById('toolbar').style.borderBottom= "0px solid #99BBE8";
//  document.getElementById('d3').style.borderBottom = "1px solid #99BBE8";   
//  document.getElementById('d3').style.borderRight= "1px solid #99BBE8";   
document.getElementById('d1').innerHTML='<table style="height:100%;width:100%;border-collapse: collapse;background-color:'+bcolor+';	background-repeat: repeat-x;"><tr><td width="362px" ><a href="http://www.odessa.ua"><img border="0" src="images/'+languages[lang1]['logo_file']+'"></a></td><td width="*" style="vertical-align:bottom;text-align:right;padding-bottom:15px;"><a class="a_link" href="http://www.citymap.odessa.ua/map">RU</a>|<a class="a_link" href="http://www.citymap.odessa.ua/map/?lang=1">EN</a>|<a class="a_link" href="http://www.citymap.odessa.ua/map/?lang=2">UA</a><br><a class="a_link" href="http://www.citymap.odessa.ua">'+languages[lang1]['firm_name']+'</a> | <a class="a_link" href="http://www.citymap.odessa.ua/help.html">'+languages[lang1]['help']+'</a> |<span class="a_link" style="cursor:pointer"  onclick ="dijit.byId('+"'dialog11'"+').show()">Настройки</span> </td></tr></table>';
document.getElementById('theme_selected1').selectedIndex = theme_selected;
document.getElementById('lang_selected1').selectedIndex = lang1;
document.getElementById('ht_logo').innerHTML='<a href="http://www.ht.com.ua"><img border="0" src="images/1.png" style="width:175px;margin:0px"></a>';
create_int((size[0]-19),(size[1]-20)-110,(size[1]-20)-80);
document.getElementById('ht_logo').style.zIndex = 999999;

//init(); ГЕОИНФОРМАЦИОННЫЕ СИСТЕМЫ, ГЕОПОРТАЛЫ КАРТОГРАФИЧЕСКИЕ, ГЕОДЕЗИЧЕСКИЕ ПРОЕКТЫ


 

}
