var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i){if (isNaN(parseInt(words[i]))) continue; var MM_PluginVersion = words[i];} var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n on error resume next \n MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n </SCR' + 'IPT\> \n');}
function pick(p,n,f,w,h){
if (MM_FlashCanPlay) {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="'+w+'" height="'+h+'"> <param name="movie" value="flash/'+n+'.swf" /><param name=wmode value=transparent><param name="quality" value="high" /> <embed wmode="transparent" src="flash/'+n+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> </object>');} 
else{
if (n=="logo") {document.write('<a href="index.php"><img src="'+p+'/'+n+'.'+f+'" width="'+w+'" height="'+h+'" border="0" /></a>')}
if (n=="menu_small2") {document.write('<div style="background:transparent url(images/menu_small.gif) no-repeat; width:350px; height=23px;"><a class="n" href="contacts.php"><img src="images/ms_cont.gif" width="51" height="23" border="0" /></a><a class="n" href="javascript:favorite(window.external.addFavorite(\'http://www.podsolncem.ru\', \'Студия загара и салон красоты «Место под Солнцем»\'))"><img src="images/ms_love.gif" width="40" height="23" border="0" /></a><a class="n" href="gallery.php"><img src="images/ms_3d.gif" width="43" height="23" border="0" /></a></div>')}
else{document.write('<img src="'+p+'/'+n+'.'+f+'" width="'+w+'" height="'+h+'" border="0" />')}}}

function ShowPage(p,w,h){window.open(p,"PERGAM","width="+w+",height="+h+",scrollbars=no");}

function btn (num){
	for (i=1;i<16;i++) 
	{
		document.getElementById('block_'+i).style.display = 'none';
	}
	document.getElementById('block_0').style.display = 'none';
	document.getElementById('block_'+num).style.display = '';
//	document.getElementById('btn_'+curr_act2).className = '';
//	document.getElementById('btn_'+num).className = 'sel';
	num2 = num;
	return false;
}