$(document).ready(function()
{var stream=$("#capitol_curent").val();var film=getFlashMovie('player2');if(film!=undefined)
{if(film.PercentLoaded()!=100)
{$("#writer").everyTime(100,function()
{if(film.PercentLoaded()==100)
{$("#writer").stopTime();start_movie();}});}
else
{start_movie();}}
chapterclick(film);site_cuepoints(film);slider_cue();vezi_mai_mult(300);newUser();});function getFlashMovie(movieName)
{var isIE=navigator.appName.indexOf("Microsoft")!=-1;return(isIE)?window[movieName]:document[movieName];}
function resize(w,h)
{var vid=getFlashMovie('player2');vid.width=w;vid.height=h;if($('#player-container').css('width')<w)
{$('#player-container').css('width',w);}
$('#player-container').css('height',h);$('#player').css('height',h);return true;}
function chapterclick(film)
{$('#chapters').children('li').children('a').click(function(event)
{event.preventDefault();$('.nowplaying').removeClass('nowplaying');var currentHash=$(this).parent('li').children('.hash').val();$(this).addClass('nowplaying');var c=$('.chapters').parent();var li=$(this).parent('li');var poz=li.prevAll().size();top=c.scrollTop();if(poz>7)
{c.animate({scrollTop:(poz-7)*490/15});}else c.animate({scrollTop:0});film.decryptAndLoad(currentHash,1);});}
function site_cuepoints(film)
{$('.valid_cuepoint').live("click",function(event)
{event.preventDefault();var timp=$(this).children('.cuepoint_address').val();$('.nowplaying').removeClass('nowplaying');$(this).addClass('nowplaying');film.seek(timp);});}
function get_cuepoints(id,div,user)
{$.ajax({type:"GET",url:"http://www.mediadirect.ro/csb/tv/index/getcuepoints/id/"+id+"/user/"+user,success:function(msg)
{$("#"+div).html(msg);if($('.chapters').children('li').size()==0)
{$('.chapters').animate({left:-300},{duration:450});$('#playlist_chapters').css("margin-top",(-1*parseInt($('.chapters').height()))+"px");$('#playlist_chapters').fadeIn(450);$('#go_right').removeClass('active');$('#go_left').addClass('active');}}});}
function slider_cue()
{$('#go_right').addClass('active');$('#go_left').click(function(evt)
{evt.preventDefault();$('.chapters').css("position","relative");if($('.chapters').css("left")=='0px')
{$('.chapters').animate({left:-300},{duration:450});$('#playlist_chapters').css("margin-top",(-1*parseInt($('.chapters').height()))+"px");$('#playlist_chapters').fadeIn(450);$('#go_right').removeClass('active');$(this).addClass('active');}});$('#go_right').click(function(evt)
{evt.preventDefault();if($('#playlist_chapters').css("marginRight")=='0px')
{$('#playlist_chapters').fadeOut(450);$('.chapters').animate({left:0},{duration:450});$(this).addClass('active');$('#go_left').removeClass('active');}});}
function seekCuePoint(time)
{$('.valid_cuepoint').each(function()
{if(time>=$(this).children('.cuepoint_address').val())
{log.debug(time);$('.nowplaying').removeClass('nowplaying');$(this).addClass('nowplaying');}});}
function login_old()
{$(".login").toggle(function()
{$("#header").animate({height:"200px"},1000,'swing');},function()
{$("#header").animate({height:"67px"},1000,'swing');});}
function edit_profile()
{$(".register").toggle(function()
{var htmlcontent="";$.ajax({type:"GET",url:"http://www.mediadirect.ro/csb/user/edit",success:function(msg)
{$("#header_content").html(msg);$("#birth_date").datepicker({dateFormat:'yy-mm-dd',changeMonth:true,changeYear:true,dayNames:['Duminica','Luni','Marti','Miercuri','Joi','Vineri','Sambata'],dayNamesMin:['Du','Lu','Ma','Mi','Jo','Vi','Sa'],monthNames:['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie','Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'],monthNamesShort:['Ian','Feb','Mar','Apr','Mai','Iun','Iul','Aug','Sep','Oct','Noi','Dec'],firstDay:1,yearRange:'-109:0',showAnim:'fadeIn'});useredit();}});$("#header").animate({height:"350px"},1000,'swing',function()
{});},function()
{$("#header").animate({height:"67px"},1000,'swing',function()
{$("#header_content").html('');});});}
function useredit()
{$("#user_update").click(function()
{var username=$("#edit_username").val();var telefon=$("#edit_telefon").val();var birth_date=$("#birth_date").val();$.ajax({type:"GET",url:"http://www.mediadirect.ro/csb/user/useredit/username/"+username+"/telefon/"+telefon+"/birth_date/"+birth_date+"/",success:function(msg)
{if(msg=="ok")
$("#result-edit").text('Datele au fost salvate!');}});});}
function vezi_mai_mult(cat)
{var content=$(".synopsis").text();var lungime=content.length;if(lungime>cat)
{$(".synopsis").html('<span class="visible">'+content.substring(0,cat)+'</span><span class="invisible">'+content.substring((cat+1),lungime)+'</span>');$(".invisible").css("display","none");$(".synopsis").append(' <a href="#" class="see_more">[vezi mai mult]</a>');$(".see_more").toggle(function(event)
{event.preventDefault();$(".invisible").fadeIn("slow",function()
{$(".see_more").text('[vezi mai putin]');});},function(e)
{e.preventDefault();$(".invisible").fadeOut("slow",function()
{$(".see_more").text('[vezi mai mult]');});});}}
function newUser()
{$('.inregistrare').click(function(){var email=$('#newUsername').val();var pass=$('#newPassword').val();var vpass=$('#newPassword2').val();var ok=false;var chk=email.split('@');if(chk.length!=2||chk[0].length<1)
{ok=false;alert('Format email incorect.');return false;}
var d=chk[1].split('.');if(d.length<2||d[0].length<2||d[d.length-1].length<2)
{ok=false;alert('Format email incorect.');return false;}
$.ajax({type:"GET",url:"http://www.mediadirect.ro/csb/default/user/checkemail",data:"email="+email,success:function(msg)
{switch(msg)
{case'exista':{alert('Acest email este folosit deja');ok=false;}break;default:{ok=true;if(pass!==vpass)
{alert('Cele 2 parole trebuie sa coincida');ok=false;}
if($('#acceptTC').attr('checked')==false)
{alert('Trebuie sa fii de acord cu termenii si conditiile');ok=false;return false;}
if(ok==true)
$('#registerFrm').submit();}}}});return false;});}
function no_flash(version)
{var alternateContent='<div style="width:720px; height:305px; background:#111; margin: 0px auto; text-align:center; padding-top:200px; border:none;"><h2 style="color: #ccc;">Pentru a viziona filmul, aveti nevoie de cel putin Flash Player v'+version+'</h2><a href="http://www.adobe.com/go/EN_US-H-GET-FLASH" target="_blank"><img src="img/get_adobe_flash_player.jpg" style="border:none;"/></a></div>';document.write(alternateContent);};$(document).ready(function(){login();register();login_register_form_click();romanesti_mostviewed();romanesti_latest();mediapro_latest();mediapro_mostviewed();trailers_latest();trailers_mostviewed();desene_mostviewed();desene_latest();cinemateca_mostviewed();cinemateca_latest();$('#tagcloud a').toggle(function(){$(this).addClass('active-tag');$(this).blur();},function(){$(this).removeClass('active-tag');$(this).blur();});$('#tabs li.top-filme').hover(function(){$('#tabs li.top-filme div.lista').fadeIn();},function(){$('#tabs li.top-filme div.lista').fadeOut();});$('#columns div.left div.box div.center ul.select li').click(function()
{$('#columns div.left div.box div.center ul.select li span.submeniu').fadeOut();$(this).children('span').fadeIn();$('body').oneTime("3s",function()
{$('#columns div.left div.box div.center ul.select li span.submeniu').fadeOut();});});slider();});function login_register_form_click()
{$("#loginForm input").focus(function()
{if($(this).val()=='Email'||$(this).val()=='****')
$(this).val('');}).blur(function(){if($(this).val()=="")$(this).val('Email');});$("#registerForm #newUsername").focus(function()
{if($(this).val()=='Email')
$(this).val('');}).blur(function(){if($(this).val()=="")$(this).val('Email');});;$(".search").children('input').focus(function()
{$(this).val('');});$("#newPassword").focus(function()
{$(this).after('<input type="password" id="newPassword" name="pass" class="text" value="" />').remove();$("#newPassword").focus();});$("#newPassword2").focus(function()
{$(this).after('<input type="password" id="newPassword2" name="repass" class="text" value="" />').remove();$("#newPassword2").focus();});}
function login()
{$(".login").click(function(event)
{event.preventDefault();var headerHeight=$('#header').height();switch(headerHeight)
{case 150:{if($("#registerForm").css('display')=='block')
{$('.register').fadeTo("slow",1);$(this).fadeTo("slow",0.5);$('#registerForm').fadeOut({duration:200});$('#loginForm').fadeIn({duration:1000});}
else
{$(this).fadeTo("slow",1);$('#loginForm').fadeOut(200,function()
{$("#header").animate({height:"67px"},500,'swing');});}
break;}
case 67:{$(this).fadeTo("slow",0.5);$("#header").animate({height:"150px"},500,'swing',function()
{$('#loginForm').fadeIn({duration:1000});});break;}}});}
function register()
{$(".register").click(function(event)
{event.preventDefault();var headerHeight=$('#header').height();switch(headerHeight)
{case 150:{if($('#loginForm').css('display')=='block')
{$('.login').fadeTo("slow",1);$(this).fadeTo("slow",0.5);$('#loginForm').fadeOut({duration:200});$('#registerForm').fadeIn({duration:1000});}
else
{$(this).fadeTo("slow",1);$('#registerForm').fadeOut(200,function()
{$("#header").animate({height:"67px"},500,'swing');});}
break;}
case 67:{$(this).fadeTo("slow",0.5);$('#header').animate({height:"150px"},500,'swing',function()
{$('#registerForm').fadeIn({duration:1000});});break;}}});}
function slider()
{pages=$('#mask ul li').length;page=1;pageWidth=900;$('#back').click(function(event)
{event.preventDefault();$(this).blur();if(page>1)
{$('#mask ul').animate({left:"+="+pageWidth},500,'swing');page--;$('#counter').html(page+"/"+pages);}});$('#fwd').click(function(event)
{event.preventDefault();$(this).blur();if(page<pages)
{$('#mask ul').animate({left:"-="+pageWidth},500,'swing');page++;$('#counter').html(page+"/"+pages);}});}
function reset_slider()
{pages=$('#mask ul li').length;page=1;$('#mask ul').css('left','0px');}
function romanesti_mostviewed()
{$(".romanesti_mostviewed").click(function(event)
{event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/csb/romanesti/index/mostviewed",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai vizualizate filme romanesti <b id="counter">1/3</b>');});}});});}
function romanesti_latest()
{$(".romanesti_latest").click(function(event)
{event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/csb/romanesti/index/latest",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai noi filme romanesti <b id="counter">1/3</b>');});}});});}
function mediapro_mostviewed()
{$(".mediapro_mostviewed").click(function(event)
{event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/store/index/mostviewed",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai vizualizate filme <b id="counter">1/3</b>');});}});});}
function mediapro_latest()
{$(".mediapro_latest").click(function(event)
{event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/store/index/latest",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai noi filme <b id="counter">1/3</b>');});}});});}
function trailers_mostviewed()
{$(".trailere_mostviewed").click(function(event)
{event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/trailere/index/mostviewed",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai vizualizate trailere <b id="counter">1/3</b>');});}});});}
function trailers_latest()
{$(".trailere_latest").click(function(event)
{event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/trailere/index/latest",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai noi trailere <b id="counter">1/3</b>');});}});});}
function desene_mostviewed()
{$('.desene_mostviewed').click(function(event){event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/desene/index/mostviewed",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai vizualizate desene <b id="counter">1/3</b>');});}});});}
function desene_latest()
{$('.desene_latest').click(function(event){event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/desene/index/latest",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai noi desene <b id="counter">1/3</b>');});}});});}
function cinemateca_mostviewed()
{$('.cinemateca_mostviewed').click(function(event){event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/cinemateca/index/mostviewed",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai vizualizate filme <b id="counter">1/3</b>');});}});});}
function cinemateca_latest()
{$('.cinemateca_latest').click(function(event){event.preventDefault();$.ajax({type:"GET",url:"http://www.mediadirect.ro/cinemateca/index/latest",beforeSend:function()
{},success:function(msg)
{$(".mask").children('ul').children('li').children('a').fadeOut("slow",function()
{$(this).remove();$(".mask").children('ul').html(msg);reset_slider();$(".mask").children('ul').children('li').children('a').css('display','none').fadeIn("slow");$(".titlu_top").html('Cele mai noi filme <b id="counter">1/3</b>');});}});});};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 version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{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 versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+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":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;};jQuery.fn.extend({everyTime:function(interval,label,fn,times,belay){return this.each(function(){jQuery.timer.add(this,interval,label,fn,times,belay);});},oneTime:function(interval,label,fn){return this.each(function(){jQuery.timer.add(this,interval,label,fn,1);});},stopTime:function(label,fn){return this.each(function(){jQuery.timer.remove(this,label,fn);});}});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(value){if(value==undefined||value==null)
return null;var result=this.regex.exec(jQuery.trim(value.toString()));if(result[2]){var num=parseInt(result[1],10);var mult=this.powers[result[2]]||1;return num*mult;}else{return value;}},add:function(element,interval,label,fn,times,belay){var counter=0;if(jQuery.isFunction(label)){if(!times)
times=fn;fn=label;label=interval;}
interval=jQuery.timer.timeParse(interval);if(typeof interval!='number'||isNaN(interval)||interval<=0)
return;if(times&&times.constructor!=Number){belay=!!times;times=0;}
times=times||0;belay=belay||false;if(!element.$timers)
element.$timers={};if(!element.$timers[label])
element.$timers[label]={};fn.$timerID=fn.$timerID||this.guid++;var handler=function(){if(belay&&this.inProgress)
return;this.inProgress=true;if((++counter>times&&times!==0)||fn.call(element,counter)===false)
jQuery.timer.remove(element,label,fn);this.inProgress=false;};handler.$timerID=fn.$timerID;if(!element.$timers[label][fn.$timerID])
element.$timers[label][fn.$timerID]=window.setInterval(handler,interval);if(!this.global[label])
this.global[label]=[];this.global[label].push(element);},remove:function(element,label,fn){var timers=element.$timers,ret;if(timers){if(!label){for(label in timers)
this.remove(element,label,fn);}else if(timers[label]){if(fn){if(fn.$timerID){window.clearInterval(timers[label][fn.$timerID]);delete timers[label][fn.$timerID];}}else{for(var fn in timers[label]){window.clearInterval(timers[label][fn]);delete timers[label][fn];}}
for(ret in timers[label])break;if(!ret){ret=null;delete timers[label];}}
for(ret in timers)break;if(!ret)
element.$timers=null;}}}});if(jQuery.browser.msie)
jQuery(window).one("unload",function(){var global=jQuery.timer.global;for(var label in global){var els=global[label],i=els.length;while(--i)
jQuery.timer.remove(els[i],label);}});;$(document).ready(function(){$('#backToHome').css('cursor','pointer');$('#backToHome').click(function(event){event.preventDefault();});});