
/* alert("This browser is version " + navigator.appVersion)
alert(" of <B>" + navigator.appName + "</B>.") */

function change_size(){
	var width=get_width();
	/*  document.getElementById('helicopter').style.width=(width-900)+'px'; */
	width=width-1003;
	width=width/2;
	
	if(width>0){
	
	//document.getElementById('right_clowd').style.width=width+'px';
	//document.getElementById('left_cloawd').style.width=width+'px';
	}

}
function btn(){
	var bp=document.getElementById('bottom_div1').offsetTop;
	/* alert(bp+'bottom_div1'); */
	var bh=document.getElementById('id_helicopter').offsetTop;
	var bh1=bh+400;
	/* alert(bh1+'id_helicopter'); */
	if(bh1>bp){
		document.getElementById('bottom_div1').style.position="absolute";
		document.getElementById('bottom_div1').style.top=bh1+"px";
	}
}
function get_width(){
 var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
 return viewportwidth;//+'x'+viewportheight+'</p>');
}
function show_photo(ind){
	ind=parseInt(ind);
	g_ind+=ind;
	if((g_ind==(mas_fn.length-1))||(g_ind<0))g_ind=0;
	if((g_ind>=0) && (g_ind<mas_fn.length)){
	
	document.getElementById('img_gallery').src=mas_fn[g_ind];
	}
}