$(document).ready(function(){$('.newWindow').each(function(){$(this).bind('click',function(event){window.open(this.href,'');event.preventDefault();});});var initMarketingPromos=$('.promo-carousel ul').children().length;if($('.promo-carousel').is('div')&&initMarketingPromos>1){$('#promoController').show();$(".promo-carousel").jCarouselLite({auto:7000,speed:500,btnNext:"#nextPromo",btnPrev:"#previousPromo",visible:1,scroll:1,afterEnd:function(a){a.each(function(){$("#promoType").html($(this).find("input").attr("value"));});}});}});if($('#searchBtn').is('button')){$('#searchBtn').hover(function(){$(this).removeClass('button-searchArrow').addClass('button-searchArrowHover');},function(){$(this).removeClass('button-searchArrowHover').addClass('button-searchArrow');});};if($('#googleSearch').is('div')){$('#q').bind('focus',function(event){$(this).addClass('entryBoxWivText');});$('#q').bind('blur',function(event){var checkGoogle=$('#q').val();if(checkGoogle==''){$('#q').removeClass('entryBoxWivText');};});};sfHover=function(){var sfEls=document.getElementById("arnMenuNav").getElementsByTagName("LI");for(var i=0;i<sfEls.length;i++){sfEls[i].onmouseover=function(){this.className+=" sfhover";}
sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"");}}}
if(window.attachEvent)window.attachEvent("onload",sfHover);(function($){$.pageAdCount=function(count){var adSpace0=$('#adSpace0')!=null&&$('#adSpace0').html();var adSpace1=$('#adSpace1')!=null&&$('#adSpace1').html();var adSpace2=$('#adSpace2')!=null&&$('#adSpace2').html();var adSpace3=$('#adSpace3')!=null&&$('#adSpace3').html();var adSpace4=$('#adSpace4')!=null&&$('#adSpace4').html();var adSpace5=$('#adSpace5')!=null&&$('#adSpace5').html();var adSpace6=$('#adSpace6')!=null&&$('#adSpace6').html();var adSpace7=$('#adSpace7')!=null&&$('#adSpace7').html();var adSpace8=$('#adSpace8')!=null&&$('#adSpace8').html();var adSpace9=$('#adSpace9')!=null&&$('#adSpace9').html();var adSpace10=$('#adSpace10')!=null&&$('#adSpace10').html();var reg='/(AE[0-2]{1}|noimage)\.gif/mig';var result=eval(reg);var adZones=count;for(var i=0;i<adZones;i++){if($('#adSpace'+i).is('div')){var check=$('#adSpace'+i).html();if(check.search(result)>0){$('#adSpace'+i).hide();};}}
if(adSpace1&&adSpace1.search(result)<0){$('#adSpace1').before('<div class="advertiseText"><span>Advertisement</span></div>');};if(adSpace2&&adSpace2.search(result)<0){$('#adSpace2').before('<div class="advertiseText"><span>Advertisement</span></div>');};if(adSpace3&&adSpace3.search(result)<0){$('#adSpace3').before('<div class="advertiseText"><span>Advertisement</span></div>');};if((adSpace8&&adSpace8.search(result)<0)||(adSpace9&&adSpace9.search(result)<0)||(adSpace10&&adSpace10.search(result)<0)){$('#sponsoredLinks').before('<div class="sponsoredTop"><h6>SPONSORED LINKS</h6></div>');};if((adSpace4&&adSpace4.search(result)<0)||(adSpace5&&adSpace5.search(result)<0)||(adSpace6&&adSpace6.search(result)<0)||(adSpace7&&adSpace7.search(result)<0)){$('.partnerCenter1').before('<div id="partnerCenter"><h6>PARTNER CENTRE</h6></div>');}else{$('.partnerCenter1').hide();$('.partnerCenter2').hide();};};})(jQuery);