

//***********************************************************
// For adding MENU options & functions see /includes/menu.php
//***********************************************************

var strapline = 0;

function showGame(game,country) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	
	//Positions of transparent overlays
	var ileft = 0;
	var iwidth = 1;
	var itop1 = 0;
	var iheight1 = 1;
	var itop2 = 0;
	var iheight2 = 0;
	
	var cryptoleft = 150;
	var cryptowidth = 330;
	var cryptotop1 = 10;
	var cryptoheight1 =40;
	
	var ptechleft = 150;
	var ptechwidth = 330;
	var ptechtop1 = 10;
	var ptechheight1 =40;
	
	if (b < 900) {
		var mgw = 480;
		var mgh = 354;
		var www = 480;
		var wwh = 353;
		ileft = 395;
		iwidth = 80;
		itop1 = 120;
		iheight1 = 30;
		itop2 = 200;
		iheight2 = 70;
		}
	else if (b < 1100) {
		var mgw = 600;
		var mgh = 440;
		var www = 600;
		var wwh = 420;
		ileft = 492;
		iwidth = 100;
		itop1 = 140;
		iheight1 = 40;
		itop2 = 235;
		iheight2 = 90;
		}
	else {
		var mgw = 799;
		var mgh = 590;
		var www = 800;
		var wwh = 560;
		ileft = 655;
		iwidth = 134;
		itop1 = 185;
		iheight1 = 50;
		itop2 = 315;
		iheight2 = 120;
		//var itop = 55;
		//var iheight = 552;
		}
	if (game == "loaded" || game == "cashapilla" || game == "thunderstruck" || game == "thunderstruck2" || game == "hellboy" || game == "tombraider" || game == "tombraiderII" || game == "hitman" || game == "wheelofwealth") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+mgh+"\" frameborder=\"0\" src=\"/getGame.php?cc="+country+"&g="+game+"&w="+mgw+"&h="+mgh+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "cleopatra" || game == "bookofra" || game == "cluedo" || game == "monopoly") { // also has casino banner at bottom (+80 px)
		itop1 = 0;
		ileft = 0;
		iheight1 = 100;
		iwidth= www-10;
		document.write ("<iframe scrolling=\"no\" id=\"fgame\" rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGameMecca.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "deal") {
		itop1 = 0;
		ileft = 0;
		iheight1 = 100;
		iwidth= www-10;
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGamePaddy.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "baccarat" || game == "blackjack" || game == "craps" || game == "roulette" || game == "gladiator1" || game == "slotfather" || game == "vpmultistrike") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+mgh+"\" frameborder=\"0\" src=\"/getGame.php?cc="+country+"&g="+game+"&w="+mgw+"&h="+mgh+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "gems") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\"640\" height=\"480\" frameborder=\"0\" src=\"/getGame.php?cc="+country+"&g="+game+"&w=640&h=480\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "gladiator" || game == "fantastic4" || game == "anightout" || game == "desertreasure" || game == "kong" || game == "xmen") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+(mgh)+"\" scrolling=\"no\" frameborder=\"0\" src=\"/ptechGame.php?g="+game+"&w="+mgw+"&h="+mgh+"&iwidth="+ptechwidth+"&ileft="+ptechleft+"&itop1="+ptechtop1+"&iheight1="+ptechheight1+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "greatblue") { // Will Hill
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+(mgh+10)+"\" scrolling=\"no\" frameborder=\"0\" src=\"/whillGame.php?g="+game+"&w="+mgw+"&h="+mgh+"&iwidth="+ptechwidth+"&ileft="+ptechleft+"&itop1="+ptechtop1+"&iheight1="+ptechheight1+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "queenofthenile" || game == "choysundoa") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+(mgh)+"\" scrolling=\"no\" frameborder=\"0\" src=\"/aristocratGame.php?g="+game+"&w="+mgw+"&h="+mgh+"&iwidth="+ptechwidth+"&ileft="+ptechleft+"&itop1="+ptechtop1+"&iheight1="+ptechheight1+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "zzzzzzzz") { // extra 80pixels at bottom of game to show casino banner
		//document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+(wwh+80)+"\" frameborder=\"0\" src=\"/wwGame.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (game == "pharaoh" || game == "wolfrun" || game == "texastea" || game == "lillady") {
		itop1 = 0;
		ileft = 0;
		iheight1 = 60;
		iwidth = www;
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGameGcas.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\"></iframe>"); 
		}
	else {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGame.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\"></iframe>"); 
		}
	}
	
function showCasinoGrid(server,game,country,codes,frameheight,gamename) {
	if (frameheight == "0") { // Calculate frame height
		var casinocodes = codes.split(',');
		var arrlen = casinocodes.length;
		var frdepth = 50 + (arrlen * 40);
		}
	else { // Use the height provided
		var frdepth = frameheight;
		}
		
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var mgw = 480;
		var www = 480;
		}
	else if (b < 1100) {
		var mgw = 600;
		var www = 600;
		}
	else {
		var mgw = 799;
		var www = 800;
		}
	if (country == "US" && game == "mg") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://"+server+"/extdata.php?c=cwc,manhat,inet,itops,aladdin,astar&cols=0,1,3,8,11,13,6,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+mgw+"&site=ocv\" style=\"border:0px;height:300px;\" scrolling=\"no\"></iframe>"); 
		if (gamename) {
			document.write("<center><em>USA Real-Play on this game is not currently allowed.<br>However, the online casinos listed above <strong>do accept</strong> USA players.</em></center>");
			}
		}
	else if (country == "US") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://"+server+"/extdata.php?c=itops,cwc,manhat,astar,inet,soasis&cols=0,1,3,8,11,13,6,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+www+"&site=ocv\" style=\"border:0px;height:300px;\" scrolling=\"no\"></iframe>"); 
		if (gamename) {
			document.write("<center><em>USA Real-Play on this game is not currently allowed.<br>However, the online casinos listed above <strong>do accept</strong> USA players.</em></center>");
			}
		}
	else if (game == "mg") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://"+server+"/extdata.php?c="+codes+"&cols=0,1,3,8,11,13,6,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+mgw+"&site=ocv\" style=\"border:1px;height:"+frdepth+"px;\" scrolling=\"no\"></iframe>"); 
		if (gamename) {
			document.write("<center><em><strong>You can play "+gamename+" for real money at the reputable online casinos listed above</strong></em></center>");
			}
		}
	else if (game == "ptech") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://"+server+"/extdata.php?c="+codes+"&cols=0,1,3,8,11,13,6,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+mgw+"&site=ocv\" style=\"border:1px;height:"+frdepth+"px;\" scrolling=\"no\"></iframe>"); 
		if (gamename) {
			document.write("<center><em><strong>You can play "+gamename+" for real money at the reputable online casinos listed above</strong></em></center>");
			}		
		}
	else {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+www+"\" frameborder=\"0\" src=\"http://"+server+"/extdata.php?c="+codes+"&cols=0,1,3,8,11,13,6,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+www+"&site=ocv\" style=\"border:0px;height:"+frdepth+"px;\" scrolling=\"no\"></iframe>"); 
		if (gamename) {
			document.write("<center><em><strong>You can play "+gamename+" for real money at the reputable online casinos listed above</strong></em></center>");
			}		
		}	
	}
	
function showFBBox() {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var mgw = 480;
		var www = 480;
		}
	else if (b < 1100) {
		var mgw = 600;
		var www = 600;
		}
	else {
		var mgw = 799;
		var www = 800;
		}
	document.write('<div class="fbbox">');
	document.write('<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>');
	document.write('<fb:like-box href="http://www.facebook.com/slotgames" width="'+mgw+'" show_faces="true" stream="false" header="true"></fb:like-box>');
	document.write('</div>');
	}
	
		
function showGameWWExternal(game,size,country) {
	
	var ptechleft = 150;
	var ptechwidth = 330;
	var ptechtop1 = 10;
	var ptechheight1 =40;
	
	if (size==1) {
		var www = 480;
		var wwh = 353;
		ileft = 395;
		iwidth = 80;
		itop1 = 120;
		iheight1 = 30;
		itop2 = 200;
		iheight2 = 70;
		}
	else if (size==2) {
		var www = 600;
		var wwh = 420;
		ileft = 492;
		iwidth = 100;
		itop1 = 140;
		iheight1 = 40;
		itop2 = 235;
		iheight2 = 90;
		}
	else {
		var www = 800;
		var wwh = 560;
		ileft = 655;
		iwidth = 134;
		itop1 = 185;
		iheight1 = 50;
		itop2 = 315;
		iheight2 = 120;
		}

	if (game == "pharaoh") {
		itop1 = 0;
		ileft = 0;
		iheight1 = 100;
		iwidth= www-10;
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGamePaddy.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\" scrolling=\"no\"></iframe>"); 
		}
	else if (game == "gladiator" || game == "fantastic4" || game == "anightout" || game == "desertreasure") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+(mgh)+"\" scrolling=\"no\" frameborder=\"0\" src=\"/ptechGame.php?g="+game+"&w="+mgw+"&h="+mgh+"&iwidth="+ptechwidth+"&ileft="+ptechleft+"&itop1="+ptechtop1+"&iheight1="+ptechheight1+"\" class=\"game-frame\"></iframe>"); 
		}
	else {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGame.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" class=\"game-frame\"></iframe>"); 
		}
	}
	
	
function showGameMGExternal(game,size,country) {
	if (size==1) {
		var mgw = 480;
		var mgh = 354;
		}
	else if (size==2) {
		var mgw = 600;
		var mgh = 440;
		}
	else {
		var mgw = 799;
		var mgh = 590;
		}

	document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+mgh+"\" frameborder=\"0\" src=\"/getGame.php?cc="+country+"&g="+game+"&w="+mgw+"&h="+mgh+"\" class=\"game-frame\"></iframe>"); 

	}
	
function showPDFBanner(type,country) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var www = 500;
		var mgw = 480;
		}
	else if (b < 1100) {
		var www = 600;
		var mgw = 600;
		}
	else {
		var www = 780;
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	else if (type == "shockwave") {
		mgw = 640;
		}
	
	document.write ('<span style="color:#000;width:'+mgw+'px;">');
	if (country != "us") {
		document.write ('<iframe width="'+mgw+'" height="60" frameborder="0" scrolling="no" src="http://www.azonlinecasinos.com/pdf/pdfbanner.php?s=OCV&b1=wagerworks-bonus&b2=bonusdata&b1title=only-casinos-with-IGT-slots&b2title=every-bonus,-every-casino!&title=free-casino-bonus-lists-(PDF)&w='+(mgw-1)+'&h=60&hcolor=fff&hbg=ff7700" style="margin:0px;border:0px;"></iframe>');
		}
	else {
		document.write ('<iframe width="'+mgw+'" height="60" frameborder="0" scrolling="no" src="http://www.azonlinecasinos.com/pdf/pdfbanner.php?s=OCV&b1=usa-bonus&b2=usa&b1title=current-signup-bonuses-(USA)&b2title=casino-cashout-times-(USA)&title=free-casino-factsheets-(PDF)&w='+(mgw-1)+'&h=60&hcolor=fff&hbg=ff7700" style="margin:0px;border:0px;"></iframe>');
		}
	document.write ('</span>');
	document.write ('<script type="text/javascript" src="fadingtext.js"></script>');
	}
	
function showPromoLink(type) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var www = 500;
		var mgw = 480;
		}
	else if (b < 1100) {
		var www = 600;
		var mgw = 600;
		}
	else {
		var www = 780;
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	else if (type == "shockwave") {
		mgw = 640;
		}
	
	document.write ('<span style="color:#000;width:'+mgw+'px;">');
	document.write ('<strong style="color:#CC0000;">EXCLUSIVE OCV BONUS</strong>: Use Promo Code "VEGAS" to play Cleopatra, Cleopatra II, Wolf Run and<br>');
	document.write ('more IGT slots with a <strong>£200 Match Bonus</strong> at IGTs <a href="/goto-casino.php?c=kerch" target="_blank">Kerching Casino!</a>. Limited time offer to OCVers only!!<br>');
	document.write ('</span>');
	document.write ('<script type="text/javascript" src="fadingtext.js"></script>');
	}
	
function showToolbarLink(type) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var www = 500;
		var mgw = 480;
		}
	else if (b < 1100) {
		var www = 600;
		var mgw = 600;
		}
	else {
		var www = 780;
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	else if (type == "shockwave") {
		mgw = 640;
		}
	
	document.write ('<span class="toolbar-form" style="width:'+mgw+'px;">');
	document.write ('<a href="http://ocv.ourtoolbar.com/" target="_blank">Try The OCV Browser Toolbar - 1-Click access to all these games & more</a><br>');
	document.write ('</span>');
	}
	
function showRatings(type,svr,page,game) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var mgw = 480;
		}
	else if (b < 1100) {
		var mgw = 600;
		}
	else {
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	document.write ('<span class="ratings-form" style="width:'+mgw+'px;">');
	document.write ('<table width="'+mgw+'" cellpadding="0" cellspacing="0" border="0" class="ratings-table">');
	document.write ('<tr><td valign="top" width="60%"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.onlinecasinosvegas.com%2F'+page+'&amp;layout=standard&amp;show_faces=false&amp;width=380&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:25px"></iframe></td>');
	document.write ('	 <td valign="top" width="40%"><iframe src="http://'+svr+'/rating.php?l=h&g='+game+'" style="width:100%;border:0px;height:30px;" scrolling="no" frameborder="no"></iframe></td>');
	document.write ('</tr></table>');
	document.write ('</span>');
	}
	
function showMailForm(type) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var www = 500;
		var mgw = 480;
		}
	else if (b < 1100) {
		var www = 600;
		var mgw = 600;
		}
	else {
		var www = 780;
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	else if (type == "shockwave") {
		mgw = 640;
		}
	
	document.write ('<span class="mail-form" style="width:'+mgw+'px;">');
	document.write ('<a id="mlstrap" class="mlstrap">Check out my monthly OCV/Slotjunkies newswire...</a><br>');
	document.write ('Email: <input type="text" name="YMLP0" class="input-sml"> &nbsp;');
	document.write ('<select name="YMLP3" class="select-sml">');
	document.write ('<option value="Unspecified">Region...');
	document.write ('<option>Africa<option>Asia<option>Australasia<option>Canada<option>Europe');
	document.write ('<option>Scandinavia<option>South America<option>USA<option>Other');
	document.write ('</select> &nbsp; <input type="submit" value="JOIN" class="submit-sml">');
	document.write ('</span>');
	document.write ('<script type="text/javascript" src="fadingtext.js"></script>');
	}

function showToolBar(type,game) {
var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var www = 500;
		var mgw = 480;
		}
	else if (b < 1100) {
		var www = 600;
		var mgw = 600;
		}
	else {
		var www = 780;
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	else if (type == "shockwave") {
		mgw = 640;
		}
	
	document.write ('<span class="mail-form" style="width:'+mgw+'px;">');
	document.write ('<table width="100%" cellpadding="0" cellspacing="0" border="0" class="mail-table">');
	document.write ('<tr><td valign="top" width="50%">Join the monthly OCV/Slotjunkies newswire...</td>');
	document.write ('	 <td valign="top" width="50%">&nbsp;Find safe online casinos with... &nbsp; &nbsp; &nbsp; &nbsp;[<a href="/contact.php">Report a problem</a>]</td>');
	document.write ('</tr>');
	document.write ('<tr><td valign="top" width="50%"><div style="margin-top:7px;">Email: <input type="text" name="YMLP0" class="input-med"> &nbsp; &nbsp; <input type="submit" value="JOIN" class="submit-sml"></div></td>');
	document.write ('	 <td valign="top" width="50%"><iframe width="'+mgw+'" frameborder="0" src="http://www.slotseek.com/searchframe.php?s=ocv&bg=FFD984&strap=none&width='+((mgw-40)/2)+'&txt='+game+'" scrolling="no" style="border:1px;height:30px;width:'+((mgw-40)/2)+'px;"></iframe></td>');
	document.write ('</tr></table>');
	document.write ('</span>');
	}
	
function gotoCasino(casino) {
	alert ('game');
	window.parent.location.href = "/goto-casino.php?c="+casino;
	}
	
function showFacebook(page) {
	document.write ('<br><iframe rel="nofollow" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.onlinecasinosvegas.com%2F'+page+'&amp;layout=standard&amp;show_faces=false&amp;width=380&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:380px; height:25px"></iframe><br>');
	}
	
/* Dropdown menu code */
// Copyright 2006-2007 javascript-array.com

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;
var fgame = 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) 
	ddmenuitem.style.visibility = 'hidden';
	if(fgame)
	fgame.style.visibility = 'visible';

	// hide game iframe
	fgame = document.getElementById('fgame');
	fgame.style.visibility = 'hidden';
	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) 
		ddmenuitem.style.visibility = 'hidden';
	if (fgame)
		fgame.style.visibility = 'visible';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 


// Sliding Side-bar Games panel

/************************************************************************************************************
(C) www.dhtmlgoodies.com, October 2005

Version 1.2: Updated, November 12th. 2005

This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	

Terms of use:
You are free to use this script as long as the copyright message is kept intact. However, you may not
redistribute, sell or repost it without our permission.

Thank you!

www.dhtmlgoodies.com
Alf Magne Kalleland

************************************************************************************************************/		
var panelWidth = document.documentElement.clientWidth;	// Width of help panel	
var slideSpeed = 15;		// Higher = quicker slide
var slideTimer = 10;	// Lower = quicker slide
var slideActive = true;	// Slide active ?
var initBodyMargin = 0;	// Left or top margin of your <body> tag (left if panel is at the left, top if panel is on the top)
var pushMainContentOnSlide = true;	// Push your main content to the right when sliding
var panelPosition = 0; 	// 0 = left , 1 = top

/*	Don't change these values */
var slideLeftPanelObj=false;
var slideInProgress = false;	
var startScrollPos = false;
var panelVisible = false;
function initSlideLeftPanel(expandOnly)
{
	if(slideInProgress)return;
	if(!slideLeftPanelObj){
		if(document.getElementById('dhtmlgoodies_leftPanel')){	// Object exists in HTML code?
			slideLeftPanelObj = document.getElementById('dhtmlgoodies_leftPanel');
			if(panelPosition == 1)slideLeftPanelObj.style.width = '100%';
		}else{	// Object doesn't exist -> Create <div> dynamically
			slideLeftPanelObj = document.createElement('DIV');
			slideLeftPanelObj.id = 'dhtmlgoodies_leftPanel';
			slideLeftPanelObj.style.display='none';
			document.body.appendChild(slideLeftPanelObj);
		}
		
		if(panelPosition == 1){
			slideLeftPanelObj.style.top = "-" + panelWidth + 'px';
			slideLeftPanelObj.style.left = '0px';	
			slideLeftPanelObj.style.height = panelWidth + 'px';			
		}else{
			slideLeftPanelObj.style.left = "-" + panelWidth + 'px';
			slideLeftPanelObj.style.top = '0px';
			slideLeftPanelObj.style.width = panelWidth + 'px';
		}
		

		if(!document.all || navigator.userAgent.indexOf('Opera')>=0)slideLeftPanelObj.style.position = 'fixed';;
	}	
	
	if(panelPosition == 0){
		if(document.documentElement.clientHeight){
			slideLeftPanelObj.style.height = document.documentElement.clientHeight + 'px';
		}else if(document.body.clientHeight){
			slideLeftPanelObj.style.height = document.body.clientHeight + 'px';
		}
		var leftPos = slideLeftPanelObj.style.left.replace(/[^0-9\-]/g,'')/1;
	}else{
		if(document.documentElement.clientWidth){
			slideLeftPanelObj.style.width = document.documentElement.clientWidth + 'px';
		}else if(document.body.clientHeight){
			slideLeftPanelObj.style.width = document.body.clientWidth + 'px';
		}
		var leftPos = slideLeftPanelObj.style.top.replace(/[^0-9\-]/g,'')/1;			
		
		
	}
	slideLeftPanelObj.style.display='block';
	
	if(panelPosition==1)
		startScrollPos = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	else
		startScrollPos = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
	if(leftPos<(0+startScrollPos)){
		if(slideActive){
			slideLeftPanel(slideSpeed);	
		
		}else{
			document.body.style.marginLeft = panelWidth + 'px';
			slideLeftPanelObj.style.left = '0px';
		}
	}else{
		if(expandOnly)return;
		if(slideActive){		
			slideLeftPanel(slideSpeed*-1);
		}else{
			if(panelPosition == 0){
				if(pushMainContentOnSlide)document.body.style.marginLeft =  initBodyMargin + 'px';
				slideLeftPanelObj.style.left = (panelWidth*-1) + 'px';	
			}else{
				if(pushMainContentOnSlide)document.body.style.marginTop =  initBodyMargin + 'px';
				slideLeftPanelObj.style.top = (panelWidth*-1) + 'px';						
			}			
		}
	}	
	
	if(navigator.userAgent.indexOf('MSIE')>=0 && navigator.userAgent.indexOf('Opera')<0){
		window.onscroll = repositionHelpDiv;
	
		repositionHelpDiv();
	}
	window.onresize = resizeLeftPanel;
	
}

function resizeLeftPanel()
{
	if(panelPosition == 0){
		if(document.documentElement.clientHeight){
			slideLeftPanelObj.style.height = document.documentElement.clientHeight + 'px';
		}else if(document.body.clientHeight){
			slideLeftPanelObj.style.height = document.body.clientHeight + 'px';
		}		
	}else{
		if(document.documentElement.clientWidth){
			slideLeftPanelObj.style.width = document.documentElement.clientWidth + 'px';
		}else if(document.body.clientWidth){
			slideLeftPanelObj.style.width = document.body.clientWidth + 'px';
		}	
	}
}

function slideLeftPanel(slideSpeed){
	slideInProgress =true;
	var scrollValue = 0;
	if(panelPosition==1)
		var leftPos = slideLeftPanelObj.style.top.replace(/[^0-9\-]/g,'')/1;
	else
		var leftPos = slideLeftPanelObj.style.left.replace(/[^0-9\-]/g,'')/1;
		
	leftPos+=slideSpeed;
	okToSlide = true;
	if(slideSpeed<0){
		if(leftPos < ((panelWidth*-1) + startScrollPos)){
			leftPos = (panelWidth*-1) + startScrollPos;	
			okToSlide=false;
		}
	}
	if(slideSpeed>0){
		if(leftPos > (0 + startScrollPos)){
			leftPos = 0 + startScrollPos;
			okToSlide = false;
		}			
	}
	
	
	if(panelPosition==0){
		slideLeftPanelObj.style.left = leftPos + startScrollPos + 'px';
		if(pushMainContentOnSlide)document.body.style.marginLeft = leftPos - startScrollPos + panelWidth + 'px';
	}else{
		slideLeftPanelObj.style.top = leftPos + 'px';
		if(pushMainContentOnSlide)document.body.style.marginTop = leftPos - startScrollPos + panelWidth + 'px';			
		
	}
	if(okToSlide)setTimeout('slideLeftPanel(' + slideSpeed + ')',slideTimer); else {
		slideInProgress = false;
		if(slideSpeed>0)panelVisible=true; else panelVisible = false;
	}
	
}


function repositionHelpDiv()
{
	if(panelPosition==0){
		var maxValue = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
		slideLeftPanelObj.style.top = maxValue;
	}else{
		var maxValue = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
		slideLeftPanelObj.style.left = maxValue;	
		var maxTop = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
		if(!slideInProgress)slideLeftPanelObj.style.top = (maxTop - (panelVisible?0:panelWidth)) + 'px'; 		
	}
}

function cancelEvent()
{
	return false;
}
function keyboardShowLeftPanel()
{
		initSlideLeftPanel();
		return false;	

}

function leftPanelKeyboardEvent(e)
{
	if(document.all)return;
	
	if(e.keyCode==112){
		initSlideLeftPanel();
		return false;
	}		
}

function setLeftPanelContent(text)
{
	document.getElementById('leftPanelContent').innerHTML = text;
	initSlideLeftPanel(true);
	
}
if(!document.all)document.documentElement.onkeypress = leftPanelKeyboardEvent;
document.documentElement.onhelp  = keyboardShowLeftPanel;

