			Shadowbox.init({
				language:   "en",
				skipSetup: true,
				players: ["swf","iframe"]
			});

			function clonka_open() {
				Shadowbox.open({ 
						content: "http://www.sapeli.cz/banner/sapeli_clonka.swf",
						player: "swf",
						//type: "swf", 
						//title: "Máte nejen kliku"
						width: 750,
						height: 400
				} ); 
				v_timer = setTimeout("hideme()", 30000); 
				//lockPage();
			};

			window.onload = function(){
				//Shadowbox.open({content: "http://www.sapeli.cz/banner/sapeli_clonka.swf",player: "swf",width: 750,height: 400});
				dekor_open();
			};



			function getURLParam(strParamName){
				var strReturn = "";
				var strHref = window.location.href;
				if ( strHref.indexOf("?") > -1 ){
					var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
					var aQueryString = strQueryString.split("&");
					for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
						if (aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
							var aParam = aQueryString[iParam].split("=");
							strReturn = aParam[1];
							break;
						}
					}
				}
				return unescape(strReturn);
			} 


			function hideme() {
				Shadowbox.close();
				clearTimeout(v_timer); // zruší načasování 
			}

			function podzim_open() {
				Shadowbox.open({ 
						content: "http://www.sapeli.cz/clony/podzim.html",
						player: "iframe",
						type: "iframe", 
						title: "",
						width: 650,
						height: 460
				} ); 
			}	
			function komplet_open() {
				Shadowbox.open({ 
						content: "http://www.sapeli.cz/clony/komplet.html",
						player: "iframe",
						type: "iframe", 
						title: "",
						width: 700,
						height: 495
				} ); 
			}
			function elegant_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/elegant.html",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 532,
						height: 680
				} );
			}
			function dekor_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/dekor.html",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 500,
						height: 704
				} );
			}


// 			if (getURLParam('test')) {
// 				alert('x');
// 				formular_3d_open();
// 			}


			function formular_3d_open() {
				Shadowbox.open({ 
						content: "http://www.sapeli.cz/3d_formular.php",
						player: "iframe",
						type: "iframe", 
						title: "",
						width: 450,
						height: 650
				} ); 
			}	

			function iframe_open() {
				Shadowbox.open({ 
						content: "http://www.sapeli.cz/formular/formular.php",
						player: "iframe",
						type: "iframe", 
						title: "Rezervačníi formulář",
						width: 700,
						height: 650
				} ); 
			}	


			function img_open() {
				Shadowbox.open({ 
						content: "http://www.sapeli.cz/soubory/SAPcelostrana-1.jpg",
						player: "img",
						type: "img", 
						title: "Máte nejen kliku"
						//width: 700,
						//height: 650
				} ); 
				v_timer = setTimeout("hideme()", 10000); 
				//lockPage();

			}