var epi= document.domain;
epi = epi.replace('www.','');
epi = epi.replace('.co.uk','');
epi = epi.replace('.org.uk','');
epi = epi.replace('.com','');
epi = epi.replace('.org','');

var main = 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=201913&merchantID=2197&programmeID=5857&mediaID=0&tracking='+epi+'&url=';

//compare sources
var compare_array = new Array();
//carrentals
var ic=0;
compare_array[ic] = new Array(2);
compare_array[ic][0] = 'http://clkuk.tradedoubler.com/click?p=118598&a=1752019&g=17953066&epi='+epi;
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/carrentals.co.uk.jpg" border="0" width="70px" height="40px" />';


compare_array[++ic] = new Array(2);
// autoeurope
compare_array[ic][0] = 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=201913&merchantID=2197&programmeID=5857&mediaID=0&tracking='+epi+'&url=';
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/auto-europe.co.uk.jpg" border="0" width="70px" height="40px" />';

//holiday autos
compare_array[++ic] = new Array(2);
compare_array[ic][0] = 'http://clkuk.tradedoubler.com/click?p=16988&a=1752019&g=97636&epi='+epi;
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/holidayautos.co.uk.jpg" border="0" width="70px" height="40px" />';

//avis
compare_array[++ic] = new Array(2);
compare_array[ic][0] = 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=201913&merchantID=3287&programmeID=8586&mediaID=0&tracking='+epi+'&url=';
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/avis_logo.gif" border="0" width="70px" height="40px" />';

//easycar
compare_array[++ic] = new Array(2);
compare_array[ic][0] = 'http://www.anrdoezrs.net/f6102xdmjdl04843143021497569?sid='+epi;
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/easycar.co.uk.jpg" border="0" width="70px" height="40px" />';

//sixt
compare_array[++ic] = new Array(2);
compare_array[ic][0] = 'http://clkuk.tradedoubler.com/click?p=21237&a=1752019&g=996214&epi='+epi;
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/sixt.co.uk_holidaycars.jpg" border="0" width="70px" height="40px" />';

//alamo
compare_array[++ic] = new Array(2);
compare_array[ic][0] = 'http://clkuk.tradedoubler.com/click?p=121675&a=1752019&g=18072626&epi='+epi;
compare_array[ic][1] = '<img src="'+imagepath+'/images/suppliers/alamo.co.uk.jpg" border="0" width="70px" height="40px" />';


compare_array.name = 'compare_array';


//compare sources
var hotels_array = new Array();
hotels_array[0] = new Array(2);
hotels_array[0][0] = 'http://laterooms.at/t9media?CTY=1&amp;CID=1999&LID='+epi;
hotels_array[0][1] = '<img src="http://b1.perfb.com/b1.php?ID=1999&amp;PURL=laterooms.at/t9media" border="0" width="120px" height="60px" />';
//superbreak
hotels_array[1] = new Array(2);
hotels_array[1][0] = 'http://www.anrdoezrs.net/jg117hz74z6MQUTNRSNMONQURQVV?sid='+epi;
hotels_array[1][1] = '<img src="http://www.lduhtrp.net/96117jy1qwuFJNMGKLGFHGJNKJOO" border="0" width="120px" height="60px" />';
//expedia
hotels_array[2] = new Array(2);
hotels_array[2][0] = 'http://clkuk.tradedoubler.com/click?p=21874&a=1752019&g=17944994?epi='+epi;
hotels_array[2][1] = '<img src="http://impgb.tradedoubler.com/imp?type(img)g(17944994)a(1752019)" border="0" width="120px" height="60px" />';
//lastminute
hotels_array[3] = new Array(2);
hotels_array[3][0] = 'http://clkuk.tradedoubler.com/click?p=118779&a=1752019&g=18083782?epi='+epi;
hotels_array[3][1] = '<img src="http://impgb.tradedoubler.com/imp?type(img)g(18083782)a(1752019)" border="0" width="120px" height="60px" />';
hotels_array.name = 'hotels_array';

//compare sources
var extras_array = new Array();
extras_array[0] = new Array(2);
extras_array[0][0] = 'http://clkuk.tradedoubler.com/click?p=60496&a=1752019&g=16982452&epi='+epi;
extras_array[0][1] = '<img src="http://impgb.tradedoubler.com/imp?type(img)g(16982452)a(1752019)" border=0>';
//superbreak
extras_array[1] = new Array(2);
extras_array[1][0] = 'http://clkuk.tradedoubler.com/click?p=3284&a=1752019&g=16585950&epi='+epi;
extras_array[1][1] = '<img src="http://impgb.tradedoubler.com/imp?type(img)g(16585950)a(1752019)" border=0>';
//expedia
extras_array[2] = new Array(2);
extras_array[2][0] = 'http://clkuk.tradedoubler.com/click?p=21874&a=1752019&g=17944994?epi='+epi;
extras_array[2][1] = '<img src="http://impgb.tradedoubler.com/imp?type(img)g(17944994)a(1752019)" border="0" width="120px" height="60px" />';
//lastminute
extras_array[3] = new Array(2);
extras_array[3][0] = 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=201913&merchantID=2384&programmeID=6405&mediaID=40803&tracking='+epi+'sid&url=';
extras_array[3][1] = '<img border=0 src="http://banners.affiliatefuture.com/2384/40803.gif">';
extras_array.name = 'extras_array';



//compare others
var others_array = new Array();
//prem
others_array[0] = new Array(2);
others_array[0][0] = 'http://weekendbookings.at/t9media?CTY=1&amp;CID=9941&LID='+epi;
others_array[0][1] = '<img src="http://b1.perfb.com/b1.php?ID=9941&amp;PURL=weekendbookings.at/t9media" border="0" width="120px" height="60px" />';
//hol inn
others_array[1] = new Array(2);
others_array[1][0] = 'http://www.anrdoezrs.net/j4116hz74z6MQUTNRSNMONTTTVWO?sid='+epi;
others_array[1][1] = '<img src="http://www.ftjcfx.com/ki101nswkqo9DHGAEFA9BAGGGIJB" border="0" width="120px" height="60px" />';
// ibis
others_array[2] = new Array(2);
others_array[2][0] = 'http://www.tkqlhce.com/c4106efolfn26A93783243A55773?sid='+epi;
others_array[2][1] = '<img src="http://www.awltovhc.com/13111kpthnl6AED7BC7687E99BB7" border="0" width="120px" height="60px" />';

// marriot
others_array[3] = new Array(2);
others_array[3][0] = 'http://www.tkqlhce.com/lg98kjspjr6AED7BC7687BFACG7?sid='+epi;
others_array[3][1] = '<img src="http://www.tqlkg.com/cj102bosgmk59DC6AB6576AE9BF6" border="0" width="120px" height="60px" />';


//novo
others_array[4] = new Array(2);
others_array[4][0] = 'http://www.tkqlhce.com/pg70wktqks7BFE8CD8798FAACBE?sid='+epi;
others_array[4][1] = '<img src="http://www.lduhtrp.net/s797ax0pvtEIMLFJKFEGFMHHJIL" border="0" width="120px" height="60px" />';

//crowne
others_array[5] = new Array(2);
others_array[5][0] = 'http://www.tkqlhce.com/st76vpyvpxCGKJDHIDCEDJKIIEG?sid='+epi;
others_array[5][1] = '<img src="http://www.lduhtrp.net/j1108elpdjh26A937832439A8846" border="0" width="120px" height="60px" />';

//riu
others_array[6] = new Array(2);
others_array[6][0] = 'http://www.jdoqocy.com/ic108mu2-u1HLPOIMNIHJIPIOJLI?sid='+epi;
others_array[6][1] = '<img src="http://www.ftjcfx.com/8c108h48x20MQUTNRSNMONUNTOQN" border="0" width="120px" height="60px" />';
others_array.name = 'others_array';

function showMain()
{
     window.open(main);
}

function fire(start,theList)
{
    //open first
    window.open(theList[start][0]);

    for(i = 0; i < theList.length; i++)
    {
        //attempt to open all but start
        if(i!=start)
            window.open(theList[i][0]);
    }
    self.focus();
}

function ShowList(theList)
{

     for(i=0;i<theList.length;i++)
     {
        the_image = theList[i][1];
        the_link = theList[i][0];
        document.write('<a target="_blank" href="'+the_link+'" onclick="fire('+i+','+theList.name+');">'+the_image+'</a>')
     }

}
