// /Scripts/jquery.cookies.js --- 0.71 Kb
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}};
// /Scripts/ui/narrowMenu.js --- 5.13 Kb
function closeCurrentMoreSection(){$("#lmMore_"+upMnuSelectedCategory).hide()}function popupMore(obj){setTimeout(function(){try{openMorePopup(obj)}catch(err){openMorePopup(obj)}},500)}function openMorePopup(obj){obj.modal({closeHTML:"<a class='popupMoreClose'></a>",containerId:"popupMore-container",containerClass:"popupMore-container",overlayClass:"popupMore-overlay",overlayCss:{"background-color":"#fff",opacity:"0.8"},onShow:function(dialog){dialog.container.center()}});$("#popupMore-container ul").each(function(){if($(this).is(":empty")){$(this).parent().remove()}else{$(this).children().show()}})}function togMore(obj,sen){if(navRedesign){try{popupMore(obj)}catch(err){popupMore(obj)}return}if(obj.is(":visible")){sen.attr("class","leftMenuMoreLink");obj.fadeOut("slow",function(){obj.prev().fadeIn(500)})}else{sen.attr("class","moreClose");obj.prev().hide();obj.fadeIn(500)}}function getCountersFromId(itemId,fs){var count,icount=0;if(itemId.indexOf("_")>-1){count=sumCounters(itemId);icount+=count[0]=="0"?0:1}else{if(counters[itemId]==undefined){return""}if(itemId.indexOf("r")>-1||(fs&&countOffline=="True")){if(itemId=="r160"){icount+=counters[itemId][0];count=counters[itemId][0]}else{icount+=counters[itemId][0]+counters[itemId][1];count=counters[itemId][0]+"/"+counters[itemId][1]}}else{icount+=counters[itemId][0];count=counters[itemId][0]}}if(icount==0){count=""}return count}function sumCounters(group){var prefix=group.substring(0,1);group=group.replace(prefix,"");var arr=group.split("_");var sum=[0,0];if(prefix=="r"){$(arr).each(function(){if(counters[prefix+this]==undefined){return}if(counters[prefix+this][0]==0){return}sum[0]+=counters[prefix+this][0]!=null?counters[prefix+this][0]:0;sum[1]+=counters[prefix+this][1]!=null?counters[prefix+this][1]:0});return sum[0]+"/"+sum[1]}else{$(arr).each(function(){if(counters[prefix+this]==undefined){return}if(counters[prefix+this][0]==0){return}sum[0]+=counters[prefix+this][0]!=null?counters[prefix+this][0]:0});return sum[0]}}function createCaption(caption,cnt){return caption+" "+cnt}function switchCategory(catId){$("#cat_"+upMnuSelectedCategory).hide();$("#cat_"+catId).show();if(typeof(inHostlist)!="undefined"&&inHostlist){setFirstLevelNiche($("#upMenuCat_"+catId).html());hlpResetAllFilters()}}function clearNerrowMenuSelection(){$("#cat_"+upMnuSelectedCategory+" li.selected").removeClass("selected")}function initNerrowMenu(){$(".lmCnt").each(function(){var count,itemId=this.id.replace("cnt_","");var $self=$(this);var $self_fs=$self.prev().attr("fs");var $self_ignoreZeroOnline=($self_fs&&countOffline=="True")||itemId.indexOf("r249")||navRedesign;count=getCountersFromId(itemId,$self_fs)+"";if((!$self_ignoreZeroOnline&&$.trim(count).substring(0,1)=="0")||$.trim(count)==""){$self.parent().remove();return}if(count.indexOf("/")>-1){var split=count.split("/");count=counters_onlineoffline_template.replace("#online#",split[0]).replace("#total#",split[1]);if((typeof($self_fs)!="undefined")&&split[0]=="0"){count=counters_onlineoffline_template2.replace("#total#",split[1])}}else{count=counters_online_template.replace("#online#",count)}$self.html(count)});if($("div.NarrowMenuWrap").length==1){$("a.leftMenuMoreLink").each(function(){if($(this).parent().children("span").children("ul").children("li.narrowItemCategory").length==0){$(this).css("visibility","hidden")}});$("div[id^='cat_']").each(function(){if($(this).children("span").children("ul").children("li").length==1){$(this).remove()}})}$("div.moreItem").each(function(){$(this).children("ul").each(function(){if($(this).children().length==0){$(this).parent().hide()}if($(this).is(":empty")&&$("div.NarrowMenuWrap").length==0){$(this).hide()}})});if($("div.NarrowMenuWrap").length==0){var showMoreBtn=false;$(".leftMenuMoreLink").each(function(){if($(this).parent().attr("id")=="cat_"+upMnuSelectedCategory){$(this).hide();$(this).parent().children("div[id='lmMore_"+upMnuSelectedCategory+"']").children("div").each(function(){if($(this).children("ul").children("li").length>0){showMoreBtn=true}})}if(showMoreBtn){$(this).show()}})}$("ul.narrowItem li:last").addClass("narrowLastLi");$("div.more").each(function(){var $self=$(this);if($self.children("div.moreItem").length>0){$self.children("div.moreItem:gt(6)").wrapAll('<div class="more2" />')}else{$(".leftMenuMoreLink",$self.parent()).remove()}});$(".NarrowMenuWrap a:not(.leftMenuMoreLink)").click(function(e){if(typeof(inHostlist)!="undefined"&&inHostlist){var $self=$(this);nmiCurrentNarrow=$self;e.preventDefault();if($self.html()==ALL_CAPTION){resetAllFilters();return}var rebase=$self.attr("rebase");if(rebase){$(".bottomMenuTabsDiv a[catid='"+rebase+"']").click();return true}var asian=$self.attr("asian")||"0";var fs=$self.attr("fs")||"0";var lhlseo=$self.attr("href").split("/");lhlseo=lhlseo[lhlseo.length-1];$.cookie("lhlseo",lhlseo,{expires:365,path:"/"});getHL($self.attr("rid"),$self.attr("qid"),asian,fs);clearNerrowMenuSelection();$self.parent().addClass("selected");setSecondLevelNiche($self.html())}});AddClickToOnlineNowCounterPopUp()}function AddClickToOnlineNowCounterPopUp(){$(".moreItem ul li").each(function(){var liA=$(this).children("a");var spanA=$(this).children("span");spanA.click(function(){window.location=liA.attr("href")})})};
// /Scripts/jquery.highlight-3.js --- 0.70 Kb
jQuery.fn.highlight=function(b){function a(e,j){var l=0;if(e.nodeType==3){var k=e.data.toUpperCase().indexOf(j);if(k>=0){var h=document.createElement("span");h.className="highlight";var f=e.splitText(k);var c=f.splitText(j.length);var d=f.cloneNode(true);h.appendChild(d);f.parentNode.replaceChild(h,f);l=1}}else{if(e.nodeType==1&&e.childNodes&&!/(script|style)/i.test(e.tagName)){for(var g=0;g<e.childNodes.length;++g){g+=a(e.childNodes[g],j)}}}return l}return this.each(function(){a(this,b.toUpperCase())})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()};
// /Scripts/jquery.blockUI.js --- 6.19 Kb
(function(f){if(/1\.(0|1|2)\.(0|1|2)/.test(f.fn.jquery)||/^1.1/.test(f.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+f.fn.jquery);return}f.blockUI=function(m){c(window,m)};f.unblockUI=function(m){g(window,m)};f.growlUI=function(p,n,o){var m=f('<div class="growlUI"></div>');if(p){m.append("<h1>"+p+"</h1>")}if(n){m.append("<h2>"+n+"</h2>")}if(o==undefined){o=3000}f.blockUI({message:m,fadeIn:700,fadeOut:1000,centerY:false,timeout:o,showOverlay:false,css:f.blockUI.defaults.growlCSS})};f.fn.block=function(m){return this.each(function(){if(f.css(this,"position")=="static"){this.style.position="relative"}if(f.browser.msie){this.style.zoom=1}c(this,m)})};f.fn.unblock=function(m){return this.each(function(){g(this,m)})};f.blockUI.version=2.14;f.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#ff0000",border:"none",backgroundColor:"#000",cursor:"default"},overlayCSS:{backgroundColor:"#000",opacity:"0.6"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:"0.6",cursor:null,color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null,quirksmodeOffsetHack:4};var d=f.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var b=null;var e=[];function c(o,m){var y=(o==window);var p=m&&m.message!==undefined?m.message:undefined;m=f.extend({},f.blockUI.defaults,m||{});m.overlayCSS=f.extend({},f.blockUI.defaults.overlayCSS,m.overlayCSS||{});var x=f.extend({},f.blockUI.defaults.css,m.css||{});p=p===undefined?m.message:p;if(y&&b){g(window,{fadeOut:0})}if(p&&typeof p!="string"&&(p.parentNode||p.jquery)){var r=p.jquery?p[0]:p;var w={};f(o).data("blockUI.history",w);w.el=r;w.parent=r.parentNode;w.display=r.style.display;w.position=r.style.position;if(w.parent){w.parent.removeChild(r)}}var A=m.baseZ;var v=(f.browser.msie)?f('<iframe class="blockUI" style="z-index:'+A+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):f('<div class="blockUI" style="display:none"></div>');var u=f('<div class="blockUI blockOverlay" style="z-index:'+A+++';display:none;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var q=y?f('<div class="blockUI blockMsg blockPage" style="z-index:'+A+';display:none;position:fixed"></div>'):f('<div class="blockUI blockMsg blockElement" style="z-index:'+A+';display:none;position:absolute"></div>');if(p){q.css(x)}if(!m.applyPlatformOpacityRules||!(f.browser.mozilla&&/Linux/.test(navigator.platform))){u.css(m.overlayCSS)}u.css("position",y?"fixed":"absolute");if(f.browser.msie){v.css("opacity","0.0")}f([v[0],u[0],q[0]]).appendTo(y?"body":o);var C=f.browser.msie&&(!f.boxModel||f("object,embed",y?null:o).length>0);if(d||C){if(y&&m.allowBodyStretch&&f.boxModel){f("html,body").css("height","100%")}if((d||!f.boxModel)&&!y){var D=j(o,"borderTopWidth"),s=j(o,"borderLeftWidth");var B=D?"(0 - "+D+")":0;var n=s?"(0 - "+s+")":0}f.each([v,u,q],function(t,G){var z=G[0].style;z.position="absolute";if(t<2){y?z.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+m.quirksmodeOffsetHack+') + "px"'):z.setExpression("height",'this.parentNode.offsetHeight + "px"');y?z.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):z.setExpression("width",'this.parentNode.offsetWidth + "px"');if(n){z.setExpression("left",n)}if(B){z.setExpression("top",B)}}else{if(m.centerY){if(y){z.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}z.marginTop=0}else{if(!m.centerY&&y){var E=(m.css&&m.css.top)?parseInt(m.css.top):0;var F="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+E+') + "px"';z.setExpression("top",F)}}}})}q.append(p);if(p&&(p.jquery||p.nodeType)){f(p).show()}if(m.fadeIn){if(f.browser.msie&&m.showOverlay){v.fadeIn(m.fadeIn)}if(m.showOverlay){u.fadeIn(m.fadeIn)}q.fadeIn(m.fadeIn)}else{if(f.browser.msie&&m.showOverlay){v.show()}if(m.showOverlay){u.show()}q.show()}i(1,o,m);if(y){b=q[0];e=f(":input:enabled:visible",b);if(m.focusInput){setTimeout(l,20)}}else{a(q[0],m.centerX,m.centerY)}if(m.timeout){setTimeout(function(){y?f.unblockUI(m):f(o).unblock(m)},m.timeout)}}function g(o,p){var n=o==window;var q=f(o).data("blockUI.history");p=f.extend({},f.blockUI.defaults,p||{});i(0,o,p);var m=n?f("body").children().filter(".blockUI"):f(".blockUI",o);if(n){b=e=null}if(p.fadeOut){m.fadeOut(p.fadeOut);setTimeout(function(){h(m,q,p,o)},p.fadeOut)}else{h(m,q,p,o)}}function h(m,p,o,n){m.each(function(q,r){if(this.parentNode){this.parentNode.removeChild(this)}});if(p&&p.el){p.el.style.display=p.display;p.el.style.position=p.position;if(p.parent){p.parent.appendChild(p.el)}f(p.el).removeData("blockUI.history")}if(typeof o.onUnblock=="function"){o.onUnblock(n,o)}}function i(m,q,r){var p=q==window,o=f(q);if(!m&&(p&&!b||!p&&!o.data("blockUI.isBlocked"))){return}if(!p){o.data("blockUI.isBlocked",m)}if(m&&!r.showOverlay){return}var n="mousedown mouseup keydown keypress";m?f(document).bind(n,r,k):f(document).unbind(n,k)}function k(p){if(p.keyCode&&p.keyCode==9){if(b&&p.data.constrainTabKey){var o=e;var n=!p.shiftKey&&p.target==o[o.length-1];var m=p.shiftKey&&p.target==o[0];if(n||m){setTimeout(function(){l(m)},10);return false}}}if(f(p.target).parents("div.blockMsg").length>0){return true}return f(p.target).parents().children().filter("div.blockUI").length==0}function l(m){if(!e){return}var n=e[m===true?e.length-1:0];if(n){n.focus()}}function a(r,m,v){var u=r.parentNode,q=r.style;var n=((u.offsetWidth-r.offsetWidth)/2)-j(u,"borderLeftWidth");var o=((u.offsetHeight-r.offsetHeight)/2)-j(u,"borderTopWidth");if(m){q.left=n>0?(n+"px"):"0"}if(v){q.top=o>0?(o+"px"):"0"}}function j(m,n){return parseInt(f.css(m,n))||0}})(jQuery);

// /Scripts/jquery.keyfilter-1.5.js --- 1.71 Kb
(function(c){var h={pint:/[\d]/,"int":/[\d\-]/,pnum:/[\d\.]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9]/i,alphanumspace:/([a-z0-9\s])/i};var a={TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46};var g={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};var f=function(l){var j=l.keyCode;j=c.browser.safari?(g[j]||j):j;return(j>=33&&j<=40)||j==a.RETURN||j==a.TAB||j==a.ESC};var i=function(l){var j=l.keyCode;j=c.browser.safari?(g[j]||j):j;return j==a.RETURN};var d=function(l){var j=l.keyCode;return j==8||j==9||j==13||j==40||j==27||j==16||j==17||(j>=18&&j<=20)||(c.browser.opera&&(j==8||(j>=33&&j<=35)||(j>=36&&j<=39)||(j>=44&&j<=45)))};var e=function(l){var j=l.keyCode||l.charCode;return c.browser.safari?(g[j]||j):j};var b=function(j){return j.charCode||j.keyCode||j.which};c.fn.keyfilter=function(m,l){var n=this;var k=null;function j(){n.each(function(){try{var t=c(this);var r=t.val();var o="";for(var q=0;q<r.length;q++){var u=r.substring(q,q+1);var p=false;if(c.isFunction(m)){p=m.call(this,u)}else{p=m.test(u)}if(p){o+=u}}if(o!=r){t.val(o)}}catch(s){}})}k=setInterval(j,250);return this.keypress(function(q){if(q.ctrlKey||q.altKey){return}var o=e(q);if(l&&i(q)){l(q);return}if(c.browser.mozilla&&(f(q)||o==a.BACKSPACE||o==a.DELETE)){return}var s=b(q),r=String.fromCharCode(s),p=true;if(!c.browser.mozilla&&(d(q)||!r)){return}if(c.isFunction(m)){p=m.call(this,r)}else{p=m.test(r)}if(!p){q.preventDefault()}})};c.extend(c.fn.keyfilter,{defaults:{masks:h},version:1.4});c(document).ready(function(){var j=c("input[class*=mask],textarea[class*=mask]");for(var k in c.fn.keyfilter.defaults.masks){j.filter(".mask-"+k).keyfilter(c.fn.keyfilter.defaults.masks[k])}})})(jQuery);
// /Scripts/ui/jquery.easydrag.js --- 1.83 Kb
(function(d){var b=false;var f=null;var h={};var k={};var j={};var l;var i;var g;var a;var e={};var c=false;d.getMousePosition=function(n){var m=0;var o=0;if(!n){var n=window.event}if(n.pageX||n.pageY){m=n.pageX;o=n.pageY}else{if(n.clientX||n.clientY){m=n.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;o=n.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return{x:m,y:o}};d.updatePosition=function(n){var p=d.getMousePosition(n);var o=(p.x-l);var m=(p.y-i);d(f).css("top",(g+m));d(f).css("left",(a+o))};d(document).mousemove(function(m){if(b&&e[f.id]!="false"){d.updatePosition(m);if(k[f.id]!=undefined){k[f.id](m,f)}return false}});d(document).mouseup(function(m){if(b&&e[f.id]!="false"){b=false;if(h[f.id]!=undefined){h[f.id](m,f)}return false}});d.fn.ondrag=function(m){return this.each(function(){k[this.id]=m})};d.fn.ondrop=function(m){return this.each(function(){h[this.id]=m})};d.fn.dragOff=function(){return this.each(function(){e[this.id]="off"})};d.fn.dragOn=function(){return this.each(function(){e[this.id]="on"})};d.fn.setHandler=function(m){return this.each(function(){var n=this;j[this.id]=true;d(n).css("cursor","");e[n.id]="handler";d("#"+m).css("cursor","move");d("#"+m).mousedown(function(o){c=true;d(n).trigger("mousedown",o)});d("#"+m).mouseup(function(o){c=false})})};d.fn.easydrag=function(m){return this.each(function(){if(undefined==this.id||!this.id.length){this.id="easydrag"+(new Date().getTime())}j[this.id]=m?true:false;e[this.id]="on";d(this).css("cursor","move");d(this).mousedown(function(n){if((e[this.id]=="off")||(e[this.id]=="handler"&&!c)){return j[this.id]}d(this).css("position","absolute");d(this).css("z-index",parseInt(new Date().getTime()/1000));b=true;f=this;var o=d.getMousePosition(n);l=o.x;i=o.y;g=this.offsetTop;a=this.offsetLeft;d.updatePosition(n);return j[this.id]})})}})(jQuery);
// /Scripts/jquery.pager.js --- 1.95 Kb
(function(c){c.fn.pager=function(d){var e=c.extend({},c.fn.pager.defaults,d);return this.each(function(){c(this).empty().append(b(parseInt(d.pagenumber),parseInt(d.pagecount),d.buttonClickCallback));c(".pages li").mouseover(function(){document.body.style.cursor="pointer"}).mouseout(function(){document.body.style.cursor="auto"})})};function b(g,f,n){var e=c('<ul class="pages"></ul>');e.append(a("prev",g,f,n));var d=1;var k=c.fn.pager.defaults.windowSize;var m=k-d;var h=Math.floor((k-d)/2);var j=h;if(h*2<m){j++}if(g>h){d=g-h;k=g+j}if(k>f){d=f-m;k=f}if(d<1){d=1}for(var i=d;i<=k;i++){var l;if(i==k){l=c('<li class="page-number last"><a href="javascript:void(0);">'+(i)+"</a></li>")}else{l=c('<li class="page-number"><a href="javascript:void(0);">'+(i)+"</a></li>")}i==g?l.addClass("pgCurrent"):c("a",l).click(function(){n(this.firstChild.data)});l.appendTo(e)}e.append(a("next",g,f,n));return e}function a(f,i,h,l){var g="/App_Themes/"+c.fn.pager.defaults.theme+"/images/nextButton.png";var e=1;var k=null;var j;switch(f){case"first":e=1;break;case"prev":e=i-1;g="/App_Themes/"+c.fn.pager.defaults.theme+"/images/prevButton.png";j=c.fn.pager.defaults.prevBtnText;k=c.fn.pager.defaults.onPrevBtnRendered;break;case"next":e=i+1;j=c.fn.pager.defaults.nextBtnText;k=c.fn.pager.defaults.onNextBtnRendered;break;case"last":e=h;break}var d;if(c.fn.pager.defaults.usePrevNextImage){d=c('<li class="pgNext"><a href="javascript:void(0);" style="color:transparent"><img style="margin-top:-2px" src="'+g+'" alt="'+f+'" /></a></li>')}else{d=c('<li class="pgNext"><a href="javascript:void(0);" style="color:transparent">'+j+"</a></li>")}if(f=="first"||f=="prev"){i<=1?d.addClass("pgEmpty"):d.click(function(){l(e)})}else{i>=h?d.addClass("pgEmpty"):d.click(function(){l(e)})}if(k){k(!d.is(".pgEmpty"))}return d}c.fn.pager.defaults={pagenumber:1,pagecount:1,windowSize:9,theme:"ImLive2",onPrevBtnRendered:null,onNextBtnRendered:null,usePrevNextImage:true,nextBtnText:"next >>",prevBtnText:"<< prev"}})(jQuery);
// /Scripts/jquery.simplemodal.js --- 5.58 Kb
(function(d){var c="body";d().ready(function(){c=d("form").length>0?"form:first":"body"});var b=d.browser.msie&&parseInt(d.browser.version)==6&&!window.XMLHttpRequest,e=d.browser.msie&&!d.boxModel,a=[];d.modal=function(g,f){return d.modal.impl.init(g,f)};d.modal.close=function(){d.modal.impl.close()};d.fn.modal=function(f){return d.modal.impl.init(this,f)};d.modal.defaults={opacity:50,overlayId:"simplemodal-overlay",overlayClass:"simplemodal-overlay",overlayCss:{},containerClass:"simplemodal-container",containerId:"simplemodal-container",containerCss:{},dataCss:{},zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",position:null,persist:false,onOpen:null,onShow:null,onClose:null};d.modal.impl={opts:null,dialog:{},init:function(g,f){if(this.dialog.data){return false}this.opts=d.extend({},d.modal.defaults,f);this.zIndex=this.opts.zIndex;this.occb=false;if(typeof g=="object"){g=g instanceof jQuery?g:d(g);if(g.parent().parent().size()>0){this.dialog.parentNode=g.parent();if(!this.opts.persist){this.dialog.orig=g.clone(true)}}}else{if(typeof g=="string"||typeof g=="number"){g=d("<div/>").html(g)}else{alert("SimpleModal Error: Unsupported data type: "+typeof g);return false}}this.dialog.data=g.addClass("simplemodal-data").css(this.opts.dataCss);g=null;this.create();this.open();if(d.isFunction(this.opts.onShow)){this.opts.onShow.apply(this,[this.dialog])}return this},create:function(){a=this.getDimensions();if(b){this.dialog.iframe=d('<iframe src="javascript:false;"/>').css(d.extend(this.opts.iframeCss,{display:"none",opacity:0,position:"fixed",height:a[0],width:a[1],zIndex:this.opts.zIndex,top:0,left:0})).appendTo(c)}this.dialog.overlay=d("<div/>").attr("id",this.opts.overlayId).addClass("simplemodal-overlay").addClass(this.opts.overlayClass).css(d.extend(this.opts.overlayCss,{display:"none",opacity:this.opts.opacity/100,height:a[0],width:a[1],position:"fixed",left:0,top:0,zIndex:this.opts.zIndex+1})).appendTo(c);this.dialog.container=d("<div/>").attr("id",this.opts.containerId).addClass("simplemodal-container").addClass(this.opts.containerClass).css(d.extend(this.opts.containerCss,{display:"none",position:"fixed",zIndex:this.opts.zIndex+2})).append(this.opts.close?d(this.opts.closeHTML).addClass(this.opts.closeClass):"").appendTo(c);this.setPosition();if(b||e){this.fixIE()}this.dialog.container.append(this.dialog.data.hide())},bindEvents:function(){var f=this;d("."+this.opts.closeClass).bind("click.simplemodal",function(g){g.preventDefault();f.close()});d(window).bind("resize.simplemodal",function(){a=f.getDimensions();f.setPosition();if(b||e){f.fixIE()}else{f.dialog.iframe&&f.dialog.iframe.css({height:a[0],width:a[1]});f.dialog.overlay.css({height:a[0],width:a[1]})}})},unbindEvents:function(){d("."+this.opts.closeClass).unbind("click.simplemodal");d(window).unbind("resize.simplemodal")},fixIE:function(){var f=this.opts.position;d.each([this.dialog.iframe||null,this.dialog.overlay,this.dialog.container],function(r,k){if(k){var p="document.body.clientHeight",u="document.body.clientWidth",w="document.body.scrollHeight",t="document.body.scrollLeft",n="document.body.scrollTop",j="document.body.scrollWidth",h="document.documentElement.clientHeight",q="document.documentElement.clientWidth",o="document.documentElement.scrollLeft",x="document.documentElement.scrollTop",y=k[0].style;y.position="absolute";if(r<2){y.removeExpression("height");y.removeExpression("width");y.setExpression("height",""+w+" > "+p+" ? "+w+" : "+p+' + "px"');y.setExpression("width",""+j+" > "+u+" ? "+j+" : "+u+' + "px"')}else{var m,g;if(f&&f.constructor==Array){if(f[0]){var v=typeof f[0]=="number"?f[0].toString():f[0].replace(/px/,"");m=v.indexOf("%")==-1?v+" + (t = "+x+" ? "+x+" : "+n+') + "px"':parseInt(v.replace(/%/,""))+" * (("+h+" || "+p+") / 100) + (t = "+x+" ? "+x+" : "+n+') + "px"'}if(f[1]){var l=typeof f[1]=="number"?f[1].toString():f[1].replace(/px/,"");g=l.indexOf("%")==-1?l+" + (t = "+o+" ? "+o+" : "+t+') + "px"':parseInt(l.replace(/%/,""))+" * (("+q+" || "+u+") / 100) + (t = "+o+" ? "+o+" : "+t+') + "px"'}}else{m="("+h+" || "+p+") / 2 - (this.offsetHeight / 2) + (t = "+x+" ? "+x+" : "+n+') + "px"';g="("+q+" || "+u+") / 2 - (this.offsetWidth / 2) + (t = "+o+" ? "+o+" : "+t+') + "px"'}y.removeExpression("top");y.removeExpression("left");y.setExpression("top",m);y.setExpression("left",g)}}})},getDimensions:function(){var g=d(window);var f=d.browser.opera&&d.browser.version>"9.5"&&d.fn.jquery<="1.2.6"?document.documentElement.clientHeight:g.height();return[f,g.width()]},setPosition:function(){var i,h,g=(a[0]/2)-((this.dialog.container.height()||this.dialog.data.height())/2),f=(a[1]/2)-((this.dialog.container.width()||this.dialog.data.width())/2);if(this.opts.position&&this.opts.position.constructor==Array){i=this.opts.position[0]||g;h=this.opts.position[1]||f}else{i=g;h=f}this.dialog.container.css({left:h,top:i})},open:function(){this.dialog.iframe&&this.dialog.iframe.show();if(d.isFunction(this.opts.onOpen)){this.opts.onOpen.apply(this,[this.dialog])}else{this.dialog.overlay.show();this.dialog.container.show();this.dialog.data.show()}this.bindEvents()},close:function(){if(!this.dialog.data){return false}if(d.isFunction(this.opts.onClose)&&!this.occb){this.occb=true;this.opts.onClose.apply(this,[this.dialog])}else{if(this.dialog.parentNode){if(this.opts.persist){this.dialog.data.hide().appendTo(this.dialog.parentNode)}else{this.dialog.data.remove();this.dialog.orig.appendTo(this.dialog.parentNode)}}else{this.dialog.data.remove()}this.dialog.container.remove();this.dialog.overlay.remove();this.dialog.iframe&&this.dialog.iframe.remove();this.dialog={}}this.unbindEvents()}}})(jQuery);
// /Scripts/ui/search.js --- 3.48 Kb
var _searchDefaults={url:"/Services/Search.ashx",lazyImg:"/App_Themes/ImLive2/images/indicator.gif",modules:[],mode:0,roomid:10,page:1,pagesize:50,pagecount:1,reloadAll:0,resultcount:0,term:"",error:"",online:0,advancedSearchParams:"",pagerWidowSize:5,dimensions:"108x90",toString:function(){var a=this.url+"?";a+="term="+escape(this.term);a+="&reload="+this.reloadAll;a+="&mode="+this.mode;a+="&page="+this.page;a+="&pagesize="+this.pagesize;a+="&rid="+this.roomid;a+="&online="+this.online;a+="&module="+this.modules[this.mode];a+="&adsp="+encodeURIComponent(this.advancedSearchParams);a+="&dim="+this.dimensions;return a}};function initialzeSearch(){if(_searchDefaults.error.length>0){alert(_searchDefaults.error);$("#searcTxt").val(_searchDefaults.term);return false}$(".combo select").change(function(){setBase({online:$(this).val()})});$.fn.pager.defaults.windowSize=_searchDefaults.pagerWidowSize;$hostContent=$(".HostContent a");$hostContent.click(function(a){if($(this).hasClass("red")){$hostContent.removeClass("white").addClass("red");$(this).removeClass("red").addClass("white");setBase({mode:(this.id=="host"?0:1)})}});showPager(1);if(_searchDefaults.term!=""){$(".need-to-highlight").highlight(_searchDefaults.term)}$("#found").text(_searchDefaults.resultcount);setCount();toggleNoData()}function setCount(){var a=(_searchDefaults.pagesize*(_searchDefaults.page-1))+1;var b=_searchDefaults.pagesize*_searchDefaults.page;b=b>_searchDefaults.resultcount?_searchDefaults.resultcount:b;if(b>0){$("#searchCount").text(a+" - "+b+" of "+_searchDefaults.resultcount)}}function setBase(a){$.extend(_searchDefaults,a,{page:1,reloadAll:1});setCurrRoom(_searchDefaults.roomid);loadData()}function loadData(){blockElement($("#Content"));var a=_searchDefaults.toString();if(_searchDefaults.reloadAll!=1){a+="&pd="+$("#resultDiv input:hidden:last").val()}$("#resultDiv").load(a,loadComplete)}function loadComplete(){$(".need-to-highlight").highlight(_searchDefaults.term);showPager(_searchDefaults.page);$("#found").text(_searchDefaults.resultcount);setCount();unBlockElement($("#Content"));toggleNoData()}function pageClick(a){$.extend(_searchDefaults,{page:a,reloadAll:0});loadData()}function showPager(a){_searchDefaults.resultcount=$("#resultDiv input:hidden:first").val();_searchDefaults.pagecount=Math.floor(_searchDefaults.resultcount/_searchDefaults.pagesize);_searchDefaults.pagecount+=(_searchDefaults.resultcount%_searchDefaults.pagesize>0)?1:0;if(_searchDefaults.pagecount>1){$(".pgrClass").pager({pagenumber:a,pagecount:_searchDefaults.pagecount,buttonClickCallback:pageClick})}else{$(".pgrClass").html("")}toggleNoData()}function lazy(a){var b=$("#"+a+" img.hostImg");b.lazyload({placeholder:_searchDefaults.lazyImg,failurelimit:50,threshold:500})}var _comboCreated=false;function createCombo(){if(_comboCreated){return}var b="<select>";var a="";var f=null;for(var h in counters){if(h=="eof"){break}if(h.indexOf("_n")>=0){continue}var c=$("#"+h+">span");var d=$.trim(c.parent().parent().parent().prev().text());if(d!=a){if(f!=null){f+="</optgroup>";b+=f}f="<optgroup label='"+d+"'>";a=d}var e=$("#"+h+">span>span").text();var g=h.replace("r","");f+="<option value='"+g+"'>"+$.trim(c.text().replace(e,""))+"</option>"}if(f!=null){f+="</optgroup>";b+=f}b+="</select>";$(".comboCat").append(b);$(".comboCat select").change(function(){setBase({roomid:$(this).val()})});_comboCreated=true}function toggleNoData(){if(_searchDefaults.resultcount=="0"){$("#cntSearchResult").hide();$("#noData").show()}else{$("#cntSearchResult").show();$("#noData").hide()}};
// /Scripts/jquery.countdown.js --- 1.79 Kb
(function(a){a.fn.countdown=function(c,d){d=jQuery.extend({precision:"s",prefix:"",suffix:"",passed:"",frmt:"",onPassed:null},d);var b=86400000;var f=3600000;var g=60000;var e=1000;doCountDown=function(i){var h=new Date();var o=i.dt-h;if(o<=0){a(i).html(i.o.passed);clearInterval(i.countdown);if(i.o.onPassed&&a.isFunction(i.o.onPassed)){i.o.onPassed.call(i)}return}var j=[];var p=Math.floor(o/b);o-=p*b;var m=Math.floor(o/f);o-=m*f;var k=Math.floor(o/g);o-=k*g;var n=Math.floor(o/e);o-=n*e;if(i.o.frmt.length>0){if(k.toString().length==1){k="0"+k}if(n.toString().length==1){n="0"+n}var l=i.o.frmt.replace("dd",p).replace("mm",k).replace("ss",n).replace("hh",m);a(i).html(i.o.prefix+l+i.o.suffix)}else{switch(i.o.precision){case"d":j=[p," day",(p!=1?"s":"")];break;case"h":j=[p," day",(p!=1?"s":"")," and ",m," hour",(m!=1?"s":"")];break;case"m":j=[p," day",(p!=1?"s":""),", ",m," hour",(m!=1?"s":"")," and ",k," minute",(k!=1?"s":"")];break;case"s":j=[p," day",(p!=1?"s":""),", ",m," hour",(m!=1?"s":""),", ",k," minute",(k!=1?"s":"")," and ",n," second",(n!=1?"s":"")];break;default:break}if(j.length!==0){a(i).html(i.o.prefix+j.join("")+i.o.suffix)}}};this.each(function(){var i=this;i.o=d;i.dt=c;doCountDown(i);var h=new Date();var p=h.getFullYear();var n=h.getMonth();var q=h.getDate();var l=h.getHours();var k=h.getMinutes();var j=h.getSeconds();switch(i.o.precision){case"h":var m=new Date(p,n,q,l+1);setTimeout(function(){doCountDown(i);i.countdown=setInterval(function(){doCountDown(i)},f)},(m-h));break;case"m":var r=new Date(p,n,q,l,k+1);setTimeout(function(){doCountDown(i);i.countdown=setInterval(function(){doCountDown(i)},g)},(r-h));break;case"s":var o=new Date(p,n,q,l,k,j+1);setTimeout(function(){doCountDown(i);i.countdown=setInterval(function(){doCountDown(i)},e)},(o-h));break;default:break}});return this}})(jQuery);
// /Scripts/jquery.lazyload.js --- 1.50 Kb
(function(a){a.fn.lazyload=function(b){var c={threshold:0,failurelimit:0,event:"scroll",effect:"show"};if(b){a.extend(c,b)}var d=this;if("scroll"==c.event){a(window).bind("scroll",function(g){var e=0;d.each(function(){if(!a.belowthefold(this,c)&&!a.rightoffold(this,c)){a(this).trigger("appear")}else{if(e++>c.failurelimit){return false}}});var f=a.grep(d,function(h){if(!h.loaded&&h.tried){a(h).attr("src",a(h).attr("original"));h.loaded=true;return false}return !h.loaded});d=a(f)})}return this.each(function(){var e=this;a(e).attr("original",a(e).attr("src"));if("scroll"!=c.event||a.belowthefold(e,c)||a.rightoffold(e,c)){if(c.placeholder){a(e).attr("src",c.placeholder)}else{a(e).removeAttr("src")}e.loaded=false}else{e.loaded=true}a(e).one("appear",function(){if(!this.loaded){this.tried=true;a("<img />").attr("src",a(e).attr("original")).bind("load",function(){a(e).hide().attr("src",a(e).attr("original"))[c.effect](c.effectspeed);e.loaded=true})}});if("scroll"!=c.event){a(e).bind(c.event,function(f){if(!e.loaded){a(e).trigger("appear")}})}})};a.belowthefold=function(c,d){var b=a(window).height()+a(window).scrollTop();return b<=a(c).offset().top-d.threshold};a.rightoffold=function(c,d){var b=a(window).width()+a(window).scrollLeft();return b<=a(c).offset().left-d.threshold};a.extend(a.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0})","above-the-fold":"!$.belowthefold(a, {threshold : 0})","right-of-fold":"$.rightoffold(a, {threshold : 0})","left-of-fold":"!$.rightoffold(a, {threshold : 0})"})})(jQuery);
// /Scripts/swfobject.js --- 6.15 Kb
if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
// /Scripts/SpyNet.js --- 1.75 Kb
var controlsMap=null;var _UI=null;var controlsToMap=[{guid:"96E01E03-5909-4BA0-8E22-74170CD440BE",name:"billingoption"},{guid:"8B6E1086-2CB5-4144-8A3A-0D9212CDC4AB",name:"billingmatrixformulticharger"}];$().ajaxSuccess(function(e,xhr,settings){if(settings.dataType!="script"){var NewURL;if(settings.url.indexOf("?")>-1){var mappedControlName="";var ajaxModuleId=GetUrlParameter(settings.url,"module");if(controlsMap!=null&&ajaxModuleId!=null){var currControlName=DefineControl(ajaxModuleId);mappedControlName=MapControl(currControlName)}if(mappedControlName==""){mappedControlName=encodeURIComponent(settings.url.substring(0,settings.url.indexOf("?")))}NewURL=_UI+"&pe="+mappedControlName;NewURL+="&qs="+encodeURIComponent(settings.url.substring(settings.url.indexOf("?")+1))}else{NewURL=_UI+"&pe="+encodeURIComponent(settings.url)}NewURL+="&rf="+encodeURIComponent(document.location);NewURL+="&rnd="+Math.round(Math.random()*10000);_i1=new Image();_i1.src=NewURL}});function DefineControl(cid){var controlName;if(cid!=null&&cid.length>0&&controlsToMap!=null&&controlsToMap.length>0){for(var index=0;index<controlsToMap.length;++index){if(controlsToMap[index].guid==cid){controlName=controlsToMap[index].name;break}}}return controlName}function GetUrlParameter(url,paramName){var urlComplexed=url.split("?");if(urlComplexed.length>1){var querystrComplexed=urlComplexed[1].split("&");for(var i=0;i<querystrComplexed.length;++i){var currKeyValue=querystrComplexed[i];if(currKeyValue.indexOf(paramName+"=")==0){var startAt=paramName.length+1;return currKeyValue.substr(startAt,currKeyValue.length)}}}return null}function MapControl(controlName){if(controlsMap!=null){for(var i=0;i<controlsMap.length;++i){if(controlsMap[i].key.toLowerCase()==controlName){return controlsMap[i].value}}}return""};
// /Scripts/ui/loading.js --- 1.08 Kb
function initLoading(a){a.append("<div id='loadingDiv' style='display:none;'></div>");var b=new SWFObject("/Services/WLContent/FlashObject.ashx?f=ONPlayer10.swf","ONPlayer10","600","600","5","");b.addParam("quality","high");b.addParam("pluginspage","http://www.macromedia.com/go/getflashplayer");b.addParam("align","middle");b.addParam("play","true");b.addParam("loop","true");b.addParam("scale","showall");b.addParam("wmode","transparent");b.addParam("devicefont","false");b.addParam("id","ONPlayer10");b.addParam("name","ONPlayer10");b.addParam("menu","true");b.addParam("allowFullScreen","false");b.addParam("allowScriptAccess","sameDomain");b.addParam("salign","");b.write("loadingDiv")}function blockElement(c){var b={message:($("#loadingDiv").length>0?$("#loadingDiv"):null),centerX:true,centerY:false,css:{top:"10px",backgroundColor:"Transparent"}};if(c){c.block(b)}else{$.blockUI(b)}var a=$(".blockOverlay");if(!a.is(".blockOverlay1")){a.addClass("blockOverlay2")}}function unBlockElement(a){if(a){a.unblock({onUnblock:function(b,c){$(b).css("position","")}})}else{setTimeout($.unblockUI,100)}};
// /Scripts/jquery.watermark.js --- 0.80 Kb
(function(c){function b(g,d){var f=(d.watermarkText)?d.watermarkText:g.attr("title");var e=c('<input type="text">').attr("id",g.attr("id")+"_watermark").addClass(d.watermarkCssClass).css({height:g.height(),width:g.width()}).val(f).hide();g.after(e)}function a(e,d){e.each(function(){var g=jQuery(this);b(g,d);var f=c("#"+g.attr("id")+"_watermark");f.click(function(h){c(this).hide();g.show().focus()});f.focus(function(h){c(this).hide();g.show().focus()});g.blur(function(h){if(this.value==""){c(this).hide();f.show()}});if(g.val()==""){g.hide();f.show()}});return e}c.fn.watermark=function(f){var g=this;var e=null;function d(){g.each(function(){var j=c(this).next();var i=j.val();var h=(f.watermarkText)?f.watermarkText:c(this).attr("title");if(i!==h){j.val(h)}})}e=setInterval(d,250);return a(this,f)}})(jQuery);
// /Scripts/ui/globalHelpers.js --- 5.07 Kb
jQuery.getAttributes=function(F,C){var F=((typeof F==="string")?jQuery(F)[0]:F[0]),D=0,F=F.attributes,B=F.length,E=["abort","blur","change","click","dblclick","error","focus","keydown","keypress","keyup","load","mousedown","mousemove","mouseout","mouseover","mouseup","reset","resize","select","submit","unload"],A={};for(D;D<B;D++){if(C||!C&&jQuery.inArray(F[D].nodeName.replace(/^on/,""),E)==-1){A[F[D].nodeName]=F[D].nodeValue}}return A};var _beforePrivateChatCallBack=null;function setBeforePrivateChatCallBack(callback){_beforePrivateChatCallBack=callback}function fireBeforePrivateChatCallBack(){if(_beforePrivateChatCallBack){if(!_beforePrivateChatCallBack()){return false}}return true}function goToPrivateChat(url){if(_beforePrivateChatCallBack){if(!_beforePrivateChatCallBack()){return false}}navigateToUrl(url)}function navigateToUrl(url){window.location.href=url}function doAlert(id,message,cnt,buttons,position,closeHTML){var m="<div id='"+id+"'";if(cnt.css){m+=" class='"+cnt.css+" simplemodal-data'"}else{m+=" class='simplemodal-data'"}if(cnt.style){m+=" style='"+cnt.style+"'"}m+="><p>"+message+"</p>";for(var b in buttons){m+="<input id='btn"+buttons[b].id+"' type='button'";if(buttons[b].css){m+=" class='"+buttons[b].css+"'"}if(buttons[b].style){m+=" style='"+buttons[b].style+"'"}m+="' value='"+buttons[b].value+"' onclick='"+buttons[b].click+"' />"}m+="</div>";closeHTML=closeHTML==null?"<a class='modalCloseImg' title='Close'></a>":closeHTML;$.modal(m,{closeHTML:(closeHTML),position:position||["20%","30%"],overlayId:"forgetpass-overlay",onOpen:function(dialog){dialog.overlay.fadeIn("fast",function(){dialog.container.show();dialog.data.slideDown("normal")})}})}var _currentRoomChangedListener=[];var _currRoom=0;function getCurrRoom(){var firstCat=$(".narrowItemCategory a:first");if(_currRoom==0&&firstCat.length>0&&firstCat.attr("rid")!=undefined&&firstCat.attr("rid")!=null){var firstCatRooms=firstCat.attr("rid").split(",");if(firstCatRooms.length>0){_currRoom=firstCatRooms[0]}}return _currRoom}function setCurrentRoomChangedListener(listener){if($.inArray(listener,_currentRoomChangedListener)==-1){_currentRoomChangedListener.push(listener)}}function setCurrRoom(id){_currRoom=id;$.cookie("GuestLastRoom",id,{expires:10,path:"/"});for(var listener in _currentRoomChangedListener){_currentRoomChangedListener[listener](id)}}function NewWindow(url,width,height,scrollbars,resizable,menubar,loc){var winl=(screen.width-width)/2;var wint=(screen.height-height)/2;var options="width="+width+",height="+height;options+=",top="+wint+",left="+winl;options+",scrollbars="+(scrollbars=="yes"?scrollbars:"no");options+",resizable="+(resizable=="yes"?resizable:"no");options+",menubar="+(menubar=="yes"?menubar:"no");options+",location="+(loc=="yes"?loc:"no");var win=window.open(url,"nw",options);win.window.focus()}(function($){$.fn.truncate=function(options){var defaults={length:12,ellipsisText:"...",set_alt:true,set_title:true};var options=$.extend(defaults,options);return this.each(function(){var obj=$(this);var html=obj.html();if(options.set_alt){obj.attr("alt",html)}if(options.set_title){obj.attr("title",html)}if(html.length>options.length){var newHtml=html.substring(0,options.length);newHtml+=options.ellipsisText;obj.html(newHtml)}})};$.sumExtend=function(target,source){for(var i in source){if(source[i]!=null&&source[i].constructor.toString().indexOf("Array")>0){for(var k in source[i]){target[i][k]+=source[i][k]}}}}})(jQuery);function getFullColor(c){if(c.charAt(0)=="r"){var rgb=c.match(/\d+/g);c="#"+parseInt(rgb[0]).toString(16)+parseInt(rgb[1]).toString(16)+parseInt(rgb[2]).toString(16);return c}else{if(c.length==7){return c}return"#"+c.charAt(1)+c.charAt(1)+c.charAt(2)+c.charAt(2)+c.charAt(3)+c.charAt(3)}}function getFlashBGColor(el){var bcolor="#000000";while(el.length!=0&&el[0].tagName!="HTML"){var elBcolor=el.css("background-color");if(elBcolor!="transparent"){bcolor=getFullColor(elBcolor);break}el=el.parent()}return bcolor}var v_ctl=[];function getMovie(movieName,store){var mv=v_ctl[movieName];if(!mv){if(window.document[movieName]){mv=window.document[movieName]}else{if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[movieName]){mv=document.embeds[movieName]}}else{mv=document.getElementById(movieName)}}}if(store){v_ctl[movieName]=mv}return mv}function _StringFormatInline(){var txt=this;for(var i=0;i<arguments.length;i++){var exp=new RegExp("\\{"+(i)+"\\}","gm");txt=txt.replace(exp,arguments[i])}return txt}function _StringFormatStatic(){for(var i=1;i<arguments.length;i++){var exp=new RegExp("\\{"+(i-1)+"\\}","gm");arguments[0]=unescape(arguments[0]).replace(exp,arguments[i])}return arguments[0]}if(!String.prototype.format){String.prototype.format=_StringFormatInline}if(!String.format){String.format=_StringFormatStatic}$.urlParam=function(name){var results=new RegExp("[\\?&]"+name+"=([^&#]*)").exec(window.location.href);if(!results){return""}return results[1]||""};jQuery.fn.center=function(){var w=$(window);this.css("position","absolute");this.css("top",(w.height()-this.height())/2+w.scrollTop()+"px");this.css("left",(w.width()-this.width())/2+w.scrollLeft()+"px");return this};

