
jQuery.fn.extend({jcarousel:function(o){return this.each(function(){new jQuery.jcarousel(this,o);});}});var currentPos=0;jQuery.extend({jcarousel:function(e,o){var publ=this;publ.scope=function(){return priv.scope;};publ.list=function(){return priv.list;};publ.size=function(){return priv.size;};publ.init=function(o){return priv.init(o);};publ.get=function(idx){return priv.get(idx);};publ.add=function(idx,html){return priv.add(idx,html);};publ.available=function(first,last){return last==undefined?priv.end>=first:priv.end>=last;};publ.loaded=function(){priv.loaded();};publ.next=function(){priv.next();};publ.prev=function(){priv.prev();};publ.scroll=function(i){if(publ.available(i)){priv.scroll(i);}};var priv={o:{orientation:"horizontal",itemStart:1,itemVisible:3,itemScroll:null,scrollAnimation:"fast",autoScroll:0,autoScrollStopOnInteract:true,autoScrollStopOnMouseover:false,autoScrollResumeOnMouseout:false,wrap:false,wrapPrev:false,itemWidth:null,itemHeight:null,loadItemHandler:null,nextButtonStateHandler:null,prevButtonStateHandler:null,itemFirstInHandler:null,itemFirstOutHandler:null,itemLastInHandler:null,itemLastOutHandler:null,itemVisibleInHandler:null,itemVisibleOutHandler:null,noButtons:false,buttonNextHTML:'<a href="#" class="carousel_btn">Next</a>',buttonPrevHTML:'<a href="#" class="carousel_btn">Previous</a>'},scope:null,list:null,horiz:true,top:0,left:0,size:0,end:0,first:0,prevFirst:0,last:0,prevLast:0,inAnimation:false,autoTimer:null,nextClick:function(){priv.next();},prevClick:function(){priv.prev();},itemFormat:{"float":"left","styleFloat":"left","overflow":"hidden","listStyle":"none"},options:function(o){if(o)
jQuery.extend(priv.o,o);priv.o.itemStart=Math.max(1,priv.intval(priv.o.itemStart));priv.o.itemScroll=priv.o.itemScroll||priv.o.itemVisible;if(priv.o.itemWidth)
priv.itemFormat.width=priv.o.itemWidth+"px";if(priv.o.itemHeight)
priv.itemFormat.height=priv.o.itemHeight+"px";priv.horiz=priv.o.orientation=="vertical"?false:true;},init:function(o){priv.options(o);if(priv.size==0){var dummy=priv.format(document.createElement("li"),1).get(0);priv.list.appendChild(dummy);}
var i=jQuery("li",priv.list).get(0);var itemWidth=i.offsetWidth+priv.margin(i,"marginLeft")+priv.margin(i,"marginRight");var itemHeight=i.offsetHeight+priv.margin(i,"marginTop")+priv.margin(i,"marginBottom");if(priv.horiz){priv.dimension=itemWidth;var clipW=itemWidth*priv.o.itemVisible-priv.margin(i,"marginRight");var clipH=itemHeight;}else{priv.dimension=itemHeight;var clipW=itemWidth;var clipH=itemHeight*priv.o.itemVisible-priv.margin(i,"marginBottom");}
jQuery(".jcarousel-clip",priv.scope).css({"zIndex":"2","padding":0,"margin":0,"width":clipW-5+"px","height":"auto","overflow":"hidden","position":"relative"});if(dummy!=undefined)
priv.list.removeChild(dummy);priv.resize();},prepare:function(e,o){priv.options(o);if(e.nodeName=="UL"||e.nodeName=="OL"){priv.list=e;var scope=jQuery(priv.list).parent().get(0);if(jQuery.className.has(scope.className,"jcarousel-clip")){if(!jQuery.className.has(jQuery(scope).parent().get(0).className,"jcarousel-scope"))
scope=jQuery(scope).wrap('<div class="jcarousel-scope"></div>');scope=jQuery(scope).parent().get(0);}else if(!jQuery.className.has(scope.className,"jcarousel-scope"))
scope=jQuery(priv.list).wrap('<div class="jcarousel-scope"></div>').parent().get(0);priv.scope=scope;}else{priv.scope=e;priv.list=jQuery("ul",priv.scope).get(0)||jQuery("ol",priv.scope).get(0);}
priv.size=priv.end=jQuery("li",priv.list).size();if(priv.size>0){var idx=1;jQuery("li",priv.list).each(function(){priv.format(this,idx++);});}
if(!jQuery.className.has(jQuery(priv.list).parent().get(0).className,"jcarousel-clip"))
jQuery(priv.list).wrap('<div class="jcarousel-clip"></div>');if(!priv.o.noButtons){if(jQuery(".jcarousel-prev",priv.scope).size()==0){var dummy=jQuery(document.createElement("div")).html(priv.o.buttonPrevHTML).get(0);jQuery(".jcarousel-clip",priv.scope).before(jQuery(dummy.firstChild).addClass("jcarousel-prev"));}
if(jQuery(".jcarousel-next",priv.scope).size()==0){var dummy=jQuery(document.createElement("div")).html(priv.o.buttonNextHTML).get(0);jQuery(".jcarousel-clip",priv.scope).before(jQuery(dummy.firstChild).addClass("jcarousel-next"));}
jQuery(".jcarousel-prev",priv.scope).css({"zIndex":"3"});jQuery(".jcarousel-next",priv.scope).css({"zIndex":"3"});}
if(priv.o.autoScrollStopOnMouseover){if(priv.o.autoScrollResumeOnMouseout){jQuery(".jcarousel-clip",priv.scope).bind("mouseover",function(){priv.stopAuto();}).bind("mouseout",function(){priv.startAuto();});}else{jQuery(".jcarousel-clip",priv.scope).bind("mouseover",function(){priv.disableAuto();});}}
priv.top=0;priv.left=0;jQuery(priv.list).css({"zIndex":"1","position":"relative","top":priv.top+"px","left":priv.left+"px","margin":0,"padding":0}).addClass("jcarousel-list");jQuery(priv.scope).addClass("jcarousel-scope").show().find(":hidden").show();},get:function(idx){return jQuery(".jcarousel-item-"+idx,priv.list);},add:function(idx,s){var item=priv.get(idx);if(item.size()==0){var item=priv.format(document.createElement("li"),idx);jQuery(priv.list).append(item);priv.size++;if(priv.size>priv.end)
priv.end=priv.size;priv.resize();}
return item.html(s);},available:function(first,last){if(priv.end>=last)
return true;priv.end=last;return false;},load:function(first,last){if(priv.o.loadItemHandler==null)
return priv.loaded();priv.buttons(false,false);priv.o.loadItemHandler(publ,first,last,priv.available(first,last));},loaded:function(){if(priv.first>1&&priv.last<priv.size){priv.buttons(true,true);}else if(priv.first==1&&priv.last<priv.size){priv.buttons(true,priv.o.wrapPrev);}else if(priv.first>1&&priv.last>=priv.size){priv.buttons(priv.o.wrap,true);}},next:function(){priv.stopAuto();if(priv.o.autoScrollStopOnInteract)
priv.disableAuto();priv.doNext();},doNext:function(){priv.scroll((priv.o.wrap&&priv.last==priv.size)?1:priv.first+priv.o.itemScroll);if(priv.o.wrap||priv.last<priv.size)
priv.startAuto();},prev:function(){priv.stopAuto();if(priv.o.autoScrollStopOnInteract)
priv.disableAuto();priv.doPrev();},doPrev:function(){priv.scroll((priv.o.wrapPrev&&priv.first==1)?priv.size-priv.o.itemVisible+1:priv.first-priv.o.itemScroll);priv.startAuto();},scroll:function(idx){if(priv.inAnimation)
return;priv.inAnimation=false;priv.prevFirst=priv.first;priv.prevLast=priv.last;idx=idx<1?1:idx;var last=idx+priv.o.itemVisible-1;last=(last>priv.size)?priv.size:last;var first=last-priv.o.itemVisible+1;first=(first<1)?1:first;last=first+priv.o.itemVisible-1;priv.first=first;priv.last=last;priv.animate();},animate:function(){var pos=priv.dimension*(priv.first-1)*-1;priv.notify(priv.prevFirst,priv.prevLast,priv.first,priv.last,"onBeforeAnimation");if(priv.o.scrollAnimation){priv.inAnimation=true;jQuery(priv.list).animate(priv.horiz?{"left":pos}:{"top":pos},priv.o.scrollAnimation,function(){priv.scrolled();});}else{jQuery(priv.list).css(priv.horiz?"left":"top",pos+"px");priv.scrolled();}},scrolled:function(){if(priv.first==1)
jQuery(priv.list).css("top",priv.top+"px").css("left",priv.left+"px");priv.inAnimation=false;priv.notify(priv.prevFirst,priv.prevLast,priv.first,priv.last,"onAfterAnimation");priv.load(priv.last+1,priv.last+priv.o.itemScroll);},handler:function(handler,evt,state,i1,i2,i3,i4){if(priv.o[handler]==undefined||(typeof priv.o[handler]!='object'&&evt!="onAfterAnimation"))
return;var handler=typeof priv.o[handler]=='object'?priv.o[handler][evt]:priv.o[handler];if(typeof handler!='function')
return;if(i2==undefined){priv.get(i1).each(function(){handler(publ,this,i1,state);});return;}
for(var i=i1;i<=i2;i++){if(!(i>=i3&&i<=i4))
priv.get(i).each(function(){handler(publ,this,i,state);});}},notify:function(prevFirst,prevLast,first,last,evt){var state=prevFirst==0?"init":(prevFirst<first?"next":"prev");if(prevFirst!=first){priv.handler("itemFirstOutHandler",evt,state,prevFirst);priv.handler("itemFirstInHandler",evt,state,first);}
if(prevLast!=last){priv.handler("itemLastOutHandler",evt,state,prevLast);priv.handler("itemLastInHandler",evt,state,last);}
priv.handler("itemVisibleInHandler",evt,state,first,last,prevFirst,prevLast);priv.handler("itemVisibleOutHandler",evt,state,prevFirst,prevLast,first,last);},buttons:function(next,prev){if(priv.o.noButtons)
return;jQuery(".jcarousel-next",priv.scope)[next?"bind":"unbind"]("click",priv.nextClick)[next?"removeClass":"addClass"]("jcarousel-next-disabled")[next?"removeAttr":"attr"]("disabled",true);jQuery(".jcarousel-prev",priv.scope)[prev?"bind":"unbind"]("click",priv.prevClick)[prev?"removeClass":"addClass"]("jcarousel-prev-disabled")[prev?"removeAttr":"attr"]("disabled",true);if(priv.o.nextButtonStateHandler!=null)
jQuery(".jcarousel-next",priv.scope).each(function(){priv.o.nextButtonStateHandler(publ,this,next);});if(priv.o.prevButtonStateHandler!=null)
jQuery(".jcarousel-prev",priv.scope).each(function(){priv.o.prevButtonStateHandler(publ,this,prev);});},startAuto:function(){if(priv.o.autoScroll>0)
priv.autoTimer=setTimeout(function(){priv.doNext();},priv.o.autoScroll*1000);},stopAuto:function(){if(priv.autoTimer==null)
return;clearTimeout(priv.autoTimer);priv.autoTimer=null;},disableAuto:function(){priv.stopAuto();priv.o.autoScroll=0;},resize:function(){if(priv.size==0)
return;if(priv.horiz)
jQuery(priv.list).css("width",priv.size*priv.dimension+100+"px");else
jQuery(priv.list).css("height",priv.size*priv.dimension+100+"px");},format:function(item,idx){return jQuery(item).css(priv.itemFormat).addClass("jcarousel-item-"+idx);},margin:function(e,p){if(p=="marginRight"&&jQuery.browser.safari){var old={"display":"block","float":"none","width":"auto"},oWidth,oWidth2;jQuery.swap(e,old,function(){oWidth=e.offsetWidth;});old["marginRight"]=0;jQuery.swap(e,old,function(){oWidth2=e.offsetWidth;});return oWidth2-oWidth;}
return priv.intval(jQuery.css(e,p));},intval:function(v){v=parseInt(v);return isNaN(v)?0:v;}};priv.prepare(e,o);priv.init();priv.buttons(false,false);priv.load(1,priv.o.itemStart+priv.o.itemVisible);priv.scroll(priv.o.itemStart);priv.startAuto();}});var createFocusAndBlurEvents=true;try
{var cookieEnabled=(navigator.cookieEnabled)?true:false;if(typeof(navigator.cookieEnabled)=="undefined"&&!cookieEnabled)
{document.cookie="testcookie";cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)?true:false;}
if(!cookieEnabled&&window.location.toString().indexOf("CookiesDisabled.asp")==-1)
{window.location.replace("/CookiesDisabled.asp");}}
catch(e){}
function RunLoadEvents()
{for(var i=0;i<onloadFunctions.length;i++)
{eval(onloadFunctions[i]);}}
function AttachLoadEvent(func)
{onloadFunctions[onloadFunctions.length]=func;}
var onloadFunctions=new Array();function itemFirstInHandler(carousel,li,idx,state){var numbers_container=$(li).parent().parent().parent().parent();$(numbers_container).find('div.item_number').children('.item_total').html(carousel.size());$(numbers_container).find('div.item_number').children('.current_item').html(idx);}
jQuery(document).ready(function(){$('.mycarousels').css('marginLeft','5px');jQuery(".mycarousels").jcarousel({wrap:"circular",itemVisible:5,itemScroll:5,scrollAnimation:"1000"});$('.mycarousels li').css({height:'auto'});$('.mycarousels li img').css('marginLeft','0');jQuery(".mycarousels_small").jcarousel({wrap:"circular",itemVisible:1,itemScroll:1,scrollAnimation:"1000",itemFirstInHandler:itemFirstInHandler});jQuery(".mycarousels_double").jcarousel({wrap:"circular",itemVisible:2,itemScroll:2,scrollAnimation:"1000"});jQuery(".mycarousels_screenshots").jcarousel({wrap:"circular",itemVisible:5,itemScroll:5,scrollAnimation:"1000"});$('.mycarousels_small li').css({height:'auto'});$("a.carousel_btn").click(function(){return false;});$(".top_promo_links:first-child").find("a:first").addClass("on");$(".top_promo").find("li").hide();$(".top_promo").find("li:first").show();$(".top_promo_links li a").click(function(){if($(this).is(".on")){return false;}else{$(this).parent().parent().find("a").removeClass("on");$(this).addClass("on");var cur_li=$(this).parent()[0];var aindex=$(this).parent().parent().find("li").index(cur_li);var tp_promo=$(this).parent().parent().parent().find(".top_promo").find("li");tp_promo.hide();tp_promo.eq(aindex).show();}
return false;});$("input.email").focus(function(){$(this).attr("value","");}).blur(function(){$(this).attr("value","Email address");});$("#keyword").focus().next().blur(function(){$('.left_nav li:first a').focus();});$('#nav_popup').find('ul:last li:last a').blur(function(){$('.box_news').find('h2 a').focus();});var tn_list=$('#a_nav_popup');var tn_all_link=tn_list.children('a');var popup=$('#nav_popup');var select_box=$('.search_bar .select_container .select_box');var select_contents=$(select_box).html();var select_box_image='<img src="/css/gameUK/img/search_select_replacement.gif" />';$(tn_list).hoverIntent(function(){$(select_box).html(select_box_image);$(popup).fadeIn('fast',function(){$(select_box).html(select_box_image);});$(tn_all_link).addClass("laston");},function(){$(popup).fadeOut('fast',function(){$(select_box).html(select_contents);});$(tn_all_link).removeClass("laston");});$(tn_all_link).focus(function(){$(popup).fadeIn('fast');$(tn_all_link).addClass("laston");});popup.find('a.last').blur(function(){$(popup).fadeOut('fast');$(tn_all_link).removeClass("laston");});var aExpand=$('.box_bottom_link').find('a');$('.expandable').css('height','auto');$(aExpand).click(function(){var htmlTxt=$(this).html();var gameSummaryDiv;var gameSummaryEmbedArray;if($(this).is('.expanded')){$(this).parent('.box_bottom_link').siblings('.expandable').css('height','47px');$(this).html("Read More");$(this).removeClass();gameSummaryDiv=document.getElementById('game_summary');if(gameSummaryDiv)
{gameSummaryEmbedArray=gameSummaryDiv.getElementsByTagName('embed');for(index=0;index<gameSummaryEmbedArray.length;index++)
{gameSummaryEmbedArray[index].style.display='none';}}
return false;}
if($(this).not('.expanded')){$(this).parent('.box_bottom_link').siblings('.expandable').css('height','auto');$(this).html("Collapse");$(this).addClass('expanded');gameSummaryDiv=document.getElementById('game_summary');if(gameSummaryDiv)
{gameSummaryEmbedArray=gameSummaryDiv.getElementsByTagName('embed');for(index=0;index<gameSummaryEmbedArray.length;index++)
{gameSummaryEmbedArray[index].style.display='';}}}
return false;});var aExpandAjax=$('.box_bottom_link_ajax').find('a');$('.expandable').css('height','auto');$(aExpandAjax).click(function(){var htmlTxt=$(this).html();if($(this).is('.expanded')){$(this).parent('.box_bottom_link_ajax').siblings('.expandable').css('height','47px');$(this).html("Read More");$(this).removeClass();return false;}
if($(this).not('.expanded')){$(this).parent('.box_bottom_link_ajax').siblings('.expandable').css('height','auto');$(this).html("Collapse");$(this).addClass('expanded');}
return false;});var recommCarousel=$('.recommendationsWindow');var close_link=$(recommCarousel).find('a.close_link');$(close_link).click(function(){$(recommCarousel).find('.expandableDiv').toggle();if($(this).is('.expanded')){$(this).html("Close recommendations window");$(this).removeClass('expanded');return false;}
if($(this).not('.expanded')){$(this).html("Open recommendations window");$(this).addClass('expanded');}
return false;});});function InitCarousel()
{jQuery(document).ready(function()
{$('.mycarousels').css('marginLeft','5px');jQuery(".mycarousels").jcarousel({wrap:"circular",itemVisible:4,itemScroll:4,scrollAnimation:"1000"});$('.mycarousels li').css({height:'auto'});$('.mycarousels li img').css('marginLeft','0');jQuery(".mycarousels_small").jcarousel({wrap:"circular",itemVisible:1,itemScroll:1,scrollAnimation:"1000",itemFirstInHandler:itemFirstInHandler});jQuery(".mycarousels_double").jcarousel({wrap:"circular",itemVisible:2,itemScroll:2,scrollAnimation:"1000"});jQuery(".mycarousels_screenshots").jcarousel({wrap:"circular",itemVisible:5,itemScroll:5,scrollAnimation:"1000"});$('.mycarousels_small li').css({height:'auto'});$("a.carousel_btn").click(function(){return false;});});}
function InitExpand()
{var aExpandAjax=$('.box_bottom_link_ajax').find('a');$('.expandable').css('height','auto');$(aExpandAjax).click(function(){var htmlTxt=$(this).html();if($(this).is('.expanded')){$(this).parent('.box_bottom_link_ajax').siblings('.expandable').css('height','60px');$(this).html("Read More");$(this).removeClass();return false;}
if($(this).not('.expanded')){$(this).parent('.box_bottom_link_ajax').siblings('.expandable').css('height','auto');$(this).html("Collapse");$(this).addClass('expanded');}
return false;});}
function LoadImage(imageCtrl,imageSrc,altText)
{var image=document.getElementById(imageCtrl);if(image)
{image.src=imageSrc;image.alt=altText;}}
function attachClickEvent(btn)
{if(btn&&typeof(btn.click)=='undefined')
{btn.click=function()
{var result=true;if(btn.onclick)result=btn.onclick();if(typeof(result)=='undefined'||result)
{eval(btn.href);}}}}
function popitup(url){newwindow=window.open(url,'name','height=500,width=750,resizable=yes,status=yes,menubar=yes,toolbar=yes,location=yes,scrollbars=yes,copyhistory=yes');if(window.focus)
{newwindow.focus();}
return false;}
function doFocus(type,tag,parentId)
{if(createFocusAndBlurEvents)
{var sfEls=(parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);type(sfEls);}}
sfFocus=function(sfEls)
{if(createFocusAndBlurEvents)
{for(var i=0;i<sfEls.length;i++){sfEls[i].onfocus=function(){this.className+=" sffocus";}
sfEls[i].onblur=function(){this.className=this.className.replace(new RegExp(" sffocus\\b"),"");}}}}
function bookmarkPage(pageTitle,url)
{if(window.sidebar)
window.sidebar.addPanel(pageTitle,url,"");else if(window.opera&&window.print)
{var element=document.createElement('a');element.setAttribute('href',url);element.setAttribute('title',pageTitle);element.setAttribute('rel','sidebar');element.click();}
else if(document.all)
window.external.AddFavorite(url,pageTitle);}
AttachLoadEvent('doFocus(sfFocus, "INPUT")');AttachLoadEvent('doFocus(sfFocus, "TEXTAREA")');AttachLoadEvent('doFocus(sfFocus, "SELECT")');window.onload=RunLoadEvents;(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:0,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);(function($){$.fn.innerfade=function(options){return this.each(function(){$.innerfade(this,options);});};$.innerfade=function(container,options){var settings={'animationtype':'fade','speed':'normal','type':'sequence','timeout':2000,'containerheight':'auto','runningclass':'innerfade','children':null};if(options)
$.extend(settings,options);if(settings.children===null)
var elements=$(container).children();else
var elements=$(container).children(settings.children);if(elements.length>1){$(container).css('position','relative').css('height',settings.containerheight).addClass(settings.runningclass);for(var i=0;i<elements.length;i++){$(elements[i]).css('z-index',String(elements.length-i)).css('position','absolute').hide();};if(settings.type=="sequence"){setTimeout(function(){$.innerfade.next(elements,settings,1,0);},settings.timeout);$(elements[0]).show();}else if(settings.type=="random"){var last=Math.floor(Math.random()*(elements.length));setTimeout(function(){do{current=Math.floor(Math.random()*(elements.length));}while(last==current);$.innerfade.next(elements,settings,current,last);},settings.timeout);$(elements[last]).show();}else if(settings.type=='random_start'){settings.type='sequence';var current=Math.floor(Math.random()*(elements.length));setTimeout(function(){$.innerfade.next(elements,settings,(current+1)%elements.length,current);},settings.timeout);$(elements[current]).show();}else{alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');}}};$.innerfade.next=function(elements,settings,current,last){if(settings.animationtype=='slide'){$(elements[last]).slideUp(settings.speed);$(elements[current]).slideDown(settings.speed);}else if(settings.animationtype=='fade'){$(elements[last]).fadeOut(settings.speed);$(elements[current]).fadeIn(settings.speed,function(){removeFilter($(this)[0]);});}else
alert('Innerfade-animationtype must either be \'slide\' or \'fade\'');if(settings.type=="sequence"){if((current+1)<elements.length){current=current+1;last=current-1;}else{current=0;last=elements.length-1;}}else if(settings.type=="random"){last=current;while(current==last)
current=Math.floor(Math.random()*elements.length);}else
alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');setTimeout((function(){$.innerfade.next(elements,settings,current,last);}),settings.timeout);};})(jQuery);function removeFilter(element){if(element.style.removeAttribute){element.style.removeAttribute('filter');}}
