function banner(tipo)
{
	
	casatam = tipo.split("_");
	
	casa = casatam[0];
	tam  = casatam[1];
		
		
	
	//Todos los banners de las casas de apuestas

	bwin_120x60   = '<a href="https://adserver.itsfogo.com/click.aspx?zoneid=77823" target="bwin"><img src="https://adserver.itsfogo.com/images/bwin/pt/120x60.gif" width="120" height="60" border="" alt=""></a>';
	bwin_120x600  = '<a href="https://adserver.itsfogo.com/click.aspx?zoneid=77824" target="bwin"><img src="https://adserver.itsfogo.com/images/bwin/pt/120x600.gif" width="120" height="600" border="" alt=""></a>';
	bwin_468x60   = '<a href="https://adserver.itsfogo.com/click.aspx?zoneid=77825" target="bwin"><img src="https://adserver.itsfogo.com/images/bwin/pt/Bannerprom.gif" width="468" height="60" border="" alt=""></a>';
	bwin_120x120  = '<a href="https://adserver.itsfogo.com/click.aspx?zoneid=77826" target="bwin"><img src="https://adserver.itsfogo.com/images/bwin/pt3/120X120.gif" width="120" height="120" border="" alt=""></a>';

				
	miapuesta_120x60  =	'<iframe allowtransparency="true" src="http://ff.connextra.com/sportingbetEurope/selector/client?client=sportingbetEurope&placement=af_promo_120x90&tclk=http://partner.sbaffiliates.com/processing/clickthrgh.asp?btag=a_11391b_1456&url=" width="120" height="90" scrolling="no" frameborder="no" style="border-width:0"></iframe>';
	miapuesta_120x60b = '<a href="http://partner.sbaffiliates.com/processing/clickthrgh.asp?btag=a_11382b_4710"  target="_blank"><img src="http://www.apostasdesportivasonline.com/fotos/banners/sportingbet120x60.gif" alt="Sportingbet" border="0" ></a>';
	miapuesta_120x120 = '<a href="http://partner.sbaffiliates.com/processing/clickthrgh.asp?btag=a_11382b_4710"  target="_blank"><img src="http://partner.sbaffiliates.com/processing/impressions.asp?btag=a_11382b_4710" alt="Slo a travs de esta pgina!" border=0 width="120"  height="120" ></a>';
	miapuesta_468x60  = "<iframe allowtransparency='true' src='http://ff.connextra.com/sportingbetEurope/selector/client?client=sportingbetEurope&placement=af_promo_468x60&tclk=http://partner.sbaffiliates.com/processing/clickthrgh.asp?btag=a_11391b_1462&url=' width='468' height='60' scrolling='no' frameborder='no' style='border-width:0'></iframe>";
	miapuesta_120x600 = '<a href="http://partner.sbaffiliates.com/processing/clickthrgh.asp?btag=a_11408b_4711"  target="_blank"><img src="http://partner.sbaffiliates.com/processing/impressions.asp?btag=a_11408b_4711" alt="Slo a travs de esta pgina!" border=0 width="120"  height="600" ></a>';

	
	betclic_120x60    = '<A href="http://www.betclick.com/partner.aspx?p=NES8&z=c2" target="_blank"><img src="http://www.apostasdesportivas.com/fotos/banners/120x60_betclic.jpg" border="0" ></A>';
	betclic_120x120   = '<iframe src="http://pub.betclick.com/pub.aspx?p=NES2&z=c5" rel="nofollow" height="120" width="120" frameborder="0"></iframe>';
	betclic_468x60    = '<a href="http://pt.betclic.com/partner.aspx?p=NES8&z=c7&pl=4330&ad=5919" alt="" target="_blank"><img src="http://img.cdn.betclick.com/img2/pt/creatives/specific/ag_desporto_emocao/468x60.gif" width="468" height="60" border="0"></a>';
	betclic_120x600    = '<a href="http://pt.betclic.com/partner.aspx?p=NES8&z=c6&pl=4329&ad=5916" alt="" target="_blank"><img src="http://img.cdn.betclick.com/img2/pt/creatives/specific/ag_desporto_emocao/120x600.gif" width="120" height="600" border="0"></a>';

	
	bet365_120x60  = '<A href="http://imstore.bet365affiliates.com/Tracker.aspx?AffiliateId=3822&AffiliateCode=365_047389&CID=194&DID=56&TID=1&PID=149&LNG=22" target="_blank"><img src="http://imstore.bet365affiliates.com/?AffiliateCode=365_047389&CID=194&DID=56&TID=1&PID=149&LNG=22" border="0" ></A>';
	bet365_120x120 = '<A href="http://imstore.bet365affiliates.com/Tracker.aspx?AffiliateId=3822&AffiliateCode=365_047389&CID=194&DID=29&TID=1&PID=149&LNG=22" target="_blank"><img src="http://imstore.bet365affiliates.com/?AffiliateCode=365_047389&CID=194&DID=29&TID=1&PID=149&LNG=22" border="0" ></A>';
	bet365_120x600 = '<A href="http://imstore.bet365affiliates.com/Tracker.aspx?AffiliateId=3822&AffiliateCode=365_047389&CID=194&DID=32&TID=1&PID=149&LNG=22" target="_blank"><img src="http://imstore.bet365affiliates.com/?AffiliateCode=365_047389&CID=194&DID=32&TID=1&PID=149&LNG=22" border="0" ></A>';
	bet365_468x60  = '<A href="http://imstore.bet365affiliates.com/Tracker.aspx?AffiliateId=3822&AffiliateCode=365_047389&CID=194&DID=5&TID=1&PID=149&LNG=22" target="_blank"><img src="http://imstore.bet365affiliates.com/?AffiliateCode=365_047389&CID=194&DID=5&TID=1&PID=149&LNG=22" border="0" ></A>';
	
	//sport888_120x60   = '<a href="http://promo.888.com/football-season09/es/?sr=366187" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/888sport_120x60.gif" border="0"></a>';
	//sport888_120x400  = '<a href="http://promo.888.com/football-season09/es/?sr=366187" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/888sport_120x400.gif" border="0"></a>';
	//sport888_468x60   = '<a href="http://promo.888.com/football-season09/es/?sr=366187" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/888sport_468x60.gif" border="0"></a>';
	
	sport888_120x60   = '<a href="http://www.888.com/888sports/lp/es/?sr=366187" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x60_888sport.gif" border="0"></a>';
	sport888_120x600  = '<a href="http://www.888.com/888sports/lp/es/?sr=366187" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/888sport_120x600.gif" border="0"></a>';
	sport888_468x60   = '<a href="http://www.888.com/888sports/lp/es/?sr=366187" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/888sport_468x60.gif" border="0"></a>';
	
	
	
			
	interwetten_120x60  = '<a href="http://affiliatesys.interwetten.com/redirect.aspx?bid=359&pid=195&zid=0&pbg=0&cid=0&ctcid=0" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/pt/120x60_interwetten.gif" width="120" height="60" border="0" alt=""/></a>';
	interwetten_468x60  = '<a href="http://affiliatesys.interwetten.com/redirect.aspx?pid=195&bid=2320" target="_blank"><img src="http://www.nexusconsultores.com/banners/interwetten468x60_GIF.gif" border="0"></a>'; 
	interwetten_120x600 = '<a href="http://affiliatesys.interwetten.com/redirect.aspx?bid=1716&amp;pid=195&amp;zid=0&amp;pbg=0&amp;cid=0&amp;ctcid=0" target="_blank    " style="height:600px;width:120px;"><img src="http://affiliatesys.interwetten.com/media/200910211557_Sportsbook_PT_Bonus_120x600_GIF.gif" border="0" /></a>';
	
	unibet_120x60 = '<a href="http://adserving.unibet.com/redirect.aspx?pid=8140&bid=3243" rel="nofollow" target="_blank"><img src="http://www.apostasdesportivas.com/fotos/banners/120x60_unibet.gif" width="120" height="60" border="0" alt=""/></a>';
	unibet_125x125  = '<script language=javascript src="http://adserving.unibet.com/ad.aspx?pid=8059&bid=2707"></script>';
	unibet_468x60  = '<a href="http://adserving.unibet.com/redirect.aspx?bid=8144&amp;pid=20170&amp;zid=0&amp;pbg=0&amp;cid=0&amp;ctcid=0" target="_blank    " style="height:60px;width:468px;"><img src="http://banners.unibet.com/media/ES_Sports_bonus_468x60.gif" border="0" /></a>'; 
	unibet_120x600 = '<a href="http://adserving.unibet.com/redirect.aspx?bid=8142&amp;pid=20170&amp;zid=0&amp;pbg=0&amp;cid=0&amp;ctcid=0" target="_blank    " style="height:600px;width:120px;"><img src="http://banners.unibet.com/media/ES_Sports_bonus_120x600.gif" border="0" /></a>';

	ladbrokes_120x60  = "<a href='http://www.ladbrokes.com/ast?action=go_asset&aff_id=5113&asset_id=2156' rel='nofollow' target='_blank'><img src='http://www.ladbrokes.com/ast?action=asset_req&imgonly=1&aff_id=5113&asset_id=2156' width='120' height='60' border='0' alt=''/></a>";
	ladbrokes_468x60  = "<a href='http://www.ladbrokes.com/ast?action=go_asset&aff_id=5113&asset_id=2177' target='_blank'><img src='http://www.ladbrokes.com/ast?action=asset_req&imgonly=1&aff_id=5113&asset_id=2177' width='468' height='60' border='0' alt=''/></a>";
	ladbrokes_120x600 = "<a href='http://www.ladbrokes.com/ast?action=go_asset&aff_id=5113&asset_id=1235' target='_blank'><img src='http://www.ladbrokes.com/ast?action=asset_req&imgonly=1&aff_id=5113&asset_id=1268' width='120' height='600' border='0' alt=''/></a>";
	
	globet_125x125  = '<a href="http://affiliates.globetpartners.com/processing/clickthrgh.asp?btag=a_31b_132"  target="_blank"><img src="http://affiliates.globetpartners.com/processing/impressions.asp?btag=a_31b_132" alt="Sportsbook new bonus 50% up to 200 Spanish" border=0 width="125"  height="125" ></a>';
	globet_468x60  = '<a href="http://affiliates.globetpartners.com/processing/clickthrgh.asp?btag=a_31b_116"  target="_blank"><img src="http://affiliates.globetpartners.com/processing/impressions.asp?btag=a_31b_116" alt="Globetsport" border=0 width="468"  height="60" ></a>';
	globet_150x300 = '<a href="http://affiliates.globetpartners.com/processing/clickthrgh.asp?btag=a_31b_145"  target="_blank"><img src="http://affiliates.globetpartners.com/processing/impressions.asp?btag=a_31b_145" alt="Sportsbook new bonus 50% up to 200 Spanish" border=0 width="150"  height="300" ></a>';
 	
	eurobet_120x60   = '<a href="http://www.eurobet.com/sb.go?page=lang=3&bannertrack&origin=117522" target="_blank"><img src="http://img0.eurobet.com/ap/eb/3/sport_120_60.gif" width="120" height="60" border="0"></a>';
	eurobet_468x60   = '<a href="http://www.eurobet.com/sb.go?page=lang=3&bannertrack&origin=117522" target="_blank"><img src="http://img0.eurobet.com/ap/eb/3/sport_468_60.gif" width="468" height="60" border="0"></a>';
	eurobet_120x600  = '<a href="http://www.eurobet.com/sb.go?page=lang=3&bannertrack&origin=117522" target="_blank"><img src="http://img0.eurobet.com/ap/eb/3/sport_120_600.gif" width="120" height="600" border="0"></a> ';

	betfair_120x60   = '<a href="http://ads.betfair.com/redirect.aspx?pid=641&bid=2020" rel="nofollow"  target="_blank"><img src="http://www.apostasdesportivas.com/fotos/banners/120x60_betfair.gif" alt="betfair" width="120" height="60" border="0"></a>';
	betfair_468x60   = '<a href="http://ads.betfair.com/redirect.aspx?pid=641&bid=2020" rel="nofollow"  target="_blank"><img src="http://www.nexusconsultores.com/banners/468x60_betfair.gif" alt="betfair" width="468" height="60" border="0"></a>';
	betfair_120x240  = '<a href="http://ads.betfair.com/redirect.aspx?pid=641&bid=2020" rel="nofollow"  target="_blank"><img src="http://www.nexusconsultores.com/banners/120x240_betfair.jpg" alt="betfair" width="120" height="240" border="0"></a>';
	betfair_120x600  = '<a href="http://ads.betfair.com/redirect.aspx?pid=641&bid=2020" rel="nofollow"  target="_blank"><img src="http://www.nexusconsultores.com/banners/120x600_betfair.gif" alt="betfair" width="120" height="600" border="0"></a>';
	
	mybet_120x60  = '<a href="http://www.mybet.com/forward.do?page=home&lang=es&affiliateId=239885440&campaignId=368202244" rel="nofollow"  target="_blank"><img src="http://img.mybet.com/_spanish/static/120x60_mybet_50%80_2_es.gif" width="120" height="60" border="0"></a>';
	
	fubo_120x60   = '<a href="http://affiliate.fubo.com/processing/clickthrgh.asp?btag=a_4050b_59" rel="nofollow" target="_blank"><img src="http://affiliate.fubo.com/processing/impressions.asp?btag=a_4050b_59" alt="Fubo Hasta 50&euro; gratis" border=0 width="120"  height="60" ></a>';
	fubo_120x90   = '<a href="http://affiliate.fubo.com/processing/clickthrgh.asp?btag=a_4066b_207"  target="_blank"><img src="http://affiliate.fubo.com/processing/impressions.asp?btag=a_4066b_207" alt="Fubo-Apuestas de f&uacute;tbol" border=0 width="120"  height="90" ></a>';
	fubo_468x60   = '<a href="http://affiliate.fubo.com/processing/clickthrgh.asp?btag=a_4066b_210"  target="_blank"><img src="http://affiliate.fubo.com/processing/impressions.asp?btag=a_4066b_210" alt="Fubo-Apuestas de f&uacute;tbol" border=0 width="468"  height="60" ></a>';
	fubo_120x400  = '<a href="http://affiliate.fubo.com/processing/clickthrgh.asp?btag=a_4050b_62" rel="nofollow" target="_blank"><img src="http://affiliate.fubo.com/processing/impressions.asp?btag=a_4050b_62" alt="Fubo Hasta 50&euro; gratis" border=0 width="120"  height="400" ></a>'; 
	
	expekt_120x60  = '<a href="http://ads.expekt.com/affiliates/redirect.aspx?pid=26444&bid=3781" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x60_expekt.gif" border="0"></a>';
	expekt_468x60  = '<a href="http://ads.expekt.com/affiliates/redirect.aspx?pid=26444&bid=1690" rel="nofollow" target="_blank"><img src="http://ads.expekt.com/affiliates/renderImage.aspx?pid=26444&bid=1690" border=0></img></a>'; 
	expekt_120x600 = '<a href="http://ads.expekt.com/affiliates/redirect.aspx?pid=26444&bid=1683" rel="nofollow" target="_blank"><img src="http://ads.expekt.com/affiliates/renderImage.aspx?pid=26444&bid=1683" border=0></img></a>';

	winunited_120x60  = '<script language=javascript src="http://ads.winunited.com/ad.aspx?pid=33703&bid=2690"></script>';
	winunited_250x60  = '<a href="http://ads.winunited.com/redirect.aspx?pid=33703&bid=2686"  rel="nofollow" target="_blank"><img src="http://ads.winunited.com/renderImage.aspx?pid=33703&bid=2686" border=0></img></a>';
	winunited_120x500 = '<script language=javascript src="http://ads.winunited.com/ad.aspx?pid=33703&bid=3088"></script>';

	betathome_120x60  = '<a href="http://www.bet-at-home.com/affiliate.aspx?aid=13964&lang=ES" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x60_betathome.gif" alt="bet-at-home"  border="0"></a>';
	betathome_468x60  = '<a href="http://www.bet-at-home.com/affiliate.aspx?aid=13964&lang=ES" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/468x60_betathome.gif" alt="betathome" width="468" height="60" border="0"></a>';
	betathome_120x400 = '<a href="http://www.bet-at-home.com/affiliate.aspx?aid=13964&lang=ES" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x400_spiel_en.gif" alt="bet-at-home" width="120" height="400" border="0"></a> ';
	betathome_120x600 = '<a href="http://www.bet-at-home.com/affiliate.aspx?aid=13964&lang=ES" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x600_betathome.gif" alt="bet-at-home" width="120" height="600" border="0"></a> ';


	paddypower_120x60  = '<a href="http://media.paddypower.com/redirect.aspx?pid=69044&bid=2457" rel="nofollow" target="_blank"><img src="http://media.paddypower.com/renderImage.aspx?pid=69044&bid=2457" border=0></img ></a>';
	paddypower_468x60  = '<a href="http://media.paddypower.com/redirect.aspx?pid=69044&bid=2355" rel="nofollow" target="_blank"><img src="http://media.paddypower.com/renderImage.aspx?pid=69044&bid=2355" border=0></img ></a>';
	paddypower_120x600 = '<a href="http://media.paddypower.com/redirect.aspx?pid=69044&bid=2654" rel="nofollow" target="_blank"><img src="http://media.paddypower.com/renderImage.aspx?pid=69044&bid=2654" border=0></img ></a>';
	
	vcbet_120x60 = '<a href="http://www.vcbet.com/shell_homepage.jsp?system=VCBet&OID=7451&bannerurl=www.vcbet.com&lang=5" rel="nofollow" target="_blank"><img height=60 width=120 src="http://affiliates.victor.com/banners120x60_VCBet/120x60_VCBet_Asian_5.gif" border=0 ></a>';
	vcbet_468x60 = '<a href="http://www.vcbet.com/shell_homepage.jsp?system=VCBet&OID=7451&bannerurl=www.vcbet.com&lang=5" rel="nofollow" target="_blank"><img height=60 width=468 src="http://affiliates.victor.com/banners_VCBet/468x60_VCBet_5.gif" border=0 ></a>';
	
	pinnacle_120x60  = '<a href="http://www.pinnaclesports.com/default.asp?language=Spanish&LExt=spa&refer=xnexus" rel="nofollow" target="_blank"><img src="http://banners.pinnaclesports.com/banners/pin_banner_120x60sp.gif" alt="Pinnacle sports" border="0"></a> ';
	pinnacle_468x60  = '<a href="http://www.pinnaclesports.com/default.asp?language=Spanish&LExt=spa&refer=xnexus" rel="nofollow" target="_blank"><img src="http://banners.pinnaclesports.com/banners/pin_banner_468x60sp.gif" alt="Pinnacle sports" border="0"></a> ';
	pinnacle_120x600 = '<a href="http://www.pinnaclesports.com/default.asp?language=Spanish&LExt=spa&refer=xnexus" rel="nofollow" target="_blank"><img src="http://banners.pinnaclesports.com/banners/pin_banner_120x600sp.gif" alt="Pinnacle sports" border="0"></a> ';
	
	gamebookers_120x60  = "<a href='https://www.gamebookers.com/promotions.ap?promo=gb_25bp_en_lp&l=ES&wm=2870218' target='_blank'><img src='http://banners.partypartners.com/images/marketing-materials/gamebookers/spanish/gif/120x60/30bonus/120x60_gif_tennis2_es.gif' width='120' height='60' border='0' alt='Gif Banners'></a>";
	gamebookers_468x60  = "<a href='https://www.gamebookers.com/promotions.ap?promo=gb_25bp_en_lp&l=ES&wm=2870218' target='_blank'><img src='http://banners.partypartners.com/images/marketing-materials/gamebookers/spanish/gif/468x60/30bonus/468x60_gif_ftball4_30b_es.gif' width='468' height='60' border='0' alt='Gif Banners'></a>";
	gamebookers_120x240 = "<a href='http://www.gamebookers.com/cgi-bin/intro.cgi?promotion=gbsp77676&l=es&wm=3104703' rel='nofollow'  target='_blank'><img src='http://secure.partypartners.com/images/marketing-materials/gamebookers/spanish/gif/120x240/get50Bonus/120x240_gif_get_50.gif' width='120' height='240' border='0' alt='Gif Banners'></a>"; 
	gamebookers_120x600 = "<a href='https://www.gamebookers.com/promotions.ap?promo=gb_25bp_en_lp&l=ES&wm=2870218' target='_blank'><img src='http://banners.partypartners.com/images/marketing-materials/gamebookers/spanish/gif/120x600/30bonus/120x600_gif_ftball3_30b_es.gif' width='120' height='600' border='0' alt='Gif Banners'></a>"; 
	
	betcris_120x120 = '<a href="http://es.betcris.com/?cmpid=4818_483" rel="nofollow" target="_blank"><img border="0" src="http://banners.betcris.com/images/spanish_cris_120_120_3.gif?cmpid=4818_483">';
	
	williamhill_120x60  = '<a href="http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906913&lp=0"> <img src="http://serve.williamhill.com/promoLoadDisplay?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906913&lp=0" width="120" height="60"border=0/></a>';
	williamhill_120x600 = '<a href="http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906935&lp=0"> <img src="http://serve.williamhill.com/promoLoadDisplay?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906935&lp=0" width="120" height="600"border=0/></a>';	
	williamhill_468x60  = '<a href="http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906919&lp=0"> <img src="http://serve.williamhill.com/promoLoadDisplay?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906919&lp=0" width="468" height="60"border=0/></a>';
	
	willhill_120x60  = '<a href="http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906913&lp=0"> <img src="http://serve.williamhill.com/promoLoadDisplay?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906913&lp=0" width="120" height="60"border=0/></a>';
	willhill_120x600 = '<a href="http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906935&lp=0"> <img src="http://serve.williamhill.com/promoLoadDisplay?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906935&lp=0" width="120" height="600"border=0/></a>';	
	willhill_468x60  = '<a href="http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906919&lp=0"> <img src="http://serve.williamhill.com/promoLoadDisplay?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906919&lp=0" width="468" height="60"border=0/></a>';
	
	
	paf_120x60  = '<a href="http://record.pafpartners.com/_iho45v1F2J4pBDjPg1HrNmNd7ZgqdRLk/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x60_paf.gif" alt="Paf" width="120" height="60" border="0"></a> ';
	paf_120x400 = '<a href="http://record.pafpartners.com/_iho45v1F2J4pBDjPg1HrNmNd7ZgqdRLk/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x400_paf.gif" alt="Paf" width="120" height="400" border="0"></a> ';	
	paf_120x600  = '<a href="http://record.pafpartners.com/_iho45v1F2J4pBDjPg1HrNmNd7ZgqdRLk/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x600_paf.gif" alt="Paf" width="120" height="600" border="0"></a> ';
	paf_468x60  = '<a href="http://record.pafpartners.com/_iho45v1F2J4pBDjPg1HrNmNd7ZgqdRLk/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/468x60_paf.gif" alt="Paf" width="468" height="60" border="0"></a> ';
	
	apuestasrojiblancas_120x60  = '<a href="http://record.pafpartners.com/_iho45v1F2J5uY4dHyKDcwJ8VRaiw-eys/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x60_apuestasrojiblancas.gif" alt="Apuestas rojiblancas" width="120" height="60" border="0"></a> ';
	apuestasrojiblancas_120x600  = '<a href="http://record.pafpartners.com/_iho45v1F2J5uY4dHyKDcwJ8VRaiw-eys/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/120x600_apuestasrojiblancas.gif" alt="Apuestas rojiblancas" width="120" height="600" border="0"></a> ';
	apuestasrojiblancas_468x60  = '<a href="http://record.pafpartners.com/_iho45v1F2J5uY4dHyKDcwJ8VRaiw-eys/1" rel="nofollow" target="_blank"><img src="http://www.nexusconsultores.com/banners/468x60_apuestasrojiblancas.gif" alt="Apuestas rojiblancas" width="468" height="60" border="0"></a> ';
	
	
	bet12_120x60  = '<a href="http://www.12biying.com/92029165/sportsbook/es/index.aspx " rel="nofollow" target="_blank"><img src="http://banner.12biying.com/Bonus/625.gif" alt="12Bet" width="120" height="60" border="0"></a> ';
	bet12_120x600  = '<a href="http://www.12biying.com/92029165/sportsbook/es/index.aspx " rel="nofollow" target="_blank"><img src="http://banner.12biying.com/Bonus/625.gif" alt="12Bet" width="120" height="60" border="0"></a> ';
	bet12_468x60  = '<a href="http://www.12biying.com/92029165/sportsbook/es/index.aspx " rel="nofollow" target="_blank"><img src="http://banner.12biying.com/Bonus/627.gif" alt="12Bet" width="468" height="60" border="0"></a> ';
	
	
	capa = "<div onclick=clic('banner_"+ tam +"','"+ casa +"'); class='bannerApuestaNet'>"+eval(tipo)+"</div>" ;
	document.write(capa);
		
}


function linkapuesta(casa)
{
	bwin        = "http://adserver.itsfogo.com/click.aspx?zoneid=77827";	
	miapuesta   = "http://partner.sbaffiliates.com/processing/clickthrgh.asp?btag=a_11401b_2578";
	betclic     = "http://www.betclick.com/partner.aspx?p=NES8&z=c2";
	bet365      = "http://imstore.bet365affiliates.com/Tracker.aspx?AffiliateId=3822&AffiliateCode=365_047389&CID=194&DID=56&TID=1&PID=149&LNG=22";
	
	//sport888    = "http://www.888sport.com/bet?lang=es&sr=343321";	
	sport888    = "http://www.888.com/888sports/lp/es/?sr=366187";
	
	
	//interwetten = "http://affiliatesys.interwetten.com/redirect.aspx?pid=195&bid=2237";
	interwetten = "http://affiliatesys.interwetten.com/redirect.aspx?bid=359&pid=195&zid=0&pbg=0&cid=0&ctcid=0";
	
	
	ladbrokes   = "http://www.ladbrokes.com/ast?action=go_asset&aff_id=5113&asset_id=2156";
	unibet      = "http://adserving.unibet.com/redirect.aspx?pid=8140&bid=3243";
	
	//eurobet     = "http://www.eurobet.com/sb.go?page=bannertrack&origin=117522";
	eurobet     = "http://www.eurobet.com/sb.go?page=lang=3&bannertrack&origin=117522";
	
	betfair     = "http://ads.betfair.com/redirect.aspx?pid=641&bid=2020";
	expekt 		= "http://ads.expekt.com/affiliates/redirect.aspx?pid=26444&bid=3781";  
	fubo        = "http://affiliate.fubo.com/processing/clickthrgh.asp?btag=a_4050b_45";
	mybet       = "http://www.mybet.com/forward.do?page=home&lang=es&affiliateId=239885440&campaignId=368201238";
	winunited   = "http://ads.winunited.com/redirect.aspx?pid=33703&bid=3020";
	betathome   = "http://www.bet-at-home.com/affiliate.aspx?aid=13964&lang=ES";
	paddypower  = "http://media.paddypower.com/redirect.aspx?pid=69044&bid=2458";
	betcris     = "http://es.betcris.com/?cmpid=4818_483";
	vcbet       = "http://www.vcbet.com/shell_homepage.jsp?system=VCBet&OID=7451&bannerurl=www.vcbet.com&lang=5";
	pinnacle    = "http://www.pinnaclesports.com/default.asp?language=Spanish&LExt=spa&refer=xnexus";
	gamebookers = "https://www.gamebookers.com/promotions.ap?promo=gb_25bp_en_lp&l=ES&wm=2870218";

	globet      = "http://affiliates.globetpartners.com/processing/clickthrgh.asp?btag=a_31b_219";
	williamhill = "http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906913&lp=0";
	willhill = "http://serve.williamhill.com/promoRedirect?member=nexus28&campaign=DEFAULT&channel=ptcasinos&zone=1051906913&lp=0";
	paf         = "http://record.pafpartners.com/_iho45v1F2J4pBDjPg1HrNmNd7ZgqdRLk/1";
	apuestasrojiblancas = "http://record.pafpartners.com/_iho45v1F2J5uY4dHyKDcwJ8VRaiw-eys/1";
	bet12 		= "http://www.12biying.com/92029165/sportsbook/es/index.aspx ";
	
	linkcasa = eval(casa);
	
	return linkcasa;
	
}


function linktexto(casa,texto,clase)
{
		
	linkcasa  = linkapuesta(casa);
	
	elink  = "<a href='"+linkcasa+"' onclick=clic('texto','" + casa + "')  target='_blank' rel='nofollow'><span class='" + clase + "'> "+texto+" </span></a>";

	document.write(elink);
	
	return elink;
}


function linkbono(casa,tipo,clase)
{
	var bono = new Array();
	
	
	
	bono[0] = {bwin: "10&euro; Gratis", miapuesta: "50&euro; Gratis", betclic: "20&euro; Gratis", bet365: "100&euro; Gratis", sport888 : "70&euro; Gratis", interwetten : "20+10&euro; Gratis", unibet : "15&euro; Gratis", ladbrokes : "50&euro; Gratis" , globet : "50% Gratis", eurobet : "Eurobet" , betfair : "50&euro; Gratis" , expekt : "50&euro; Gratis" , fubo : "50&euro; Gratis" , mybet : "50&euro; Gratis" , winunited : "50&euro; Gratis" , betathome : "33&euro; Gratis" , paddypower : "B&oacute;nus gratis" , betcris : "20% Gratis" , vcbet : "150&euro; Gratis" , pinnacle : "10&euro; Gratis" , gamebookers : "30&euro; Gratis" , willhill : "100&euro; Gratis", williamhill : "100&euro; Gratis", paf : "10&euro; Gratis", apuestasrojiblancas : "Entradas Atl. Madrid", bet12 : "180&euro; Gratis"};
	
	bono[1] = {bwin: "Promo&ccedil;&atilde;o Bwin : 10&euro; para ti, 10&euro; para os teus amigos ", miapuesta: "B&oacute;nus de Boas-Vindas at&eacute; 50 &euro;", betclic: "Betclic devolve o valor da primeira aposta, sempre e quando a mencionada aposta n&atilde;o seja vencedora, e com um limite de at&eacute; 20 euros", bet365: "100 % B&oacute;nus at&eacute; 100 euros para novos utentes registados", sport888 : "Promo&ccedil;&atilde;o exclusiva 888sport .com : B&oacute;nus boas vindas at&eacute; 70 euros", interwetten : "B&oacute;nus Interwetten 20 + 10 euros pelo novo utente", unibet : "B&oacute;nus primeiro dep&oacute;sito at&eacute; 15 &euro;", ladbrokes : "Ladbrokes B&oacute;nus de Boas-Vindas at&eacute; 50 &euro;" , globet : "B&oacute;nus Globet 50% Gratis para novos clientes", eurobet : "Consultar B&oacute;nus Eurobet : apostas desportivas e casino" , betfair : "Receba agora 50 euros de B&oacute;nus, clique aqui" , expekt : "B&oacute;nus Expekt: 100% at&eacute; 50&euro; para teu primeiro dep&oacute;sito" , fubo : "B&oacute;nus Boas-vindas Fubo : 100% at&eacute; 50&euro; para teu primeiro dep&oacute;sito" , mybet : "At&eacute; 50&euro; gratis com seu primeiro dep&oacute;sito" , winunited : "B&oacute;nus WINUnited : At&eacute; 50&euro; ao realizar o primeiro dep&oacute;sito e 10&euro; adicionais para casino" , betathome : "B&eacute;nus 33 Euros Bet-at-home para novos utentes" , paddypower : "Paddypower : Consigue B&oacute;nus gratis. Novos utentes" , betcris : "Betcris: 20% no seu primeiro dep&oacute;sito de $300 USD o m&aacute;s. &iexcl;&iexcl;Click Aqui&ie&!!" , vcbet : "At&eacute; 150 Euros gratis em vcbet.com &iexcl;&iexcl;Click aqui!!" , pinnacle : "B&oacute;nus Pinnacle 10% do primeiro deposito. At&eacute; 500 Euros" , gamebookers : "At&eacute; 30 Euros gratis em gamebookers.com" , willhill : "B&oacute;nus de 100&euro; Gratis", williamhill : "B&oacute; de 100&euro; Gratis", paf : "B&oacute;nus 10&euro; ao jogar 20&euro;", apuestasrojiblancas : "Entradas Atl. Madrid", bet12 : "B&oacute;nus at&eacute; 180&euro; primeiro deposito"};
	
	bono[2] = {bwin: "Promo&ccedil;&atilde;o Boas-vindas Betandwin de 10 euros gr&aacute;tis para o utente e doutros 10 euros adicionais para cada amigo recomendado", miapuesta: "Sportingbet oferece at&eacute; 20 , 50  ou 100  gr&aacute;tis com b&oacute;nus de boas-vindas", betclic: "20&euro; sem riscos. Se perder, reembolsamos-lhe. Registe-se", bet365: "B&oacute;nus Bet365 de 100% da quantidade depositada at&eacute; 100 euros", sport888 : "888Sport : Consigue una apuesta gratuita de 70&euro;", interwetten : "30&euro; de B&oacute;nus para novos clientes", unibet : "B&oacute;nus Unibet de 100% da quantidade depositada at&eacute; 15 euros", ladbrokes : "B&oacute;nus Boas-vindas Ladbrokes at&eacute; 50 euros" , globet : "Promo&ccedil;&atilde; Globet 50% Gratis", eurobet : "Consultar B&oacute;nus Eurobet. Oferta em apostas e casino" , betfair : "B&oacute;nus de Boas-Vindas at&eacute; 50 &euro;" , expekt : "B&oacute;nus Expekt : 100% at&eacute; 50&euro; para o teu primeiro dep&oacute;sito" , fubo : "B&oacute;nus Fubo : Dobramos seu primeiro dep&oacute;sito at&eacute; 50&euro; " , mybet : "B&oacute;nus boas-vindas Mybet : at&eacute; 50&euro; como teu primeiro dep&oacute;sito" , winunited : "B&oacute;nus WINUnited : at&eacute; 50&euro; ao realizar o primeiro dep&oacute;sito e 10&euro; adicionais para casino" , betathome : "B&oacute;nus 33 Euros Bet-at-home" , paddypower : "Paddypower : Consulta teus b&oacute;nus e promo&ccedil;&otilde;es" , betcris : "20% no teu primeiro dep&oacute;sito em Betcris de $300 USD ou m&aacute;s. &iexcl;&iexcl;Click Aqui!!" , vcbet : "At&eacute; 150 Euros gratis em vcbet.com &iexcl;&iexcl;Click aqui!!" , pinnacle : "B&oacute;nus Pinnacle : 10% do primeiro deposito. At&eacute; 500 Euros" , gamebookers : "At&eacute; 30 Euros gratis em gamebookers.com" , willhill : "Promo&ccedil;&atilde;o William Hill : 100&euro; Gratis", williamhill : "Promo&ccedil;&atilde;o William Hill : 100&euro; Gratis", paf : "B&oacute;nus Paf Boas-vindas 10&euro; por jogar 20&euro;", apuestasrojiblancas : "Entradas Atl. Madrid", bet12 : "B&oacute;nus 12bet: 20% primeiro dep&oacute;sito At&eacute; 180&euro;"};

	bono[3] = {bwin: "B&oacute;nus amigos !! 10&euro; para ti, 10&euro; para os teus amigos", miapuesta: "SPORTINGBET 100% At&eacute; 100 EUROS GRATIS", betclic: "Promoçao betclic : B&oacute;nus Bet clic 20 euros. N&atilde;o corre qualquer risco na sua primeira aposta", bet365: "BET365 At&eacute; 100 EUROS", sport888 : "888SPORT B&Oacute;NUS GRATIS 70&euro;", interwetten : "B&oacute;nus Boas-vindas Interwetten at&eacute; 20 + 10 euros", unibet : "UNIBET B&Oacute;NUS EXCLUSIVO 90 EUROS", ladbrokes : "LADBROKES 20 EUROS GRATIS" , globet : "GLOBET B&oacute;nus 50% GRATIS", eurobet : "EUROBET CONSULTAR B&Oacute;NUS" , betfair : "BETFAIR 20 EUROS GRATIS" , expekt : "EXPEKT 50 EUROS GRATIS" , fubo : "FUBO 50 EUROS GRATIS " , mybet : "B&oacute;nus boas-vindas: at&eacute; 50&euro; com seu primeiro dep&oacute;sito em Mybet" , winunited : "B&oacute;nus WinUnited: At&eacute; 50&euro; ao realizar o primeiro dep&oacute;sito e 10&euro; adicionais para casino" , betathome : "BET-AT-HOME 33 EUROS GRATIS" , paddypower : "PADDYPOWER VER B&Oacute;NUS" , betcris : "B&oacute;nus Betcris : 20% no seu primeiro dep&oacute;sito de $300 USD ou m&aacute;s. &iexcl;&iexcl;Click Aqui!!" , vcbet : "At&eacute; 150 Euros gratis em vcbet.com &iexcl;&iexcl;Click aqui!!" , pinnacle : "B&oacute;nus 10% do primeiro deposito. At&eacute; 500 Euros em Pinnacle" , gamebookers : "At&eacute; 30 Euros gratis em gamebookers.com" , willhill : "Novo B&oacute;nus William Hill 100&euro; Gratis", williamhill : "Novo B&oacute;nus William Hill 100&euro; Gratis", paf : "B&oacute;nus Exclusivo Paf 10&euro; por jogar 20&euro;", apuestasrojiblancas : "Entradas Atl. Madrid", bet12 : "B&oacute;nus 20% 12bet At&eacute; 180&euro;"};

	bono[4] = {bwin: "Bwin 50&euro; Gratis", miapuesta: "Miapuesta 100&euro; Gratis", betclic: "Betclic 20&euro; Gratis", bet365: "Bet365 100&euro; Gratis", sport888 : "888Sport 70&euro; Gratis", interwetten : "Interapuestas 20+10 &euro; em exclusiva Gratis", unibet : "Unibet B&oacute;nus 90&euro;", ladbrokes : "Ladbrokes 20&euro; Gratis" , globet : "Globet 50% gratis", eurobet : "Eurobet" , betfair : "Betfair 20&euro; Gratis" , expekt : "Expekt 50&euro; Gratis" , fubo : "Fubo 50&euro; Gratis" , mybet : "Mybet 50&euro; Gratis" , winunited : "WinUnited 50&euro; Gratis" , betathome : "Bet-at-home 33&euro; Gratis" , paddypower : "Paddypower Consultar B&oacute;nus" , betcris : "Betcris 20% Gratis" , vcbet : "VCbet 150&euro; Gratis" , pinnacle : "Pinnacle 10% Gratis" , gamebookers : "Gamebookers 30&euro; Gratis" , willhill : "William Hill 100&euro; Gratis", williamhill : "William Hill 100&euro; Gratis", paf : "Paf 10&euro; Gratis", apuestasrojiblancas : "Entradas Atl. Madrid", bet12 : "12bet 180&euro; Gratis"};

	
	
	
	varmostrar  = "bono["+String(tipo)+"]."+casa;
	linkcasa    = linkapuesta(casa);
	
	elink   =  "<a href='"+linkcasa+"' onclick=clic('bono','" + casa + "')  target='_blank' rel='nofollow'><span class='" + clase + "'>"+eval(varmostrar)+"</span></a>";
	
	document.write(elink);

	return elink;
	
}

function linkimagen(casa,imagen)
{
	linkcasa   = linkapuesta(casa);
	imagencasa = "http://www.nexusconsultores.com/banners/"+imagen;	
	
	//Tipo y casa de aopuesta
	v1=imagen;
	v2=casa;
		
		
	elink = "<a href='"+linkcasa+"' onclick=clic('" + imagen + "','" + casa + "') target='_blank' rel='nofollow'><img id='bannerimagen' src='"+imagencasa+"' border=0></a>";
	
	document.write(elink);
	
	return elink;
}

function linktextobono(casa,texto,tipobono,clasetexto,clasebono)
{
	
	linktexto(casa,texto,clasetexto);
	document.write("<br>");
	linkbono(casa,tipobono,clasebono);
	
}

function banneraleatorio(medidas)
{
	var casa;
	aleatorio = 	Math.floor(Math.random()*arguments.length);
	
	if(aleatorio==0) aleatorio = 1;
	
	casa = arguments[aleatorio];
		
	bannercasa = casa+"_"+medidas;
	banner(bannercasa);		
}


function bannerspeq(estilo)
{
	
	var numcasas =  arguments.length;
	var portds 	 =  100/numcasas;

	
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
	
	
	
	
	
	for(i=1; i<numcasas; i++) {
		
		casa     = arguments[i];
		imagen   = casa+"_peq.gif";
		
		document.write('<td width="' + portds + '%"  valign="top" align="center">');
		
			
		linkimagen(casa,imagen);
		document.write('<br>');
		linkbono(casa,0,estilo)
		document.write('</td>');
		
		
	}
	document.write('</tr></table>');
	
	 	
}



function bannersvertical(estilo1,estilo2)
{
	
	var numcasas =  arguments.length;
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
	
	for(var i=2; i<numcasas; i++) {

		casa         = arguments[i];
		bannercasa   = casa + "_120x60";
		urlcasa      = "http://www."+casa+".com";
		
		document.write('<tr><td height="5"></td></tr><tr><td align="center">');
		
		linktexto(casa,urlcasa,estilo1);
		document.write('<br>');
		banner(bannercasa);
		linkbono(casa,0,estilo2);
		
		document.write('</td></tr>');
		
	}	
	
	document.write('</table>');
}





function clic(v1,v2)
{
	var pagina         = document.location;
	var paginaanterior = document.referrer;
	var urlhost        = document.domain;
		
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				//Algo ha fallado
				return false;
			}
		}
	}
	
	var tipo     = v1;
	var producto = v2;
	
	var queryString = "pagina=" + pagina + "&paginaanterior=" + paginaanterior + "&tipo=" + tipo + "&producto=" + producto+"&dominio="+urlhost+"&mercado=apuestas_pt";
	
	
	//alert("http://www.nexusconsultores.com/gestion/clic.php" + queryString);
	var	urlclic = "http://" + urlhost + "/gestion/clic.php";
	
	
		
	ajaxRequest.open("POST",urlclic,true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	ajaxRequest.send(queryString); 
}


function fechapronosticos()
{
	fechap = "del 20 al 21 de Febrero";
	document.write(fechap);
}


function videopronosticos(ancho,alto)
{
	
	
	var codigoyoutube = "CW3kyoopDKI";
	
		
	var videoflash =  '<object width="' + ancho +'" height="' + alto + '"><param name="movie" value="http://www.youtube.com/v/' + codigoyoutube + '&rel=0&amp;showinfo=0&amp;autoplay=0" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="never" /><embed src="http://www.youtube.com/v/' + codigoyoutube + ';rel=0&amp;showinfo=0&amp;autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="never" wmode="transparent" width="' + ancho + '" height="' + alto + '"></embed></object>';
	
	
	document.write(videoflash);
	
}


