/* JavaScript file */

//
imgover="images/internal/arent89.gif";
imgout="images/internal/rent89.gif";
function roll(id, bul){
 if (bul) document.getElementById(id).src=imgover
  else document.getElementById(id).src=imgout
}

//
NN=(document.layers) ? true : false;
IE=(document.all) ? true : false;
OLD=!(IE || NN);

function showon(name)
{document.images[name].src="images/internal/a"+name+".gif";}
function showoff(name)
{document.images[name].src="images/internal/"+name+".gif";}

function menuon(name)
{document.images[name].src="images/main/menu/a"+name+".gif";}
function menuoff(name)
{document.images[name].src="images/main/menu/"+name+".gif";}

function showmainon(name)
{document.images[name].src="images/internal/a"+name+".jpg";}
function showmainoff(name)
{document.images[name].src="images/internal/"+name+".jpg";}

// window
function wfloat5 (target,size) {
var wWidth=650;
var wHeight=500;
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=500';
	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;
}

function wfloat4 (target,size) {
var wWidth=700;
var wHeight=500;
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=700,height=500';
	var target = target || 'wfloat4';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'location=no,toolbar=no,resizable=yes,menubar=no,status=no,scrollbars=yes,top='+topOffset+',left='+leftOffset);
 }
return false;
}

function wfloat (target,size) {
var wWidth=650;
var wHeight=730;
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=730';
	var target = target || 'wfloat';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'location=no,toolbar=no,resizable=yes,menubar=no,status=no,scrollbars=no,top='+topOffset+',left='+leftOffset);
 }
return false;
}

function OpenWindowImage1 (url,width,height) {
	wnd = null;
	var url = url || '';
	var width = width || 300;
	var height = height || 300;
	var size = 'width='+width+',height='+height;
	wnd = window.openwnd (url,'wfloat',size+'toolbar=no,menubar=no,scrollbars=no,status=no,resizable=no');
	wnd.document.open();
	wnd.document.open();
	wnd.document.write("<html><head>");
	wnd.document.write("<title>Ñõåìà ïðîåçäà</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><img src='"+url+"'  border='0' vspace='0' hspace='0' id='photo'/><body></html>");
  wnd.document.close();
}