String.prototype.ucFirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1,this.length)};String.prototype.substitute=function(a,b){return this.replace(b||(/\\?\{([^{}]+)\}/g),function(d,c){if(d.charAt(0)=="\\"){return d.slice(1)}return(a[c]!=undefined)?a[c]:""})};String.prototype.striphtml=function(){return this.replace(/<[^>]*>/g,"")};String.prototype.getNumeric=function(){return this.replace(/[^[0-9]/g,"")};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"")};var pad=function(g,f,d){var c=this,e="",a;var b=function(k,h){var l="",j;while(l.length<h){l+=k}l=l.substr(0,h);return l};c+="";if(d!="STR_PAD_LEFT"&&d!="STR_PAD_RIGHT"&&d!="STR_PAD_BOTH"){d="STR_PAD_LEFT"}if((a=g-c.length)>0){if(d=="STR_PAD_LEFT"){c=b(f,a)+c}else{if(d=="STR_PAD_RIGHT"){c=c+b(f,a)}else{if(d=="STR_PAD_BOTH"){e=b(f,Math.ceil(a/2));c=e+c+e;c=c.substr(0,g)}}}}return c};String.prototype.pad=pad;Number.prototype.pad=pad;Number.prototype.isEven=function(){return !(this%2)};Number.prototype.round=function(a){a=Math.pow(10,a||0);return Math.round(this*a)/a};function $unlink(c){var b;switch(typeof(c)){case"object":b={};for(var e in c){b[e]=$unlink(c[e])}break;case"array":b=[];for(var d=0,a=c.length;d<a;d++){b[d]=$unlink(c[d])}break;default:return c}return b}function $merge(){var e={};for(var d=0,a=arguments.length;d<a;d++){var b=arguments[d];if(typeof(b)!="object"){continue}for(var c in b){var g=b[c],f=e[c];e[c]=(f&&typeof(g)=="object"&&typeof(f)=="object")?$merge(f,g):$unlink(g)}}return e}function $random(b,a){return Math.floor(Math.random()*(a-b+1)+b)}var $time=Date.now||function(){return +new Date};function getQueryVariable(a,c){c=(!c)?window.location.search.substring(1):c.substring(c.indexOf("?")+1);var d=c.split("&");for(var b=0;b<d.length;b++){var e=d[b].split("=");if(e[0]==a){return e[1]}}return""}liveConfig={staticPath:"http://static.vglive.no/",videoAuthURL:"auth/video.php",heartbeatURL:"auth/heartbeat.php",eventURL:"data/events.php",matchURL:"data/allevents.php",tableURL:"data/leaguetable.php",matchInfoURL:"data/getmatch.php",matchFactsURL:"data/matchinfo.php",matchImagesURL:"data/images.php",mobileImagesURL:"data/imagesmob.php",scoreServiceURL:"data/scoreservice.php",lastPlayedMatchURL:"data/lastplayed.php",mobilematchFactsURL:"data/matchinfo-mob.php",latestDiscussionsURL:"http://vgd.no/system/feeds/forums/ids/116,117,118,176,184,186,234/format/jsonp/limit/10",initURL:"data/init.php",facebookChatUrl:"http://chat.vglive.no/chat.php",facebookLogoutUrl:"http://chat.vglive.no/logout.php",promoUrl:"http://cms039.dc2.qcn3.movenetworks.com/cms/publish/vod/vodclip/bergens/306.qvt",demoClipUrl:"http://cms039.dc2.qcn3.movenetworks.com/cms/publish/vod/vodclip/bergens/306.qvt",introQvtUrl:"http://vglive.no/data/qvt/intro.qvt",useFacebook:true,autoJumpActiveMatch:true,cleanupInterval:45,videoListLimit:100,facebookIframeHeight:545,leagueTableUpperLimit:10000,matchFactsUpperLimit:10000,blinkColor:"#fff",overviewEnabled:false,overviewEvents:2,tips:{chanceOutside:"Ball utenfor mål",chanceIn:"Ball på mål",goal:"Mål",yellow:"Gult kort",red:"Rødt kort",secondYellow:"Andre gule > rødt kort",corner:"Hjørnespark",injury:"Skade",whistle:"Dommerfløyte",offside:"Offside",boring:"Kjedelig",yeah:"Sebart ;)",interview:"Intervju",watchClip:"Se videoklippet",tableLastUpdated:"Sist oppdatert: "},video:{strings:{playstate:{0:"Laster...",1:"Åpner",2:"Laster...",3:"Spiller",4:"Stoppet",5:"Klipp ferdig",6:"Stoppet.",7:"Slurer",8:"Autoriserer",255:"Venter"},qualityPrefix:"Linjekvalitet: ",quality:{0:"Elendig",1:"Meget dårlig",2:"Dårlig",3:"Grei",4:"Bra",5:"Meget bra",6:"Utmerket",7:"Knallbra"}}},tv:{tableSeasonID:509}};var vgLive={matches:{},interval:40,lastEventId:0,lastReceivedEventTime:0,activeSection:"overview",activeMatch:0,waitingData:{},secondOffset:0,activeLeague:0,activePictureMatch:0,hasLoadedVideos:false,authedFacebook:false,videoLoaded:false,videoIsLoading:false,mutedAutomaticly:false,splashDisplayed:false,lastAuthed:0,vip:!!window.location.host.match(/vip\.vglive\.no/),isdev:!!window.location.href.match(/index\-dyn\.php/),compressedVersion:compressedVersionJS||$random(1,1337),bigPlayerActive:false,xitiVideoData:false,videoLeagueId:0,defaultShowMatchRtt:0,makeReadableDateTime:function(a){if(a<1000000000000){a=a*1000}var b=new Date();var e=new Date();b.setTime(a);if(b.toLocaleDateString()==e.toLocaleDateString()){return b.getHours().pad(2,"0")+":"+b.getMinutes().pad(2,"0")}return b.getDate().pad(2,"0")+"."+(b.getMonth()+1).pad(2,"0")+" "+b.getHours().pad(2,"0")+":"+b.getMinutes().pad(2,"0")},calculateTimeOffset:function(a){if(typeof a=="string"){if(a.length){a=parseInt(Date.parse(a)/1000,10)}else{a=parseInt($time()/1000,10)}}var b=parseInt(new Date().getTime()/1000,10);var c=a-b;if(isNaN(c)){c=0}this.secondOffset=c},calculateClock:function(f){var d={minutes:0,seconds:0},j=new Date(),c=parseInt(j.getTime()/1000,10);if(!f.start){return d}if(!f.time){f.time="00:00:00"}if(!f.adjusted){f.adjusted=0}var b=f.time.split(":");var k=parseInt(b[0],10),e=parseInt(b[1],10),h=parseInt(b[2],10);if(!f.paused&&f.adjusted>0&&f.adjusted>=f.start){var l=c-f.adjusted+vgLive.secondOffset;var m=Math.floor(l/3600);if(m>0){l-=3600*m}var g=Math.floor(l/60);if(g>0){l-=60*g}var a=l;k+=m;e+=g;h+=l}e+=k*60;if(e<0){e=0}if(h<0){h=0}return{minutes:e,seconds:h}},loadVideoFunctions:function(c,b,e,f,a){vgLive.requestedVideo={size:c,url:b,title:e,start:f,end:a};if(c=="small"){$("#smallVideoBox").show();$("#small_player_container .loadText").text("Laster inn videospiller...");$("#small_player_container").append(d).parents(".videoContainer").addClass("bigAjaxLoad")}else{var d=$("<div />").addClass("loadText").text("Laster inn videospiller...");$("#large_player_container").append(d).parents(".videoContainer").addClass("bigAjaxLoad");$("#bigVideo").show(0)}if(vgLive.videoIsLoading){return}vgLive.videoIsLoading=true;window.MN_LoadLibIntoDOM=true;if((!vgLive.isdev)){vgLive.loadScript("http://player.movenetworks.com/pub/C92579EE/llmovenetworks.js",function(){vgLive.loadScript("http://player.movenetworks.com/pub/C92579EE/widget.js",function(){vgLive.loadScript(liveConfig.staticPath+"js/video/compressed.js?"+vgLive.compressedVersion,function(){vgLive.videoLoaded=true;var g=vgLive.requestedVideo;if(g.size=="small"){vgLive.showSmallVideo(g.url,g.title,g.start,g.end)}else{vgLive.showBigVideo(g.url,g.title,g.start,g.end)}vgLive.requestedVideo=null})})},{sl:"no"})}else{vgLive.loadScript("http://player.movenetworks.com/pub/C92579EE/llmovenetworks.js",function(){vgLive.loadScript("http://player.movenetworks.com/pub/C92579EE/widget.js",function(){vgLive.loadScript("js/video/dvr.js",function(){vgLive.loadScript("js/video.js",function(){vgLive.videoLoaded=true;var g=vgLive.requestedVideo;if(g.size=="small"){vgLive.showSmallVideo(g.url,g.title,g.start,g.end)}else{vgLive.showBigVideo(g.url,g.title,g.start,g.end)}vgLive.requestedVideo=null})})})},{sl:"no"})}},loadScript:function(c,f,e){var d=window.document.createElement("script");d.type="text/javascript";d.src=c;if(e){for(var b in e){d.setAttribute(b,e[b])}}if(f){var a=function(g,h){g(h);this.onreadystatechange=null;this.onload=null;this.onerror=null};d.onreadystatechange=function(){if(d.readyState=="loaded"||d.readyState=="complete"){a(f,c)}};d.onload=function(){a(f,c)};d.onerror=function(){a(f,c)}}window.document.getElementsByTagName("head")[0].appendChild(d)},startUpdateTimer:function(){$(this).everyTime(this.interval+"s","updateTimer",this.queryForUpdates)},stopUpdateTimer:function(){$(this).stopTime("updateTimer")},showOverview:function(){vgLive.activeSection="overview";if(vgLive.activeMatch){vgLive.moveMatchBarToOverview();vgLive.activeMatch=0}$("#liveResults").fadeIn(500);$("#article").hide(0);$("#textLive").empty().hide(0);$("#startSetup").hide(0);$("#searchResult").hide(0);$("#myPage").hide(0);return false},moveMatchBarToOverview:function(){if(!vgLive.activeMatch){return}var g=vgLive.activeMatch,a=vgLive.matches[g];var f=$("#match"+g);var c=a.timeline,d=$(c).clone().prependTo(f);var e=a.resultBar,b=$(e).clone().prependTo(f);vgLive.matches[g].resultBar=b;vgLive.matches[g].timeline=d;vgLive.matches[g].timelineBar=d.find("img.timelineBar")},hideContent:function(){$("#article").hide(0);$("#liveResults").hide(0);$("#oddsenLive").hide(0);$("#myPage").hide(0);$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();$("#splashContainer").hide();vgLive.hideOneLineLoginBox()},loadLiveScore:function(){vgLive.hideContent();vgLive.activeMatch=0;$("#textLive").fadeIn(500).html('<iframe frameborder="0" src="http://www.livescore.betradar.com/livescore/vg/"></iframe>')},showOddsenLiveMatch:function(a){vgLive.rtt.tabs("select",1);window.scroll(0,0);var c=isNaN(a)&&this.href?this.href.substr(this.href.lastIndexOf("#")+1):a+"";vgLive.hideContent();$("#textLive").hide();var b="http://vg.jumpmediagroup.no/default.asp?Link="+c+"&Mal=13&CID=2&vd=p";$("#oddsenLive").fadeIn(500).html('<iframe height="3500" width="100%" frameborder="0" src="'+b+'" />');vgLive.showOddsenLiveRightColumn(c);return false},showOddsenLiveRightColumn:function(a){$("#factsTab").html('<iframe id="oddsenlivematchdata" name="oddsenlivematchdata" src="http://vg.jumpmediagroup.no/MatchStats.aspx?matchid='+a+'" frameborder="0" width="100%" height="1070" allowtransparency="true">');vgLive.setLocation({oddsenlive:"match"+a})},showMatch:function(f){vgLive.rtt.tabs("select",vgLive.defaultShowMatchRtt);window.scroll(0,0);var d=isNaN(f)&&this.href?this.href.substr(this.href.lastIndexOf("#")+1):f+"";$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();$("#article").hide(0);$("#myPage").hide(0);$("#liveResults").hide(0);$("#oddsenLive").hide(0);$("#searchResult").hide(0);if(vgLive.splashDisplayed){$("#splashContainer").hide(0);vgLive.hideOneLineLoginBox()}if(d=="livescore"){vgLive.loadLiveScore();return false}if(d.substr(0,2)=="br"){vgLive.activeMatch=d;vgLive.hideContent();$("#textLive").html('<iframe frameborder="0" src="http://www.stats.betradar.com/livescore/vg/?page=json_details&language=no&matchid='+d.substr(2)+'"></iframe>').fadeIn(500);return false}if(d.substr(0,2)=="bs"){vgLive.activeMatch=d;$("#article").hide(0);$("#liveResults").hide(0);$("#myPage").hide(0);$("#textLive").html('<iframe frameborder="0" src="http://www.stats.betradar.com/statistics/vg/?treemenu=false&language=no&tournamentid='+d.substr(2)+'"></iframe>').fadeIn(500);return false}if(!vgLive.matches[d]){return vgLive.requestMatchInfo(d,false,true)}var g=vgLive.matches[d];g.eventCounterMatchContainer=[0];var j=vgLive.parseLocation();if(!j.rtb||j.rtb==0){vgLive.setLocation({rtb:0})}$("#textLive").hide(0);if(liveConfig.overviewEnabled&&vgLive.activeSection=="match"){vgLive.moveMatchBarToOverview()}vgLive.activeSection="match";vgLive.activeMatch=d;vgLive.requestNewLeagueTable(g.season);if(g.season){var l=0;$("#leagueSwitcher option").each(function(){if($(this).attr("value")==g.season){$("#leagueSwitcher").attr("selectedIndex",l);return}l++})}var e=$("#textLive").empty();if(liveConfig.overviewEnabled){var b=g.resultBar,q=$(b).clone().prependTo(e),a=$(b).remove();var p=g.timeline,h=$(p).clone().appendTo(e),n=$(p).remove();vgLive.matches[d].resultBar=q;vgLive.matches[d].timeline=h;vgLive.matches[d].timelineBar=h.find("img.timelineBar");g.buildExtras(true).appendTo(e);var k=g.buildEventList().appendTo(e)}else{g.alertEvents=false;g.buildElements(e)}if(!g.hasAllEvents){$.getJSON(liveConfig.matchURL+"?match="+d,vgLive.parseAllEvents)}else{g.addEvents(g.events,true);g.postEventLoadCheck()}g.alertEvents=true;$("#textLive").fadeIn(500);vgLive.setLocation({match:d});vgLive.splashDisplayed=true;return false},showLastPlayedMatch:function(){$.getJSON(liveConfig.lastPlayedMatchURL,vgLive.parseLastPlayedMatch);return false},parseLastPlayedMatch:function(a){if(a.id){vgLive.showMatch(a.id);$("#splashContainer").show();$("#oneLineLoginBoxContainer").show()}},requestMatchInfo:function(g,a,b){var f,d=(b)?"&getEvents=true":"";if(a){for(var c in a){f=a[c];break}}if(f&&vgLive.waitingData[g]){return $merge(vgLive.waitingData[g],f)}else{if(f){vgLive.waitingData[g]=f}}$.getJSON(liveConfig.matchInfoURL+"?matchID="+g+d,vgLive.parseMatchInfo);return false},parseMatchInfo:function(b){for(var c in b){var d=(b[c].events)?true:false;var a=new Match(c,b[c],d);if(b[c].finished){a.handleMatchFinished()}if(d){vgLive.showMatch(c)}}},queryForUpdates:function(){$.getJSON(liveConfig.eventURL+"?le="+parseInt(vgLive.lastReceivedEventTime,10),vgLive.parseEvents)},parseEvents:function(a){if(!a){return}if(a.latest){vgLive.lastReceivedEventTime=parseInt(a.latest,10)}if(a.settings){vgLive.parseSettings(a.settings)}if(a.clock){vgLive.parseClockData(a.clock)}if(a.videos){vgLive.parseNewVideos(a.videos)}if(a.events){for(var b in a.events){if(isNaN(b)){vgLive.handleBetradarEvents(b,a.events[b]);continue}if(!vgLive.matches[b]){vgLive.requestMatchInfo(b,a.events)}else{vgLive.matches[b].parseEvents(a.events[b],true)}}}if(a.ie){vgLive.addToImportantEvents(a.ie)}},parseClockData:function(d){for(var e in d){if(!vgLive.matches[e]){continue}var f=d[e];var b=vgLive.calculateClock(f);var a=vgLive.matches[e];if(a.minutesPlayed!=b.minutes){a.setTimeline(b.minutes)}a.minutesPlayed=b.minutes;a.secondsPlayed=b.seconds;if(f.show){a.showClock()}else{a.hideClock()}}},parseAllEvents:function(a){for(var b in a){if(!vgLive.matches[b]){continue}vgLive.matches[b].alertEvents=false;vgLive.matches[b].parseEvents(a[b]);vgLive.matches[b].alertEvents=true;vgLive.matches[b].hasAllEvents=true;vgLive.matches[b].postEventLoadCheck()}},parseSettings:function(a){if(a.interval&&(a.interval!=vgLive.interval)){vgLive.interval=a.interval;vgLive.stopUpdateTimer();vgLive.startUpdateTimer()}if(a.eventUrl&&(a.eventUrl!=liveConfig.eventUrl)){liveConfig.eventUrl=a.eventUrl}},addToImportantEvents:function(a){for(var k in a){var g=a[k],o="",n="",j="Big";if(g.id&&vgLive.matches[g.mid]&&vgLive.matches[g.mid].events[g.id]){var d=vgLive.matches[g.mid],l=d.events[g.id];var p=l.text.substitute(d.metadata);if(l.video&&l.video.id){p='<a href="#'+l.video.id+'" class="playClip">Se klipp</a>'+p}if(d.hasLiveVideo){if(l.type=="pause"){p='Pause<br /><a href="#'+g.mid+'" class="playHighlights">Se alle h&oslash;ydepunktene fra 1. omgang</a>'}else{if(l.type=="finished"){p='Kampen er ferdig<br /><a href="#'+g.mid+'" class="playHighlights">Se alle h&oslash;ydepunktene her</a>'}}}o="VGLive";var h={type:l.type,time:l.time,match:$("<a />").attr({href:"#"+d.id}).click(vgLive.showMatch).text(d.hometeam.name+" - "+d.awayteam.name),score:d.hometeam.score+" - "+d.awayteam.score,text:p};var c=' id="iee'+g.id+'"'}else{if(g.type_id==2&&g.title){o=(!g.icon?"iconVGnett":g.icon);if(g.sticky){j="ExtraBig";o="iconSticky"}var h={time:"",match:g.title,score:"",text:g.text};var c="",n=g.title}else{continue}}if(o=="VGLive"){var q='<li class="iconBig iconVGlive"> </li><li class="minute">'+(!h.time?"*":h.time.pad(2,"0"))+'</li><li class="match">'+n+'</li><li class="score">'+h.score+'</li><li class="text"><div class="icon icon'+h.type.ucFirst()+'"> </div>'+h.text+"</li>"}else{var q='<li class="icon'+j+" "+o+'"> </li><li class="text">';if(n.length){q+="<h3>"+n+"</h3>"}q+=h.text+"</li>"}var l=$("#ie"+k);if(l.length){l.html("<ul"+c+' class="clearfix">'+q+"</ul>")}else{l=$("<li />").attr("id","ie"+k).html("<ul"+c+' class="clearfix">'+q+"</ul>");if(g.sticky){$("#importantEvents .eventList").prepend(l)}else{var b=$("#importantEvents .eventList").children("li[class!=sticky]");if(b.length){l.insertBefore(b.eq(0))}else{$("#importantEvents .eventList").append(l)}}}vgLive.matchInternalLinks(l);if(g.sticky){l.addClass("sticky")}else{l.removeClass("sticky")}l.find("li.match").append(h.match)}},refreshScoreService:function(){$("#scoreServiceBox").empty().html("Oppdaterer...").load(liveConfig.scoreServiceURL+"?mode=update",null,function(){$("#scoreServiceBox").find("a.showTextLive").click(vgLive.showMatch);$("#scoreServiceBox").find("LI.drawer UL").hide();$("#scoreServiceBox").find("H2.drawer-handle").click(function(){$(this).toggleClass("open").next().slideToggle();return false})})},requestNewLeagueTable:function(a,b){if(a==vgLive.activeLeague&&!b){return}$.getJSON(liveConfig.tableURL+"?sid="+a,vgLive.updateLeagueTable);vgLive.activeLeague=a},updateLeagueTable:function(h){if(!h.length){return}var k=h.shift();var f="",j="",b="",m="",a,l;for(a=0;a<h.length;a++){j=a.isEven()?' class="even"':"";if(h[a][0]=="d"){b="Down";m="Ned "+h[a][1]}else{if(h[a][0]=="u"){b="Up";m="Opp "+h[a][1]}else{b="Side";m="Ingen endring"}}f+="<tr"+j+'><td><img src="img/stat'+b+".gif?"+compressedVersionJS+'" alt="'+m+'" title="'+m+'" /></td><td>'+h[a][2]+"</td><td>"+h[a][3]+"</td><td>"+h[a][4]+"</td><td>"+h[a][5]+"</td><td>"+h[a][6]+"</td><td>"+h[a][7]+"</td><td>"+h[a][8]+"</td><td>"+h[a][9]+"</td></tr>"}var g=$("#leagueTable");if(!g.length){return}g.children("caption").text(liveConfig.tips.tableLastUpdated+" "+k);g.children("tbody").html(f)},parseLocation:function(d){if(!d){d=window.location.hash}if(d.substr(0,2)=="#:"){d=d.substr(2)}if(!d){return{}}var b=d.split(":"),c={},a="";while(b.length){a=b.shift();val=b.shift();c[a]=isNaN(val)?val:parseFloat(val)}return c},setLocation:function(e,c){var f=vgLive.parseLocation();if(e.eliteguiden||e.oddsenlive||e.livescore){f={}}var d=$merge(f,e);if(!e.eliteguiden){d.eliteguiden=null}if(!e.oddsenlive){d.oddsenlive=null}if(!e.livescore){d.livescore=null}var b="#";for(var a in d){if(d[a]!=null&&d[a]!=false){b+=":"+a+":"+d[a]}}window.location.hash=b;if(e.match){if(d.rtb===0){vgLive.getMatchPictures(d.match)}if(d.rtm===0){vgLive.requestNewLeagueTable(d.match)}if(d.rtt===1){vgLive.getMatchFacts()}}else{if(e.rtb===0){vgLive.getMatchPictures(d.match||0)}else{if(e.rtm===0){vgLive.requestNewLeagueTable(d.match||0)}else{if(e.rtm===1){vgLive.getActiveDiscussions()}else{if(e.rtt===1){vgLive.getMatchFacts()}else{if(e.rtt==2&&liveConfig.useFacebook){vgLive.showFacebookChat()}}}}}}if(c){vgLive.adjustPage(d)}},handleBetradarEvents:function(e,c){var b=$("#latestGoals ul.eventList");for(var f in c){if(!c[f].team_h||!c[f].team_a||c[f].type!="goal"){continue}var d=c[f].country.replace(" ","").replace("&","").replace("-","").toLowerCase().ucFirst();var a='<ul class="clearfix" title="'+c[f].country+", "+c[f].league+'"><li class="flag flag'+d+'"> </li><li class="minute">'+c[f].time.pad(2,"0")+'</li><li class="match"><a href="#'+e+'" class="process">'+c[f].team_h+" - "+c[f].team_a+'</a></li><li class="score">'+c[f].score_h+" - "+c[f].score_a+"</li></ul>";if(b.children().length>19){b.children(":last").remove()}b.prepend($("<li />").attr("id","lg"+f).html(a))}b.find("a.process").removeClass("process").click(vgLive.showMatch)},adjustPage:function(d){if(!d){var d=vgLive.parseLocation()}if(d.mypage){vgLive.loadMyPage("page="+d.mypage)}if(d.match){vgLive.showMatch(d.match)}if(typeof d.rtt!="undefined"){vgLive.rtt.tabs("select",parseInt(d.rtt,10))}if(typeof d.rtb!="undefined"){vgLive.rtb.tabs("select",parseInt(d.rtb,10))}if(typeof d.lt!="undefined"){vgLive.lt.tabs("select",parseInt(d.lt,10))}if(d.lv||d.sv){var b=d.lv||d.sv,c;if(b.substr(0,1)=="m"){c="match"}else{if(b.substr(0,1)=="g"){c="goals"}else{if(b.substr(0,1)=="h"){c="highlights"}else{if(b.substr(0,1)=="mg"){c="match_goals"}else{c="clip"}}}}var e=parseInt(b.getNumeric(),10);if(c=="goals"){e=b.substr(1,b.length-1)}}if(d.lv){vgLive.authAndPlayClip(e,c,"large")}if(d.sv){vgLive.authAndPlayClip(e,c,"small")}if(d.quiz){vgLive.loadQuiz()}if(d.livescore){vgLive.loadLiveScore()}if(d.oddsenlive){if(d.oddsenlive=="load"){vgLive.showOddsenLive()}else{vgLive.showOddsenLiveMatch(d.oddsenlive.getNumeric())}}if(d.eliteguiden){$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();$("#myPage").hide();var a=d.eliteguiden.getNumeric();if(d.eliteguiden.substr(0,7)=="matches"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/matches.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playHighlights").click(vgLive.playHighlights).click(vgLive.showMatch);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"matches"+a})}else{if(d.eliteguiden.substr(0,9)=="topscorer"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/topscorer.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"topscorer"+a})}else{if(d.eliteguiden.substr(0,6)=="assist"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/topassist.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"assist"+a})}else{if(d.eliteguiden.substr(0,6)=="points"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/pointsleague.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"points"+a})}else{if(d.eliteguiden.substr(0,6)=="borsen"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/borsen.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"borsen"+a})}else{if(d.eliteguiden.substr(0,12)=="dommerBorsen"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/refereeborsen.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"dommerBorsen"+a})}else{if(d.eliteguiden.substr(0,9)=="livetable"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/livetable.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.roundTable").click(vgLive.borsenRoundTables);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"livetable"+a})}else{if(d.eliteguiden.substr(0,7)=="chances"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/chances.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"chances"+a})}else{if(d.eliteguiden.substr(0,9)=="attendees"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/attendees.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenAttBy").click(vgLive.borsenAttBy);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"attendees"+a})}else{if(d.eliteguiden.substr(0,5)=="cards"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/cards.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenCardsBy").click(vgLive.borsenCardsBy);vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"cards"+a})}else{if(d.eliteguiden.substr(0,14)=="goalstatistics"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/goalstatistics.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenGoalsBy").click(vgLive.borsenGoalsBy);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"goalstatistics"+a})}else{if(d.eliteguiden.substr(0,14)=="backwardsgoals"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/backwardsgoals.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"backwardsgoals"+a})}else{if(d.eliteguiden.substr(0,12)=="penaltygoals"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/penaltygoals.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenPenaltyBy").click(vgLive.borsenPenaltyBy);vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"penaltygoals"+a})}else{if(d.eliteguiden.substr(0,13)=="penaltymisses"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/penaltygoals.php?viewBy=viewByMiss&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenPenaltyBy").click(vgLive.borsenPenaltyBy);vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"penaltymisses"+a})}else{if(d.eliteguiden.substr(0,10)=="teampoints"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/teampoints.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"teampoints"+a})}else{if(d.eliteguiden.substr(0,10)=="playerinfo"){$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/playerinfo.php?playerId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch);$("#seasonList").tablesorter({headers:{0:{sorter:"noShortDates"}}});$("#careerList").tablesorter({headers:{5:{sorter:"digit"}}})});$("#factsTab").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/playersteaminfo.php?playerId="+a,null,function(){$("#factsTab").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"playerinfo"+a,rtt:"1"},false)}}}}}}}}}}}}}}}}}},isTimelineEvent:function(a){switch(a){case"yellowcard":case"secondYellow":case"redcard":case"goal":case"backwardsGoal":case"penaltyGoal":case"goal":return true;default:return false}},isVideoTimelineEvent:function(a){switch(a){case"exclamationmark":case"injury":case"whistle":return true;default:return false}},isGoalEvent:function(a){switch(a.toLowerCase()){case"penaltygoal":case"backwardsgoal":case"goal":return true;default:return false}},pling:function(){soundManager.play("pling")},getActiveDiscussions:function(){$.ajax({dataType:"jsonp",jsonp:"callback",url:liveConfig.latestDiscussionsURL,callback:"vgLive.setActiveDisucssions",success:vgLive.setActiveDiscussions})},setActiveDiscussions:function(d){var b='<p><h3>Siste diskusjoner fra <a href="http://vgd.no">VG Nett Debatt:</a></h3></p>-';b+='<table class="football" cellspacing="0" id="discussionsTable" width="100%"><thead><tr><th>Tittel</th><th class="center" width="10%">Svar</th></tr></thead><tbody>';for(var a=0;a<d.length;a++){var e=(a%2>0)?"":' class="even"';b+="<tr"+e+'><td><a href="'+d[a].link+'" target="_blank">'+d[a].title+'</a></td><td class="center">'+d[a].postCount+"</td></tr>"}b+="</tbody></table>";$("#discussionTab > div").html(b)},getMatchFacts:function(){if(!vgLive.activeMatch||vgLive.activeMatch=="0"){return false}$("#factsTab").load(liveConfig.matchFactsURL+"?match="+vgLive.activeMatch,null,function(){$("#factsTab").find("a.playClip").click(vgLive.playClip);$("#factsTab").find("a.playerInfo").click(vgLive.playerInfo)});return false},getMatchPictures:function(a){if(!a){a=vgLive.activeMatch}if(vgLive.activePictureMatch==a){return}$("#picturesTab").load(liveConfig.matchImagesURL+"?match="+a,null,function(){$("#slides01").cycle({fx:"fade",speed:"fast",timeout:0,next:"#next2",prev:"#prev2"});$("#slides01 a.thickbox").click(function(){var c=this.title||this.name||null;var b=this.href||this.alt;var d=this.rel||false;tb_show(c,b,d);this.blur();return false})});vgLive.activePictureMatch=a},parseVideos:function(d){var a=$("#videoTab ul.eventList");var c=a.children().length;for(var j in d){var b=d[j];var n=(!b.text)?"":b.text;var g=b.min;if(b.eid&&b.match&&vgLive.matches[b.match]&&vgLive.matches[b.match].events[b.eid]){var k=vgLive.matches[b.match].events[b.eid];var g=k.time;if(!n.length){n=k.text}b.id=j;k.video=b;var m={};m[b.eid]=k;vgLive.matches[b.match].parseEvents(m)}var f=$("#video"+j);var l=(vgLive.isGoalEvent(b.icon))?" goal":"";var h='<ul class="clearfix"><li class="icon icon'+b.icon.ucFirst()+'"></li><li class="minute">'+((g==0)?"*":g.pad(2,"0"))+'</li><li class="match"><a href="#'+b.match+'" class="showTextLive">'+b.team_h+" - "+b.team_a+'</a></li><li class="score">'+b.score_h+" - "+b.score_a+'</li><li class="text'+l+'"><a href="#" class="playClip">Se klipp</a>'+n+"</li></ul>";if(f.length){f.html(h);f.find("a.playClip").click(vgLive.authAndPlayClip);f.find("a.showTextLive").click(vgLive.showMatch);f.fadeOut(500).fadeIn(500);continue}var f=$("<li />").attr({id:"video"+j,"class":"clip"}).html(h).data("clip",j);f.find("a.playClip").click(vgLive.authAndPlayClip);f.find("a.showTextLive").click(vgLive.showMatch);if(a.children().length>=liveConfig.videoListLimit){a.children(":last").remove()}if(c>1){a.prepend(f);f.fadeOut(500).fadeIn(500).blink("#FCFDCD","transparent",5,500)}else{a.prepend(f)}}vgLive.hasLoadedVideos=true},parseNewVideos:function(a){for(var b in a){vgLive.parseVideos(a[b])}},schedulePlay:function(b){var a=(typeof b=="object")?b:false;if(!a){return false}var c=$(this).parents("div").parents("li").attr("id").getNumeric();if(!c){c=$(this).parents("div").parents("li").attr("href").substr(this.href.lastIndexOf("#")+1)}if(c){$("#playerChoice :checked").attr("checked",false);$("#playerChoice .smallRadio").get(0).checked=true;vgLive.authAndPlayClip(c,"match","large")}},getMatchNameFromSchedule:function(b){var a=$("#scheduleMatch"+b);return(!a.length)?"":a.find("a").html().trim().replace(/<([a-z][a-z0-9]*)[^>]*>(.*?)<\/\1>/ig,"").replace(/\s+/," ").replace(/\s*<br\s*\/?>\s*/ig," - ")},authAndPlayClip:function(c,b,a){vgLive.xitiVideoData=false;if(Math.round($time()/1000)-vgLive.lastAuthed<=2){return}vgLive.lastAuthed=Math.round($time()/1000);var a=a||$("#playerChoice :checked").get(0).value;if(!b){b=!isNaN(c)?"match":"clip"}if(b=="clip"&&isNaN(c)){var e=$(this).parents("li.clip").attr("id").getNumeric()}else{if(b=="goals"){var e=c}else{var e=parseInt(c,10)}}window.scroll(0,0);var d=(b=="match"&&vgLive.matches[e])?vgLive.matches[e].hometeam.name+" - "+vgLive.matches[e].awayteam.name:$("#video"+e+" a.showTextLive").text();if(b=="clip"){d+=" ("+$("#video"+e+" .minute").text()+" min)"}if(d.trim()==""){d=vgLive.getMatchNameFromSchedule(e)}$.getJSON(liveConfig.videoAuthURL+"?type="+b+"&id="+e,function(g){if(g.error){switch(g.message){case"ClipDoesNotExist":return alert("Klippet eksisterer ikke.");case"LiveStreamDoesNotExist":return alert("Live stream eksisterer ikke.");case"LiveStreamNotReady":return alert("Kampen er ikke klar enda. Prøv igjen senere.");case"NotLoggedIn":case"UserNotAuthorizedForStream":case"UserNotAuthorizedForClip":var j=(a=="small")?"sv":"lv";return vgLive.showPurchaseBox(e,b,j)}}if(!g.source){return}if(!g.start&&g.start!==0){g.start=null}if(!g.duration){g.duration=null}$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();if(g.title){d=g.title}if(g.xiti){var f=g.xiti;vgLive.xitiVideoData=f;vgLive.xitiRealMedia(f)}if(g.leagueId){vgLive.videoLeagueId=g.leagueId}vgLive.adjustPageContent();var h=false;if(b=="clip"){h="c"+e}else{if(b=="goals"){h="g"+e}else{if(b=="highlights"){h="h"+e}else{if(b=="match_goals"){h="mg"+e}else{if(b=="match"){h="m"+e}}}}}if(a=="small"){vgLive.showSmallVideo(g.source,"clip"+e,g.start,g.duration);$("#smallVideoBox .boxHeader span").text(d);if(h){vgLive.setLocation({sv:h})}}else{if(a=="large"){vgLive.showBigVideo(g.source,"clip"+e,g.start,g.duration);$("#bigVideo .boxHeader span").text(d);if(h){vgLive.setLocation({lv:h})}}}});return false},adjustPageContent:function(){if(vgLive.videoLeagueId==6){$("#vgLiveSmallAd").hide();$("#showOddsenLiveBox").hide();$("#topAdNormal").hide();$("#adsRightNormal").hide();$("#topAdIframe").html('<iframe width="1010" height="50" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" src="http://ads.vg.basefarm.net/RealMedia/ads/adstream_sx.ads/www.vglive.no/viasat@Top2"></iframe>').show();$("#adsRightIframe").html('<iframe width="180" height="1000" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" src="http://ads.vg.basefarm.net/RealMedia/ads/adstream_sx.ads/www.vglive.no/viasat@Right1"></iframe>').show()}else{$("#showOddsenLiveBox").show();$("#adsRightIframe").empty().hide();$("#topAdIframe").empty().hide();$("#topAdNormal").show();$("#adsRightNormal").show()}},xitiRealMedia:function(a){if(!a.A){return}window.top.xt_rm(a.A,a.B,a.C,a.D,a.E,a.F,a.G,a.H,a.I,a.J,a.K,a.L,a.M,a.N)},showBigVideo:function(b,c,d,a){if(!vgLive.videoLoaded){return vgLive.loadVideoFunctions("big",b,c,d,a)}$("#tickerContainer").show(0);$("#liveReferrals").hide(0);$("#bigVideo").show(0);if(!vgLive.bigVideo){vgLive.bigVideo=new vgVideo({container:"large_player_container",controlContainer:"largeVid",width:"100%",height:"100%",useDvr:true});$(document.body).everyTime("10ms","checkForDvr",function(){if(!a&&vgLive.bigVideo.loadVideo(b,d)){$(document.body).stopTime("checkForDvr")}else{if(a&&vgLive.bigVideo.player){$(document.body).stopTime("checkForDvr");vgLive.bigVideo.playClip(b,c,d,a)}}});$("#small_player_container").find(".loadText").remove();$("#large_player_container").parents(".videoContainer").removeClass("bigAjaxLoad");return false}$(this).oneTime("20ms","largeVideoWait",function(){if(!a){return vgLive.bigVideo.loadVideo(b,d)}return vgLive.bigVideo.playClip(b,c,d,a)});return false},showSmallVideo:function(b,c,d,a){if(!vgLive.videoLoaded){return vgLive.loadVideoFunctions("small",b,c,d,a)}$("#smallVideoBox").show(0);if(!vgLive.smallVideo){vgLive.smallVideo=new vgVideo({container:"small_player_container",controlContainer:"smallVid",width:"100%",height:"100%",useDvr:true,dvrOptions:{prevNext:false}});vgLive.muteSmallIfLargeIsPlaying();$(document.body).everyTime("10ms","checkForDvrSmall",function(){if(!a&&vgLive.smallVideo.loadVideo(b,d)){$(document.body).stopTime("checkForDvrSmall")}else{if(a&&vgLive.smallVideo.player){$(document.body).stopTime("checkForDvrSmall");vgLive.smallVideo.playClip(b,c,d,a)}}});$("#small_player_container").find(".loadText").remove();$("#small_player_container").parents(".videoContainer").removeClass("bigAjaxLoad");return false}vgLive.muteSmallIfLargeIsPlaying();$(this).oneTime("20ms","smallVideoWait",function(){if(!a){return vgLive.smallVideo.loadVideo(b,d)}return vgLive.smallVideo.playClip(b,c,d,a)});return false},muteSmallIfLargeIsPlaying:function(){},hideBigVideo:function(){if(vgLive.bigVideo){vgLive.bigVideo.stop()}$("#playerChoice :checked").attr("checked",false);$("#playerChoice .smallRadio").get(1).checked=true;$("#bigVideo").hide(0);vgLive.setLocation({lv:false});return false},hideSmallVideo:function(){if(vgLive.smallVideo){vgLive.smallVideo.stop()}$("#smallVideoBox").hide(0);vgLive.setLocation({sv:false});return false},showOddsenLive:function(){vgLive.hideContent();$("#oddsenLive").fadeIn(500).html('<iframe height="3500" width="100%" frameborder="0" src="http://vg.jumpmediagroup.no/default.htm" />');vgLive.setLocation({oddsenlive:"load"});return false},showLoginForm:function(){$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();vgLive.loadMyPage("page=login",850)},showShopPage:function(){$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();vgLive.loadMyPage("page=products&pid=21&cid=0&method=cc",550)},showProfilePage:function(){$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();vgLive.loadMyPage("page=profile",500)},showHelpForm:function(){$("#vglivePlussAd").hide();$("#vgLiveSmallAd").show();vgLive.loadMyPage("page=faq",900)},showEditProfilePage:function(){vgLive.loadMyPage("page=editprofile",850)},showRegisterForm:function(){vgLive.loadMyPage("page=register",830)},showLostPassword:function(){vgLive.loadMyPage("page=lostpassword",300)},showHistory:function(){vgLive.loadMyPage("page=history")},showProducts:function(){vgLive.loadMyPage("page=products",1230)},showPurchaseBox:function(e,c,b){$("#vglivePlussAd").hide();$("#vgLiveSmallAd").hide();var a=new String(window.top.location.hash).substring(2);var d="page=products&id="+e+"&type="+c+"&size="+b+"&redirhash="+a;vgLive.loadMyPage(d,850)},closePurchaseBox:function(){$("#purchaseBox").empty().hide();$("#vgLiveSmallAd").show()},hideMyPage:function(){$("#myPage").empty().hide(0)},loadMyPage:function(b,a){b=b||"";a=a||500;vgLive.hideOneLineLoginBox();$("#myPage").show();$("#myPage").fadeIn(500).html('<iframe allowtransparency="true" height="'+a+'" frameborder="0" src="auth/mypage.php?'+b+'" />')},loadQuiz:function(){vgLive.hideOneLineLoginBox();var a=1000;$("#quiz").show();$("#quiz").fadeIn(500).html('<iframe allowtransparency="true" height="'+a+'" noborder="true" frameborder="0" src="auth/quiz.php" />')},hideQuiz:function(){$("#quiz").empty().hide(500)},loadShop:function(b,a){b=b||"";a=a||500;$("#myPage").fadeIn(500).html('<iframe allowtransparency="true" height="'+a+'" frameborder="0" src="auth/mypage.php?'+b+'" />')},closeMyPage:function(){$("#myPage").empty().hide(500)},hideOneLineLoginBox:function(){$("#oneLineLoginBoxContainer").hide()},refreshLoginBox:function(){$("#loginBox").attr("src",$("#loginBox").attr("src"))},startCleanupTimer:function(){$(vgLive).everyTime(liveConfig.cleanupInterval+"s","cleanupTimer",vgLive.requestCleanupData)},requestCleanupData:function(){return initReq=jQuery.ajax({type:"GET",url:liveConfig.initURL,beforeSend:function(a){a.onreadystatechange=function(){if(a.readyState!=4){return}vgLive.calculateTimeOffset(a.getResponseHeader("Date"))}},success:vgLive.cleanUp,dataType:"json"})},hasActiveLink:function(a){var a=a||vgLive.parseLocation();return(a.match||a.eliteguiden||a.oddsenlive||a.livescore||a.lv||a.sv||a.mypage)?true:false},cleanUp:function(e){if(e.settings){if(e.settings.interval&&vgLive.interval!=e.settings.interval){vgLive.interval=e.settings.interval;vgLive.stopUpdateTimer();vgLive.startUpdateTimer()}if(e.settings.eventUrl){liveConfig.eventURL=e.settings.eventUrl}}if(e.matches){for(var f in e.matches){if(!vgLive.matches[f]){new Match(f,e.matches[f]);continue}$("#scheduleMatch"+f+" .home").html(e.matches[f].hometeam.score+"");$("#scheduleMatch"+f+" .away").html(e.matches[f].awayteam.score+"");if(e.matches[f].clock){var d={};d[f]=e.matches[f].clock}if(vgLive.matches[f].hasLiveVideo!=e.matches[f].hasLiveVideo){vgLive.matches[f].hasLiveVideo=e.matches[f].hasLiveVideo;if(vgLive.activeMatch==f){$(vgLive.matches[f].extras).replaceWith(vgLive.matches[f].buildExtras())}if($("#scheduleMatch"+f+" div.playButton").length){$("#scheduleMatch"+f+" div.playButton").remove()}else{$("#scheduleMatch"+f).prepend($("<div />").addClass("playButton").append($('<img src="'+liveConfig.staticPath+"img/play25.gif?"+compressedVersionJS+'" alt="Se kamp" border="0" />').click(vgLive.schedulePlay)))}}var b=(vgLive.matches[f].top!=e.matches[f].topText);var g=(vgLive.matches[f].bottom!=e.matches[f].bottomText);vgLive.matches[f].top=e.matches[f].topText;vgLive.matches[f].bottom=e.matches[f].bottomText;if(vgLive.activeMatch!=f){continue}var c=(e.matches[f].top==null)?"":e.matches[f].top;var a=(e.matches[f].bottom==null)?"":e.matches[f].bottom;if(b){vgLive.matches[f].topText.html(c)}if(g){vgLive.matches[f].bottomText.html(a)}vgLive.matchInternalLinks(vgLive.matches[f].topText);vgLive.matchInternalLinks(vgLive.matches[f].bottomText);$(vgLive.matches[f].resultBar).find(".score").text(e.matches[f].hometeam.score+"-"+e.matches[f].awayteam.score)}}},matchInternalLinks:function(a){a.find("a.showMatch").click(vgLive.showMatch);a.find("a.playGoalsInRound").click(vgLive.playGoalsInRound);a.find("a.playHighlights").click(vgLive.playHighlights);a.find("a.playVideoClip").click(vgLive.playClip);a.find("a.playerInfo").click(vgLive.playerInfo);a.find("a.playClip").click(vgLive.playClip);a.find("a.showOddsenLiveMatch").click(vgLive.showOddsenLiveMatch);a.find("a.showOddsenLive").click(vgLive.showOddsenLive)},handleFacebookLogin:function(a,b){vgLive.authedFacebook=true;$("#facebookTab iframe").remove();var c="lobby";$("#facebookTab").append($("<iframe />").attr({src:liveConfig.facebookChatUrl+"?user="+a+"&key="+b+"&room="+c,height:liveConfig.facebookIframeHeight,width:"100%",scrolling:"no",allowtransparency:"true"}).addClass("noborder"));tb_remove()},handleFacebookLogout:function(){var b=$("#facebookTab iframe").attr("src",liveConfig.facebookLogoutUrl);var a=$.cookie("fb_key")||"";$.cookie("fb_key",null);$.cookie("fb_user",null);$.cookie(a,null);$.cookie(a+"_expires");$.cookie(a+"_session_key",null);$.cookie(a+"_ss",null);$.cookie(a+"_user",null);vgLive.authedFacebook=false;vgLive.rtt.tabs("select",0);b.remove();return false},showFacebookChat:function(b){if(!vgLive.authedFacebook){tb_show("","fbchat/?placeValuesBeforeTB_=savedValues&TB_iframe=true&height=393&width=620&modal=true");return}if(!b){b="lobby"}var a=$("#facebookTab iframe");if(a.length){if(b==getQueryVariable("room",a.attr("src"))){return}a.attr("src",liveConfig.facebookChatUrl+"?room="+b);return}a=$("<iframe />").attr({src:liveConfig.facebookChatUrl+"&room="+b,width:"100%",height:liveConfig.facebookIframeHeight,scrolling:"no",allowtransparency:"true"}).addClass("noborder").appendTo("#facebookTab")},goToFacebookLobby:function(){$("#facebookTab iframe").attr("src",liveConfig.facebookChatUrl+"?room=lobby");return false},borsenViewAll:function(){var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/borsen.php?noHeader=true&viewAll=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"borsen"+a});return false},borsenRoundTables:function(){var a=this.href.substr(this.href.lastIndexOf("#")+1);var b=$(this).text().getNumeric();$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/livetable.php?noHeader=true&seasonClassId="+a+"&roundId="+b,null,function(){$("#eliteguiden").find("a.roundTable").click(vgLive.borsenRoundTables)});vgLive.setLocation({eliteguiden:"borsen"+a});return false},borsenCardsBy:function(){var b=this.href.substr(this.href.lastIndexOf("#")+1);var a=this.id;$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/cards.php?noHeader=true&seasonClassId="+b+"&viewBy="+a,null,function(){$("#eliteguiden").find("a.borsenCardsBy").click(vgLive.borsenCardsBy);$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"cards"+b});return false},borsenAttBy:function(){var b=this.href.substr(this.href.lastIndexOf("#")+1);var a=this.id;$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/attendees.php?noHeader=true&seasonClassId="+b+"&viewBy="+a,null,function(){$("#eliteguiden").find("a.borsenAttBy").click(vgLive.borsenAttBy)});vgLive.setLocation({eliteguiden:"attendees"+b});return false},borsenGoalsBy:function(){var b=this.href.substr(this.href.lastIndexOf("#")+1);var a=this.id;$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/goalstatistics.php?noHeader=true&seasonClassId="+b+"&viewBy="+a,null,function(){$("#eliteguiden").find("a.borsenGoalsBy").click(vgLive.borsenGoalsBy)});vgLive.setLocation({eliteguiden:"goalstatistics"+b});return false},borsenChancesBy:function(){var b=this.href.substr(this.href.lastIndexOf("#")+1);var a=this.id;$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/chances.php?noHeader=true&seasonClassId="+b+"&viewBy="+a,null,function(){$("#eliteguiden").find("a.borsenChancesBy").click(vgLive.borsenChancesBy)});vgLive.setLocation({eliteguiden:"chances"+b});return false},borsenPenaltyBy:function(){var b=this.href.substr(this.href.lastIndexOf("#")+1);var a=this.id;$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/penaltygoals.php?noHeader=true&seasonClassId="+b+"&viewBy="+a,null,function(){$("#eliteguiden").find("a.borsenPenaltyBy").click(vgLive.borsenPenaltyBy);$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"penaltygoals"+b});return false},nrk:function(){soundManager.createSound("ding","audio/pling.mp3");vgLive.pling=vgLive.ding;vgLive.pling()},keys:0,ding:function(){soundManager.play("ding")},borsenMatchesRound:function(){var a=this.href.substr(this.href.lastIndexOf("#")+1);var b="#"+this.id;$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/matches.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playHighlights").click(vgLive.playHighlights).click(vgLive.showMatch);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch);vgLive.eliteGuidenTopMenu();window.scroll(0,$(b).position().top)});vgLive.setLocation({eliteguiden:"matches"+a});return false},eliteGuidenTopMenu:function(){$("a.eliteguidenMatchesTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/matches.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playHighlights").click(vgLive.playHighlights).click(vgLive.showMatch);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch)});vgLive.setLocation({eliteguiden:"matches"+a,rtt:"1"},false);return false});$("a.eliteguidenTopscorerTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/topscorer.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"topscorer"+a});return false});$("a.eliteguidenTopassistTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/topassist.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"assist"+a});return false});$("a.eliteguidenPointsleagueTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/pointsleague.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"points"+a});return false});$("a.eliteguidenBorsenTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/borsen.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.eliteguidenBorsenAll").click(vgLive.borsenViewAll);$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"borsen"+a});return false});$("a.eliteguidenRefereeBorsenTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/refereeborsen.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.eliteguidenBorsenAll").click(vgLive.borsenViewAll)});vgLive.setLocation({eliteguiden:"dommerBorsen"+a});return false});$("a.eliteguidenLiveTableTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/livetable.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.roundTable").click(vgLive.borsenRoundTables)});vgLive.setLocation({eliteguiden:"livetable"+a});return false});$("a.eliteguidenChancesTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/chances.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenChancesBy").click(vgLive.borsenChancesBy)});vgLive.setLocation({eliteguiden:"chances"+a});return false});$("a.eliteguidenAttendeesTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/attendees.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenAttBy").click(vgLive.borsenAttBy)});vgLive.setLocation({eliteguiden:"attendees"+a});return false});$("a.eliteguidenCardsTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/cards.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenCardsBy").click(vgLive.borsenCardsBy);$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"cards"+a});return false});$("a.eliteguidenGoalStatisticsTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/goalstatistics.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenGoalsBy").click(vgLive.borsenGoalsBy)});vgLive.setLocation({eliteguiden:"goalstatistics"+a});return false});$("a.eliteguidenBackwardsGoalsTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/backwardsgoals.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"backwardsgoals"+a});return false});$("a.eliteguidenPenaltyGoalsTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/penaltygoals.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenPenaltyBy").click(vgLive.borsenPenaltyBy);$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"penaltygoals"+a});return false});$("a.eliteguidenPenaltyMissesTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/penaltygoals.php?noHeader=true&viewBy=viewByMiss&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenPenaltyBy").click(vgLive.borsenPenaltyBy);$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"penaltymisses"+a});return false});$("a.eliteguidenTeamPointsTop").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/teampoints.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"teampoints"+a});return false});$("#eliteguidenSeasonSelect").change(function(){window.scroll(0,0);var a=this.value;var b="";$("#eliteguidenSeasonSelect option:selected").each(function(){b=$(this).text()});$("#eliteguidenMenu a").attr("href","#"+a);$("#eliteguidenHeader div").html(b);$("#eliteguiden").show().empty().html('<div class="eliteTopTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/matches.php?noHeader=true&seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playHighlights").click(vgLive.playHighlights).click(vgLive.showMatch);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch)});vgLive.setLocation({eliteguiden:"matches"+a,rtt:"1"},false)})},playerInfo:function(){window.scroll(0,0);var c=this.href.substr(this.href.lastIndexOf("#")+1);var a=this.rel.getNumeric();if(a){var b="data/eliteguiden/playerinfo.php?seasonClassId="+a+"&playerId="+c;var d="data/eliteguiden/playersteaminfo.php?seasonClassId="+a+"&playerId="+c}else{var b="data/eliteguiden/playerinfo.php?playerId="+c;var d="data/eliteguiden/playersteaminfo.php?playerId="+c}$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load(b,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch);$("#eliteguiden").find("a.borsenMatchesRound").click(vgLive.borsenMatchesRound);$("#seasonList").tablesorter({headers:{0:{sorter:"noShortDates"}}});$("#careerList").tablesorter({headers:{5:{sorter:"digit"}}})});vgLive.rtt.tabs("select",1);$("#factsTab").show().load(d,null,function(){$("#factsTab").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"playerinfo"+c,rtt:"1"},false);return false},playHighlights:function(a){var b=isNaN(a)&&this.href?this.href.substr(this.href.lastIndexOf("#")+1):a+"";vgLive.authAndPlayClip(b,"highlights","large");return false},playClip:function(b){var c=isNaN(b)&&this.href?this.href.substr(this.href.lastIndexOf("#")+1):b+"";var a=$("#playerChoice :checked").get(0).value;vgLive.authAndPlayClip(c,"clip",a);return false},playGoalsInRound:function(a){var b=isNaN(a)&&this.href?this.href.substr(this.href.lastIndexOf("#")+1):a+"";vgLive.authAndPlayClip(b,"goals","large");return false},search:function(b){window.scroll(0,0);var g=isNaN(b)&&this.href?this.href.substr(this.href.lastIndexOf("#search-page-")+13):1;var k=escape($("#searchText").attr("value"));var a=(($("#searchLeague").attr("selectedIndex")>0))?$("#searchLeague option").get($("#searchLeague").attr("selectedIndex")).value:0;var c=(($("#searchFromDay").attr("selectedIndex")>0))?$("#searchFromDay option").get($("#searchFromDay").attr("selectedIndex")).value:1;var h=(($("#searchFromMonth").attr("selectedIndex")>0))?$("#searchFromMonth option").get($("#searchFromMonth").attr("selectedIndex")).value:1;var d=(($("#searchFromYear").attr("selectedIndex")>0))?$("#searchFromYear option").get($("#searchFromYear").attr("selectedIndex")).value:1997;var e=(($("#searchToDay").attr("selectedIndex")>0))?$("#searchToDay option").get($("#searchToDay").attr("selectedIndex")).value:31;var j=(($("#searchToMonth").attr("selectedIndex")>0))?$("#searchToMonth option").get($("#searchToMonth").attr("selectedIndex")).value:1;var f=(($("#searchToYear").attr("selectedIndex")>0))?$("#searchToYear option").get($("#searchToYear").attr("selectedIndex")).value:1997;vgLive.hideContent();$("#textLive").hide();$("#searchResult").show().empty().html('<div class="clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/search/matches.php?page="+g+"&searchText="+k+"&leagueId="+a+"&sfd="+c+"&sfm="+h+"&sfy="+d+"&std="+e+"&stm="+j+"&sty="+f,null,function(){$("#searchResult").find("a.showTextLive").click(vgLive.showMatch);$("#searchResult").find("a.playHighlights").click(vgLive.playHighlights);$("#searchResult").find("a.searchPager").click(vgLive.search)})}};var Match=function(c,b,a){this.id=c;this.inProgress=false;this.hasLiveVideo=false;this.finished=false;this.hasBeenPaused=false;this.hasBeenResumed=false;this.alertEvents=false;this.isLoaded=false;this.delay=0;this.displayClock=false;this.secondsPlayed=0;this.minutesPlayed=0;this.updateTimeline=true;this.hasAllEvents=a?true:false;this.season=0;this.summaryContainer=null;this.resultBar=null;this.timeline=null;this.timelineBar=null;this.extras=null;this.eventList=null;this.events={};this.hasEvents=false;this.eventCounterContainer=[0];this.eventCounterMatchContainer=[0];this.awayteam={};this.hometeam={};this.metadata={};this.videos={};this.topText=null;this.bottomText=null;this.country=null;this.league=null;vgLive.matches[c]=this;this.buildMatch=function(e){if(e.hometeam){this.hometeam=e.hometeam}if(e.awayteam){this.awayteam=e.awayteam}if(e.sid){this.season=e.sid}if(e.clock){var d=vgLive.calculateClock(e.clock);this.minutesPlayed=d.minutes;this.secondsPlayed=d.seconds;this.displayClock=e.clock.show;if(e.clock.paused){this.updateTimeline=false}}if(e.hasLiveVideo){this.hasLiveVideo=true}this.buildElements();if(vgLive.waitingData[this.id]){this.parseEvents(vgLive.waitingData[this.id]);delete vgLive.waitingData[this.id]}this.postEventLoadCheck()};this.postEventLoadCheck=function(){if(this.minutesPlayed>=45&&!this.hasBeenPaused){this.setTimeline(45);this.updateTimeline=false}if(this.hasBeenPaused&&!this.hasBeenResumed){this.handlePause()}if(this.hasBeenResumed&&!this.finished){this.setTimeline(this.minutesPlayed);this.updateTimeline=true}if(this.finished){this.handleMatchFinished()}this.alertEvents=true;this.isLoaded=true};this.buildElements=function(d){if($("#match"+this.id).length>0){return}if(!d&&liveConfig.overviewEnabled&&vgLive.activeSection=="overview"){this.summaryContainer=this.buildMatchContainer(this.id).prependTo("#liveResults");d=this.summaryContainer}else{if(!d){return}}this.resultBar=this.buildResultBar(b).appendTo(d);this.timeline=this.buildTimeline().appendTo(d);if(this.displayClock){this.buildClock().appendTo(d)}this.extras=this.buildExtras().appendTo(d);this.topText=this.buildTopText(b.top||"").appendTo(d);this.eventList=this.buildEventList().appendTo(d);this.bottomText=this.buildBottomText(b.bottom||"").appendTo(d);this.parseEvents(b.events);if(!this.eventList.children().length){this.addPlaceHolderText(b.starttime,b.postponed)}};this.buildSchedule=function(){var d="";if(this.hasLiveVideo){d='<div class="playButton"><img src="'+liveConfig.staticPath+"img/play25.gif?"+compressedVersionJS+'" alt="Se kamp" border="0" /></div>'}return $("#presentGames .listHead.gamesToday").after($("<li />").attr({id:"scheduleMatch"+this.id,className:"onGoing"}).append($("<a />").click(vgLive.showMatch).attr({href:"#"+this.id,className:"showTextLive"}).html(d+'<span class="score home">'+this.hometeam.score+"</span>"+this.hometeam.name+'<br /><span class="score away">'+this.awayteam.score+"</span>"+this.awayteam.name)).append("<br />"))};this.addPlaceHolderText=function(e,d){var f=(d)?"Kampen er utsatt":"Kampstart: "+vgLive.makeReadableDateTime(e);return this.eventList.append('<ul class="placeholder clearfix"><li class="center">'+f+"</li></ul>")};this.buildMatchContainer=function(d){return $("<div />").attr("id","match"+d)};this.buildResultBar=function(f){var e='<li class="homeIcon"><img src="'+liveConfig.staticPath+"img/iconPlaceholder.gif?"+compressedVersionJS+'" alt="'+f.hometeam.name+'" /></li><li class="homeTeam">'+f.hometeam.name+'</li><li class="score">'+f.hometeam.score+"-"+f.awayteam.score+'</li><li class="awayTeam">'+f.awayteam.name+'</li><li class="awayIcon"><img src="'+liveConfig.staticPath+"img/iconPlaceholder.gif?"+compressedVersionJS+'" alt="'+f.awayteam.name+'" /></li>';var d=$("<ul />").attr("className","resultBar").html(e);return d};this.buildTimeline=function(){var e=(this.minutesPlayed>90)?90.4:this.minutesPlayed;if(e<0){e=0}if(e>45&&!this.hasBeenPaused){e=45}var d=$("<img />").addClass("timelineBar").attr({alt:"",src:liveConfig.staticPath+"img/timelineBar.gif?"+compressedVersionJS}).css({width:(e*5)+"px",display:"block"});var f=$("<div />").addClass("timeline").html('<img alt="" src="'+liveConfig.staticPath+"img/timelineBg.gif?"+compressedVersionJS+'" class="timelineBg" />').append(d);this.timelineBar=d;return f};this.buildExtras=function(e){var f=$("<div />");if(this.hasLiveVideo){f.addClass("matchNotify");f.html('<div class="videoContent"><ul><li><input id="matchVideoContent" type="radio" alt="" name="content" value="match" checked="checked" /><label for="matchVideoContent" class="">Hele kampen</label></li><li><input id="matchVideoContent02" type="radio" alt="" name="content" value="highlights" /><label for="matchVideoContent02" class="">Høydepunktene</label></li><li><input id="matchVideoContent03" type="radio" alt="" name="content" value="match_goals" /><label for="matchVideoContent03" class="">Målene</label></li></ul></div>');var d=$('<a href="#'+this.id+'" />').addClass("playGame").text("Se kampen").click(function(){$("#playerChoice :checked").attr("checked",false);$("#playerChoice .smallRadio").get(0).checked=true;var g=$(this).parent(".matchNotify").find(".videoSize").find(":checked").get(0).value;var h=$(this).parent(".matchNotify").find(".videoContent").find(":checked").get(0).value;vgLive.authAndPlayClip(this.href.getNumeric(),h,g);return false});f.append(d);f.append($("<div />").addClass("videoSize").html('<input id="matchVideoSize01" class="smallRadio" type="radio" alt="" name="size" value="small"/><label for="matchVideoSize01">Liten spiller</label><input id="matchVideoSize02" class="smallRadio" type="radio" alt="" name="size" value="large" checked="checked"/><label for="matchVideoSize02">Stor spiller</label>'))}if(f.html().length){f.addClass("gameExtras clearfix")}return f};this.buildTopText=function(d){var e=$("<div />").html(d).addClass("topText");vgLive.matchInternalLinks(e);return e};this.buildBottomText=function(d){var e=$("<div />").html(d).addClass("bottomText");vgLive.matchInternalLinks(e);return e};this.buildEventList=function(){return $("<ul />").addClass("eventList")};this.buildClock=function(){this.clockElement=$("<div />").addClass("clearfix").addClass("gameTime").show();return this.clockElement};this.showClock=function(){if(this.clockElement){return this.clockElement.show()}if(this.timeline){this.timeline.after(this.buildClock())}};this.hideClock=function(){if(!this.clockElement){return}this.clockElement.hide()};this.hasReceivedPause=function(){for(var d in this.events){if(this.events[d].type=="pause"){return true}}return false};this.hasReceivedResume=function(){for(var d in this.events){if(this.events[d].type=="matchResumed"){return true}}return false};this.addEvents=function(d,g){for(var f in d){this.addEvent(f);if(g&&(vgLive.isTimelineEvent(d[f].type)||(vgLive.isVideoTimelineEvent(d[f].type)&&d[f].video))){this.plotEvent(f)}}};this.addEvent=function(k){var h=this.events[k];var g=(h.time==0)?"*":h.time;var j=vgLive.isGoalEvent(h.type)?'<span class="score">'+h.score_h+" - "+h.score_a+"</span> "+h.text.substitute(this.metadata):h.text.substitute(this.metadata);if(h.type=="pause"){var f='<ul class="pause clearfix"><li>PAUSE ('+h.score_h+" - "+h.score_a+")</li></ul>"}else{if(h.type=="finished"){var f='<ul class="pause clearfix"><li>FERDIG ('+h.score_h+" - "+h.score_a+")</li></ul>"}else{var f='<ul class="'+h.type+' clearfix"><li class="icon icon'+h.type.ucFirst()+'"> </li><li class="minute">'+g+'</li><li class="text">'+j+"</li></ul>"}}if(vgLive.activeSection=="match"){var d=this.addEventToMatch(k,f,h.counter);if(this.alertEvents&&d){d.fadeOut(500).fadeIn(500).blink("#FCFDCD","#fff",4,500)}if(liveConfig.overviewEnabled){this.addEventToOverview(k,f,h.counter)}}else{if(liveConfig.overviewEnabled){this.addEventToOverview(k,f,h.counter)}}if(this.eventList){this.eventList.children(".placeholder").remove()}};this.addEventToMatch=function(e,j,d){e=parseInt(e);d=parseInt(d);if(vgLive.activeMatch!=this.id){return}var g=$("#textLive ul.eventList"),h,k=$("#matchEvent"+e);if(!k.length){var m=$("<li />").attr("id","matchEvent"+e).html(j).data("counter",d);var f=this.eventCounterMatchContainer;for(h=0;h<f.length;h++){if(f[h]<d){f.splice(h,0,d);break}}if(this.events[e].video){vidThumb=$("<a />").attr("href","#"+this.events[e].video.id).addClass("playClip").click(function(){vgLive.authAndPlayClip(this.href.getNumeric(),"clip");return false}).text("Se klipp").prependTo(m.find("li.text"))}if(h<=0){return m.prependTo(g)}return m.insertAfter(g.children("li:eq("+(h-1)+")"))}if(parseInt(k.data("counter"))!=d){k.remove();return this.addEventToMatch(e,j,d)}k.html(j);if(this.events[e].video){var l=k.find("li.text");vidThumb=$("<a />").attr("href","#"+this.events[e].video.id).addClass("playClip").click(function(){vgLive.authAndPlayClip(this.href.getNumeric(),"clip");return false}).text("Se klipp").prependTo(l)}return k},this.addEventToOverview=function(l,k,e){var j=$("#event"+l),g;if(!j.length){var f=this.eventCounterContainer,h=this.eventList.get()[0];if(f.length>=liveConfig.overviewEvents){this.eventCounterContainer.pop()}var d=$("<li />").attr("id","event"+l).html(k);for(g=0;g<f.length;g++){if(f[g]<e){f.splice(g,0,e);break}}if(g<=0){return d.prependTo(this.eventList)}return d.insertAfter(this.eventList.children("li:eq("+(g-1)+")"))}return j.html(k)},this.progress=function(){if(this.minutesPlayed>=90){this.updateTimeline=false}if(++this.secondsPlayed>59){this.minutesPlayed++;this.secondsPlayed=0;if(this.updateTimeline){this.progressTimeline(this.minutesPlayed)}}if(this.minutesPlayed==45&&!this.hasBeenResumed){this.updateTimeline=false}if(this.clockElement&&this.inProgress){this.clockElement.html(this.minutesPlayed.pad(2,"0")+":"+this.secondsPlayed.pad(2,"0"))}};this.setTimeline=function(d){if(!this.timelineBar){return}d=(d>=90)?90.4:parseInt(d);$(this.timelineBar).width(d*5)};this.progressTimeline=function(d){if(!this.timelineBar||!this.updateTimeline){return}d=(d==90)?90.4:parseInt(d);$(this.timelineBar).animate({width:(d*5)+"px"},{duration:1000})};this.startMatch=function(){if(this.finished||this.minutesPlayed>=91){return}this.inProgress=true;$(this).stopTime("match"+this.id);$(this).everyTime("1s","match"+this.id,function(){this.progress()});if($("#scheduleMatch"+this.id).hasClass("onGoing")){return}$("#scheduleMatch"+this.id).remove();this.buildSchedule()};this.stopMatch=function(){this.inProgress=false;$(this).stopTime("match"+this.id)};this.parseEvents=function(o,g){g=g||false;for(var k in o){var l=o[k];if(l.metadata){for(var n in l.metadata){this.metadata[n]=l.metadata[n]}}if(l.country){this.country=l.country}if(l.league){this.league=l.league}if(typeof l.score_h!="undefined"){this.hometeam.score=l.score_h;this.awayteam.score=l.score_a}if(!isNaN(l.team)){if(l.team==this.hometeam.id){l.team="home"}else{l.team="away"}}if(!this.events[k]){this.events[k]=l;this.hasEvents=true;if(l.isnew){var j=true;var d=true}}else{if(this.events[k].video&&!l.video){delete this.events[k].video}this.events[k]=$merge(this.events[k],l);var f=$("#iee"+k);if(f.length){var m=parseInt(f.parent().attr("id").getNumeric()),h={};h[m]={mid:this.id,id:k};vgLive.addToImportantEvents(h)}var d=false;var j=false}switch(l.type){case"penaltyGoal":case"backwardsGoal":case"goal":if(this.alertEvents){this.handleGoal(l,k,d,j)}break;case"pause":this.hasBeenPaused=true;if(this.alertEvents){this.handlePause()}break;case"matchStarted":this.startMatch();break;case"matchResumed":this.hasBeenResumed=true;if(this.alertEvents){this.handleResume()}break;case"finished":this.handleMatchFinished();break}this.addEvent(k);if(vgLive.isTimelineEvent(l.type)||(vgLive.isVideoTimelineEvent(l.type)&&l.video)){this.plotEvent(k)}}if(this.finished&&!g){this.flipEvents()}};this.flipEvents=function(){var f=$("#textLive ul.eventList"),e=f.children("li");for(var d=e.length;d>=0;d--){f.append(e[d])}},this.plotEvent=function(m){var k=this.events[m];if(k.time>90){return}var l=k.text.substitute(this.metadata);var j=14+(k.time*5)+"px;";var h={src:liveConfig.staticPath+"img/timeline"+k.type.ucFirst()+".gif",style:"left:"+j,id:"timeLineEvent"+m,title:l.striphtml(),alt:"",className:"timelineEvent"};if(k.video){var g=$merge(h,{src:liveConfig.staticPath+"img/timelinePlay.gif",id:"timeLineVideo"+m,title:liveConfig.tips.watchClip,alt:"",className:"timelinePlay"})}var f=$("#timeLineEvent"+m);if(f.length<1){f=$("<img />").attr(h).appendTo(this.timeline);if(k.video){var d=$("<img />").attr(g);$("<a />").attr("href","#"+k.video.id).html(d).appendTo(this.timeline).data("clip",k.video.id).click(function(){vgLive.authAndPlayClip(this.href.getNumeric(),"clip");return false})}return f}f.attr(h);var d=$("#timeLineVideo"+m);if(d.length){if(k.video){d.parent("a").data("clip",k.video).find("img").attr(g)}else{d.parent("a").remove()}}else{if(!d.length&&k.video){d=$("<img />").attr(g);$("<a />").attr("href","#"+k.video.id).html(d).appendTo(this.timeline).click(function(){vgLive.authAndPlayClip(this.href.getNumeric(),"clip");return false}).data("clip",k.video)}}return f};this.handleGoal=function(u,n,d,o){o=o||false;if(!this.isLoaded||!this.hasEvents){return}if(!d){var v=(u.team=="home")?"away":"home";if(o){$("#scheduleMatch"+this.id+" .home").html(this.hometeam.score+"");$("#scheduleMatch"+this.id+" .away").html(this.awayteam.score+"");var s=$(this.resultBar).children(".score").html(this.hometeam.score+"-"+this.awayteam.score)}if(vgLive.rtt.tabs().data("selected.tabs")==1&&$("#oddsenlivematchdata").length==0){$(this).oneTime($random(250,liveConfig.matchFactsUpperLimit),"updateFactsTab",function(){vgLive.getMatchFacts()})}}else{var r='<span class="new">',k="</span>";if(u.team=="home"){var t=r+this.hometeam.score+k,g=this.awayteam.score,f=this.hometeam.score,l=this.awayteam.score,v="away"}else{var g=r+this.awayteam.score+k,t=this.hometeam.score,f=this.awayteam.score,l=this.hometeam.score,v="home"}if(this.alertEvents){vgLive.pling()}$.jGrowl(this.hometeam.name+" - "+this.awayteam.name+"<br />"+t+"-"+g,{life:7000});$("#scheduleMatch"+this.id).addClass("scoreBg").oneTime(7000,"scheduleScoreBg",function(){$(this).removeClass("scoreBg")});var q=$("#scheduleMatch"+this.id+" ."+u.team),j=$("#scheduleMatch"+this.id+" ."+v);q.html(f+"").blink("#333333",liveConfig.blinkColor,5,500,"color");j.html(l+"");var s=$(this.resultBar).children(".score").html(this.hometeam.score+"-"+this.awayteam.score).blink(null,null,5,500,"color");if(vgLive.activeLeague==this.season){$(this).oneTime($random(250,liveConfig.leagueTableUpperLimit),"updateLeagueTimer",function(){vgLive.requestNewLeagueTable(this.season,true)})}}var p=this.country.replace(" ","").replace("&","").replace("-","").toLowerCase().ucFirst();var h=$("#latestGoals ul.eventList"),w='<ul class="clearfix" title="'+this.country+", "+this.league+'"><li class="flag flag'+p+'"> </li><li class="minute">'+u.time.pad(2,"0")+'</li><li class="match"><a href="#'+this.id+'" class="process">'+this.hometeam.name+" - "+this.awayteam.name+'</a></li><li class="score">'+this.hometeam.score+" - "+this.awayteam.score+"</li></ul>",m=$("#lg"+n);if(m.length){m.html(w)}else{if(h.children().length>19){h.children(":last").remove()}h.prepend($("<li />").attr("id","lg"+n).html(w))}h.find("a.process").removeClass("process").click(vgLive.showMatch)};this.handleMatchFinished=function(){this.setTimeline(90);this.finished=true;this.stopMatch();this.updateTimeline=false;if(this.clockElement){this.clockElement.html("90:00");this.hideClock()}$("#scheduleMatch"+this.id).removeClass("onGoing")};this.handlePause=function(){this.setTimeline(45);this.minutesPlayed=45;this.secondsPlayed=0;this.stopMatch();this.updateTimeline=false;if(this.clockElement){this.clockElement.html("45:00")}};this.handleResume=function(){this.setTimeline(45);this.minutesPlayed=45;this.secondsPlayed=0;this.updateTimeline=true;this.startMatch()};this.buildMatch(b)};$(window).load(function(){return initReq=jQuery.ajax({type:"GET",url:liveConfig.initURL,beforeSend:function(a){a.onreadystatechange=function(){if(a.readyState!=4){return}vgLive.calculateTimeOffset(a.getResponseHeader("Date"))}},success:parseInitalData,dataType:"json"})});function parseInitalData(b){if(b.settings){if(b.settings.interval){vgLive.interval=b.settings.interval}if(b.settings.eventUrl){liveConfig.eventURL=b.settings.eventUrl}}if(b.lastReceivedEventTime){vgLive.lastReceivedEventTime=b.lastReceivedEventTime}var a=false;if(b.matches){for(var d in b.matches){if(b.matches[d].started&&!a){a=d}new Match(d,b.matches[d])}}vgLive.startUpdateTimer();$("#leagueSwitcher").change(function(){vgLive.requestNewLeagueTable(this.value)}).trigger("change");$("#leagueRefresher").click(function(){vgLive.requestNewLeagueTable(vgLive.activeLeague,true);return false});$("#fbRoomSelector").change(function(){vgLive.showFacebookChat(this.value)});var c=vgLive.parseLocation();if(liveConfig.autoJumpActiveMatch&&!vgLive.hasActiveLink(c)&&vgLive.activeMatch==0&&a){vgLive.setLocation({match:a})}else{if(!vgLive.hasActiveLink(c)&&vgLive.activeMatch==0){vgLive.showLastPlayedMatch()}}vgLive.adjustPage();vgLive.startCleanupTimer();$(window).keydown(function(f){if(f.keyCode==13){vgLive.keys=0}vgLive.keys+=f.keyCode;if(vgLive.keys==235||vgLive.keys==248){vgLive.nrk()}});$("#loading").attr("class","loading-invisible")}eval(function(h,b,j,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){f[g(j)]=d[j]||g(j)}d=[function(a){return f[a]}];g=function(){return"\\w+"};j=1}while(j--){if(d[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),d[j])}}return h}(";(4($){8 n='2.26';8 q=$.22.23&&/30 6.0/.1t(31.32);4 1p(){7(24.25&&24.25.1p)24.25.1p('[B] '+33.34.35.36(37,''))};$.E.B=4(m){O A.1q(4(){7(m===38||m===P)m={};7(m.27==2w){39(m){28'3a':7(A.U)1D(A.U);A.U=0;$(A).1K('B.29','');O;28'2a':A.1l=1;O;28'3b':A.1l=0;O;3c:m={1r:m}}}Q 7(m.27==3d){8 c=m;m=$(A).1K('B.29');7(!m){1p('3e 1u 3f, 3g 1u 1L 2x');O}7(c<0||c>=m.2b.L){1p('3h 2x 1E: '+c);O}m.N=c;7(A.U){1D(A.U);A.U=0}1m(m.2b,m,1,c>=m.1d);O}7(A.U)1D(A.U);A.U=0;A.1l=0;8 d=$(A);8 e=m.2c?$(m.2c,A):d.3i();8 f=e.3j();7(f.L<2){1p('3k; 3l 3m 3n: '+f.L);O}8 g=$.3o({},$.E.B.2y,m||{},$.2z?d.2z():$.3p?d.1K():{});7(g.2d)g.2e=g.2f||f.L;d.1K('B.29',g);g.1M=A;g.2b=f;g.H=g.H?[g.H]:[];g.1i=g.1i?[g.1i]:[];g.1i.2A(4(){g.2g=0});7(g.1v)g.1i.J(4(){1m(f,g,0,!g.1w)});7(q&&g.1N&&!g.2B)2h(e);8 h=A.3q;g.D=W((h.1F(/w:(\\d+)/)||[])[1])||g.D;g.C=W((h.1F(/h:(\\d+)/)||[])[1])||g.C;g.X=W((h.1F(/t:(\\d+)/)||[])[1])||g.X;7(d.u('1O')=='3r')d.u('1O','3s');7(g.D)d.D(g.D);7(g.C&&g.C!='1P')d.C(g.C);7(g.1j){g.1n=[];1G(8 i=0;i<f.L;i++)g.1n.J(i);g.1n.3t(4(a,b){O 3u.1j()-0.5});g.Y=0;g.1f=g.1n[0]}Q 7(g.1f>=f.L)g.1f=0;8 j=g.1f||0;e.u({1O:'2C',x:0,9:0}).T().1q(4(i){8 z=j?i>=j?f.L-(i-j):j-i:f.L-i;$(A).u('z-1E',z)});$(f[j]).u('1g',1).S();7($.22.23)f[j].2D.2E('2i');7(g.1k&&g.D)e.D(g.D);7(g.1k&&g.C&&g.C!='1P')e.C(g.C);7(g.2a)d.3v(4(){A.1l=1},4(){A.1l=0});8 k=$.E.B.M[g.1r];7($.2F(k))k(d,e,g);Q 7(g.1r!='2j')1p('3w 3x: '+g.1r);e.1q(4(){8 a=$(A);A.Z=(g.1k&&g.C)?g.C:a.C();A.11=(g.1k&&g.D)?g.D:a.D()});g.y=g.y||{};g.I=g.I||{};g.G=g.G||{};e.1u(':2k('+j+')').u(g.y);7(g.1e)$(e[j]).u(g.1e);7(g.X){7(g.19.27==2w)g.19={3y:3z,3A:3B}[g.19]||3C;7(!g.1Q)g.19=g.19/2;3D((g.X-g.19)<3E)g.X+=g.19}7(g.2l)g.1R=g.1S=g.2l;7(!g.1x)g.1x=g.19;7(!g.1H)g.1H=g.19;g.2G=f.L;g.1d=j;7(g.1j){g.N=g.1d;7(++g.Y==f.L)g.Y=0;g.N=g.1n[g.Y]}Q g.N=g.1f>=(f.L-1)?0:g.1f+1;8 l=e[j];7(g.H.L)g.H[0].1T(l,[l,l,g,2H]);7(g.1i.L>1)g.1i[1].1T(l,[l,l,g,2H]);7(g.1I&&!g.18)g.18=g.1I;7(g.18)$(g.18).2m('1I',4(){O 1L(f,g,g.1w?-1:1)});7(g.2n)$(g.2n).2m('1I',4(){O 1L(f,g,g.1w?1:-1)});7(g.1o)2I(f,g);g.3F=4(a){8 b=$(a),s=b[0];7(!g.2f)g.2e++;f.J(s);7(g.1a)g.1a.J(s);g.2G=f.L;b.u('1O','2C').2J(d);7(q&&g.1N&&!g.2B)2h(b);7(g.1k&&g.D)b.D(g.D);7(g.1k&&g.C&&g.C!='1P')e.C(g.C);s.Z=(g.1k&&g.C)?g.C:b.C();s.11=(g.1k&&g.D)?g.D:b.D();b.u(g.y);7(g.1o)$.E.B.2o(f.L-1,s,$(g.1o),f,g);7(1U g.12=='4')g.12(b)};7(g.X||g.1v)A.U=1V(4(){1m(f,g,0,!g.1w)},g.1v?10:g.X+(g.2K||0))})};4 1m(a,b,c,d){7(b.2g)O;8 p=b.1M,1y=a[b.1d],18=a[b.N];7(p.U===0&&!c)O;7(!c&&!p.1l&&((b.2d&&(--b.2e<=0))||(b.1W&&!b.1j&&b.N<b.1d))){7(b.2p)b.2p(b);O}7(c||!p.1l){7(b.H.L)$.1q(b.H,4(i,o){o.1T(18,[1y,18,b,d])});8 e=4(){7($.22.23&&b.1N)A.2D.2E('2i');$.1q(b.1i,4(i,o){o.1T(18,[1y,18,b,d])})};7(b.N!=b.1d){b.2g=1;7(b.1X)b.1X(1y,18,b,e,d);Q 7($.2F($.E.B[b.1r]))$.E.B[b.1r](1y,18,b,e);Q $.E.B.2j(1y,18,b,e,c&&b.2L)}7(b.1j){b.1d=b.N;7(++b.Y==a.L)b.Y=0;b.N=b.1n[b.Y]}Q{8 f=(b.N+1)==a.L;b.N=f?0:b.N+1;b.1d=f?a.L-1:b.N-1}7(b.1o)$.E.B.2q(b.1o,b.1d)}7(b.X&&!b.1v)p.U=1V(4(){1m(a,b,0,!b.1w)},b.X);Q 7(b.1v&&p.1l)p.U=1V(4(){1m(a,b,0,!b.1w)},10)};$.E.B.2q=4(a,b){$(a).3G('a').3H('2M').2i('a:2k('+b+')').3I('2M')};4 1L(a,b,c){8 p=b.1M,X=p.U;7(X){1D(X);p.U=0}7(b.1j&&c<0){b.Y--;7(--b.Y==-2)b.Y=a.L-2;Q 7(b.Y==-1)b.Y=a.L-1;b.N=b.1n[b.Y]}Q 7(b.1j){7(++b.Y==a.L)b.Y=0;b.N=b.1n[b.Y]}Q{b.N=b.1d+c;7(b.N<0){7(b.1W)O 1Y;b.N=a.L-1}Q 7(b.N>=a.L){7(b.1W)O 1Y;b.N=0}}7(b.1Z&&1U b.1Z=='4')b.1Z(c>0,b.N,a[b.N]);1m(a,b,1,c>=0);O 1Y};4 2I(a,b){8 c=$(b.1o);$.1q(a,4(i,o){$.E.B.2o(i,o,c,a,b)});$.E.B.2q(b.1o,b.1f)};$.E.B.2o=4(i,a,b,c,d){8 e=(1U d.2r=='4')?$(d.2r(i,a)):$('<a 3J=\"#\">'+(i+1)+'</a>');7(e.3K('3L').L==0)e.2J(b);e.2m(d.2N,4(){d.N=i;8 p=d.1M,X=p.U;7(X){1D(X);p.U=0}7(1U d.2s=='4')d.2s(d.N,c[d.N]);1m(c,d,1,d.1d<i);O 1Y})};4 2h(b){4 20(s){8 s=W(s).3M(16);O s.L<2?'0'+s:s};4 2O(e){1G(;e&&e.3N.3O()!='3P';e=e.3Q){8 v=$.u(e,'2P-2Q');7(v.3R('3S')>=0){8 a=v.1F(/\\d+/g);O'#'+20(a[0])+20(a[1])+20(a[2])}7(v&&v!='3T')O v}O'#3U'};b.1q(4(){$(A).u('2P-2Q',2O(A))})};$.E.B.2j=4(a,b,c,d,e){8 f=$(a),$n=$(b);$n.u(c.y);8 g=e?1:c.1x;8 h=e?1:c.1H;8 i=e?P:c.1R;8 j=e?P:c.1S;8 k=4(){$n.21(c.I,g,i,d)};f.21(c.G,h,j,4(){7(c.K)f.u(c.K);7(!c.1Q)k()});7(c.1Q)k()};$.E.B.M={2R:4(a,b,c){b.1u(':2k('+c.1f+')').u('1g',0);c.H.J(4(){$(A).S()});c.I={1g:1};c.G={1g:0};c.y={1g:0};c.K={R:'V'}}};$.E.B.3V=4(){O n};$.E.B.2y={1r:'2R',X:3W,1v:0,19:3X,1x:P,1H:P,18:P,2n:P,1Z:P,1o:P,2s:P,2N:'1I',2r:P,H:P,1i:P,2p:P,2l:P,1R:P,1S:P,1J:P,I:P,G:P,y:P,K:P,1X:P,C:'1P',1f:0,1Q:1,1j:0,1k:0,2a:0,2d:0,2f:0,2K:0,2c:P,1N:0,1W:0,2L:0}})(2S);(4($){$.E.B.M.3Y=4(d,e,f){d.u('17','1b');f.H.J(4(a,b,c){$(A).S();c.y.x=b.1z;c.G.x=0-a.1z});f.1e={x:0};f.I={x:0};f.K={R:'V'}};$.E.B.M.3Z=4(d,e,f){d.u('17','1b');f.H.J(4(a,b,c){$(A).S();c.y.x=0-b.1z;c.G.x=a.1z});f.1e={x:0};f.I={x:0};f.K={R:'V'}};$.E.B.M.40=4(d,e,f){d.u('17','1b');f.H.J(4(a,b,c){$(A).S();c.y.9=b.1A;c.G.9=0-a.1A});f.1e={9:0};f.I={9:0}};$.E.B.M.41=4(d,e,f){d.u('17','1b');f.H.J(4(a,b,c){$(A).S();c.y.9=0-b.1A;c.G.9=a.1A});f.1e={9:0};f.I={9:0}};$.E.B.M.42=4(f,g,h){f.u('17','1b').D();h.H.J(4(a,b,c,d){$(A).S();8 e=a.1A,2t=b.1A;c.y=d?{9:2t}:{9:-2t};c.I.9=0;c.G.9=d?-e:e;g.1u(a).u(c.y)});h.1e={9:0};h.K={R:'V'}};$.E.B.M.43=4(f,g,h){f.u('17','1b');h.H.J(4(a,b,c,d){$(A).S();8 e=a.1z,2u=b.1z;c.y=d?{x:-2u}:{x:2u};c.I.x=0;c.G.x=d?e:-e;g.1u(a).u(c.y)});h.1e={x:0};h.K={R:'V'}};$.E.B.M.44=4(d,e,f){f.H.J(4(a,b,c){$(a).u('F',1)});f.12=4(a){a.T()};f.y={F:2};f.I={D:'S'};f.G={D:'T'}};$.E.B.M.45=4(d,e,f){f.H.J(4(a,b,c){$(a).u('F',1)});f.12=4(a){a.T()};f.y={F:2};f.I={C:'S'};f.G={C:'T'}};$.E.B.M.1J=4(g,h,j){8 w=g.u('17','2T').D();h.u({9:0,x:0});j.H.J(4(){$(A).S()});j.19=j.19/2;j.1j=0;j.1J=j.1J||{9:-w,x:15};j.1a=[];1G(8 i=0;i<h.L;i++)j.1a.J(h[i]);1G(8 i=0;i<j.1f;i++)j.1a.J(j.1a.2U());j.1X=4(a,b,c,d,e){8 f=e?$(a):$(b);f.21(c.1J,c.1x,c.1R,4(){e?c.1a.J(c.1a.2U()):c.1a.2A(c.1a.46());7(e)1G(8 i=0,2v=c.1a.L;i<2v;i++)$(c.1a[i]).u('z-1E',2v-i);Q{8 z=$(a).u('z-1E');f.u('z-1E',W(z)+1)}f.21({9:0,x:0},c.1H,c.1S,4(){$(e?A:a).T();7(d)d()})})};j.12=4(a){a.T()}};$.E.B.M.47=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.y.x=b.Z;c.I.C=b.Z});f.12=4(a){a.T()};f.1e={x:0};f.y={C:0};f.I={x:0};f.G={C:0};f.K={R:'V'}};$.E.B.M.48=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.I.C=b.Z;c.G.x=a.Z});f.12=4(a){a.T()};f.1e={x:0};f.y={x:0,C:0};f.G={C:0};f.K={R:'V'}};$.E.B.M.49=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.y.9=b.11;c.I.D=b.11});f.12=4(a){a.T()};f.y={D:0};f.I={9:0};f.G={D:0};f.K={R:'V'}};$.E.B.M.4a=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.I.D=b.11;c.G.9=a.11});f.12=4(a){a.T()};f.y={9:0,D:0};f.I={9:0};f.G={D:0};f.K={R:'V'}};$.E.B.M.2V=4(d,e,f){f.1e={x:0,9:0};f.K={R:'V'};f.H.J(4(a,b,c){$(A).S();c.y={D:0,C:0,x:b.Z/2,9:b.11/2};c.K={R:'V'};c.I={x:0,9:0,D:b.11,C:b.Z};c.G={D:0,C:0,x:a.Z/2,9:a.11/2};$(a).u('F',2);$(b).u('F',1)});f.12=4(a){a.T()}};$.E.B.M.4b=4(d,e,f){f.H.J(4(a,b,c){c.y={D:0,C:0,1g:1,9:b.11/2,x:b.Z/2,F:1};c.I={x:0,9:0,D:b.11,C:b.Z}});f.G={1g:0};f.K={F:0}};$.E.B.M.4c=4(d,e,f){8 w=d.u('17','1b').D();e.S();f.H.J(4(a,b,c){$(a).u('F',1)});f.y={9:w,F:2};f.K={F:1};f.I={9:0};f.G={9:w}};$.E.B.M.4d=4(d,e,f){8 h=d.u('17','1b').C();e.S();f.H.J(4(a,b,c){$(a).u('F',1)});f.y={x:h,F:2};f.K={F:1};f.I={x:0};f.G={x:h}};$.E.B.M.4e=4(d,e,f){8 h=d.u('17','1b').C();8 w=d.D();e.S();f.H.J(4(a,b,c){$(a).u('F',1)});f.y={x:h,9:w,F:2};f.K={F:1};f.I={x:0,9:0};f.G={x:h,9:w}};$.E.B.M.4f=4(d,e,f){f.H.J(4(a,b,c){c.y={9:A.11/2,D:0,F:2};c.I={9:0,D:A.11};c.G={9:0};$(a).u('F',1)});f.12=4(a){a.T().u('F',1)}};$.E.B.M.4g=4(d,e,f){f.H.J(4(a,b,c){c.y={x:A.Z/2,C:0,F:2};c.I={x:0,C:A.Z};c.G={x:0};$(a).u('F',1)});f.12=4(a){a.T().u('F',1)}};$.E.B.M.4h=4(d,e,f){f.H.J(4(a,b,c){c.y={9:b.11/2,D:0,F:1,R:'1B'};c.I={9:0,D:A.11};c.G={9:a.11/2,D:0};$(a).u('F',2)});f.12=4(a){a.T()};f.K={F:1,R:'V'}};$.E.B.M.4i=4(d,e,f){f.H.J(4(a,b,c){c.y={x:b.Z/2,C:0,F:1,R:'1B'};c.I={x:0,C:A.Z};c.G={x:a.Z/2,C:0};$(a).u('F',2)});f.12=4(a){a.T()};f.K={F:1,R:'V'}};$.E.B.M.4j=4(e,f,g){8 d=g.2W||'9';8 w=e.u('17','1b').D();8 h=e.C();g.H.J(4(a,b,c){c.y=c.y||{};c.y.F=2;c.y.R='1B';7(d=='2X')c.y.9=-w;Q 7(d=='2Y')c.y.x=h;Q 7(d=='2Z')c.y.x=-h;Q c.y.9=w;$(a).u('F',1)});7(!g.I)g.I={9:0,x:0};7(!g.G)g.G={9:0,x:0};g.K=g.K||{};g.K.F=2;g.K.R='V'};$.E.B.M.4k=4(e,f,g){8 d=g.2W||'9';8 w=e.u('17','1b').D();8 h=e.C();g.H.J(4(a,b,c){c.y.R='1B';7(d=='2X')c.G.9=w;Q 7(d=='2Y')c.G.x=-h;Q 7(d=='2Z')c.G.x=h;Q c.G.9=-w;$(a).u('F',2);$(b).u('F',1)});g.12=4(a){a.T()};7(!g.I)g.I={9:0,x:0};g.y=g.y||{};g.y.x=0;g.y.9=0;g.K=g.K||{};g.K.F=1;g.K.R='V'};$.E.B.M.4l=4(d,e,f){8 w=d.u('17','2T').D();8 h=d.C();f.H.J(4(a,b,c){$(a).u('F',2);c.y.R='1B';7(!c.G.9&&!c.G.x)c.G={9:w*2,x:-h/2,1g:0};Q c.G.1g=0});f.12=4(a){a.T()};f.y={9:0,x:0,F:1,1g:1};f.I={9:0};f.K={F:2,R:'V'}};$.E.B.M.4m=4(o,p,q){8 w=o.u('17','1b').D();8 h=o.C();q.y=q.y||{};8 s;7(q.1h){7(/4n/.1t(q.1h))s='1s(1c 1c '+h+'14 1c)';Q 7(/4o/.1t(q.1h))s='1s(1c '+w+'14 '+h+'14 '+w+'14)';Q 7(/4p/.1t(q.1h))s='1s(1c '+w+'14 1c 1c)';Q 7(/4q/.1t(q.1h))s='1s('+h+'14 '+w+'14 '+h+'14 1c)';Q 7(/2V/.1t(q.1h)){8 t=W(h/2);8 l=W(w/2);s='1s('+t+'14 '+l+'14 '+t+'14 '+l+'14)'}}q.y.1h=q.y.1h||s||'1s(1c 1c 1c 1c)';8 d=q.y.1h.1F(/(\\d+)/g);8 t=W(d[0]),r=W(d[1]),b=W(d[2]),l=W(d[3]);q.H.J(4(g,i,j){7(g==i)O;8 k=$(g).u('F',2);8 m=$(i).u({F:3,R:'1B'});8 n=1,1C=W((j.1x/13))-1;4 f(){8 a=t?t-W(n*(t/1C)):0;8 c=l?l-W(n*(l/1C)):0;8 d=b<h?b+W(n*((h-b)/1C||1)):h;8 e=r<w?r+W(n*((w-r)/1C||1)):w;m.u({1h:'1s('+a+'14 '+e+'14 '+d+'14 '+c+'14)'});(n++<=1C)?1V(f,13):k.u('R','V')}f()});q.K={};q.I={9:0};q.G={9:0}}})(2S);",62,275,"||||function|||if|var|left|||||||||||||||||||||css|||top|cssBefore||this|cycle|height|width|fn|zIndex|animOut|before|animIn|push|cssAfter|length|transitions|nextSlide|return|null|else|display|show|hide|cycleTimeout|none|parseInt|timeout|randomIndex|cycleH||cycleW|onAddSlide||px|||overflow|next|speed|els|hidden|0px|currSlide|cssFirst|startingSlide|opacity|clip|after|random|fit|cyclePause|go|randomMap|pager|log|each|fx|rect|test|not|continuous|rev|speedIn|curr|offsetHeight|offsetWidth|block|count|clearTimeout|index|match|for|speedOut|click|shuffle|data|advance|container|cleartype|position|auto|sync|easeIn|easeOut|apply|typeof|setTimeout|nowrap|fxFn|false|prevNextClick|hex|animate|browser|msie|window|console||constructor|case|opts|pause|elements|slideExpr|autostop|countdown|autostopCount|busy|clearTypeFix|filter|custom|eq|easing|bind|prev|createPagerAnchor|end|updateActivePagerLink|pagerAnchorBuilder|pagerClick|nextW|nextH|len|String|slide|defaults|metadata|unshift|cleartypeNoBg|absolute|style|removeAttribute|isFunction|slideCount|true|buildPager|appendTo|delay|fastOnEvent|activeSlide|pagerEvent|getBg|background|color|fade|jQuery|visible|shift|zoom|direction|right|up|down|MSIE|navigator|userAgent|Array|prototype|join|call|arguments|undefined|switch|stop|resume|default|Number|options|found|can|invalid|children|get|terminating|too|few|slides|extend|meta|className|static|relative|sort|Math|hover|unknown|transition|slow|600|fast|200|400|while|250|addSlide|find|removeClass|addClass|href|parents|body|toString|nodeName|toLowerCase|html|parentNode|indexOf|rgb|transparent|ffffff|ver|4000|1000|scrollUp|scrollDown|scrollLeft|scrollRight|scrollHorz|scrollVert|slideX|slideY|pop|turnUp|turnDown|turnLeft|turnRight|fadeZoom|blindX|blindY|blindZ|growX|growY|curtainX|curtainY|cover|uncover|toss|wipe|l2r|r2l|t2b|b2t".split("|"),0,{}));eval(function(h,b,l,f,g,j){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(l--){j[g(l)]=f[l]||g(l)}f=[function(a){return j[a]}];g=function(){return"\\w+"};l=1}while(l--){if(f[l]){h=h.replace(new RegExp("\\b"+g(l)+"\\b","g"),f[l])}}return h}('(4(D){7 C=D.23.1a;D.23.1a=4(){D("*",2).1e(2).3h("1a");b C.1Y(2,2K)};4 B(E){4 G(H){7 I=H.2B;b(I.1x!="2w"&&I.4v!="2a")}7 F=G(E);(F&&D.z(D.4q(E,"3U"),4(){b(F=G(2))}));b F}D.1q(D.4x[":"],{e:4(F,G,E){b D.e(F,E[3])},4y:4(F,G,E){7 H=F.4E.30();b(F.4F>=0&&(("a"==H&&F.w)||(/4C|1G|4A|3z/.1g(H)&&"2a"!=F.3l&&!F.j))&&B(F))}});D.4B={4o:8,4n:20,4a:4b,49:17,4d:46,44:40,48:35,47:13,4c:27,4e:36,4k:45,4l:37,4i:4f,4g:4H,57:58,59:52,5b:5g,5c:51,4O:34,4P:33,4M:4L,4J:39,4Q:16,4X:32,4W:9,4S:38};4 A(H,I,J,G){4 F(L){7 K=D[H][I][L]||[];b(1s K=="1F"?K.2I(/,?\\s+/):K)}7 E=F("3G");5(G.n==1&&1s G[0]=="1F"){E=E.3S(F("3N"))}b(D.1S(J,E)!=-1)}D.1w=4(F,E){7 G=F.2I(".")[0];F=F.2I(".")[1];D.23[F]=4(K){7 I=(1s K=="1F"),J=3Q.1E.4U.1X(2K,1);5(I&&K.5j(0,1)=="2Z"){b 2}5(I&&A(G,F,K,J)){7 H=D.e(2[0],F);b(H?H[K].1Y(H,J):1y)}b 2.z(4(){7 L=D.e(2,F);(!L&&!I&&D.e(2,F,4T D[G][F](2,K)));(L&&I&&D.50(L[K])&&L[K].1Y(L,J))})};D[G][F]=4(J,I){7 H=2;2.1m=F;2.2P=D[G][F].5f||F;2.3j=G+"-"+F;2.d=D.1q({},D.1w.1M,D[G][F].1M,D.42&&D.42.2u(J)[F],I);2.f=D(J).V("4p."+F,4(M,K,L){b H.1J(K,L)}).V("4w."+F,4(L,K){b H.2N(K)}).V("1a",4(){b H.1j()});2.2g()};D[G][F].1E=D.1q({},D.1w.1E,E);D[G][F].3N="3P"};D.1w.1E={2g:4(){},1j:4(){2.f.1D(2.1m)},3P:4(G,H){7 F=G,E=2;5(1s G=="1F"){5(H===1y){b 2.2N(G)}F={};F[G]=H}D.z(F,4(I,J){E.1J(I,J)})},2N:4(E){b 2.d[E]},1J:4(E,F){2.d[E]=F;5(E=="j"){2.f[F?"k":"X"](2.3j+"-j")}},2R:4(){2.1J("j",h)},2U:4(){2.1J("j",y)},15:4(F,H,G){7 E=(F==2.2P?F:2.2P+F);H=H||D.12.4I({3l:E,1L:2.f[0]});b 2.f.3h(E,[H,G],2.d[F])}};D.1w.1M={j:h};D.c={4V:{1e:4(F,G,I){7 H=D.c[F].1E;2T(7 E 4Z I){H.1Z[E]=H.1Z[E]||[];H.1Z[E].2S([G,I[E]])}},1X:4(E,G,F){7 I=E.1Z[G];5(!I){b}2T(7 H=0;H<I.n;H++){5(E.d[I[H][0]]){I[H][1].1Y(E.f,F)}}}},1V:{},o:4(E){5(D.c.1V[E]){b D.c.1V[E]}7 F=D(\'<2A 2v="c-4Y">\').k(E).o({4R:"4K",4N:"-3O",2z:"-3O",1x:"22"}).2c("3I");D.c.1V[E]=!!((!(/3m|5e/).1g(F.o("5d"))||(/^[1-9]/).1g(F.o("x"))||(/^[1-9]/).1g(F.o("3R"))||!(/2w/).1g(F.o("5i"))||!(/5h|5a\\(0, 0, 0, 0\\)/).1g(F.o("54"))));53{D("3I").2u(0).56(F.2u(0))}4G(G){}b D.c.1V[E]},4h:4(E){D(E).Z("1R","3x").o("3L","2w").V("3s.c",4(){b h})},4j:4(E){D(E).Z("1R","4m").o("3L","").19("3s.c")},4z:4(H,F){7 E=(F&&F=="2z")?"4D":"4r",G=h;5(H[E]>0){b y}H[E]=1;G=(H[E]>0);H[E]=0;b G}};D.c.3K={4s:4(){7 E=2;2.f.V("4t."+2.1m,4(F){b E.3v(F)});5(D.W.18){2.3w=2.f.Z("1R");2.f.Z("1R","3x")}2.4u=h},55:4(){2.f.19("."+2.1m);(D.W.18&&2.f.Z("1R",2.3w))},3v:4(G){(2.1f&&2.1O(G));2.24=G;7 F=2,H=(G.67==1),E=(1s 2.d.2x=="1F"?D(G.1L).2G().1e(G.1L).u(2.d.2x).n:h);5(!H||E||!2.3B(G)){b y}2.28=!2.d.2y;5(!2.28){2.66=2r(4(){F.28=y},2.d.2y)}5(2.2W(G)&&2.2Y(G)){2.1f=(2.2M(G)!==h);5(!2.1f){G.65();b y}}2.2O=4(I){b F.3y(I)};2.2Q=4(I){b F.1O(I)};D(3u).V("3t."+2.1m,2.2O).V("3p."+2.1m,2.2Q);b h},3y:4(E){5(D.W.18&&!E.3z){b 2.1O(E)}5(2.1f){2.3a(E);b h}5(2.2W(E)&&2.2Y(E)){2.1f=(2.2M(2.24,E)!==h);(2.1f?2.3a(E):2.1O(E))}b!2.1f},1O:4(E){D(3u).19("3t."+2.1m,2.2O).19("3p."+2.1m,2.2Q);5(2.1f){2.1f=h;2.3A(E)}b h},2W:4(E){b(1I.2L(1I.3q(2.24.3o-E.3o),1I.3q(2.24.3r-E.3r))>=2.d.3J)},2Y:4(E){b 2.28},2M:4(E){},3a:4(E){},3A:4(E){},3B:4(E){b y}};D.c.3K.1M={2x:r,3J:1,2y:0}})(1v);(4(E){E.1w("c.t",{2g:4(){7 G=2.d;5(G.6a){7 J=2.f.1C("a").u(G.3f);5(J.n){5(J.u(G.1B).n){G.v=J}q{G.v=J.1l().1l().5k();J.k("63")}}}G.U=2.f.1C(G.1B);G.v=C(G.U,G.v);5(E.W.18){2.f.1C("a").o("5X","1")}5(!2.f.1t("c-t")){2.f.k("c-t");E(\'<2m 2v="c-t-2z"/>\').3b(G.U);E(\'<2m 2v="c-t-5W"/>\').2c(G.U);G.U.k("c-t-1B").Z("5V","0")}7 I;5(G.3n){I=2.f.1l().x();G.U.z(4(){I-=E(2).3M()});7 H=0;G.U.1i().z(4(){H=1I.2L(H,E(2).5Y()-E(2).x())}).x(I-H)}q{5(G.1n){I=0;G.U.1i().z(4(){I=1I.2L(I,E(2).3M())}).x(I)}}G.U.2q(G.v||"").1i().2t();G.v.1l().2f().k(G.l);5(G.12){2.f.V((G.12)+".t",F)}},2V:4(G){F.1X(2.f[0],{1L:C(2.d.U,G)[0]})},1j:4(){2.d.U.1i().o("1x","");5(2.d.3n||2.d.1n){2.d.U.1i().o("x","")}E.1D(2.f[0],"t");2.f.X("c-t").19(".t")}});4 B(H,G){b 4(){b H.1Y(G,2K)}}4 D(I){5(!E.e(2,"t")){b}7 G=E.e(2,"t");7 H=G.d;H.1H=I?0:--H.1H;5(H.1H){b}5(H.62){H.1b.1e(H.1r).o({x:"",31:""})}G.15("6d",r,H.e)}4 A(G,K,L,J,M){7 I=E.e(2,"t").d;I.1b=G;I.1r=K;I.e=L;7 H=B(D,2);I.1H=K.2b()===0?G.2b():K.2b();5(I.25){5(!I.1u&&J){E.c.t.2E[I.25]({1b:1v([]),1r:K,1P:H,21:M,1n:I.1n})}q{E.c.t.2E[I.25]({1b:G,1r:K,1P:H,21:M,1n:I.1n})}}q{5(!I.1u&&J){G.60()}q{K.2t();G.1z()}H(y)}}4 F(L){7 J=E.e(2,"t").d;5(J.j){b h}5(!L.1L&&!J.1u){J.v.1l().2f().3H(J.l);7 I=J.v.1i(),M={d:J,3D:1v([]),3C:J.v,3E:1v([]),3F:I},G=(J.v=E([]));A.1X(2,G,I,M);b h}7 K=E(L.1L);K=E(K.2G(J.1B)[0]||K);7 H=K[0]==J.v[0];5(J.1H||(J.1u&&H)){b h}5(!K.3V(J.1B)){b}J.v.1l().2f().3H(J.l);5(!H){K.1l().2f().k(J.l)}7 G=K.1i(),I=J.v.1i(),M={d:J,3D:H&&!J.1u?E([]):K,3C:J.v,3E:H&&!J.1u?E([]):G,3F:I},N=J.U.14(J.v[0])>J.U.14(K[0]);J.v=H?E([]):K;A.1X(2,G,I,M,H,N);b h}4 C(H,G){b G?1s G=="6k"?H.u(":Y("+G+")"):H.2q(H.2q(G)):G===h?E([]):H.u(":Y(0)")}E.1q(E.c.t,{1M:{l:"i",1u:y,25:"2h",12:"2k",1B:"a",1n:y,1H:0,3f:4(){b 2.w.30()==2e.w.30()}},2E:{2h:4(G,I){G=E.1q({1W:"3k",1k:6e},G,I);5(!G.1r.2b()){G.1b.2d({x:"1z"},G);b}7 H=G.1r.x(),J=G.1b.x(),K=J/H;G.1b.o({x:0,31:"2a"}).1z();G.1r.u(":2a").z(G.1P).6g().u(":3Z").2d({x:"2t"},{6j:4(L){7 M=(H-L)*K;5(E.W.18||E.W.3Y){M=1I.6i(M)}G.1b.x(M)},1k:G.1k,1W:G.1W,1P:4(){5(!G.1n){G.1b.o("x","3m")}G.1P()}})},61:4(G){2.2h(G,{1W:G.21?"5T":"3k",1k:G.21?5w:5v})},5u:4(G){2.2h(G,{1W:"5x",1k:5y})}}});E.23.2V=4(G){b 2.t("2V",G)}})(1v);(4(A){A.1w("c.6",{2g:4(){2.d.12+=".6";2.1Q(y)},1J:4(B,C){5((/^i/).1g(B)){2.1G(C)}q{2.d[B]=C;2.1Q()}},n:4(){b 2.$6.n},3e:4(B){b B.43&&B.43.1A(/\\s/g,"2Z").1A(/[^A-5z-5t-9\\-2Z:\\.]/g,"")||2.d.41+A.e(B)},c:4(C,B){b{d:2.d,5s:C,3g:B,14:2.$6.14(C)}},1Q:4(O){2.$p=A("2p:5n(a[w])",2.f);2.$6=2.$p.26(4(){b A("a",2)[0]});2.$m=A([]);7 P=2,D=2.d;2.$6.z(4(R,Q){5(Q.1d&&Q.1d.1A("#","")){P.$m=P.$m.1e(Q.1d)}q{5(A(Q).Z("w")!="#"){A.e(Q,"w.6",Q.w);A.e(Q,"11.6",Q.w);7 T=P.3e(Q);Q.w="#"+T;7 S=A("#"+T);5(!S.n){S=A(D.2H).Z("1U",T).k(D.1T).5m(P.$m[R-1]||P.f);S.e("1j.6",y)}P.$m=P.$m.1e(S)}q{D.j.2S(R+1)}}});5(O){2.f.k(D.2F);2.$m.z(4(){7 Q=A(2);Q.k(D.1T)});5(D.i===1y){5(2e.1d){2.$6.z(4(S,Q){5(Q.1d==2e.1d){D.i=S;5(A.W.18||A.W.3Y){7 R=A(2e.1d),T=R.Z("1U");R.Z("1U","");2r(4(){R.Z("1U",T)},5l)}5o(0,0);b h}})}q{5(D.1c){7 J=5p(A.1c("c-6-"+A.e(P.f[0])),10);5(J&&P.$6[J]){D.i=J}}q{5(P.$p.u("."+D.l).n){D.i=P.$p.14(P.$p.u("."+D.l)[0])}}}}D.i=D.i===r||D.i!==1y?D.i:0;D.j=A.5q(D.j.3S(A.26(2.$p.u("."+D.1p),4(R,Q){b P.$p.14(R)}))).3W();5(A.1S(D.i,D.j)!=-1){D.j.5B(A.1S(D.i,D.j),1)}2.$m.k(D.1o);2.$p.X(D.l);5(D.i!==r){2.$m.Y(D.i).1z().X(D.1o);2.$p.Y(D.i).k(D.l);7 K=4(){P.15("1z",r,P.c(P.$6[D.i],P.$m[D.i]))};5(A.e(2.$6[D.i],"11.6")){2.11(D.i,K)}q{K()}}A(5C).V("5N",4(){P.$6.19(".6");P.$p=P.$6=P.$m=r})}q{D.i=2.$p.14(2.$p.u("."+D.l)[0])}5(D.1c){A.1c("c-6-"+A.e(P.f[0]),D.i,D.1c)}2T(7 G=0,N;N=2.$p[G];G++){A(N)[A.1S(G,D.j)!=-1&&!A(N).1t(D.l)?"k":"X"](D.1p)}5(D.1h===h){2.$6.1D("1h.6")}7 C,I,B={"5M-3R":0,1k:1},E="5P";5(D.1K&&D.1K.5Q==3Q){C=D.1K[0]||B,I=D.1K[1]||B}q{C=I=D.1K||B}7 H={1x:"",31:"",x:""};5(!A.W.18){H.2C=""}4 M(R,Q,S){Q.2d(C,C.1k||E,4(){Q.k(D.1o).o(H);5(A.W.18&&C.2C){Q[0].2B.u=""}5(S){L(R,S,Q)}})}4 L(R,S,Q){5(I===B){S.o("1x","22")}S.2d(I,I.1k||E,4(){S.X(D.1o).o(H);5(A.W.18&&I.2C){S[0].2B.u=""}P.15("1z",r,P.c(R,S[0]))})}4 F(R,T,Q,S){T.k(D.l).5L().X(D.l);M(R,Q,S)}2.$6.19(".6").V(D.12,4(){7 T=A(2).2G("2p:Y(0)"),Q=P.$m.u(":3Z"),S=A(2.1d);5((T.1t(D.l)&&!D.2l)||T.1t(D.1p)||A(2).1t(D.1N)||P.15("1G",r,P.c(2,S[0]))===h){2.29();b h}P.d.i=P.$6.14(2);5(D.2l){5(T.1t(D.l)){P.d.i=r;T.X(D.l);P.$m.2J();M(2,Q);2.29();b h}q{5(!Q.n){P.$m.2J();7 R=2;P.11(P.$6.14(2),4(){T.k(D.l).k(D.2D);L(R,S)});2.29();b h}}}5(D.1c){A.1c("c-6-"+A.e(P.f[0]),P.d.i,D.1c)}P.$m.2J();5(S.n){7 R=2;P.11(P.$6.14(2),Q.n?4(){F(R,T,Q,S)}:4(){T.k(D.l);L(R,S)})}q{5F"1v 5E 5D: 5G 5H 5I."}5(A.W.18){2.29()}b h});5(!(/^2k/).1g(D.12)){2.$6.V("2k.6",4(){b h})}},1e:4(E,D,C){5(C==1y){C=2.$6.n}7 G=2.d;7 I=A(G.3i.1A(/#\\{w\\}/g,E).1A(/#\\{2o\\}/g,D));I.e("1j.6",y);7 H=E.5K("#")==0?E.1A("#",""):2.3e(A("a:5O-5r",I)[0]);7 F=A("#"+H);5(!F.n){F=A(G.2H).Z("1U",H).k(G.1o).e("1j.6",y)}F.k(G.1T);5(C>=2.$p.n){I.2c(2.f);F.2c(2.f[0].3U)}q{I.3b(2.$p[C]);F.3b(2.$m[C])}G.j=A.26(G.j,4(K,J){b K>=C?++K:K});2.1Q();5(2.$6.n==1){I.k(G.l);F.X(G.1o);7 B=A.e(2.$6[0],"11.6");5(B){2.11(C,B)}}2.15("1e",r,2.c(2.$6[C],2.$m[C]))},1a:4(B){7 D=2.d,E=2.$p.Y(B).1a(),C=2.$m.Y(B).1a();5(E.1t(D.l)&&2.$6.n>1){2.1G(B+(B+1<2.$6.n?1:-1))}D.j=A.26(A.3X(D.j,4(G,F){b G!=B}),4(G,F){b G>=B?--G:G});2.1Q();2.15("1a",r,2.c(E.1C("a")[0],C[0]))},2R:4(B){7 C=2.d;5(A.1S(B,C.j)==-1){b}7 D=2.$p.Y(B).X(C.1p);5(A.W.6o){D.o("1x","6c-22");2r(4(){D.o("1x","22")},0)}C.j=A.3X(C.j,4(F,E){b F!=B});2.15("2R",r,2.c(2.$6[B],2.$m[B]))},2U:4(C){7 B=2,D=2.d;5(C!=D.i){2.$p.Y(C).k(D.1p);D.j.2S(C);D.j.3W();2.15("2U",r,2.c(2.$6[C],2.$m[C]))}},1G:4(B){5(1s B=="1F"){B=2.$6.14(2.$6.u("[w$="+B+"]")[0])}2.$6.Y(B).64(2.d.12)},11:4(G,K){7 L=2,D=2.d,E=2.$6.Y(G),J=E[0],H=K==1y||K===h,B=E.e("11.6");K=K||4(){};5(!B||!H&&A.e(J,"1h.6")){K();b}7 M=4(N){7 O=A(N),P=O.1C("*:68");b P.n&&P.3V(":2q(69)")&&P||O};7 C=4(){L.$6.u("."+D.1N).X(D.1N).z(4(){5(D.2i){M(2).1l().2j(M(2).e("2o.6"))}});L.2n=r};5(D.2i){7 I=M(J).2j();M(J).6h("<2X></2X>").1C("2X").e("2o.6",I).2j(D.2i)}7 F=A.1q({},D.2s,{3T:B,3d:4(O,N){A(J.1d).2j(O);C();5(D.1h){A.e(J,"1h.6",y)}L.15("11",r,L.c(L.$6[G],L.$m[G]));D.2s.3d&&D.2s.3d(O,N);K()}});5(2.2n){2.2n.5J();C()}E.k(D.1N);2r(4(){L.2n=A.5R(F)},0)},3T:4(C,B){2.$6.Y(C).1D("1h.6").e("11.6",B)},1j:4(){7 B=2.d;2.f.19(".6").X(B.2F).1D("6");2.$6.z(4(){7 C=A.e(2,"w.6");5(C){2.w=C}7 D=A(2).19(".6");A.z(["w","11","1h"],4(E,F){D.1D(F+".6")})});2.$p.1e(2.$m).z(4(){5(A.e(2,"1j.6")){A(2).1a()}q{A(2).X([B.l,B.2D,B.1p,B.1T,B.1o].5S(" "))}})}});A.c.6.1M={2l:h,12:"2k",j:[],1c:r,2i:"5A&#5U;",1h:h,41:"c-6-",2s:{},1K:r,3i:\'<2p><a w="#{w}"><2m>#{2o}</2m></a></2p>\',2H:"<2A></2A>",2F:"c-6-6l",l:"c-6-i",2D:"c-6-2l",1p:"c-6-j",1T:"c-6-3g",1o:"c-6-2t",1N:"c-6-6f"};A.c.6.3G="n";A.1q(A.c.6.1E,{3c:r,6n:4(C,F){F=F||h;7 B=2,E=2.d.i;4 G(){B.3c=6m(4(){E=++E<B.$6.n?E:0;B.1G(E)},C)}4 D(H){5(!H||H.5Z){6b(B.3c)}}5(C){G();5(!F){2.$6.V(2.d.12,D)}q{2.$6.V(2.d.12,4(){D();E=B.d.i;G()})}}q{D();2.$6.19(2.d.12,D)}}})})(1v);',62,397,"||this||function|if|tabs|var||||return|ui|options|data|element||false|selected|disabled|addClass|selectedClass|panels|length|css|lis|else|null||accordion|filter|active|href|height|true|each|||||||||||||||||||||headers|bind|browser|removeClass|eq|attr||load|event||index|_trigger|||msie|unbind|remove|toShow|cookie|hash|add|_mouseStarted|test|cache|next|destroy|duration|parent|widgetName|autoHeight|hideClass|disabledClass|extend|toHide|typeof|hasClass|alwaysOpen|jQuery|widget|display|undefined|show|replace|header|find|removeData|prototype|string|select|running|Math|_setData|fx|target|defaults|loadingClass|_mouseUp|complete|_tabify|unselectable|inArray|panelClass|id|cssCache|easing|call|apply|plugins||down|block|fn|_mouseDownEvent|animated|map||mouseDelayMet|blur|hidden|size|appendTo|animate|location|andSelf|_init|slide|spinner|html|click|unselect|span|xhr|label|li|not|setTimeout|ajaxOptions|hide|get|class|none|cancel|delay|left|div|style|opacity|unselectClass|animations|navClass|parents|panelTemplate|split|stop|arguments|max|_mouseStart|_getData|_mouseMoveDelegate|widgetEventPrefix|_mouseUpDelegate|enable|push|for|disable|activate|_mouseDistanceMet|em|_mouseDelayMet|_|toLowerCase|overflow|||||||||_mouseDrag|insertBefore|rotation|success|_tabId|navigationFilter|panel|triggerHandler|tabTemplate|widgetBaseClass|swing|type|auto|fillSpace|pageX|mouseup|abs|pageY|selectstart|mousemove|document|_mouseDown|_mouseUnselectable|on|_mouseMove|button|_mouseStop|_mouseCapture|oldHeader|newHeader|newContent|oldContent|getter|toggleClass|body|distance|mouse|MozUserSelect|outerHeight|getterSetter|5000px|option|Array|width|concat|url|parentNode|is|sort|grep|opera|visible||idPrefix|metadata|title|DOWN|||ENTER|END|CONTROL|COMMA|188|ESCAPE|DELETE|HOME|107|NUMPAD_DECIMAL|disableSelection|NUMPAD_ADD|enableSelection|INSERT|LEFT|off|CAPS_LOCK|BACKSPACE|setData|dir|scrollTop|_mouseInit|mousedown|started|visibility|getData|expr|tabbable|hasScroll|textarea|keyCode|input|scrollLeft|nodeName|tabIndex|catch|110|fix|RIGHT|absolute|190|PERIOD|top|PAGE_DOWN|PAGE_UP|SHIFT|position|UP|new|slice|plugin|TAB|SPACE|gen|in|isFunction|109|108|try|backgroundColor|_mouseDestroy|removeChild|NUMPAD_DIVIDE|111|NUMPAD_ENTER|rgba|NUMPAD_MULTIPLY|NUMPAD_SUBTRACT|cursor|default|eventPrefix|106|transparent|backgroundImage|substring|prev|500|insertAfter|has|scrollTo|parseInt|unique|child|tab|z0|easeslide|200|1000|easeinout|700|Za|vent|splice|window|Tabs|UI|throw|Mismatching|fragment|identifier|abort|indexOf|siblings|min|unload|first|normal|constructor|ajax|join|bounceout|8230|tabindex|right|zoom|innerHeight|clientX|toggle|bounceslide|clearStyle|current|trigger|preventDefault|_mouseDelayTimer|which|last|img|navigation|clearInterval|inline|change|300|loading|end|wrapInner|ceil|step|number|nav|setInterval|rotate|safari".split("|"),0,{}));eval(function(a){a.jGrowl=function(b,c){if(a("#jGrowl").size()==0){a('<div id="jGrowl"></div>').addClass(a.jGrowl.defaults.position).appendTo("body")}a("#jGrowl").jGrowl(b,c)};a.fn.jGrowl=function(b,d){if(a.isFunction(this.each)){var c=arguments;return this.each(function(){var e=this;if(a(this).data("jGrowl.instance")==undefined){a(this).data("jGrowl.instance",new a.fn.jGrowl());a(this).data("jGrowl.instance").startup(this)}if(a.isFunction(a(this).data("jGrowl.instance")[b])){a(this).data("jGrowl.instance")[b].apply(a(this).data("jGrowl.instance"),a.makeArray(c).slice(1))}else{a(this).data("jGrowl.instance").notification(b,d)}})}};a.extend(a.fn.jGrowl.prototype,{defaults:{header:"",sticky:false,position:"top-right",glue:"after",theme:"default",corners:"10px",check:500,life:3000,speed:"normal",easing:"swing",closer:true,log:function(c,b,d){},beforeOpen:function(c,b,d){},open:function(c,b,d){},beforeClose:function(c,b,d){},close:function(c,b,d){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},element:null,interval:null,notification:function(c,e){var b=this;var e=a.extend({},this.defaults,e);e.log.apply(this.element,[this.element,c,e]);var d=a('<div class="jGrowl-notification"><div class="close">&times;</div><div class="header">'+e.header+'</div><div class="message">'+c+"</div></div>").data("jGrowl",e).addClass(e.theme).children("div.close").bind("click.jGrowl",function(){a(this).unbind("click.jGrowl").parent().trigger("jGrowl.beforeClose").animate(e.animateClose,e.speed,e.easing,function(){a(this).trigger("jGrowl.close").remove()})}).parent();(e.glue=="after")?a("div.jGrowl-notification:last",this.element).after(d):a("div.jGrowl-notification:first",this.element).before(d);a(d).bind("mouseover.jGrowl",function(){a(this).data("jGrowl").pause=true}).bind("mouseout.jGrowl",function(){a(this).data("jGrowl").pause=false}).bind("jGrowl.beforeOpen",function(){e.beforeOpen.apply(b.element,[b.element,c,e])}).bind("jGrowl.open",function(){e.open.apply(b.element,[b.element,c,e])}).bind("jGrowl.beforeClose",function(){e.beforeClose.apply(b.element,[b.element,c,e])}).bind("jGrowl.close",function(){e.close.apply(b.element,[b.element,c,e])}).trigger("jGrowl.beforeOpen").animate(e.animateOpen,e.speed,e.easing,function(){a(this).data("jGrowl").created=new Date()}).trigger("jGrowl.open");if(a.fn.corner!=undefined){a(d).corner(e.corners)}if(a("div.jGrowl-notification:parent",this.element).size()>1&&a("div.jGrowl-closer",this.element).size()==0&&this.defaults.closer!=false){a('<div class="jGrowl-closer">[ lukk alle ]</div>').addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().children("div.close").trigger("click.jGrowl");if(a.isFunction(b.defaults.closer)){b.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])}})}},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){if(a(this).data("jGrowl")!=undefined&&a(this).data("jGrowl").created!=undefined&&(a(this).data("jGrowl").created.getTime()+a(this).data("jGrowl").life)<(new Date()).getTime()&&a(this).data("jGrowl").sticky!=true&&(a(this).data("jGrowl").pause==undefined||a(this).data("jGrowl").pause!=true)){a(this).children("div.close").trigger("click.jGrowl")}});if(a(this.element).find("div.jGrowl-notification:parent").size()<2){a(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){a(this).remove()})}},startup:function(b){this.element=a(b).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){jQuery(b).data("jGrowl.instance").update()},this.defaults.check);if(a.browser.msie&&parseInt(a.browser.version)<7){a(this.element).addClass("ie6")}},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();clearInterval(this.interval)}});a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults})(jQuery);var imgPath=liveConfig.staticPath+"/img/";var tb_pathToImage=imgPath+"ajaxLoader.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox, a.loginLink, a.loginNew");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(a){$(a).click(function(){var c=this.title||this.name||null;var b=this.href||this.alt;var d=this.rel||false;tb_show(c,b,d);this.blur();return false})}function tb_show(k,b,h){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(k===null){k=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var c;if(b.indexOf("?")!==-1){c=b.substr(0,b.indexOf("?"))}else{c=b}var f=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var l=c.toLowerCase().match(f);if(l==".jpg"||l==".jpeg"||l==".png"||l==".gif"||l==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(h){TB_TempArray=$("a[@rel="+h+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var g=TB_TempArray[TB_Counter].href.toLowerCase().match(f);if(!(TB_TempArray[TB_Counter].href==b)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Neste &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Forrige</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Bilde "+(TB_Counter+1)+" av totalt "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var o=tb_getPageSize();var m=o[0]-150;var r=o[1]-150;var n=imgPreloader.width;var e=imgPreloader.height;if(n>m){e=e*(m/n);n=m;if(e>r){n=n*(r/e);e=r}}else{if(e>r){n=n*(r/e);e=r;if(n>m){e=e*(m/n);n=m}}}TB_WIDTH=n+30;TB_HEIGHT=e+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Lukk'><img id='TB_Image' src='"+b+"' width='"+n+"' height='"+e+"' alt='"+k+"'/></a><div id='TB_caption'>"+k+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Lukk vinduet. Du kan ogs� trykke Esc'><img src=\""+imgPath+'closePillow.gif" /></a></div>');$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function q(){if($(document).unbind("click",q)){$(document).unbind("click",q)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,h);return false}$("#TB_prev").click(q)}if(!(TB_NextHTML==="")){function p(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,h);return false}$("#TB_next").click(p);$("#TB_Image").click(p)}document.onkeydown=function(s){if(s==null){keycode=event.keyCode}else{keycode=s.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";p()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";q()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=b}else{var a=b.replace(/^[^\?]+\??/,"");var d=tb_parseQuery(a);TB_WIDTH=(d.width*1)+30||630;TB_HEIGHT=(d.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(b.indexOf("TB_iframe")!=-1){urlNoQuery=b.split("TB_");$("#TB_iframeContent").remove();if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+k+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src=\""+imgPath+"closePillow.gif\" /></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+k+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img src=\""+imgPath+"closePillow.gif\" /></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(k)}}$("#TB_closeWindowButton").click(tb_remove);if(b.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+d.inlineId).children());$("#TB_window").unload(function(){$("#"+d.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(b.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(b+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!d.modal){document.onkeyup=function(m){if(m==null){keycode=event.keyCode}else{keycode=m.which}if(keycode==27){tb_remove()}}}}catch(j){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(d){var e={};if(!d){return e}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var g=a[c].split("=");if(!g||g.length!=2){continue}var b=unescape(g[0]);var f=unescape(g[1]);f=f.replace(/\+/g," ");e[b]=f}return e}function tb_getPageSize(){var c=document.documentElement;var a=window.innerWidth||self.innerWidth||(c&&c.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(c&&c.clientHeight)||document.body.clientHeight;arrayPageSize=[a,b];return arrayPageSize}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}}jQuery.fn.extend({blink:function(a,e,f,b,d){if(!a){a="#E10C04"}if(!f){f=5}if(!b){b=1000}else{if(!(f%2)){f=f++}}f=f*2;var g=d?d:"backgroundColor";var c=jQuery(this);return this.each(function(){var j=jQuery(this),h=e?e:j.css(g);j.stopTime("blink").everyTime(b,"blink",function(l){var k=!(l%2)?h:a;j.css(g,k)},f)})}});jQuery.fn.extend({everyTime:function(b,c,d,e,a){return this.each(function(){jQuery.timer.add(this,b,c,d,e,a)})},oneTime:function(a,b,c){return this.each(function(){jQuery.timer.add(this,a,b,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseInt(a[1],10);var d=this.powers[a[2]]||1;return b*d}else{return c}},add:function(e,c,d,g,h,b){var a=0;if(jQuery.isFunction(d)){if(!h){h=g}g=d;d=c}c=jQuery.timer.timeParse(c);if(typeof c!="number"||isNaN(c)||c<=0){return}if(h&&h.constructor!=Number){b=!!h;h=0}h=h||0;b=b||false;if(!e.$timers){e.$timers={}}if(!e.$timers[d]){e.$timers[d]={}}g.$timerID=g.$timerID||this.guid++;var f=function(){if(b&&this.inProgress){return}this.inProgress=true;if((++a>h&&h!==0)||g.call(e,a)===false){jQuery.timer.remove(e,d,g)}this.inProgress=false};f.$timerID=g.$timerID;if(!e.$timers[d][g.$timerID]){e.$timers[d][g.$timerID]=window.setInterval(f,c)}if(!this.global[d]){this.global[d]=[]}this.global[d].push(e)},remove:function(c,b,d){var e=c.$timers,a;if(e){if(!b){for(b in e){this.remove(c,b,d)}}else{if(e[b]){if(d){if(d.$timerID){window.clearInterval(e[b][d.$timerID]);delete e[b][d.$timerID]}}else{for(var d in e[b]){window.clearInterval(e[b][d]);delete e[b][d]}}for(a in e[b]){break}if(!a){a=null;delete e[b]}}}for(a in e){break}if(!a){c.$timers=null}}}}});if(jQuery.browser.msie){jQuery(window).one("unload",function(){var d=jQuery.timer.global;for(var a in d){var c=d[a],b=c.length;while(--b){jQuery.timer.remove(c[b],a)}}})}jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[Â£$â‚¬?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}});ts.addParser({id:"noShortDates",is:function(s){return false},format:function(s){var a=s.split(".");return new Date("2008/"+a[1]+"/"+a[0])}})})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);$(document).ready(function(){if(vgLive.vip){}else{}$("#vgLiveSmallAd img").click(function(){window.vgLive.showProducts()});$("a.showHelpForm").click(function(){window.vgLive.showHelpForm();return false});$("#scoreServiceRefresher").click(function(){vgLive.refreshScoreService();return false});$("a.showBigVideo").click(function(){$("#bigVideo").show(0);$("#tickerContainer").show(0);$("#liveReferrals").hide(0);return false});$("a#hideBigVideo").click(vgLive.hideBigVideo);$("a#hideSmallVideo").click(vgLive.hideSmallVideo);$("a#showUpcomingGames").click(function(){$("#upcomingGames").fadeIn(500);$("#presentGames").hide(0);return false});$("a#showPresentGames").click(function(){$("#presentGames").fadeIn(500);$("#upcomingGames").hide(0);return false});$("a.showTextLive").click(vgLive.showMatch);$("a.playClip").click(vgLive.playClip);$(".gamesList .playButton img").click(vgLive.schedulePlay);$("a.showOddsenLive").click(function(){vgLive.showOddsenLive();$("#liveResults").hide(0);$("#article").hide(0);$("#textLive").hide(0);$("#startSetup").hide(0);$("#searchResult").hide(0);$("#splashContainer").hide();return false});$("a.showLiveResults").click(function(){$("#liveResults").fadeIn(500);$("#oddsenLive").hide(0);$("#article").hide(0);$("#textLive").hide(0);$("#startSetup").hide(0);$("#searchResult").hide(0);$("#splashContainer").hide();return false});vgLive.lt=$("#leftCol > ul").tabs({fx:{opacity:"toggle"},select:function(b,a){vgLive.setLocation({lt:a.index})}});vgLive.rtt=$("#rightCol > ul.rtt").tabs({fx:{opacity:"toggle"},select:function(b,a){vgLive.setLocation({rtt:a.index})}});vgLive.rtb=$("#rightCol > ul.rtb").tabs({fx:{opacity:"toggle"},select:function(b,a){vgLive.setLocation({rtb:a.index})}});vgLive.rtm=$("#rightCol > ul.rtm").tabs({fx:{opacity:"toggle"},select:function(b,a){vgLive.setLocation({rtm:a.index})}});$("LI.drawer UL").hide();$("H2.drawer-handle").click(function(){$(this).toggleClass("open").next().slideToggle();return false});$("LI.drawerTV UL:not(:first)").hide();$("H2.drawer-handleTV").click(function(){$("LI.drawerTV UL:visible").slideUp().prev().removeClass("open");$(this).addClass("open").next().slideDown()});$("a.showLoginForm").click(function(){vgLive.showLoginForm();return false});$("a.showProfilePage").click(function(){vgLive.showProfilePage();return false});$("a.sendQueryParams").click(function(){vgLive.loadMyPage("page=products",870);vgLive.closePurchaseBox();$("#vglivePlussAd").hide();return false});$("#closePurchaseBox").click(function(){vgLive.closePurchaseBox();$("#vglivePlussAd").hide();return false});$("a.eliteguidenMatches").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/matches.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.playHighlights").click(vgLive.playHighlights).click(vgLive.showMatch);$("#eliteguiden").find("a.showTextLive").click(vgLive.showMatch);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"matches"+a,rtt:"1"},false);return false});$("a.eliteguidenTopscorer").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/topscorer.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"topscorer"+a});return false});$("a.eliteguidenTopassist").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/topassist.php?seasonClassId="+a,null,function(){vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"topscorer"+a});return false});$("a.eliteguidenBorsen").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/borsen.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.eliteguidenBorsenAll").click(vgLive.borsenViewAll);vgLive.eliteGuidenTopMenu();$("#eliteguiden").find("a.playerInfo").click(vgLive.playerInfo)});vgLive.setLocation({eliteguiden:"borsen"+a});return false});$("a.eliteguidenRefereeBorsen").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/refereeborsen.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.eliteguidenBorsenAll").click(vgLive.borsenViewAll);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"dommerBorsen"+a});return false});$("a.eliteguidenLiveTable").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/livetable.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.roundTable").click(vgLive.borsenRoundTables);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"livetable"+a});return false});$("a.eliteguidenAttendees").click(function(){window.scroll(0,0);var a=this.href.substr(this.href.lastIndexOf("#")+1);$("#vglivePlussAd").hide();$("#splashContainer").hide();$("#searchResult").hide();$("#vgLiveSmallAd").show();$("#textLive").show().empty().html('<div class="eliteTmp clearfix"><img src="http://static.vglive.no/img/tabLoad.gif" alt="" /></div>').load("data/eliteguiden/attendees.php?seasonClassId="+a,null,function(){$("#eliteguiden").find("a.borsenAttBy").click(vgLive.borsenAttBy);vgLive.eliteGuidenTopMenu()});vgLive.setLocation({eliteguiden:"attendees"+a});return false});$("#facebookTab a.logout").click(vgLive.handleFacebookLogout);$("#facebookTab a.lobby").click(vgLive.goToFacebookLobby);$("#facebookTab a.logout").click(function(){vgLive.handleFacebookLogout();return false});$("#facebookTab a.lobby").click(function(){vgLive.goToFacebookLobby();return false});$("#splashContainer").hide();$("#oneLineLoginBoxContainer").hide();$(".showSearchResults").click(vgLive.search);$("#searchForm").submit(function(){vgLive.search();return false});vgLive.matchInternalLinks($("#importantEvents"))});function SoundManager(e,a){this.flashVersion=8;this.debugMode=true;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL="data/null.mp3";this.allowPolling=true;this.useMovieStar=false;this.defaultOptions={autoLoad:false,stream:true,autoPlay:false,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onstop:null,onfinish:null,onbeforefinish:null,onbeforefinishtime:5000,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:true,position:null,pan:0,volume:100,isMovieStar:null};this.flash9Options={usePeakData:false,useWaveformData:false,useEQData:false};this.flashBlockHelper={enabled:false,message:['<div id="sm2-flashblock" style="position:fixed;left:0px;top:0px;width:100%;min-height:24px;z-index:9999;background:#666;color:#fff;font-family:helvetica,verdana,arial;font-size:11px;border-bottom:1px solid #333;opacity:0.95">','<div style="float:right;display:inline;margin-right:0.5em;color:#999;line-height:24px">[<a href="#noflashblock" onclick="document.getElementById(\'sm2-flashblock\').style.display=\'none\'" title="Go away! :)" style="color:#fff;text-decoration:none">x</a>]</div>','<div id="sm2-flashmovie" style="float:left;display:inline;margin-left:0.5em;margin-right:0.5em"><!-- [flash] --></div>','<div style="padding-left:0.5em;padding-right:0.5em;line-height:24px">Using Flashblock? Please right-click the icon and "<b>allow flash from this site</b>" to enable sound/audio features, and then reload this page.</div>',"</div>"]};var b=this;this.version=null;this.versionNumber="V2.80a.20081005";this.movieURL=null;this.url=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.id=(a||"sm2movie");this.oMC=null;this.sounds=[];this.soundIDs=[];this.muted=false;this.isIE=(navigator.userAgent.match(/MSIE/i));this.isSafari=(navigator.userAgent.match(/safari/i));this.isGecko=(navigator.userAgent.match(/gecko/i));this.debugID="soundmanager-debug";this._debugOpen=true;this._didAppend=false;this._appendSuccess=false;this._didInit=false;this._disabled=false;this._windowLoaded=false;this._hasConsole=(typeof console!="undefined"&&typeof console.log!="undefined");this._debugLevels=["log","info","warn","error"];this._defaultFlashVersion=8;this.filePatterns={flash8:/\.(mp3)/i,flash9:/\.(mp3)/i};this.netStreamTypes=["flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=new RegExp(".("+this.netStreamTypes.join("|")+")","i");this.filePattern=null;this.features={peakData:false,waveformData:false,eqData:false};this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local + internet access)"},description:null,noRemote:null,noLocal:null};this._setVersionInfo=function(){if(b.flashVersion!=8&&b.flashVersion!=9){alert('soundManager.flashVersion must be 8 or 9. "'+b.flashVersion+'" is invalid. Reverting to '+b._defaultFlashVersion+".");b.flashVersion=b._defaultFlashVersion}b.version=b.versionNumber+(b.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(b.flashVersion>8&&b.useMovieStar){b.filePatterns.flash9=new RegExp(".(mp3|"+b.netStreamTypes.join("|")+")","i")}else{b.useMovieStar=false}b.filePattern=b.filePatterns[(b.flashVersion!=8?"flash9":"flash8")];b.movieURL=(b.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf");b.features.peakData=b.features.waveformData=b.features.eqData=(b.flashVersion==9)};this._overHTTP=(document.location?document.location.protocol.match(/http/i):null);this._waitingforEI=false;this._initPending=false;this._tryInitOnFocus=(this.isSafari&&typeof document.hasFocus=="undefined");this._isFocused=(typeof document.hasFocus!="undefined"?document.hasFocus():null);this._okToDisable=!this._tryInitOnFocus;this.useAltURL=!this._overHTTP;var d="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html";this.supported=function(){return(b._didInit&&!b._disabled)};this.getMovie=function(f){return b.isIE?window[f]:(b.isSafari?document.getElementById(f)||document[f]:document.getElementById(f))};this.loadFromXML=function(g){try{b.o._loadFromXML(g)}catch(f){b._failSafely();return true}};this.createSound=function(g){if(!b._didInit){throw new Error("soundManager.createSound(): Not loaded yet - wait for soundManager.onload() before calling sound-related methods")}if(arguments.length==2){g={id:arguments[0],url:arguments[1]}}var f=b._mergeObjects(g);var h=f;if(b._idCheck(h.id,true)){return b.sounds[h.id]}if(b.flashVersion>8&&b.useMovieStar){if(h.isMovieStar==null){h.isMovieStar=(h.url.match(b.netStreamPattern)?true:false)}if(h.isMovieStar){}if(h.isMovieStar&&(h.usePeakData||h.useWaveformData||h.useEQData)){h.usePeakData=false;h.useWaveformData=false;h.useEQData=false}}b.sounds[h.id]=new c(h);b.soundIDs[b.soundIDs.length]=h.id;if(b.flashVersion==8){b.o._createSound(h.id,h.onjustbeforefinishtime)}else{b.o._createSound(h.id,h.url,h.onjustbeforefinishtime,h.usePeakData,h.useWaveformData,h.useEQData,h.isMovieStar)}if(h.autoLoad||h.autoPlay){window.setTimeout(function(){if(b.sounds[h.id]){b.sounds[h.id].load(h)}},20)}if(h.autoPlay){if(b.flashVersion==8){b.sounds[h.id].playState=1}else{b.sounds[h.id].play()}}return b.sounds[h.id]};this.destroySound=function(g,h){if(!b._idCheck(g)){return false}for(var f=0;f<b.soundIDs.length;f++){if(b.soundIDs[f]==g){b.soundIDs.splice(f,1);continue}}b.sounds[g].unload();if(!h){b.sounds[g].destruct()}delete b.sounds[g]};this.load=function(g,f){if(!b._idCheck(g)){return false}b.sounds[g].load(f)};this.unload=function(f){if(!b._idCheck(f)){return false}b.sounds[f].unload()};this.play=function(g,f){if(!b._idCheck(g)){if(typeof f!="Object"){f={url:f}}if(f&&f.url){f.id=g;b.createSound(f)}else{return false}}b.sounds[g].play(f)};this.start=this.play;this.setPosition=function(g,f){if(!b._idCheck(g)){return false}b.sounds[g].setPosition(f)};this.stop=function(f){if(!b._idCheck(f)){return false}b.sounds[f].stop()};this.stopAll=function(){for(var f in b.sounds){if(b.sounds[f] instanceof c){b.sounds[f].stop()}}};this.pause=function(f){if(!b._idCheck(f)){return false}b.sounds[f].pause()};this.resume=function(f){if(!b._idCheck(f)){return false}b.sounds[f].resume()};this.togglePause=function(f){if(!b._idCheck(f)){return false}b.sounds[f].togglePause()};this.setPan=function(g,f){if(!b._idCheck(g)){return false}b.sounds[g].setPan(f)};this.setVolume=function(f,g){if(!b._idCheck(f)){return false}b.sounds[f].setVolume(g)};this.mute=function(h){if(typeof h!="string"){h=null}if(!h){var f=null;for(var g=b.soundIDs.length;g--;){b.sounds[b.soundIDs[g]].mute()}b.muted=true}else{if(!b._idCheck(h)){return false}b.sounds[h].mute()}};this.unmute=function(h){if(typeof h!="string"){h=null}if(!h){var f=null;for(var g=b.soundIDs.length;g--;){b.sounds[b.soundIDs[g]].unmute()}b.muted=false}else{if(!b._idCheck(h)){return false}b.sounds[h].unmute()}};this.setPolling=function(f){if(!b.o||!b.allowPolling){return false}b.o._setPolling(f)};this.disable=function(g){if(b._disabled){return false}if(!g&&b.flashBlockHelper.enabled){b.handleFlashBlock()}b._disabled=true;for(var f=b.soundIDs.length;f--;){b._disableObject(b.sounds[b.soundIDs[f]])}b.initComplete();b._disableObject(b)};this.handleFlashBlock=function(g){function h(){var k=document.getElementById("sm2-flashblock");if(!k){try{var m=document.getElementById("sm2-container");if(m){m.parentNode.removeChild(m)}var n=document.createElement("div");n.innerHTML=b.flashBlockHelper.message.join("").replace("<!-- [flash] -->",b._html);b._getDocument().appendChild(n);window.setTimeout(function(){var o=document.getElementById("sm2-flashmovie").getElementsByTagName("div")[0];if(o){o.style.background="url(chrome://flashblock/skin/flash-disabled-16.png) 0px 0px no-repeat";o.style.border="none";o.style.minWidth="";o.style.minHeight="";o.style.width="16px";o.style.height="16px";o.style.marginTop="4px";o.onmouseover=null;o.onmouseout=null;o.onclick=null;document.getElementById("sm2-flashmovie").onclick=o.onclick}else{return false}},1)}catch(l){return false}}else{k.style.display="block"}this.onload=null}if(g){h();return false}if(!b.isGecko){return false}if(window.location.toString().match(/\#noflashblock/i)){return false}var f="chrome://flashblock/skin/flash-disabled-16.png";var j=new Image();j.style.position="absolute";j.style.left="-256px";j.style.top="-256px";j.onload=h;j.onerror=function(){this.onerror=null};j.src=f;b._getDocument().appendChild(j)};this.canPlayURL=function(f){return(f?(f.match(b.filePattern)?true:false):null)};this.getSoundById=function(g,f){if(!g){throw new Error("SoundManager.getSoundById(): sID is null/undefined")}var h=b.sounds[g];if(!h&&!f){}return h};this.onload=function(){soundManager._wD("<em>Warning</em>: soundManager.onload() is undefined.",2)};this.onerror=function(){};this._idCheck=this.getSoundById;this._disableObject=function(f){for(var g in f){if(typeof f[g]=="function"&&typeof f[g]._protected=="undefined"){f[g]=function(){return false}}}g=null};this._failSafely=function(){var f="You may need to whitelist this location/domain eg. file:///C:/ or C:/ or mysite.com, or set ALWAYS ALLOW under the Flash Player Global Security Settings page. The latter is probably less-secure.";var g='<a href="'+d+'" title="'+f+'">view/edit</a>';var h='<a href="'+d+'" title="Flash Player Global Security Settings">FPGSS</a>';if(!b._disabled){b.disable()}};this._normalizeMovieURL=function(f){if(f){if(f.match(/\.swf/)){f=f.substr(0,f.lastIndexOf(".swf"))}if(f.lastIndexOf("/")!=f.length-1){f=f+"/"}}return(f&&f.lastIndexOf("/")!=-1?f.substr(0,f.lastIndexOf("/")+1):"./")+b.movieURL};this._getDocument=function(){return(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]))};this._getDocument._protected=true;this._createMovie=function(r,s){if(b._didAppend&&b._appendSuccess){return false}if(window.location.href.indexOf("debug=1")+1){b.debugMode=true}b._didAppend=true;b._setVersionInfo();var k=(s?s:b.url);var t=(b.altURL?b.altURL:k);b.url=b._normalizeMovieURL(b._overHTTP?k:t);s=b.url;var f='<embed name="'+r+'" id="'+r+'" src="'+s+'" width="1" height="1" quality="high" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';var l='<object id="'+r+'" data="'+s+'" type="application/x-shockwave-flash" width="1" height="1"><param name="movie" value="'+s+'" /><param name="AllowScriptAccess" value="always" /><!-- --></object>';var n=(!b.isIE?f:l);b._html=n;var h='<div id="'+b.debugID+'-toggle" style="position:fixed;_position:absolute;right:0px;bottom:0px;_top:0px;width:1.2em;height:1.2em;line-height:1.2em;margin:2px;padding:0px;text-align:center;border:1px solid #999;cursor:pointer;background:#fff;color:#333;z-index:706" title="Toggle SM2 debug console" onclick="soundManager._toggleDebug()">-</div>';var m='<div id="'+b.debugID+'" style="display:'+(b.debugMode&&((!b._hasConsole||!b.useConsole)||(b.useConsole&&b._hasConsole&&!b.consoleOnly))?"block":"none")+';opacity:0.85"></div>';var o="soundManager._createMovie(): appendChild/innerHTML set failed. May be app/xhtml+xml DOM-related.";var q='<div id="sm2-container" style="position:absolute;left:-256px;top:-256px;width:1px;height:1px" class="movieContainer">'+n+"</div>"+(b.debugMode&&((!b._hasConsole||!b.useConsole)||(b.useConsole&&b._hasConsole&&!b.consoleOnly))&&!document.getElementById(b.debugID)?"x"+m+h:"");var u=b._getDocument();if(u){b.oMC=document.createElement("div");b.oMC.id="sm2-container";b.oMC.className="movieContainer";b.oMC.style.position="absolute";b.oMC.style.left="-256px";b.oMC.style.width="1px";b.oMC.style.height="1px";try{u.appendChild(b.oMC);b.oMC.innerHTML=n;b._appendSuccess=true}catch(j){throw new Error(o)}if(!document.getElementById(b.debugID)&&((!b._hasConsole||!b.useConsole)||(b.useConsole&&b._hasConsole&&!b.consoleOnly))){var g=document.createElement("div");g.id=b.debugID;g.style.display=(b.debugMode?"block":"none");if(b.debugMode){try{var p=document.createElement("div");u.appendChild(p);p.innerHTML=h}catch(j){throw new Error(o)}}u.appendChild(g)}u=null}};this._writeDebug=function(h,f,g){};this._writeDebug._protected=true;this._wD=this._writeDebug;this._wDAlert=function(f){alert(f)};if(window.location.href.indexOf("debug=alert")+1&&b.debugMode){}this._toggleDebug=function(){var f=document.getElementById(b.debugID);var g=document.getElementById(b.debugID+"-toggle");if(!f){return false}if(b._debugOpen){g.innerHTML="+";f.style.display="none"}else{g.innerHTML="-";f.style.display="block"}b._debugOpen=!b._debugOpen};this._toggleDebug._protected=true;this._debug=function(){for(var f=0,g=b.soundIDs.length;f<g;f++){b.sounds[b.soundIDs[f]]._debug()}};this._mergeObjects=function(k,l){var g={};for(var j in k){g[j]=k[j]}var h=(typeof l=="undefined"?b.defaultOptions:l);for(var f in h){if(typeof g[f]=="undefined"){g[f]=h[f]}}return g};this.createMovie=function(f){if(f){b.url=f}b._initMovie()};this.go=this.createMovie;this._initMovie=function(){if(b.o){return false}b.o=b.getMovie(b.id);if(!b.o){b._createMovie(b.id,b.url);b.o=b.getMovie(b.id)}if(b.o){}};this.waitForExternalInterface=function(){if(b._waitingForEI){return false}b._waitingForEI=true;if(b._tryInitOnFocus&&!b._isFocused){return false}if(!b._didInit){}setTimeout(function(){if(!b._didInit){if(!b._overHTTP){}}if(!b._didInit&&b._okToDisable){b._failSafely()}},750)};this.handleFocus=function(){if(b._isFocused||!b._tryInitOnFocus){return true}b._okToDisable=true;b._isFocused=true;if(b._tryInitOnFocus){window.removeEventListener("mousemove",b.handleFocus,false)}b._waitingForEI=false;setTimeout(b.waitForExternalInterface,500);if(window.removeEventListener){window.removeEventListener("focus",b.handleFocus,false)}else{if(window.detachEvent){window.detachEvent("onfocus",b.handleFocus)}}};this.initComplete=function(){if(b._didInit){return false}b._didInit=true;if(b._disabled){b.onerror.apply(window);return false}if(b.waitForWindowLoad&&!b._windowLoaded){if(window.addEventListener){window.addEventListener("load",b.initUserOnload,false)}else{if(window.attachEvent){window.attachEvent("onload",b.initUserOnload)}}return false}else{if(b.waitForWindowLoad&&b._windowLoaded){}b.initUserOnload()}};this.initUserOnload=function(){try{b.onload.apply(window)}catch(f){setTimeout(function(){throw new Error(f)},20);return false}};this.init=function(){b._initMovie();if(b._didInit){return false}if(window.removeEventListener){window.removeEventListener("load",b.beginDelayedInit,false)}else{if(window.detachEvent){window.detachEvent("onload",b.beginDelayedInit)}}try{b.o._externalInterfaceTest(false);b.setPolling(true);if(!b.debugMode){b.o._disableDebug()}b.enabled=true}catch(f){b._failSafely();b.initComplete();return false}b.initComplete()};this.beginDelayedInit=function(){b._windowLoaded=true;setTimeout(b.waitForExternalInterface,500);setTimeout(b.beginInit,20)};this.beginInit=function(){if(b._initPending){return false}b.createMovie();b._initMovie();b._initPending=true;return true};this.domContentLoaded=function(){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",b.domContentLoaded,false)}b.go()};this._externalInterfaceOK=function(){if(b.swfLoaded){return false}b.swfLoaded=true;b._tryInitOnFocus=false;if(b.isIE){setTimeout(b.init,100)}else{b.init()}};this._setSandboxType=function(g){var f=b.sandbox;f.type=g;f.description=f.types[(typeof f.types[g]!="undefined"?g:"unknown")];if(f.type=="localWithFile"){f.noRemote=true;f.noLocal=false}else{if(f.type=="localWithNetwork"){f.noRemote=false;f.noLocal=true}else{if(f.type=="localTrusted"){f.noRemote=false;f.noLocal=false}}}};this.destruct=function(){b.disable(true)};function c(g){var f=this;this.sID=g.id;this.url=g.url;this.options=b._mergeObjects(g);this.instanceOptions=this.options;this._iO=this.instanceOptions;this._debug=function(){if(b.debugMode){var k=null;var h=[];var l=null;var j=null;var m=64;for(k in f.options){if(f.options[k]!=null){if(f.options[k] instanceof Function){l=f.options[k].toString();l=l.replace(/\s\s+/g," ");j=l.indexOf("{");h[h.length]=" "+k+": {"+l.substr(j+1,(Math.min(Math.max(l.indexOf("\n")-1,m),m))).replace(/\n/g,"")+"... }"}else{h[h.length]=" "+k+": "+f.options[k]}}}}};this._debug();this.id3={};this.resetProperties=function(h){f.bytesLoaded=null;f.bytesTotal=null;f.position=null;f.duration=null;f.durationEstimate=null;f.loaded=false;f.loadSuccess=null;f.playState=0;f.paused=false;f.readyState=0;f.muted=false;f.didBeforeFinish=false;f.didJustBeforeFinish=false;f.instanceOptions={};f.instanceCount=0;f.peakData={left:0,right:0};f.waveformData=[];f.eqData=[]};f.resetProperties();this.load=function(j){if(typeof j!="undefined"){f._iO=b._mergeObjects(j);f.instanceOptions=f._iO}else{var j=f.options;f._iO=j;f.instanceOptions=f._iO}if(typeof f._iO.url=="undefined"){f._iO.url=f.url}if(f._iO.url==f.url&&f.readyState!=0&&f.readyState!=2){return false}f.loaded=false;f.loadSuccess=null;f.readyState=1;f.playState=(j.autoPlay?1:0);try{if(b.flashVersion==8){b.o._load(f.sID,f._iO.url,f._iO.stream,f._iO.autoPlay,(f._iO.whileloading?1:0))}else{b.o._load(f.sID,f._iO.url,f._iO.stream?true:false,f._iO.autoPlay?true:false)}}catch(h){b.onerror();b.disable()}};this.unload=function(){if(f.readyState!=0){f.setPosition(0);b.o._unload(f.sID,b.nullURL);f.resetProperties()}};this.destruct=function(){b.o._destroySound(f.sID);b.destroySound(f.sID,true)};this.play=function(h){if(!h){h={}}f._iO=b._mergeObjects(h,f._iO);f._iO=b._mergeObjects(f._iO,f.options);f.instanceOptions=f._iO;if(f.playState==1){var j=f._iO.multiShot;if(!j){return false}else{}}if(!f.loaded){if(f.readyState==0){f._iO.stream=true;f._iO.autoPlay=true;f.load(f._iO)}else{if(f.readyState==2){return false}else{}}}else{}if(f.paused){f.resume()}else{f.playState=1;if(!f.instanceCount||b.flashVersion==9){f.instanceCount++}f.position=(typeof f._iO.position!="undefined"&&!isNaN(f._iO.position)?f._iO.position:0);if(f._iO.onplay){f._iO.onplay.apply(f)}f.setVolume(f._iO.volume);f.setPan(f._iO.pan);b.o._start(f.sID,f._iO.loop||1,(b.flashVersion==9?f.position:f.position/1000))}};this.start=this.play;this.stop=function(h){if(f.playState==1){f.playState=0;f.paused=false;if(f._iO.onstop){f._iO.onstop.apply(f)}b.o._stop(f.sID,h);f.instanceCount=0;f._iO={}}};this.setPosition=function(h){f._iO.position=h;b.o._setPosition(f.sID,(b.flashVersion==9?f._iO.position:f._iO.position/1000),(f.paused||!f.playState))};this.pause=function(){if(f.paused){return false}f.paused=true;b.o._pause(f.sID);if(f._iO.onpause){f._iO.onpause.apply(f)}};this.resume=function(){if(!f.paused){return false}f.paused=false;b.o._pause(f.sID);if(f._iO.onresume){f._iO.onresume.apply(f)}};this.togglePause=function(){if(!f.playState){f.play({position:(b.flashVersion==9?f.position:f.position/1000)});return false}if(f.paused){f.resume()}else{f.pause()}};this.setPan=function(h){if(typeof h=="undefined"){h=0}b.o._setPan(f.sID,h);f._iO.pan=h};this.setVolume=function(h){if(typeof h=="undefined"){h=100}b.o._setVolume(f.sID,(b.muted&&!f.muted)||f.muted?0:h);f._iO.volume=h};this.mute=function(){f.muted=true;b.o._setVolume(f.sID,0)};this.unmute=function(){f.muted=false;b.o._setVolume(f.sID,typeof f._iO.volume!="undefined"?f._iO.volume:f.options.volume)};this._whileloading=function(k,j,h){if(!f._iO.isMovieStar){f.bytesLoaded=k;f.bytesTotal=j;f.duration=Math.floor(h);f.durationEstimate=parseInt((f.bytesTotal/f.bytesLoaded)*f.duration);if(f.readyState!=3&&f._iO.whileloading){f._iO.whileloading.apply(f)}}else{f.bytesLoaded=k;f.bytesTotal=j;f.duration=Math.floor(h);f.durationEstimate=f.duration;if(f.readyState!=3&&f._iO.whileloading){f._iO.whileloading.apply(f)}}};this._onid3=function(j,m){var h=[];for(var k=0,l=j.length;k<l;k++){h[j[k]]=m[k]}f.id3=b._mergeObjects(f.id3,h);if(f._iO.onid3){f._iO.onid3.apply(f)}};this._whileplaying=function(k,j,l,h){if(isNaN(k)||k==null){return false}f.position=k;if(f._iO.usePeakData&&typeof j!="undefined"&&j){f.peakData={left:j.leftPeak,right:j.rightPeak}}if(f._iO.useWaveformData&&typeof l!="undefined"&&l){f.waveformData=l}if(f._iO.useEQData&&typeof h!="undefined"&&h){f.eqData=h}if(f.playState==1){if(f._iO.whileplaying){f._iO.whileplaying.apply(f)}if(f.loaded&&f._iO.onbeforefinish&&f._iO.onbeforefinishtime&&!f.didBeforeFinish&&f.duration-f.position<=f._iO.onbeforefinishtime){f._onbeforefinish()}}};this._onload=function(h){h=(h==1?true:false);if(!h){if(b.sandbox.noRemote==true){}if(b.sandbox.noLocal==true){}}f.loaded=h;f.loadSuccess=h;f.readyState=h?3:2;if(f._iO.onload){f._iO.onload.apply(f)}};this._onbeforefinish=function(){if(!f.didBeforeFinish){f.didBeforeFinish=true;if(f._iO.onbeforefinish){f._iO.onbeforefinish.apply(f)}}};this._onjustbeforefinish=function(h){if(!f.didJustBeforeFinish){f.didJustBeforeFinish=true;if(f._iO.onjustbeforefinish){f._iO.onjustbeforefinish.apply(f)}}};this._onfinish=function(){f.playState=0;f.paused=false;if(f._iO.onfinish){f._iO.onfinish.apply(f)}if(f._iO.onbeforefinishcomplete){f._iO.onbeforefinishcomplete.apply(f)}f.setPosition(0);f.didBeforeFinish=false;f.didJustBeforeFinish=false;if(f.instanceCount){f.instanceCount--;if(!f.instanceCount){f.instanceCount=0;f.instanceOptions={}}}}}if(this.flashVersion==9){this.defaultOptions=this._mergeObjects(this.defaultOptions,this.flash9Options)}if(window.addEventListener){window.addEventListener("focus",b.handleFocus,false);window.addEventListener("load",b.beginDelayedInit,false);window.addEventListener("unload",b.destruct,false);if(b._tryInitOnFocus){window.addEventListener("mousemove",b.handleFocus,false)}}else{if(window.attachEvent){window.attachEvent("onfocus",b.handleFocus);window.attachEvent("onload",b.beginDelayedInit);window.attachEvent("unload",b.destruct)}else{soundManager.onerror();soundManager.disable()}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",b.domContentLoaded,false)}}var soundManager=new SoundManager();var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(isIE&&isWin&&!isOpera){g=ControlVersion()}}}}}return g}function DetectFlashVer(f,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(e,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in e){c+=b+'="'+e[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,e,g,d,h){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var f=b[c].toLowerCase();switch(f){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],e);a.embedAttrs.src=b[c+1];a.params[g]=b[c+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":a.objAttrs[b[c]]=b[c+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(h){a.embedAttrs.type=h}return a};