(function(a)
{a.fn.appear=function(c,d){var b=a.extend({data:undefined,one:true},d);return this.each(function()
{var d=a(this);d.appeared=false;if(!c){d.trigger("appear",b.data);return}var e=a(window),f=function()
{if(!d.is(":visible"))
{d.appeared=false;return}var a=e.scrollLeft(),c=e.scrollTop(),f=d.offset(),g=f.left,h=f.top;if(h+d.height()>=c&&h<=c+e.height()&&g+d.width()>=a&&g<=a+e.width())!d.appeared&&d.trigger("appear",b.data);else d.appeared=false},g=function()
{d.appeared=true;if(b.one){e.unbind("scroll",f);var g=a.inArray(f,a.fn.appear.checks);g>=0&&a.fn.appear.checks.splice(g,1)}c.apply(this,arguments)};if(b.one)d.one("appear",b.data,g);else d.bind("appear",b.data,g);e.scroll(f);a.fn.appear.checks.push(f);f()})};a.extend(a.fn.appear,{checks:[],timeout:null,checkAll:function(){var b=a.fn.appear.checks.length;if(b>0)while(b--)a.fn.appear.checks[b]()},run:function(){a.fn.appear.timeout&&clearTimeout(a.fn.appear.timeout);a.fn.appear.timeout=setTimeout(a.fn.appear.checkAll,20)}});a.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(d,c){var b=a.fn[c];if(b)a.fn[c]=function(){var c=b.apply(this,arguments);a.fn.appear.run();return c}})})(jQuery);


/* menuhover */
(function(a){a.fn.hoverIntent=function(j,k){var b={sensitivity:7,interval:100,timeout:0};b=a.extend(b,k?{over:j,out:k}:j);var d,e,f,g,c=function(a){d=a.pageX;e=a.pageY},i=function(j,h){h.hoverIntent_t=clearTimeout(h.hoverIntent_t);if(Math.abs(f-d)+Math.abs(g-e)<b.sensitivity){a(h).unbind("mousemove",c);h.hoverIntent_s=1;return b.over.apply(h,[j])}else{f=d;g=e;h.hoverIntent_t=setTimeout(function(){i(j,h)},b.interval)}},l=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);a.hoverIntent_s=0;return b.out.apply(a,[c])},h=function(e){var h=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(h&&h!=this)try{h=h.parentNode}catch(e){h=this}if(h==this)return false;var j=jQuery.extend({},e),d=this;if(d.hoverIntent_t)d.hoverIntent_t=clearTimeout(d.hoverIntent_t);if(e.type=="mouseover"){f=j.pageX;g=j.pageY;a(d).bind("mousemove",c);if(d.hoverIntent_s!=1)d.hoverIntent_t=setTimeout(function(){i(j,d)},b.interval)}else{a(d).unbind("mousemove",c);if(d.hoverIntent_s==1)d.hoverIntent_t=setTimeout(function(){l(j,d)},b.timeout)}};return this.mouseover(h).mouseout(h)}})(jQuery);

/* langmenu */
jQuery.fn.getBox=function(){return{left:$(this).offset().left,top:$(this).offset().top,width:$(this).outerWidth(),height:$(this).outerHeight()}};

/* langmenu */
jQuery.fn.position=
function(h,a){var b={t:0,l:0,c:.5,b:1,r:1},g={anchor:["tl","tl"],animate:false,offset:[0,0]};a=$.extend(g,a);var c=$(h).getBox(),f=$(this).getBox(),d=c.left,e=c.top;e-=b[a.anchor[0].charAt(0)]*f.height;d-=b[a.anchor[0].charAt(1)]*f.width;e+=b[a.anchor[1].charAt(0)]*c.height;d+=b[a.anchor[1].charAt(1)]*c.width;d+=a.offset[0];e+=a.offset[1];$(this).css({left:d+"px",top:e+"px"})};
(function(a){var c=a.browser.msie&&a.browser.version<8,b=4;a.watermarker=function(){};a.extend(a.watermarker,{defaults:{color:"#999",left:0,top:0,fallback:false,animDuration:300,minOpacity:.6},setDefaults:function(b){a.extend(a.watermarker.defaults,b)},checkVal:function(c,b){if(c.length==0)a(b).show();else a(b).hide();return c.length>0},html5_support:function(){var a=document.createElement("input");return"placeholder"in a}});
a.fn.watermark=function(e,d){var d,f;d=a.extend(a.watermarker.defaults,d);f=this.filter("textarea, input:not(:checkbox,:radio,:file,:submit,:reset)");if(d.fallback&&a.watermarker.html5_support())return;
f.each(function(){var f,j,l,h,g,i,m,p,k=0,o,n;f=a(this);if(f.attr("data-jq-watermark")=="processed")return;j=f.attr("placeholder")!=undefined&&f.attr("placeholder")!=""?"placeholder":"title";l=e===undefined||e===""?a(this).attr(j):e;h=a('<span class="watermark_container"></span>');g=a('<span class="watermark">'+l+"</span>");j=="placeholder"&&f.removeAttr("placeholder");h.css({display:"inline-block",position:"relative"});c&&h.css({zoom:1,display:"inline"});f.wrap(h).attr("data-jq-watermark","processed");if(this.nodeName.toLowerCase()=="textarea"){e_height=f.outerHeight();e_height=e_height==="normal"?parseInt(f.css("font-size")):e_height;k=f.css("padding-top")!="auto"?parseInt(f.css("padding-top")):0}else{e_height=f.outerHeight();if(e_height<=0){e_height=f.css("padding-top")!="auto"?parseInt(f.css("padding-top")):0;e_height+=f.css("padding-bottom")!="auto"?parseInt(f.css("padding-bottom")):0;e_height+=f.css("height")!="auto"?parseInt(f.css("height")):0}}k+=f.css("margin-top")!="auto"?parseInt(f.css("margin-top")):0;i=f.css("margin-left")!="auto"?parseInt(f.css("margin-left")):0;i+=f.css("padding-left")!="auto"?parseInt(f.css("padding-left")):0;g.css({position:"absolute",display:"block",fontFamily:f.css("font-family"),fontSize:f.css("font-size"),color:d.color,left:b+d.left+i,top:d.top+k,height:e_height,textAlign:"left",pointerEvents:"none",overflow:"hidden"}).data("jq_watermark_element",f);this.nodeName.toLowerCase()!="textarea"&&g.css({lineHeight:e_height+"px"});a.watermarker.checkVal(f.val(),g);
g.click(function(){a(a(this).data("jq_watermark_element")).trigger("focus")});f.before(g).bind("focus.jq_watermark",function(){!a.watermarker.checkVal(a(this).val(),g)&&g.stop().fadeTo(d.animDuration,d.minOpacity)}).bind("blur.jq_watermark change.jq_watermark",function(){!a.watermarker.checkVal(a(this).val(),g)&&g.stop().fadeTo(d.animDuration,1)}).bind("keydown.jq_watermark",function(){a(g).hide()}).bind("keyup.jq_watermark",function(){a.watermarker.checkVal(a(this).val(),g)})});return this};a(document).ready(function(){a(".jq_watermark").watermark()})})(jQuery);
ValidatorUpdateIsValid=function(){Page_IsValid=AllValidatorsValid(Page_Validators);ClearValidatorCallouts();SetValidatorCallouts()};ValidatorValidate=function(a,b,c){a.isvalid=true;if((typeof a.enabled=="undefined"||a.enabled!=false)&&IsValidationGroupMatch(a,b))if(typeof a.evaluationfunction=="function"){a.isvalid=a.evaluationfunction(a);!a.isvalid&&Page_InvalidControlToBeFocused==null&&typeof a.focusOnError=="string"&&a.focusOnError=="t"&&ValidatorSetFocus(a,c)}ClearValidatorCallouts();SetValidatorCallouts();ValidatorUpdateDisplay(a)};SetValidatorCallouts=function(){for(var b=true,a=0;a<Page_Validators.length;a++){var c=document.getElementById(Page_Validators[a].controltovalidate);if(!Page_Validators[a].isvalid){b&&c.focus();WebForm_AppendToClassName(c,"error");b=false}}return b};ClearValidatorCallouts=function(){for(var c=[],a=0;a<Page_Validators.length;a++){var b=document.getElementById(Page_Validators[a].controltovalidate);WebForm_RemoveClassName(b,"error")}};
ValidatorOnChange=function(b){if(!b)b=window.event;Page_InvalidControlToBeFocused=null;var a;if(typeof b.srcElement!="undefined"&&b.srcElement!=null)a=b.srcElement;else a=b.target;var c;if(typeof a.Validators!="undefined")c=a.Validators;else if(a.tagName.toLowerCase()=="label"){a=document.getElementById(a.htmlFor);c=a.Validators}var d;if(c==null)c=Page_Validators;for(d=0;d<c.length;d++)ValidatorValidate(c[d],null,b);ValidatorUpdateIsValid()};ValidatorUpdateDisplay=function(a){if(typeof a.display=="string"){if(a.display=="None")return;if(a.display=="Dynamic"){if(a.isvalid)$(a).hide("fast");else $(a).show("fast");return}}if(navigator.userAgent.indexOf("Mac")>-1&&navigator.userAgent.indexOf("MSIE")>-1)a.style.display="inline";a.style.visibility=a.isvalid?"hidden":"visible"};String.prototype.repeat=function(a){return(new Array(a+1)).join(this)};String.prototype.trim=function(){return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")};String.prototype.startsWith=function(a){return this.match("^"+a)==a};String.prototype.endsWith=function(a){return this.match(a+"$")==a};$(document).ready(function(){var a=navigator.userAgent;a.indexOf("MSIE 6")>0&&$("#contentWrapper.hasTabs").css("margin-top","75px");if(!(a.indexOf("MSIE 6")>0||a.indexOf("MSIE 7")>0))

{$("#mainNav > li.f").removeClass("sd");$("#mainNav > li.f").hoverIntent(function(){$(this).addClass("sd")},function(){$(this).removeClass("sd")})}

$("div.menuContainer div.title input[type=text]").focus(function(){var a=$(this).parents(".menuContainer"),b=$("div.body",a);if(b.css("display")=="none"){b.show();a.addClass("open")}});$("div.menuContainer div.title").click(function(c){var a=$(this).parent(),b=$("div.body",a);if(b.css("display")=="none"){b.show();a.addClass("open")}else if(!($(c.target).hasClass("noclose")||$(c.target).hasClass("watermark"))){b.hide();a.removeClass("open")}});$(document).click(function(b){var a=$("div.menuContainer");a.each(function(){var c=$("div.body",$(this));if(!$(b.target).parents("div.menuContainer").is("div.menuContainer"))if(c.css("display")=="block"){b.preventDefault();c.hide();a.removeClass("open")}})})});function trim(b){var a=0,c=b.length-1;while(a<b.length&&b[a]==" ")a++;while(c>a&&b[c]==" ")c-=1;return b.substring(a,c+1)}$(document).ready(function()


{var a=$(".tabs_tabscontainer ul.tabs_tabs li:first");a.addClass("active").show();var b=a.find("a").attr("href");loadUrlIfNeeded(b);$(".tabs_tabscontainer ul.tabs_tabs li").click(function(){$(".tabs_tabscontainer ul.tabs_tabs li").removeClass("active");$(this).addClass("active");$(".tabs_content").hide();var a=$(this).find("a").attr("href");$(a).fadeIn();loadUrlIfNeeded(a);return false})});

function loadUrlIfNeeded(b){var a=$(b).find("a.tabs_ajaxurl");if(a.attr("href")!=null){var c=a.attr("href");if(a.attr("rel")!=null)c+=" "+a.attr("rel");$(b).load(c,function(e,c,a){if(c=="error"){var d="Sorry but there was an error: ";$(b).html("<div>"+d+a.status+" "+a.statusText+"</div>")}})}}



var hideTimer,menu,placeholderRef;$(document).ready
(function()
{menu=$("#languagemenu");
	placeholderRef=$("#languageSelectionWrapper");
	placeholderRef.click(function(){menu.toggle(0,toggleMenuCallback).position("#languageSelectionWrapper",{anchor:["tr","br"],offset:[0,0]})});
	placeholderRef.hover(function(){hideTimer!=null&&window.clearTimeout(hideTimer)},																	 
function()
{if(menu.is(":visible")==true)
	{hideTimer!=null&&window.clearTimeout(hideTimer);
	hideTimer=window.setTimeout(hideMenu,1200)}});
	menu.hover(function(){hideTimer!=null&&window.clearTimeout(hideTimer)},function(){if(menu.is(":visible")==true){hideTimer!=null&&window.clearTimeout(hideTimer)
	hideTimer=window.setTimeout(hideMenu,1200)}});
	$("a.languageSelectionItem").click(function(){$.cookie(".c",$(this).attr("nc:rel"),{expires:365,path:"/"});
	window.location.href=window.location.href;return false})});
function toggleMenuCallback(){if(menu.is(":visible")==true)placeholderRef.css("background-color","#dedede");
	else placeholderRef.css("background-color","inherit")}



function hideMenu(){menu.hide();placeholderRef.css("background-color","inherit")};$(document).ready(function(){$("#homeCinema .tabs a").click(function(d){d.preventDefault();$("li.active",$(this).closest("ul")).removeClass("active");var a=$(this).parent();a.addClass("active");Cufon.refresh("div#homeCinema > div.tabs strong");var c=a.index(),b=$("#homeTabContentWrapper .panel");$(b).hide();$(b[c]).show()})});



