ngBanners.setTemplates({html:'<div class="baneris js-adset-el hide"> {text} </div>',text:'<div class="baneris js-adset-el hide"> {text} </div>',flash:'<div class="baneris js-adset-el hide"> <object type="application/x-shockwave-flash" data="{path}" width="{width}" height="{height}" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="{path}?clickURI={redirect_url}" /> <param name="quality" value="high" /> {alternative} </object> </div>',imagec:'<div class="baneris js-adset-el hide"> <a href="{redirect_url}" rel="nofollow" title="{alternative}" target="_blank"><img src="{path}?{timestamp}" width="{width}" height="{height}" alt="{alternative}" border="0" /></a> </div>',imagenc:'<div class="baneris js-adset-el hide"> <img src="{path}?{timestamp}" width="{width}" height="{height}" alt="{alternative}" border="0" /> </div>'});
ngBanners.setZoneBNs({header_std:'TopWide',carousel_std:'IndexRotating',left_column_top_index:'IndexLeftColumn',left_column_std:'LeftColumn',right_column_std:'RightColumn',reporting_column_std:'ReportingColumn',middle_text_std:'MiddleArticle'});
ngBanners.setAds({3:{type:'imagec',redirect_url:'/ng_banners/3.htm?BID=21',width:'728',height:'90',timestamp:'1252320361',path:'/w/reklama/4aa4e4692576f.gif',alternative:'Everest Poker'},4:{type:'imagec',redirect_url:'/ng_banners/4.htm?BID=21',width:'125',height:'125',timestamp:'1252320364',path:'/w/reklama/4aa4e46c81216.gif',alternative:'Everest Poker'},57:{type:'imagec',redirect_url:'/ng_banners/57.htm?BID=39',width:'728',height:'90',timestamp:'1258102923',path:'/w/reklama/4afd208b67912.gif',alternative:'Party Poker'},56:{type:'imagec',redirect_url:'/ng_banners/56.htm?BID=39',width:'125',height:'125',timestamp:'1258102910',path:'/w/reklama/4afd207ec5482.gif',alternative:'Party Poker'},9:{type:'imagec',redirect_url:'/ng_banners/9.htm?BID=53',width:'728',height:'90',timestamp:'1253696073',path:'/w/reklama/4ab9e249b2188.jpg',alternative:'PokerStars'},10:{type:'imagec',redirect_url:'/ng_banners/10.htm?BID=53',width:'125',height:'125',timestamp:'1253696070',path:'/w/reklama/4ab9e2467d4f7.jpg',alternative:'Pokerstars'},40:{type:'imagec',redirect_url:'/ng_banners/40.htm?BID=64',width:'728',height:'90',timestamp:'1249911963',path:'/w/reklama/4af7fa3887c90.gif',alternative:'Unibet Poker'},41:{type:'imagec',redirect_url:'/ng_banners/41.htm?BID=64',width:'125',height:'125',timestamp:'1246932266',path:'/w/reklama/4af7fa337707f.gif',alternative:'Unibet Poker'},45:{type:'imagec',redirect_url:'/ng_banners/45.htm?BID=53',width:'728',height:'90',timestamp:'1249988528',path:'/w/reklama/4a814fb00d2cd.gif',alternative:'PokerStars League 2009'},46:{type:'imagec',redirect_url:'/ng_banners/46.htm?BID=53',width:'125',height:'125',timestamp:'1249988538',path:'/w/reklama/4a814fba831b0.gif',alternative:'PokerStars League 2009'},47:{type:'imagec',redirect_url:'/ng_banners/47.htm?BID=61',width:'728',height:'90',timestamp:'1251453714',path:'/w/reklama/4a97ab126c4ca.gif',alternative:''},48:{type:'imagec',redirect_url:'/ng_banners/48.htm?BID=61',width:'125',height:'125',timestamp:'1251453736',path:'/w/reklama/4a97ab28e40b0.gif',alternative:''},49:{type:'imagec',redirect_url:'/ng_banners/49.htm?BID=53',width:'200',height:'200',timestamp:'1255518765',path:'/w/reklama/4ad5b22d43a18.jpg',alternative:'PokerStars'},50:{type:'imagec',redirect_url:'/ng_banners/50.htm?BID=38',width:'728',height:'90',timestamp:'1256732292',path:'/w/reklama/4ae83684f0784.gif',alternative:'Paradise poker'},51:{type:'imagec',redirect_url:'/ng_banners/51.htm?BID=38',width:'125',height:'125',timestamp:'1256732328',path:'/w/reklama/4ae836a8db540.gif',alternative:'Paradise poker'},52:{type:'imagec',redirect_url:'/ng_banners/52.htm?BID=63',width:'728',height:'90',timestamp:'1257237085',path:'/w/reklama/4aefea5d545d4.gif',alternative:'Ultimate Bet'},53:{type:'imagec',redirect_url:'/ng_banners/53.htm?BID=107',width:'728',height:'90',timestamp:'1257244281',path:'/w/reklama/4af0067915d77.gif',alternative:'Betfred Poker'},54:{type:'imagec',redirect_url:'/ng_banners/54.htm?BID=107',width:'125',height:'125',timestamp:'1257244309',path:'/w/reklama/4af00695cb28d.gif',alternative:'Betfred Poker'}});
ngBanners.deploy();if (jQuery("#insert-calendar").size()>0) {
	jQuery("#insert-calendar").html("<div id=\"cal2\">\n	<div class=\"wrap\">\n		<div class=\"wrap2\">\n			<div class=\"title\"><h2><a href=\"\/freeroll-turneringer\/\">Pokerkalender<\/a><\/h2><\/div>\n			<div class=\"table\" id=\"cal2-calendar\"><\/div>\n		<\/div>\n	<\/div>\n<\/div>");
	if(typeof(tourCalendar.instance)=="undefined") {
		var tc = new tourCalendar();
		tc.url = '/freerolls-calendar/all-events/';
		tc.weekDays = ["Man", "Tirs", "Ons", "Tors", "Fre", "Lør", "Søn"];
		tc.monthNames = ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"];
		tc.words = ["Pokerkalender", "Rom", "Start tid", "Buy in", "Premie", "Poengkrav", "Kvalifiseringsperiode"];
		tc.startSunday = false;
		tc.init();
		tc.show();
	}
}if (jQuery("#insert-subscribe").size()>0) {
	jQuery("#insert-subscribe").html("\n\n<div class=\"user-pop-menu\" id=\"subscribe_tab\" style=\"width:243px;  display: none;\">\n	<div id=\"div-subscribe-form\">\n	<form action=\"\/register\/\" method=\"post\" onsubmit=\"return subscribe_check(this)\">\n			<input type=\"hidden\" name=\"event\" value=\"sys.subscribe#subscribe\" \/>\n			<b class=\"blue-title-18\">Abboner på vårt gratis nyhetsbrev<\/b>\n			\n			\n			<label for=\"isubscribe\">Din email<\/label>\n			<input name=\"subscribe_email\" id=\"isubscribe\" value=\"\" class=\"input-text\" type=\"text\" \/>\n\n			<label for=\"isubscribe_captcha\">Bekreftelseskode<\/label>\n			<input type=\"text\" maxlength=\"4\" class=\"input-text fl\" id=\"isubscribe_captcha\" name=\"subscribe_captcha\"\/> <img src=\"\/register\/captcha.php?t=1258833530\" alt=\"\" \/>\n			<span class=\"clr\">&nbsp;<\/span><input type=\"submit\" value=\"Gå\" class=\"input-submit\" \/>\n		<\/form>\n	<\/div>\n<\/div>\n\n\n<div class=\"user-pop-menu\" id=\"login_tab\" style=\"width:243px; display: none;\">\n	\n	<form action=\"\/register\/\" method=\"post\" name=\"frmLogin\" id=\"frmLogin\">\n		<input type=\"hidden\" name=\"event\" value=\"sys.signup#login\" \/>\n		<input type=\"hidden\" name=\"gonext\" value=\"1\" \/>\n		<b class=\"blue-title-18\">Medlems innlogging<\/b>\n\n		<label for=\"user-nick\">PokerNews navn<\/label>\n		<input type=\"text\" name=\"nick\" size=\"20\" maxlength=\"15\" tabindex=\"1\" class=\"input-text\" \/>\n\n		\n		<label for=\"user-pass\">Passord<\/label>\n		<input type=\"password\" name=\"password\" size=\"20\" maxlength=\"15\" tabindex=\"2\" class=\"input-text\" \/>\n		\n		<small>Viktig: Ditt Pokernews navn og password er sensitivt for store og små bokstaver<\/small>\n		\n		<input type=\"checkbox\" checked=\"checked\" value=\"1\" name=\"remember\" id=\"remember\" class=\"fl\" style=\"margin-right: 5px\" \/> <label for=\"remember\" style=\"line-height: 11pt\">Lagre mitt password på denne computeren.<\/label>\n		\n		<input type=\"submit\" value=\"Logg inn\" name=\"Login\" class=\"input-submit\" \/>\n\n		<a href=\"http:\/\/my.pokernews.com\/members\/password\/\">Glemt ditt passord?<\/a>\n	<\/form>\n<\/div>");
	function v_email(email) {
		var erg = new RegExp('^[a-z0-9_]+([\.-_][a-z0-9|_]+)*\@([a-z0-9]+([\.-_][a-z0-9]+)*)+\.[a-z]{2,}$', 'i');
		return erg.test(email);
	}
	function subscribe_check(form) {
		if (form.subscribe_email.value == '') {
			alert("Vennligst fyll inn din e-mail addresse!");
			form.subscribe_email.focus();
			return false;
		} else if (!v_email(form.subscribe_email.value)) {
			alert("Den e-mail addressen du fylte inn er ikke godkjent. Vennligst sjekk den igjen!");
			form.subscribe_email.focus();
			return false;
		} else if(form.subscribe_captcha.value == '') {
			alert('Enter code');
			form.subscribe_captcha.focus();
			return false;
		}  else {
			var data = {
				'event': form.elements['event'].value,
				'subscribe_email': form.elements['subscribe_email'].value,
				'subscribe_captcha': form.elements['subscribe_captcha'].value
				}
			jQuery('#div-subscribe-form').html('<div style="margin: 20px 0;text-align:center"><img src="/img/loading_small.gif" alt="Loading..." /></div>');
			jQuery('#div-subscribe-form').load('/register/', data );
			return false;
		}

	}
	jQuery('#pop_menu li.first').html('<a href="/" id="pop_b0">Abboner</a>');
	jQuery('#pop_b0').click(function () {return hdmenu(1);});
	jQuery('#pop_b1').click(function () {return hdmenu(2);});
	jQuery('#pop_b0').show();
}
 trackOutgoing();