// JavaScript Document
//Vertical Ad Setup//

//specifies how many vertical ads total
var v_adTotal = 10;

//Variables hold ad links,paths,file type and size.File type will determine what attributes are used but all are required when adding new ads.
/*example of how to add new ad:
use var keyword - var

name of variable must follow naming convention - v_ad3, v_ad4, v_ad5

if file type is an image, link will go within () if file type is google ad gad or script ad scr then this will be the path to the page - (link goes here)

if file type is image, the path to the file follows. If file type is a google ad gad or script ad scr then this will be a generic name for the ad with the file ext .gad or .scr
Note: The file extension must be correct as this is how the write functions know how to handle the type of ad.

the size must be in this format - ,widthXheight - example ,160X600   the comma , and the X are delimeters for pulling the correct values.
here is a complete sample of how you would ad a 4th ad for each file type:
file types:
.jpg
.gif
.png
.swf
.gad - google adsense ad
.scr - generic script ad


images jpg, gif, png
var v_ad4 = "(http:www.google.com)img/ads/newImage.jpg,728X90"

swf
var v_ad4 = "(http:www.google.com)img/ads/newSwf.swf,728X90" -Although the swf does not link from an <a href> generic value must still be given. The functions will know how to handle swfs.

Google adsense
var v_ad4 = "(googleAds/googleAd2.html)googleAd2.gad,728X90" - In the main directory you will see a directory called googleAds. This is where all the Adsense pages will go. You can simply use one of the existing pages as a template to make another.

Generic script ad
var v_ad4 = "(scriptAds/scriptAd2.html)scriptAd2.scr,728X90" - In the main directory you will see a directory called scriptAds. This is where all the Script pages will go. You can simply use one of the existing pages as a template to make another.
*/
// var v_ad0 = "(googleAds/googleAd1.html)googleAd1.gad,160X600";
// var v_ad1 = "(link.php?cl=2)img/ads/rb_600x120.gif,120X600";
// var v_ad1 = "(contact.php)img/ads/160x600_advertising.gif,160x600";
// var v_ad2 ="(http://banner.mansionpoker.com/cgi-bin/redir.cgi?id=N&member=testyourpoker&profile=poker)img/ads/MP_THB_120x600_en.gif,120X600";
// var v_ad3 = "(scriptAds/scriptAd4.html)scriptAd4.scr,160X600"; //valueclick
// var v_ad4 = "(http://www.luckyacepoker.com/DownloadBonus.aspx)img/ads/120X240_luckyace.gif,120X240";
// var v_ad5 = "(http://site.redkings.com/index.cgi?aname=testyourpoker)img/ads/120x600_redkings.gif,120X600";
// var v_ad6 = "(scriptAds/scriptAd7.html)scriptAd7.scr,160X400"; //amazon
// var v_ad7 = "(scriptAds/scriptAd3.html)scriptAd3.scr,160X600"; //directmedia
// var v_ad8 = "(scriptAds/scriptAd1.html)scriptAd1.scr,160X600"; //adsdaq
// var v_ad9 = "(scriptAds/scriptAd5.html)scriptAd5.scr,160X600"; //adbrite
var v_ad0 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/120x600.gif,120x600";
// var v_ad1 = "(link.php?cl=2)img/ads/rb_600x120.gif,120X600";
var v_ad1 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/120x600.gif,120x600";
var v_ad2 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/120x600.gif,120x600";
var v_ad3 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/rush-poker/120x600.gif,120x600";
var v_ad4 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/rush-poker/120x600.gif,120x600";
var v_ad5 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/rush-poker/120x600.gif,120x600";
var v_ad6 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/rush-poker/120x600.gif,120x600";
var v_ad7 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/rush-poker/120x600.gif,120x600";
var v_ad8 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/rush-poker/120x600.gif,120x600";
var v_ad9 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/120x600.gif,120x600";
/////////////////////////////////////////////////////////////////////////////////////
//Horizontal Ad Setup//
// see comments for vertical ads
var h_adTotal = 10;
// var h_ad0 = "(link.php?cl=1)img/ads/rb_728x90.gif,728X90";
// var h_ad1 = "(contact.php)img/ads/768x90_click.gif,728X90";
// var h_ad2 = "(http://www.google.com)http://farm.sproutbuilder.com/54508/load/kwCYw-hIBmfXdFTQ.swf,468X60";
// var h_ad3 = "(http://www.wpapoker.org)http://www.wpapoker.org/images/banners/WPA_banner728x90.gif,728X90";
// var h_ad4 = "(contact.php)img/ads/768x90_click.gif,728X90";
// var h_ad5 = "(googleAds/googleAd2.html)googleAd2.gad,728X90";
// var h_ad6 = "(contact.php)img/ads/768x90_click.gif,728X90";
// var h_ad7 = "(http://banner.titanpoker.com/cgi-bin/redir.cgi?id=N&member=testyourpoker1&profile=typdl)img/ads/tp728x90en_04.gif,728X90";
// var h_ad8 = "(http://site.redkings.com/index.cgi?aname=testyourpoker)img/ads/728x90_redkings.gif,728X90";
// var h_ad9 = "(scriptAds/scriptAd6.html)scriptAd6.scr,728X90";   //valueclick
var h_ad0 = "(link.php?cl=14)img/ads/tp728x90en_04.gif,728X90";
var h_ad1 = "(link.php?cl=33)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/728x90.gif,728X90";
var h_ad2 = "(link.php?cl=14)img/ads/tp728x90en_04.gif,728X90";
var h_ad3 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/mac-banners/728x90.gif,728X90";
var h_ad4 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/728x90.gif,728X90";
var h_ad5 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/728x90.gif,728X90";
var h_ad6 = "(link.php?cl=14)img/ads/tp728x90en_04.gif,728X90";
var h_ad7 = "(link.php?cl=33)http://affiliates.commissionaccount.com/affimages/sb_march_madness_728x90_2010.gif,728X90";
var h_ad8 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/mac-banners/728x90.gif,728X90";
var h_ad9 = "(link.php?cl=13)http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/wsop/728x90.gif,728X90";
/////////////////////////////////////////////////////////////////////////////////////



//NO NEED TO EDIT BELOW THIS LINE////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var verticalAdArray = new Array();
var vLinkArray = new Array();
var vFilePathArray = new Array();
var vFileTypeArray = new Array();
var vFileSizeArray = new Array();
var vFileWidthArray = new Array();
var vFileHeightArray = new Array();

for(i=0;i<v_adTotal;i++) {
	verticalAdArray[i] = eval("v_ad"+i);
}

for(t=0;t<verticalAdArray.length;t++) {
	vLinkArray[t] = verticalAdArray[t].substring(1,verticalAdArray[t].indexOf(")"));
	vFilePathArray[t] = verticalAdArray[t].substring(verticalAdArray[t].indexOf(")")+1,verticalAdArray[t].indexOf(","));
	vFileTypeArray[t] = verticalAdArray[t].substring(verticalAdArray[t].indexOf(",")-3,verticalAdArray[t].indexOf(","));
	vFileSizeArray[t] = verticalAdArray[t].substring(verticalAdArray[t].indexOf(",")+1);
	vFileWidthArray[t] = vFileSizeArray[t].substring(0,vFileSizeArray[t].indexOf("X"));
	vFileHeightArray[t] = vFileSizeArray[t].substring(vFileSizeArray[t].indexOf("X")+1);
	//alert(vLinkArray[t]);//Used for Testing
}
//////////////////////////////////////////////////////////////////////////////////
var horizontalAdArray = new Array();
var hLinkArray = new Array();
var hFilePathArray = new Array();
var hFileTypeArray = new Array();
var hFileSizeArray = new Array();
var hFileWidthArray = new Array();
var hFileHeightArray = new Array();

for(j=0;j<h_adTotal;j++) {
	horizontalAdArray[j] = eval("h_ad"+j);
}

for(s=0;s<horizontalAdArray.length;s++) {
	hLinkArray[s] = horizontalAdArray[s].substring(1,horizontalAdArray[s].indexOf(")"));
	hFilePathArray[s] = horizontalAdArray[s].substring(horizontalAdArray[s].indexOf(")")+1,horizontalAdArray[s].indexOf(","));
	hFileTypeArray[s] = horizontalAdArray[s].substring(horizontalAdArray[s].indexOf(",")-3,horizontalAdArray[s].indexOf(","));
	hFileSizeArray[s] = horizontalAdArray[s].substring(horizontalAdArray[s].indexOf(",")+1);
	hFileWidthArray[s] = hFileSizeArray[s].substring(0,hFileSizeArray[s].indexOf("X"));
	hFileHeightArray[s] = hFileSizeArray[s].substring(hFileSizeArray[s].indexOf("X")+1);
	//alert(hFilePathArray[s]);//Used for Testing
}
//////////////////////////////////////////////////////////////////////////////////