/* JavaScript file */

function wfloat (target,size) {
var wWidth=570;
var wHeight=460;
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=678,height=560';
	var target = target || 'wfloat';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'toolbar=yes,menubar=yes,top='+topOffset+',left='+leftOffset);
 }
return false;
}

function print (target,size) {
var wWidth=480;
var wHeight=460;
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=480,height=460';
	var target = target || 'print';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'toolbar=yes,menubar=yes,resizable=no,top='+topOffset+',left='+leftOffset);
 }
return false;
}

function scheme (url) {
	wnd = null;
	var url = url || '';
	var alt = alt || '';
	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.write("<html><head><script>function resize(){");
	wnd.document.write("self.resizeTo (photo.width,photo.height); } onload=resize;");
	wnd.document.write("</script><title>Ñõåìà ïðîåçäà</title></head><body bottommargin=0 topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><img src='"+url+"' alt='"+alt+"' border='0' vspace='0' hspace='0' id='photo'/><body></html>");
  wnd.document.close();
  
return false;
}