$.updateDimensions=function(){$("#menu-one, #menu-one").removeAttr("style");var bodyWidth=$(document).width();var firstMenuWidth=$("#menu-one ul").width();var firstMenuWidth=firstMenuWidth*1+30;var secondMenuWidth=$("#menu-two ul").width();var secondMenuWidth=secondMenuWidth*1+10;if(bodyWidth>1212&&bodyWidth<1500){$("#main").css("width","80%");$("#menu-one ul").css("margin-left","20px");$("#menu-one").css("width",firstMenuWidth+"px");$("#menu-two").css("width",secondMenuWidth+"px")}else{if(bodyWidth>1500){$("#main").css("width","1200px");$("#menu-one ul").css("margin-left","");$("#menu-one").css("width",firstMenuWidth+"px");$("#menu-two").css("width",secondMenuWidth+"px")}else{$("#main").css("width","970px");var menuOneWidth=firstMenuWidth*1+30;$("#menu-one").css("width",menuOneWidth+"px");$("#menu-two").css("width",secondMenuWidth+"px");$("#menu-one ul").css("margin-left","40px")}}};$.initMenu=function(params){path=params.path;$(path+" a").each(function(){divID=$(this).attr("href");$(divID).hide()});visibleDiv=$(path+":eq(0) a").attr("href");if(visibleDiv!=null){$(visibleDiv).show()}$(path+":eq(0)").attr("class","menu-active")};$.tabberMenu=function(params){path=params.path;current=params.current;i=$(path).index(current);if($(current).attr("class")!="menu-active"){$(path).attr("class","");currentDivID=$(current).children("span").children("a").attr("href");$(path+" a").each(function(){divID=$(this).attr("href");if($(divID).is(":visible")){$(divID).hide()}});$(current).attr("class","menu-active");if(path=="#menu-two li"){if(upgradedUser==false&&currentDivID=="#sites-list-nonvip"){$("#bottom-bg").attr("class","box-four-bottom");$(currentDivID).show()}else{$("#bottom-bg").attr("class","box-four-bottom box-four-bottom-orange");$(currentDivID).show()}}else{$(currentDivID).show()}}};(function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+$.fn.jquery);return }$.blockUI=function(opts){install(window,opts)};$.unblockUI=function(opts){remove(window,opts)};$.fn.block=function(opts){return this.each(function(){if($.css(this,"position")=="static"){this.style.position="relative"}if($.browser.msie){this.style.zoom=1}install(this,opts)})};$.fn.unblock=function(opts){return this.each(function(){remove(this,opts)})};$.blockUI.version=2.08;$.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{backgroundColor:"#000",opacity:"0.9"},baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeOut:400,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null};var ie6=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var pageBlock=null;var pageBlockEls=[];function install(el,opts){var full=(el==window);var msg=opts&&opts.message!==undefined?opts.message:undefined;opts=$.extend({},$.blockUI.defaults,opts||{});opts.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,opts.overlayCSS||{});var css=$.extend({},$.blockUI.defaults.css,opts.css||{});msg=msg===undefined?opts.message:msg;if(full&&pageBlock){remove(window,{fadeOut:0})}if(msg&&typeof msg!="string"&&(msg.parentNode||msg.jquery)){var node=msg.jquery?msg[0]:msg;var data={};$(el).data("blockUI.history",data);data.el=node;data.parent=node.parentNode;data.display=node.style.display;data.position=node.style.position;data.parent.removeChild(node)}var z=opts.baseZ;var lyr1=($.browser.msie)?$('<iframe class="blockUI" style="z-index:'+z+++';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):$('<div class="blockUI" style="display:none"></div>');var lyr2=$('<div class="blockUI" style="z-index:'+z+++';cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var lyr3=full?$('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';position:fixed"></div>'):$('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');if(msg){lyr3.css(css)}if(!opts.applyPlatformOpacityRules||!($.browser.mozilla&&/Linux/.test(navigator.platform))){lyr2.css(opts.overlayCSS)}lyr2.css("position",full?"fixed":"absolute");if($.browser.msie){lyr1.css("opacity","0.0")}$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full?"body":el);var expr=$.browser.msie&&(!$.boxModel||$("object,embed",full?null:el).length>0);if(ie6||expr){if(full&&opts.allowBodyStretch&&$.boxModel){$("html,body").css("height","100%")}if((ie6||!$.boxModel)&&!full){var t=sz(el,"borderTopWidth"),l=sz(el,"borderLeftWidth");var fixT=t?"(0 - "+t+")":0;var fixL=l?"(0 - "+l+")":0}$.each([lyr1,lyr2,lyr3],function(i,o){var s=o[0].style;s.position="absolute";if(i<2){try{full?s.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):s.setExpression("height",'this.parentNode.offsetHeight + "px"');full?s.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):s.setExpression("width",'this.parentNode.offsetWidth + "px"');if(fixL){s.setExpression("left",fixL)}if(fixT){s.setExpression("top",fixT)}}catch(e){}}else{if(opts.centerY){try{if(full){s.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}s.marginTop=0}catch(e){}}}})}lyr3.append(msg).show();if(msg&&(msg.jquery||msg.nodeType)){$(msg).show()}bind(1,el,opts);if(full){pageBlock=lyr3[0];pageBlockEls=$(":input:enabled:visible",pageBlock);if(opts.focusInput){setTimeout(focus,20)}}else{center(lyr3[0],opts.centerX,opts.centerY)}}function remove(el,opts){var full=el==window;var data=$(el).data("blockUI.history");opts=$.extend({},$.blockUI.defaults,opts||{});bind(0,el,opts);var els=full?$("body").children().filter(".blockUI"):$(".blockUI",el);if(full){pageBlock=pageBlockEls=null}if(opts.fadeOut){els.fadeOut(opts.fadeOut);setTimeout(function(){reset(els,data,opts,el)},opts.fadeOut)}else{reset(els,data,opts,el)}}function reset(els,data,opts,el){els.each(function(i,o){if(this.parentNode){this.parentNode.removeChild(this)}});if(data&&data.el){data.el.style.display=data.display;data.el.style.position=data.position;data.parent.appendChild(data.el);$(data.el).removeData("blockUI.history")}if(typeof opts.onUnblock=="function"){opts.onUnblock(el,opts)}}function bind(b,el,opts){var full=el==window,$el=$(el);if(!b&&(full&&!pageBlock||!full&&!$el.data("blockUI.isBlocked"))){return }if(!full){$el.data("blockUI.isBlocked",b)}var events="mousedown mouseup keydown keypress click";b?$(document).bind(events,opts,handler):$(document).unbind(events,handler)}function handler(e){if(e.keyCode&&e.keyCode==9){if(pageBlock&&e.data.constrainTabKey){var els=pageBlockEls;var fwd=!e.shiftKey&&e.target==els[els.length-1];var back=e.shiftKey&&e.target==els[0];if(fwd||back){setTimeout(function(){focus(back)},10);return false}}}if($(e.target).parents("div.blockMsg").length>0){return true}return $(e.target).parents().children().filter("div.blockUI").length==0}function focus(back){if(!pageBlockEls){return }var e=pageBlockEls[back===true?pageBlockEls.length-1:0];if(e){e.focus()}}function center(el,x,y){var p=el.parentNode,s=el.style;var l=((p.offsetWidth-el.offsetWidth)/2)-sz(p,"borderLeftWidth");var t=((p.offsetHeight-el.offsetHeight)/2)-sz(p,"borderTopWidth");if(x){s.left=l>0?(l+"px"):"0"}if(y){s.top=t>0?(t+"px"):"0"}}function sz(el,p){return parseInt($.css(el,p))||0}})(jQuery);(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:1,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$("ul",div),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var li=$("li",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");li.css({overflow:"hidden","float":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});div.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var liSize=o.vertical?height(li):width(li);var ulSize=liSize*itemLength;var divSize=liSize*v;li.css({width:li.width(),height:li.height()});ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");if(o.btnPrev){$(o.btnPrev).click(function(){return go(curr-o.scroll)})}if(o.btnNext){$(o.btnNext).click(function(){return go(curr+o.scroll)})}if(o.btnGo){$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i)})})}if(o.mouseWheel&&div.mousewheel){div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)})}if(o.auto){setInterval(function(){go(curr+o.scroll)},o.auto+o.speed)}function vis(){return li.slice(curr).slice(0,v)}function go(to){if(!running){if($("#news-div li:eq("+curr+")").hasClass("news-video")){$("#news-div li:eq("+curr+")").children("div").children('div[id^="videoplayer"]').hide()}if(o.beforeStart){o.beforeStart.call(this,vis())}if(o.circular){if(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else{if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll}else{curr=to}}}else{if(to<0||to>itemLength-v){return }else{curr=to}}if($("#news-div li:eq("+to+")").hasClass("news-video")){$("#news-div li:eq("+to+")").children("div").children('div[id^="videoplayer"]').show()}running=true;ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd){o.afterEnd.call(this,vis())}running=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(el,prop){return parseInt($.css(el[0],prop))||0}function width(el){return el[0].offsetWidth+css(el,"marginLeft")+css(el,"marginRight")}function height(el){return el[0].offsetHeight+css(el,"marginTop")+css(el,"marginBottom")}})(jQuery);(function($){$.ifixpng=function(customPixel){$.ifixpng.pixel=customPixel};$.ifixpng.getPixel=function(){return $.ifixpng.pixel||"/Images/pixel.gif"};var hack={ltie7:$.browser.msie&&$.browser.version<7,filter:function(src){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')"}};$.fn.ifixpng=hack.ltie7?function(){return this.each(function(){var $$=$(this);var base=$("base").attr("href");if(base){base=base.replace(/\/[^\/]+$/,"/")}if($$.is("img")||$$.is("input")){if($$.attr("src")){if($$.attr("src").match(/.*\.png([?].*)?$/i)){var source=(base&&$$.attr("src").search(/^(\/|http:)/i))?base+$$.attr("src"):$$.attr("src");$$.css({filter:hack.filter(source),width:$$.width(),height:$$.height()}).attr({src:$.ifixpng.getPixel()}).positionFix()}}}else{var image=$$.css("backgroundImage");if(image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){image=RegExp.$1;image=(base&&image.substring(0,1)!="/")?base+image:image;$$.css({backgroundImage:"none",filter:hack.filter(image)}).children().children().positionFix()}}})}:function(){return this};$.fn.iunfixpng=hack.ltie7?function(){return this.each(function(){var $$=$(this);var src=$$.css("filter");if(src.match(/src=["']?(.*\.png([?].*)?)["']?/i)){src=RegExp.$1;if($$.is("img")||$$.is("input")){$$.attr({src:src}).css({filter:""})}else{$$.css({filter:"",background:"url("+src+")"})}}})}:function(){return this};$.fn.positionFix=function(){return this.each(function(){var $$=$(this);var position=$$.css("position");if(position!="absolute"&&position!="relative"){}})}})(jQuery);