function hideall() {
 if (navigator.appName=="Microsoft Internet Explorer") {
   document.all.menu_1.style.visibility = 'hidden';
   document.all.menu_2.style.visibility = 'hidden';
   document.all.menu_3.style.visibility = 'hidden';
   document.all.menu_4.style.visibility = 'hidden';
   document.all.menu_5.style.visibility = 'hidden';
   document.all.menu_6.style.visibility = 'hidden';
   document.all.menu_7.style.visibility = 'hidden';
   document.all.submenu_1.style.visibility = 'hidden';
   document.all.submenu_2.style.visibility = 'hidden';
   document.all.submenu_3.style.visibility = 'hidden';
   document.all.submenu_4.style.visibility = 'hidden';
   document.all.submenu_5.style.visibility = 'hidden';
   document.all.submenu_6.style.visibility = 'hidden';
   document.all.submenu_7.style.visibility = 'hidden';
 }
 else { 
   document.getElementById('menu_1').style.visibility = 'hidden';
   document.getElementById('menu_2').style.visibility = 'hidden';
   document.getElementById('menu_3').style.visibility = 'hidden';
   document.getElementById('menu_4').style.visibility = 'hidden';
   document.getElementById('menu_5').style.visibility = 'hidden';
   document.getElementById('menu_6').style.visibility = 'hidden';
   document.getElementById('menu_7').style.visibility = 'hidden';
   document.getElementById('submenu_1').style.visibility = 'hidden';
   document.getElementById('submenu_2').style.visibility = 'hidden';
   document.getElementById('submenu_3').style.visibility = 'hidden';
   document.getElementById('submenu_4').style.visibility = 'hidden';
   document.getElementById('submenu_5').style.visibility = 'hidden';
   document.getElementById('submenu_6').style.visibility = 'hidden';
   document.getElementById('submenu_7').style.visibility = 'hidden';
 }
}

function hide_links(){
 document.button_1.src = "gfx/menu/0_menu_1.png"; 
 document.button_2.src = "gfx/menu/0_menu_2.png"; 
 document.button_3.src = "gfx/menu/0_menu_3.png"; 
 document.button_4.src = "gfx/menu/0_menu_4.png"; 
 document.button_5.src = "gfx/menu/0_menu_5.png"; 
 document.button_6.src = "gfx/menu/0_menu_6.png"; 
 document.button_7.src = "gfx/menu/0_menu_7.png"; 
}

function hide_wszystko(){
hideall();
hide_links();
}

function popimage(plik)
 {

   sw = screen.width;
   sh = screen.height;

   szer = sw - 150;
   wys  = sh - 150;
   srodek_szer = sw/2;
   srodek_wys  = sh/2;
   
   lewy = srodek_szer - szer/2;
   gora = srodek_wys  - wys/2;
   
   config='resizable=yes,scrollbars=yes,menubar=no,width=' + szer +',height='+wys+',top='+ gora + ',left=' + lewy;
   pop = window.open ("","pop",config)

   pop.document.write('<html><head><TITLE>OPTIMALFASHION</TITLE><STYLE TYPE="text/css"> A { text-decoration: none; color: #111111; font-size: 8pt; font-family: Verdana;}');
   pop.document.write('TD {text-size: 8pt; font-family: Verdana; FONT {text-size: 10 pt;}');
   pop.document.write('A:HOVER { text-decoration: none; color: #444444; font-size: 8pt; font-family: Verdana;}</STYLE>');
   pop.document.write('</head><body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 bgcolor=#ffffff>');
   pop.document.write('<TABLE WIDTH=100%><TD WIDTH=100% height=20 bgcolor=darkorange><FONT COLOR=white> <b> &nbsp; RYTM - Fitness Klub </b></FONT> </TD></TABLE><br><CENTER><IMG SRC="obiekty/');
   pop.document.write(plik);
   pop.document.write('"><br><br><a href=javascript:window.close()><b> zamknij okno</b> </a> </CENTER> </body></html>');
 }

function wstawobiektflash(nazwa,szerokosc,wysokosc)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+szerokosc+'" height="'+wysokosc+'" id="testNaStr" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+nazwa+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="opaque" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed wmode="opaque" src="'+nazwa+'" quality="high" bgcolor="#ffffff" width="'+szerokosc+'" height="'+wysokosc+'" name="testNaStr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

function wstawobiektflashtrans(nazwa,szerokosc,wysokosc)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+szerokosc+'" height="'+wysokosc+'" id="testNaStr" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+nazwa+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed wmode="transparent" src="'+nazwa+'" quality="high" bgcolor="#ffffff" width="'+szerokosc+'" height="'+wysokosc+'" name="testNaStr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

