<Module>
	<ModulePrefs title="Skat-Palast"
		title_url="http://www.skat-palast.de"
		author="Spiele-Palast GmbH"
		author_email="support@skat-palast.de"
		icon="images/85x85.jpg"
		thumbnail="images/150x100.jpg"
		preview="Spiele online Skat mit deinen Freunden oder lerne neue kennen. Skat-Palast bietet dir das Kultspiel in einzigartiger Umgebung mit Einsteiger- und Profirunden. Eigene Tische mit Sonderregeln, kostenloses Ligasystem uvm.!"
		description="Skat-Palast bringt das Kultspiel Skat auf einmalige Art und Weise in dein Wohnzimmer. Spiele eine schnelle Runde gegen Unbekannte oder verabrede dich mit deinen Freunden in der Lobby!"
		required_data="Vorname, Nachname, Profilbild, Profil-URL"
		host_location="Deutschland"
		feed_promotion_text="Skat spielen gegen echte Gegner im VZ! Eigene Tische mit Hausregeln, ne Liga, Tagespokale und vieles mehr. Bist du dabei?">

		<Require feature="views" />
		<Require feature="vzflash"/>
		<Require feature="flash"/>
		<Require feature="opensocial-0.9">
			<RequiredFields>
				<Field>thumbnailUrl</Field>
			</RequiredFields>
		</Require>
		<Require feature="cache" />
		<Require feature="invite"/>
		<Require feature="embed"/>
		<link rel="event.removeapp" href="http://backend.skat-palast.de/uninstall_vz.php" />
		<AllowedDomain name="backend.skat-palast.de" />
		<AllowedDomain name="mirror.backend.skat-palast.de" />
		
		
	</ModulePrefs>
	
		<Content view="embed" type="html">
			<![CDATA[			
				<div style="float:right;margin-left:10px">
					<a href="javascript:vz.invite.install()"><img id="teaser" alt="teaser" description="teaser"/></a>
				</div>
				<div style="position:relative;left:0px;font-family:'Arial',sans-serif;color:#000000;text-decoration:none;">
					<div id="headline" style="font-weight:bold;">Ergebnis:</div>
					<div id="content"></div>
					<p> 
						<a href="javascript:vz.invite.install()">Mitspielen?</a>
					</p>
				</div>
				<script type="text/javascript">
					document.getElementById("teaser").src = gadgets.cache.getCachedUrl("images/150x100.jpg");
					document.getElementById("content").innerHTML = gadgets.views.getParams()['body'];
				</script>
			]]>
		</Content>
		
		<Content view="preview" type="html">
			<![CDATA[
				<div id="flashmovie"></div>
				<script type="text/javascript">
				
					gadgets.util.registerOnLoadHandler(onDocLoad);					
					
					function onDocLoad()
					{
						gadgets.cache.getCachedJs(['js/jquery-1.11.3.min.js'], 'onJQueryLoad');
					}
					
					function onJQueryLoad()
					{
						gadgets.cache.getCachedJs(['js/flash_gateway.js'], 'onJSLoad');
					}
					
					function onJSLoad ()
					{
						embed();
					}
				
					function embed()
					{
						var url = gadgets.cache.getCachedUrl("swf/preview_skat.swf");
						var flashvars = "";
						
						gadgets.flash.embedFlash(url, $('#flashcontent').get(0), "11",{width:195, height:200, allowFullScreen:"true", allowFullScreenInteractive:"true", allowScriptAccess:"always", wmode:"direct", id:"skatpalast", "FlashVars":flashvars});
					}					
				</script>
				<div id="container" style="position:absolute;top:0px;left:0px;">
					<div id='flashcontent'><a href="http://get.adobe.com/flashplayer/" target="_blank">Du brauchst die aktuelle Version des Flash-Players.</a></div>
				</div>
				
			]]>
		</Content>
		
		<Content view="group, profile" type="html">
			<![CDATA[
				<div id="flashmovie"></div>
				<script type="text/javascript">
					gadgets.util.registerOnLoadHandler(onDocLoad);
					
					
					function onDocLoad()
					{
						gadgets.cache.getCachedJs(['js/jquery-1.11.3.min.js'], 'onJQueryLoad');
					}
					
					function onJQueryLoad()
					{
						gadgets.cache.getCachedJs(['js/variables.js'], 'onJSLoad1');
					}
					
					function onJSLoad1()
					{
						gadgets.cache.getCachedJs(['js/flash_gateway.js'], 'onJSLoad2');
					}
					
					function onJSLoad2 ()
					{
						this.login();
						window.onunload = onunload
					}
					
					function onunload()
					{
						this.logout();
					}
					
					function embed()
					{
						var url = gadgets.cache.getCachedUrl("swf/group_skat.swf");
						var flashvars = "";
								
						gadgets.flash.embedFlash(url, $('#flashcontent').get(0), "11",{width:390, height:400, allowFullScreen:"true", allowFullScreenInteractive:"true", allowScriptAccess:"always", wmode:"direct", id:"skatpalast", "FlashVars":flashvars});
					}
				</script>
				<div id="container" style="position:absolute;top:0px;left:0px;">
					<div id='flashcontent'><a href="http://get.adobe.com/flashplayer/" target="_blank">Du brauchst die aktuelle Version des Flash-Players.</a></div>
				</div>
			]]>
		</Content>
	
		<Content view="canvas,popup" type="html">
			<![CDATA[
				<script type="text/javascript">				
					gadgets.util.registerOnLoadHandler(onDocLoad);
					gadgets.window.adjustHeight(770);
					
					
					function onDocLoad()
					{
						gadgets.cache.getCachedJs(['js/jquery-1.11.3.min.js'], 'onJQueryLoad');
					}
					
					function onJQueryLoad()
					{
						gadgets.cache.getCachedJs(['js/variables.js'], 'onJSLoad1');
					}
					
					function onJSLoad1()
					{
						gadgets.cache.getCachedJs(['js/flash_gateway.js'], 'onJSLoad2');
					}
					
					function onJSLoad2 ()
					{
						this.login();
						window.onunload = onunload
					}
					
					function onunload()
					{
						this.logout();
					}
					
					function embed()
					{
						var url10 = contentBasePath + contentPath10;//gadgets.cache.getCachedUrl("swf/container.swf");
						var url11 = contentBasePath + contentPath;
						
						var ownerID = gadgets.util.getUrlParameters()['o'];
						var viewerID = gadgets.util.getUrlParameters()['vw'];
						
						var flashvars10 =
								"&contentPath="+escape(contentPath10)+
								"&contentBasePath="+escape(contentBasePath)+
								"&gateway="+escape(gatewayUrl)+
								"&sessionId="+escape(sessionId)+
								"&ownerID="+ownerID+
								"&viewerID="+viewerID +
								"&client="+gadgets.util.getUrlParameters()['container'];
								
						gadgets.flash.embedFlash(url10, $('#flashcontent').get(0), "10",{width:800, height:600, allowFullScreen:"true", allowFullScreenInteractive:"true", allowScriptAccess:"always", wmode:"direct", id:"skatpalast", "FlashVars":flashvars10});
						
						var flashvars11 =
								"&contentPath="+escape(contentPath)+
								"&contentBasePath="+escape(contentBasePath)+
								"&gateway="+escape(gatewayUrl)+
								"&sessionId="+escape(sessionId)+
								"&ownerID="+ownerID+
								"&viewerID="+viewerID +
								"&client="+gadgets.util.getUrlParameters()['container'];
								
						gadgets.flash.embedFlash(url11, $('#flashcontent').get(0), "11",{width:800, height:600, allowFullScreen:"true", allowFullScreenInteractive:"true", allowScriptAccess:"always", wmode:"direct", id:"skatpalast", "FlashVars":flashvars11});
					}
				</script>
				<div>
					<div id="container" style="position:absolute">
						<div id='flashcontent'><a href="http://get.adobe.com/flashplayer/" target="_blank">Du brauchst die aktuelle Version des Flash-Players.</a></div>
					</div>
					<div id="imageContent" style="style="position:absolute;top:-10000px;width:100%;height:100%">
						<img id="screenshotObject" width="100%" height="100%"/>
					</div>
				</div>
				<div style="position:absolute;top:605px;width:100%">
					<center>
						<a href="https://play.google.com/store/apps/details?id=air.de.rgerlach.skatpalast&referrer=utm_source%3Dmeinvz%26utm_medium%3Dplay_banner%26utm_campaign%3Dintegration" target="_blank"><img id="link_android" src="https://www.skat-palast.de/img/recommend/googleplay-badge-de.png" width='146' height='45' alt="Skat-Palast auf Android" style="cursor:pointer; cursor:hand;"></a>
						<a href="https://itunes.apple.com/de/app/id526976110" target="_blank"><img id="link_ios" src="https://www.skat-palast.de/img/recommend/ios-badge-de.png" width='130' height='45' alt="Skat-Palast auf iOS" style="cursor:pointer; cursor:hand;"></a>
						<br/>
						<img src ='//www.doppelkopf-palast.de/img/recommend/300x100-teaser.png' width='150' height='50' onclick="navigateToDoppelkopf()" style="cursor:pointer; cursor:hand;">
						<img src ='//www.schafkopf-palast.de/img/recommend/300x100-teaser-de.png' width='150' height='50' onclick="navigateToSchafkopf()" style="cursor:pointer; cursor:hand;"> 
						<br/><br/>
						Besuche uns auch im Internet: <a href="http://www.skat-palast.de">www.skat-palast.de</a>
					</center>
				</div>
				<iframe
					src="" 
					width="100%" 
					height="100%"
					hspace="0" 
					vspace="0" 
					frameborder="0" 
					scrolling="no" 
					allowtransparency="true"
					id="paymentFrame"
					name="buttonWindow" 
					style="border:0;position:absolute;top:-100%;left:0px;">
				</iframe>
			]]>
		</Content>
</Module>