                
var w = '100%';
var h = '100%';
var bgcolor = '#FFFFFF';  
var swf = 'http://apps.candylandstudios.de/gamebrowser/mochi/gamemachine.swf';  
var id = 'gmID';
 
var flashvars = '';
try{
	if(fbsid!=''){
		flashvars = '&fbsid='+fbsid;
	}
}catch(e){
	
}

// write the layer
                                                                                                 
document.write('<script type="text/javascript" src="http://apps.candylandstudios.de/gamebrowser/mochi/js/jquery/jquery.js"></script>');
document.write('<script type="text/javascript" src="http://apps.candylandstudios.de/gamebrowser/mochi/js/thickbox/thickbox.js"></script>');  
		
document.write('<link rel="stylesheet" href="http://apps.candylandstudios.de/gamebrowser/mochi/css/thickbox/thickbox.css" type="text/css" media="screen" />');
                
document.write('<div id="gamemachine" style="width:100%, height="100%">');

document.write('    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
document.write('        width="'+w+'"'); 
document.write('        height="'+h+'"');
document.write('        id="'+id+'">');
        
document.write('        <PARAM NAME="quality" VALUE="high" />');
document.write('        <PARAM NAME="scale" VALUE="noscale" />');     
document.write('        <PARAM NAME="wmode" VALUE="transparent" />');  
document.write('        <PARAM NAME="allowScriptAccess" VALUE="always" />');
document.write('        <param name="salign" value="l" />');
                                                                  
document.write('        <PARAM NAME="movie" VALUE="'+swf+'" />');     
document.write('        <PARAM NAME="flashvars" VALUE="'+flashvars+'" />'); 
document.write('        <PARAM NAME="bgcolor" VALUE="'+bgcolor+'" /> ');

document.write('        <EMBED src="'+swf+'"'); 
document.write('            quality="high"');
document.write('            scale="noscale"');  
document.write('            wmode="transparent"'); 
document.write('            menu="false"');     
document.write('            salign="l"');
document.write('            allowScriptAccess="always"');
document.write('            type="application/x-shockwave-flash"'); 
document.write('            flashvars="'+flashvars+'"'); 
document.write('            bgcolor="'+bgcolor+'"'); 
document.write('            width="'+w+'"'); 
document.write('            height="'+h+'"'); 
document.write('            name="'+id+'"');  
document.write('            pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('        </EMBED>');

document.write('    </OBJECT>');

document.write('</div>');

/*

document.write('<div id="leaderboard_bridge"></div>');
document.write('<script src="http://xs.mochiads.com/static/pub/swf/leaderboard.js" type="text/javascript"></script> ');

// Mochi Bridge
var options = {partnerID: "8f082abfb680a459", id: "leaderboard_bridge"};

Mochi.addLeaderboardIntegration(options);

*/
