<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Gym Guest Pass"
title_url="http://gymsearch.net"
directory_title="Gym Guest Pass"
description="Guest passes to local gyms. "
author="VB"
author_email="info@gymsearch.net"
author_affiliation="GymSearch.net"
author_location="New York, NY"
screenshot="http://hosting.gmodules.com/ig/gadgets/file/105642442446432520669/gymguestpass.gif"
thumbnail="http://hosting.gmodules.com/ig/gadgets/file/105642442446432520669/gymguestpass.gif"
width="300"
height="250"
 />
<Content type="html"><![CDATA[
<script>

var Lucky = new Array();



var FeelLuckyCookieName = "FeelLuckyCookie";


var NewWindow = "y";



Lucky[0] = "http://gymsearch.net/detail.asp?LINK_ID=2689";
Lucky[1] = "http://gymsearch.net/detail.asp?LINK_ID=2678";
Lucky[2] = "http://gymsearch.net/detail.asp?LINK_ID=614";
Lucky[3] = "http://gymsearch.net/detail.asp?LINK_ID=993";
Lucky[4] = "http://gymsearch.net/detail.asp?LINK_ID=1094";
Lucky[5] = "http://gymsearch.net/detail.asp?LINK_ID=2712";
Lucky[6] = "http://gymsearch.net/detail.asp?LINK_ID=2683";
Lucky[7] = "http://gymsearch.net/detail.asp?LINK_ID=2693";
Lucky[8] = "http://gymsearch.net/detail.asp?LINK_ID=2693";
Lucky[9] = "http://gymsearch.net/detail.asp?LINK_ID=2690";
Lucky[10] = "http://gymsearch.net/detail.asp?LINK_ID=2727";
Lucky[11] = "http://gymsearch.net/detail.asp?LINK_ID=2266";
Lucky[12] = "http://gymsearch.net/detail.asp?LINK_ID=2682";
Lucky[13] = "http://gymsearch.net/detail.asp?LINK_ID=2723";
Lucky[14] = "http://gymsearch.net/detail.asp?LINK_ID=2698";
Lucky[15] = "http://gymsearch.net/detail.asp?LINK_ID=2726";
//  additional JavaScript customizations are required. //

var TabChar = String.fromCharCode(9);
var CurrentCookie = '';
function GetLuckyCookie() {
  var cookiecontent = '';
  if(document.cookie.length > 0) {
  	 var cookiename = FeelLuckyCookieName + '=';
  	 var cookiebegin = document.cookie.indexOf(cookiename);
  	 var cookieend = 0;
  	 if(cookiebegin > -1) {
     	cookiebegin  += cookiename.length;
     	cookieend = document.cookie.indexOf(";",cookiebegin);
     	if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
     	cookiecontent = document.cookie.substring(cookiebegin,cookieend);
    }
  }
  return cookiecontent;
}

function PutLuckyCookie(value) {
  if(CurrentCookie.length > 0) { value = CurrentCookie + TabChar + value; }
  value = escape(value);
  document.cookie = FeelLuckyCookieName + "=" + value;
}

function YesMakeMeLucky() { 
  CurrentCookie = GetLuckyCookie();
  CurrentCookie = unescape(CurrentCookie);
  if(CurrentCookie == '.') { CurrentCookie = ''; }
  var LuckyVisitedList = CurrentCookie.split(TabChar);
  if(LuckyVisitedList.length >= Lucky.length) {
   	document.cookie = FeelLuckyCookieName + "=.";
   	CurrentCookie = '';
   	LuckyVisitedList = Array();
  }
  for(var i = 0; i < LuckyVisitedList.length; i++) { Lucky[LuckyVisitedList[i]] = ''; }
  var LuckyL = new Array();
  for(var i = 0; i < Lucky.length; i++) {
   	if(Lucky[i].length > 0) { LuckyL.push('' + i + TabChar + Lucky[i]); }
  }
  var LuckyDestinationNumber = 0;
  if(LuckyL.length > 1) { LuckyDestinationNumber = Math.ceil((Math.random() * LuckyL.length) - 1); }
  var LuckyNumberPlace = new Array();
  LuckyNumberPlace = LuckyL[LuckyDestinationNumber].split(TabChar);
  PutLuckyCookie(LuckyNumberPlace[0]);
  NewWindow = NewWindow.toLowerCase();
  if(NewWindow.substr(0,1) == "y") { window.open(LuckyNumberPlace[1]); }
  else { document.location = LuckyNumberPlace[1]; }
}

</script>
  
<table align=center border=0 width="300" height="250"
  style="position:relative; padding-top:5px;">
<tr>
<td align=center>
  
  <p><a href="http://www.gymsearch.net"><img src="http://hosting.gmodules.com/ig/gadgets/file/105642442446432520669/gymsearchlogo.gif" border="0"></a></p>
<font face="Verdana" size="2">Click the button below to get your gym guest pass!</font>
<p>
<p align="center"></div> <form>
<input type="button" onclick="YesMakeMeLucky()" value="Yes, I feel lucky!"><br>
</form></p>
</td>
</tr>

</table>
]]></Content>
</Module>
