//<![CDATA[
			$.setupJMPopups({
				screenLockerBackground: "#003366",
				screenLockerOpacity: "0.7"
			});

			function openStaticPopup(parametr) {
				$.openPopupLayer({
					name: "okno" + parametr,
					width: 550,
					target: "myHiddenDiv" + parametr
				});
			}

			function openAjaxPopup() {
				$.openPopupLayer({
					name: "mySecondPopup",
					width: 300,
					url: "ajax_example.html"
				});
			}
            
            
            
/*  Zobrazi informace kontaktni udaje na kontakt.htm */
function kontakt() {
	document.writeln("<b>Váš nezávislý distributor OKG:<br /><br />");
	document.writeln("" + user_jmeno +"</b><br /><br />");
	document.writeln("Tel1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + user_tel1 +"<br /><br />");
	document.writeln("Tel2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + user_tel2 +"<br /><br />");
	document.writeln("E-mail:&nbsp;&nbsp;" + user_mail +"<br/><br />");
	document.writeln("ICQ:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + user_icq +"<br/><br />");
	document.writeln("Skype:&nbsp;&nbsp;&nbsp;" + user_skype +"<br/><br />");
} 

function formular() {
	document.writeln("<input type='hidden' name='prijemce' value='" + user_mail +"' />");
}

function zobraz(obj)
{
	objekt = document.getElementById(obj);
	
	if(objekt.style.visibility == 'visible')
	{
		objekt.value = '';
		objekt.style.visibility = 'hidden';
        
	}
	else
	{
		objekt.style.visibility = 'visible';
	}
}


/* pocitadlo TopList */
function Toplist()
{
  if (user_toplist.length > 0)
  {
  document.writeln("<div id=\"toplist\">");
  document.writeln("<a HREF=\"http://www.toplist.cz/\" target=\"_top\">");
  document.writeln("<img SRC=\"http://toplist.cz/count.asp?id=" + user_toplist + "&logo=bc&start=1\" BORDER=\"0\" ALT=\"TOPlist\" WIDTH=\"88\" HEIGHT=\"120\" />");
  document.writeln("</a>");
  document.writeln("</div>");
  }
}

            
		//]]>
	



$(function() {
    
    $("#formdotaz").validationEngine();
    $("#formsleva").validationEngine();
    $("#formspolupracovat").validationEngine();
    $("#formobjednat").validationEngine();
    
    /*
    $('.formdotaz_link').click(function() {
       
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#uvod').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeIn();
       $('#formdotaz').fadeIn();
        
    });
    
    $('.formobjednat_link').click(function() {
       
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#uvod').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formulare_str').fadeIn();
       $('#formobjednat').fadeIn();
        
    });
    
    $('.formsleva_link').click(function() {
       
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#uvod').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeIn();
       $('#formsleva').fadeIn();
        
    });
    
    $('.formspolupracovat_link').click(function() {
       
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#uvod').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formsleva').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeIn();
       $('#formspolupracovat').fadeIn();
        
    });  
    
    $('#uvod_button').click(function() {
       
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeOut();
       $('#uvod').fadeIn();
        
    });  
    
    $('#synergie_button').click(function() {
       
       $('#uvod').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeOut();
       $('#synergie').fadeIn();
        
    });
     
    $('#zkusenosti_button').click(function() {
       
       $('#uvod').fadeOut();
       $('#synergie').fadeOut();
       $('#faq').fadeOut();
       $('#kontakt').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeOut();
       $('#zkusenosti').fadeIn();
        
    });
    
    $('#kontakt_button').click(function() {
       
       $('#uvod').fadeOut();
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#faq').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeOut();
       $('#kontakt').fadeIn();
        
    });
    
     $('#faq_button').click(function() {
       
       $('#uvod').fadeOut();
       $('#synergie').fadeOut();
       $('#zkusenosti').fadeOut();
       $('#kontakt').fadeOut();
       $('#formdotaz').fadeOut();
       $('#formsleva').fadeOut();
       $('#formspolupracovat').fadeOut();
       $('#formobjednat').fadeOut();
       $('#formulare_str').fadeOut();
       $('#faq').fadeIn();
        
    });
    
    */
    
    
    
    $('#obr1').hover(function() {
        
        $(this).stop().animate({"width" : "100px"});
        
        $(this).click(function() {
            openStaticPopup(1);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "60px"});
    });
    
    
    
    $('#obr2').hover(function() {
        
        $(this).stop().animate({"width" : "100px"});
        
        $(this).click(function() {
            openStaticPopup(2);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "60px"});
    });
    
    $('#obr3').hover(function() {
        
        $(this).stop().animate({"width" : "100px"});
        
        $(this).click(function() {
            openStaticPopup(3);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "60px"});
    });
    
    $('#obr4').hover(function() {
        
        $(this).stop().animate({"width" : "100px"});
        
        $(this).click(function() {
            openStaticPopup(4);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "60px"});
    });
    
    $('#obr5').hover(function() {
        
        $(this).stop().animate({"width" : "100px"});
        
        $(this).click(function() {
            openStaticPopup(5);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "60px"});
    });
    
    $('#obr6').hover(function() {
        
        $(this).stop().animate({"width" : "140px"});
        
        $(this).click(function() {
            openStaticPopup(6);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "100px"});
    });
    
    $('#obr9').hover(function() {
        
        $(this).stop().animate({"width" : "140px"});
        
        $(this).click(function() {
            openStaticPopup(9);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "100px"});
    });
    
    $('#obr10').hover(function() {
        
        $(this).stop().animate({"width" : "85px"});
        
        $(this).click(function() {
            openStaticPopup(10);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "45px"});
    });
    
    $('#obr11').hover(function() {
        
        $(this).stop().animate({"width" : "120px"});
        
        $(this).click(function() {
            openStaticPopup(11);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "80px"});
    });
    
    $('#obr12').hover(function() {
        
        $(this).stop().animate({"width" : "100px"});
        
        $(this).click(function() {
            openStaticPopup(12);
        });
        
    }, function() {
        $(this).stop().animate({"width" : "60px"});
    });
    
     
});   