/**
 * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */

function right(){
month11.style.display='none';
month01.style.display='block';
b1.style.display='none';
b2.style.display='block';
}

function left(){
month11.style.display='block';
month01.style.display='none';
b1.style.display='block';
b2.style.display='none';
}

function openimg1() {
imageWidth=409;
imageHeight=477;
	posLeft=screen.width/2-imageWidth/2;
	posTop=screen.height/2-imageHeight/2;
	newWindow = window.open("","image","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>Фото </title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<a href="#"><img src=images/prizeb.jpg border=0>'); 
	newWindow.document.write('<br><center>Закрыть</a></center></body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function openimg2() {
imageWidth=600;
imageHeight=413;
	posLeft=screen.width/2-imageWidth/2;
	posTop=screen.height/2-imageHeight/2;
	newWindow = window.open("","image","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>Фото </title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<a href="#"><img src=images/p2b.jpg border=0>'); 
	newWindow.document.write('<br><center>Закрыть</a></center></body></html>');
	newWindow.document.close();
	newWindow.focus();
}




function showFlasht(o){
	var bg,q,s,v;
	if(o.bgcolor){bg=o.bgcolor;}else{bg="#FFFFFF";}
	if(o.quality){q=o.quality;}else{q="medium";}
	if(o.scale){s=o.scale;}else{s="noscale";}
	if(o.ver){v=o.ver;}else{v=6;}
	var str='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+v+',0,0,0" ';
	str+='id="'+o.id+'" ';
	if(o.base){str+='base="'+o.base+'" ';}
	if(o.aligh){str+='aligh="'+o.aligh+'" ';}
	str+='width="'+o.width+'" height="'+o.height+'"><param name="movie" value="'+o.name+'"/><PARAM NAME=wmode VALUE=transparent><param name="bgcolor" value="'+bg+'"/><param name="quality" value="'+q+'"/>';
	if(o.flashvars){str+='<param name="flashvars" value="'+o.flashvars+'"/>';}
	if(o.salign){str+='<param name="salign" value="'+o.salign+'"/>';}
	str+='<param name="scale" value="'+s+'"/><embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  wmode=transparent  id="'+o.id+'-embed" src="'+o.name+'" bgcolor="'+bg+'" ';
	if(o.flashvars){str+='flashvars="'+o.flashvars+'" ';}
	str+='quality="'+q+'" ';
	if(o.base){str+='base="'+o.base+'" ';}
	if(o.salign){str+='salign="'+o.salign+'" ';}
	str+='scale="'+s+'" width="'+o.width+'" height="'+o.height+'"></embed></object>';
	document.writeln(str);
}

function showFlash(o){
	var bg,q,s,v;
	if(o.bgcolor){bg=o.bgcolor;}else{bg="#FFFFFF";}
	if(o.quality){q=o.quality;}else{q="medium";}
	if(o.scale){s=o.scale;}else{s="noscale";}
	if(o.ver){v=o.ver;}else{v=6;}
	var str='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+v+',0,0,0" ';
	str+='id="'+o.id+'" ';
	if(o.base){str+='base="'+o.base+'" ';}
	if(o.aligh){str+='aligh="'+o.aligh+'" ';}
	str+='width="'+o.width+'" height="'+o.height+'"><param name="movie" value="'+o.name+'"/><param name="bgcolor" value="'+bg+'"/><param name="quality" value="'+q+'"/>';
	if(o.flashvars){str+='<param name="flashvars" value="'+o.flashvars+'"/>';}
	if(o.salign){str+='<param name="salign" value="'+o.salign+'"/>';}
	str+='<param name="scale" value="'+s+'"/><embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"   id="'+o.id+'-embed" src="'+o.name+'" bgcolor="'+bg+'" ';
	if(o.flashvars){str+='flashvars="'+o.flashvars+'" ';}
	str+='quality="'+q+'" ';
	if(o.base){str+='base="'+o.base+'" ';}
	if(o.salign){str+='salign="'+o.salign+'" ';}
	str+='scale="'+s+'" width="'+o.width+'" height="'+o.height+'"></embed></object>';
	document.writeln(str);
}

function openvideo() {
imageWidth=300;
imageHeight=260;
	posLeft=screen.width/2-300/2;
	posTop=screen.height/2-260/2;
	newWindow = window.open("","image","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
newWindow.document.write('<html><title>Видео</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >'); 
newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="240">'); 
newWindow.document.write('<param name="movie" value="video.swf"><param name="quality" value="high">'); 
newWindow.document.write('<embed src="video.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="240"></embed></object>'); 
newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();

}

function openvideo1() {
imageWidth=300;
imageHeight=260;
	posLeft=screen.width/2-300/2;
	posTop=screen.height/2-260/2;
	newWindow = window.open("","image","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
newWindow.document.write('<html><title>Видео</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >'); 
newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="240">'); 
newWindow.document.write('<param name="movie" value="video1.swf"><param name="quality" value="high">'); 
newWindow.document.write('<embed src="video1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="240"></embed></object>'); 
newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();

}

function openwindow(imageName,imageWidth,imageHeight) {
	imageHeightWin=imageHeight;
	posLeft=screen.width/2-imageWidth/2;
	posTop=screen.height/2-imageHeight/2;
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeightWin+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>Фото</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
	newWindow.document.write('<a href=#close onclick=self.close();><img src='+imageName+' width='+imageWidth+' height='+imageHeight+' border=0></a>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}