			Shadowbox.init({
				language:   "en",
				skipSetup: true,
				modal:true,
				players: ["img","iframe"]	// pozor ,"swf" player vytezuje CPU na terminal serverech
			});

			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();
// 				dekor_ma_dusi_open();
//				dekor_ma_dusi_4_open();
				vysavac_open();
// 				oprete_open();
//				img_open2();
// 				neodkladejte_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
				} );
			}
			function dekor_ma_dusi_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/dekor_ma_dusi_2.html",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 649,
						height: 536
				} );
			}
			function dekor_ma_dusi_3_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/dekor_ma_dusi_3.html",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 649,
						height: 542
				} );
			}
			function dekor_ma_dusi_4_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/dekor_ma_dusi_4.html",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 490,
						height: 651
				} );
			}
			function vysavac_open() {
			if (getURLParam('cmd')) {
		  }
		  else{
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/clona_SAPELI_2012.swf",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 700,
						height: 400,
						modal: true
				} );
				}
			}
			function oprete_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/oprete_se_o_nas.html",
						player: "iframe",
						type: "iframe",
						title: "",
						width: 600,
						height: 600
				} );
			}


// 			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 neodkladejte_open() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/neodkladejte2.html",
						player: "iframe",
						type: "iframe",
						title: "Neodkládejte nákup dveří a zárubní",
						width: 500,
						height: 340
				} );
			}

			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();
			}

		function img_open2() {
				Shadowbox.open({
						content: "http://www.sapeli.cz/clony/clona_SAPELI_3.jpg",
						player: "img",
						type: "img",
// 						title: "Neodkládejte nákup dveří a zárubní",
						onclick: Shadowbox.close()
						//width: 700,
						//height: 650
				} );
// 				v_timer = setTimeout("hideme()", 10000);
				//lockPage();
			}
