function win(file,win,width,height,wintitle)
{
         var property = "width="+width+",height="+height+",top="+((screen.height-height)/2)+",left="+((screen.width-width)/2) +",titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no; display=block;";
         window.open(file, win, property);

}

function winfoto(file,win,width,height,wintitle)
{
         var property = "width="+width+",height="+height+",top="+(screen.height/5)+",left="+(screen.width/5) +",titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
         var winid = window.open(file, win, property);
         winid.focus();
         winid.document.write("<HTML><HEAD><TITLE>"+wintitle+"</TITLE></HEAD>");
         winid.document.write("<BODY><DIV ALIGN='CENTER'><IMG SRC='"+file+"' BORDER='0' ALIGN='MIDDLE'></DIV></BODY>");
         winid.document.write("</HTML>");
         winid.document.close();
}
/*var imageNames = ['top_day.swf', 'top_vecher.swf', 'top_night.swf', 'top_utro.swf'];

var imageRoot = "/flash/";
var images = [];

function preloadImage(img) {
	var image = new Image();
	image.src = imageRoot+img;
	return image;
}

for (var i = 0; i < imageNames.length; i++) {
	images[i] = preloadImage(imageNames[i]);
}
function shapka(t)
 {
	 if(images[t].src)
	 {
	 	   var so = new SWFObject(images[t].src, "left_top", "100%", "280", "6", "");
		              so.addVariable("flashVarText", "");
		              so.addParam("wmode", "transparent");
		              so.addVariable("variable1", getQueryParamValue("variable1"));
		              so.write("flash_prev2");
	 }
 }*/




