var mainpage;
function MenuMouseOver(obj){obj.style.color='white';                         
                            }
function MenuMouseOut(obj){obj.style.color='gray';                                                        
                          }
                          
function TextMouseOverWh(obj){obj.style.color='white';                         
                            }
function TextMouseOver(obj){obj.style.color='black';                         
                            }
function TextMouseOut(obj){obj.style.color='gray';                                                        
                          }                          

if( mainpage != true )
{ // at main is table menu without java to function...                          
var bckimg = "rdp3.gif";

document.write("<div id='BelowTopPic'>");
document.write("<img border='0' src='nacitamRDP.gif' width='130' height='120' align='left' hspace='0'>");
document.write("</div>");   
document.write("<div id='TopPic'>");
document.write("&nbsp;</div>");   
document.write("<div id='Commentary' onMouseOver=\"this.style.visibility = 'hidden'\">");
document.write("&nbsp;</div>");   
document.write("<div id='RTLogger' style='visibility: hidden'>");
document.write("</div>")

document.write("<p align=\"center\">");
document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"780\" height=\"160\">");
document.write("	<tr>");
document.write("<td valign=\"bottom\" colspan=\"6\" height=\"160\">");
document.write("<p align=\"center\">");

var ran = Math.floor(Math.random()*10);
if( location.pathname.toLowerCase().indexOf('ecm11_main.htm') < 0 && location.pathname.toLowerCase().indexOf('majorettsport.htm') < 0 )
{
 ran=7;
}
// alert(location.pathname.toLowerCase());
if( location.pathname.toLowerCase().indexOf('ecm11_main.htm') > 0 )
{
 ran = 9+Math.floor(Math.random()*2);
}

switch(ran)
 {
 case 0:
 document.write("<img border=\"0\" src=\"Images/selfwfotoje.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 1:
 document.write("<img border=\"0\" src=\"Images/selfwvnimam.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 2:
 document.write("<img border=\"0\" src=\"Images/selfwmalirem.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 3:
 document.write("<img border=\"0\" src=\"Images/selfwsmeruje.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 4:
 document.write("<img border=\"0\" src=\"Images/selfwkazdazena.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 5:
 document.write("<img border=\"0\" src=\"Images/selfwpolak.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 6:
 document.write("<img border=\"0\" src=\"Images/selfwpolak.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\">");
 break;
 case 7:
 document.write("<a href=\"ECM11_main.htm\"><img border=\"0\" src=\"Images/selfwMe225.gif\" width=\"225\" height=\"160\" align=\"left\" valign=\"bottom\" alt=\"kalop.eu\"><img border=\"0\" src=\"Images/selfwECM2011a550.gif\" width=\"550\" height=\"160\" align=\"center\" valign=\"bottom\" alt=\"European Majorette Championship\"></a>");
 break;
 case 8:
 document.write("<a href=\"ECM11_main.htm\"><img border=\"0\" src=\"Images/selfwMe225.gif\" width=\"225\" height=\"160\" align=\"left\" valign=\"bottom\" alt=\"kalop.eu\"><img border=\"0\" src=\"Images/selfwECM2011a550.gif\" width=\"550\" height=\"160\" align=\"center\" valign=\"bottom\" alt=\"European Majorette Championship\"></a>");
 break;
 case 9:
  document.write("<a href=\"galGirls.htm\"><img border=\"0\" src=\"Images/selfwMe225.gif\" width=\"225\" height=\"160\" align=\"left\" valign=\"bottom\" alt=\"kalop.eu\"><img border=\"0\" src=\"Images/selfwGalGirls550.gif\" width=\"550\" height=\"160\" align=\"center\" valign=\"bottom\" alt=\"Photo Gallery\"></a>");
 break; 
 case 10:
  document.write("<a href=\"galFaces.htm\"><img border=\"0\" src=\"Images/selfwMe225.gif\" width=\"225\" height=\"160\" align=\"left\" valign=\"bottom\" alt=\"kalop.eu\"><img border=\"0\" src=\"Images/selfwGalFaces550.gif\" width=\"550\" height=\"160\" align=\"center\" valign=\"bottom\" alt=\"Photo Gallery\"></a>");
 break; 

 default:
 //document.write("src=\"Images/selfwmalovani.gif\" ");
 document.write("<a href=\"ECM11_main.htm\"><img border=\"0\" src=\"Images/selfwECM2011anim.gif\" width=\"780\" height=\"160\" align=\"center\" valign=\"bottom\" alt=\"European Majorette Championship\"></a>");
 }
  
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("<table border=\"0\" width=\"780\" style=\"border-collapse: collapse\" bordercolor=\"#999999\" height=\"120\">");
document.write("<tr>");
document.write("<td colspan='6' height=\"40\" align=\"center\" background=\"Images/RDP_TOP780.gif\">");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=\"130\" height=\"80\" align=\"center\" bgcolor=\"#000000\"\">");
document.write("<div id=\"home\"><a href=\"main.htm\" onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
document.write("Home</a></div></td>");
document.write("<td width=\"130\" height=\"80\" align=\"center\" bgcolor=\"#000000\" \">");
document.write("<div id=\"hledam\"><a href=\"hledam.htm\"  onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
document.write("Hledám <br>");
document.write("a nabízím</a></div></td>");
document.write("<td width=\"130\" height=\"80\" align=\"center\" bgcolor=\"#000000\" \">");
// document.write("<div id=\"4photogr\"><a href=\"4photogr.htm\"  onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
//document.write("Technika</a></div></td>");
document.write("<div id=\"Majorettsport\"><a href=\"Majorettsport.htm\"  onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
document.write("Majorettes</a></div></td>");
document.write("<td width=\"130\" height=\"80\" align=\"center\" bgcolor=\"#000000\"\">");
 // document.write("<div id=\"nic\"><a href=\"4photogr.htm\"  onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
 //document.write("Pro<br>všechny</a></div></td>");
 document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>");
document.write("<td width=\"130\" height=\"80\" align=\"center\" bgcolor=\"#000000\"\">");
document.write("<div id=\"galerie\"><a href=\"Gallery.htm\"  onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
document.write("Galerie</a></div></td>");
document.write("<td width=\"130\" height=\"80\" align=\"center\" bgcolor=\"#000000\"\">");
document.write("<div id=\"kontakt\"><a href=\"Kontakt.htm#Kontakt\"  onMouseOver=\"MenuMouseOver(this)\" onMouseOut=\"MenuMouseOut(this)\">");
document.write("Kontakt</a></div></td>");
document.write("</tr>");
document.write("</table>");
// document.write("</p>");    
                   
}else{ // Main page
     /*
     document.write("<div id='mainleftpic' class='blend' style='width:100%; height:100%; '> ");
       document.write("<img src='./images/1124-250.jpg' alt='SFace'>");
       document.write("<img src='./images/SimHat-250.jpg' alt='SHat'>");        
     document.write("</div>");
     */
     }
     
     
//------------------------------
var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById;
if (stdDOM) aDOM = 1; else {ieDOM = document.all; if (ieDOM) aDOM = 1; else {
var nsDOM = ((navigator.appName.indexOf('Netscape') != -1)
&& (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}}
function xDOM(objectId, wS) 
{
if (stdDOM) return wS ? document.getElementById(objectId).style:
document.getElementById(objectId);
if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId];
if (nsDOM) return document.layers[objectId];
}

function setObjVis(objectID,vis) 
{var objs = xDOM(objectID,1); objs.visibility = vis;
}  
//------------------------------
function MainStart()
{
     //setObjVis('nojava1','hidden'); 
        
     document.getElementById('nojava1').innerHTML ='  <a href="gallery.htm"><img border="0" src="Images/Ivettee8434sc-250y.jpg" height="250" align="center" hspace="0"></a>';	
     // setObjVis('nojava1','visible');
     document.getElementById('nojava2').innerHTML ='	<img border="0" src="Images/RDP_MR.jpg" width="250" height="250" align="center" hspace="0">';
     
}
          

