//menu
function load (location) { 
return image; 
} 

tr=new Image(); 
tr.src="images/menu/main/aballoon.gif"; 

function show(where) {
document.images['im1'].src="images/menu/main/balloon.gif";
document.images['im2'].src="images/menu/main/balloon.gif";
document.images['im3'].src="images/menu/main/balloon.gif";
document.images['im4'].src="images/menu/main/balloon.gif";
document.images['im5'].src="images/menu/main/balloon.gif";
document.images['im6'].src="images/menu/main/balloon.gif";
document.images['im7'].src="images/menu/main/balloon.gif";
stored=where;
storedLocation=document.images[where].src;
document.images[where].src="images/menu/main/aballoon.gif";
} 

function hide() { 
document.images[stored].src=storedLocation;
} 


function show1(where) {
stored=where; 
storedLocation=document.images[where].src;
document.images[where].src="images/menu/sub/aballoon.gif";
} 

function hide1() { 
document.images[stored].src=storedLocation;
}

function show2(where) {
stored=where; 
storedLocation=document.images[where].src; 
document.images[where].src="images/menu/sub/aballoon.gif";
} 

function hide3(where) { 
document.images[where].src=storedLocation;
}

// window
function wfloat5 (target,size) {
var wWidth=650;
var wHeight=520;
var cWidth=window.screen.width;
var cHeight=window.screen.height;
if(cHeight && cWidth){
	var leftOffset=Math.ceil((cWidth-wWidth)/2);
	var topOffset=Math.ceil((cHeight-wHeight)/2);
	var size = size || 'width=650,height=520';
	var target = target || 'wfloat5';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'location=no,toolbar=no,resizable=yes,menubar=no,status=no,scrollbars=no,top='+topOffset+',left='+leftOffset);
 }
return false;
}

// newwindow

function OpenWindowImage (url,alt,width,height) {
	wnd1 = null;
	var url = url || '';
	var alt = alt || '';
	var width = width || 300;
	var height = height-19 || 300;
	var size = 'width='+width+',height='+height;
	wnd1 = window.openwnd (url,'wfloat1',size+'toolbar=no,menubar=yes,scrollbars=no,status=no');
	wnd1.document.open();
	wnd1.document.open();
	wnd1.document.write("<html><head><script>function resize(){");
	wnd1.document.write("self.resizeTo (photo.width+12,photo.height+52); } onload=resize;");
	wnd1.document.write("</script><title>Увеличенное изображение</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><img src='"+url+"' alt='"+alt+"' border='0' vspace='0' hspace='0' id='photo'/><body></html>");
  wnd1.document.close();
}

function integration (id)
{
	var i = 1;
	while (document.getElementById(i))
	
	{
		if ((i) == id && document.getElementById(i).style.display == 'none')
		{
			document.getElementById(id).style.display = 'block';
		}
		else {
			document.getElementById(i).style.display = 'none';
		}
		i++;
	}
}

function ShowThis(divid) {
	if (document.getElementById(divid).style.display=="none") {
		document.getElementById(divid).style.display="block";
	} else {
		document.getElementById(divid).style.display="none";
	}
}