var cc=function(){return{activeUsername:"",activeUserAvatar:"",activeUserIsSubscriber:"",log:function(a){if(typeof console!=="undefined"){if(typeof console.log==="function"){console.log(a)}}},init:function(a){if(typeof a==="undefined"){a="body"}if(a==="body"){jQuery.ajaxSetup({error:function(d,c,b){cc.log("ERROR: STATUS:"+d.status+" - ERROR: "+b);cc.ajax.displayAjaxError()},success:function(d,b,c){if(typeof d!=="undefined"&&d.indexOf("##Redirect##")===0){location.href=d.substr(12)}}});cc.suggest.init();cc.auth.login.init();jQuery(".cc-menu").hoverIntent({sensitivity:3,interval:10,over:function(){jQuery(".cc-submenu",jQuery(this)).stop(true,true).animate({opacity:"show",top:"-5px"},300);return false},timeout:300,out:function(){jQuery(".cc-submenu",jQuery(this)).animate({opacity:"hide",top:"5px"},200)}});jQuery("#cc-wr-imageslink").click(function(){jQuery("#cc-wr-imageslink").addClass("active");jQuery("#cc-wr-videoslink").removeClass("active");jQuery("#wr-images,#wr-videos").stop(true,true).animate({"margin-left":"0px"},300)});jQuery("#cc-wr-videoslink").click(function(){jQuery("#cc-wr-videoslink").addClass("active");jQuery("#cc-wr-imageslink").removeClass("active");jQuery("#wr-videos,#wr-images").stop(true,true).animate({"margin-left":"-300px"},300)});jQuery("#cc-up-imageslink").click(function(){jQuery("#cc-up-imageslink").addClass("active");jQuery("#cc-up-videoslink").removeClass("active");jQuery("#up-images,#up-videos").stop(true,true).animate({"margin-left":"0px"},300)});jQuery("#cc-up-videoslink").click(function(){jQuery("#cc-up-videoslink").addClass("active");jQuery("#cc-up-imageslink").removeClass("active");jQuery("#up-videos,#up-images").stop(true,true).animate({"margin-left":"-460px"},300)});jQuery("#cc-slider").easySlider({auto:true,continuous:true,pause:8000,speed:250,controlsFade:true});cc.helpers.queryStringErrorMessage();cc.badbrowser.init();setTimeout(function(){cc.tracking.init(a)},100)}cc.ajax.init(a);cc.history.init(a);jQuery(".cc-return").each(function(){jQuery(this).bind("keydown",function(b){if(b.keyCode===13){jQuery(this).parents("form:first").submit();return false}})});cc.ui.init(a);jQuery(a).localScroll({axis:"y",hash:true,duration:300,offset:{top:-30,left:0}});cc.comments.init(a);cc.watch.init(a);cc.myprofile.init(a);cc.mail.init(a);jQuery(".cc-focus",a).focus();jQuery("label.pre",a).labelOver("over");cc.auth.init(a);cc.ui.faqInitExpose();cc.payments.init(a);cc.stars.init(a);cc.form.init(a);cc.userprofile.init(a);cc.videochat.init(a);cc.alerts.init(a)}}}();jQuery(document).ready(function(){cc.init()});jQuery.fn.outerHTML=function(){return jQuery("<div>").append(this.eq(0).clone()).html()};

cc.tracking=function(){return{pageTracker:false,preloadQueue:[],preloadEventQueue:[],ignorePages:["/tour","/alerts"],init:function(b){var a=("https:"===document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";jQuery.getScript(a,function(){cc.tracking.pageTracker=_gat._getTracker(cc_resx_GA_TRACKING_CODE);cc.tracking.pageTracker._setDomainName(cc_resx_GA_TRACKING_DOMAIN);cc.tracking.pageTracker._setAllowHash(false);cc.tracking.pageTracker._setVar(cc.tracking.getTrackingVar());var c=location.pathname;var e=true;for(var d=0;d<cc.tracking.ignorePages.length;d++){if(c.length>=cc.tracking.ignorePages[d].length&&c.substring(0,c.length)===cc.tracking.ignorePages[d]){e=false}}if(cc_resx_SITE_NAME==="ZOORealGirls"){e=false}if(e!==false){cc.tracking.trackPageView()}cc.tracking.processPreloadQueue();if(typeof cc.tracking.preloadEventQueue!=="undefined"){for(var f=0;f<cc.tracking.preloadEventQueue.length;f++){if(typeof cc.tracking.preloadEventQueue[f]==="function"){cc.tracking.preloadEventQueue[f]()}}cc.tracking.preloadEventQueue=[]}});jQuery("[cc\\:trackingLabel]",b).each(function(){jQuery(this).click(function(){var d=jQuery(this).attr("cc:trackingPlacement");var c=jQuery(this).attr("cc:trackingLabel");cc.tracking.trackEvent(tracking_RouteName+"-"+d,c)})})},getTrackingVar:function(){var a="";if(typeof cc.activeUsername==="undefined"||cc.activeUsername===""){a="Visitor"}else{a="Member";if(typeof cc.activeUserIsFemale!=="undefined"){if(cc.activeUserIsFemale==="1"){a+="_Female"}else{a+="_Male"}}else{a+="_GenderUnknown"}if(typeof cc.activeUserIsSubscriber!=="undefined"){if(cc.activeUserIsSubscriber==="1"){a+="_Subscribed"}else{a+="_NotSubscribed"}}else{a+="_SubscribedUnknown"}if(typeof cc.activeUserIsVip!=="undefined"&&cc.activeUserIsVip==="1"){if(cc.activeUserIsSubscriber==="1"){a+="_Vip"}else{a+="_NotVip"}}else{a+="_VipUnknown"}}return a},trackPageView:function(a){if(typeof a==="undefined"||a===""){a=""}cc.tracking.preloadQueue.push(a);cc.tracking.processPreloadQueue()},processPreloadQueue:function(){if(cc.tracking.pageTracker===false){return}if(typeof cc.tracking.preloadQueue!=="undefined"){for(var a=0;a<cc.tracking.preloadQueue.length;a++){if(cc.tracking.preloadQueue[a]===""){cc.tracking.pageTracker._trackPageview()}else{cc.tracking.pageTracker._trackPageview(cc.tracking.preloadQueue[a])}}cc.tracking.preloadQueue=[]}},trackEvent:function(b,a){if(cc.tracking.pageTracker===false){cc.tracking.preloadEventQueue.push(function(){cc.tracking.trackEvent(b,a)})}else{cc.tracking.pageTracker._trackEvent(b,"click-"+tracking_UserState,a,0)}return true},trackEcommerce:function(j,b,c,k,i,e,d,g,h,a){try{if(cc.tracking.pageTracker===false){cc.tracking.preloadEventQueue.push(function(){cc.tracking.trackEcommerce(j,b,c,k,i,e,d,g,h,a)})}else{cc.tracking.pageTracker._addTrans(j,i,e,0,0,d,g,h);cc.tracking.pageTracker._addItem(j,b,c,k,e,1);cc.tracking.pageTracker._trackTrans();if(typeof a==="function"){a()}}}catch(f){cc.log("Ecommerce Tracking: An error occurred")}return true}}}();

cc.helpers=function(){return{addQSParam:function(a,b){if(a.indexOf("?")<1){a=a+"?"+b}else{a=a+"&"+b}return a},getPageTitle:function(){var a=document.title;if(jQuery("#featuredTitle").html()!==null){a=jQuery("#featuredTitle").html()}else{if(jQuery("#blogTitle").html()!==null){a=jQuery("#blogTitle").html()}else{if(jQuery("#profileName").html()!==null){a=jQuery("#profileName").html()}}}return a},nl2br:function(a){a=escape(a);var b="";if(a.indexOf("%0D%0A")>-1){b=/%0D%0A/g}else{if(a.indexOf("%0A")>-1){b=/%0A/g}else{if(a.indexOf("%0D")>-1){b=/%0D/g}else{return unescape(a)}}}return unescape(a.replace(b,"<br />"))},encodeQsParam:function(b){var a=escape(b);a=a.replace(/\+/g,"%2B");a=a.replace(/\//g,"%2F");return a},getQueryStringAsObject:function(b){var a={};if(typeof b==="undefined"){b=window.location.search}b.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(f,c,d,e){a[c]=unescape(e).replace(/\+/g," ")});return a},getQueryStringParam:function(c){var b=cc.helpers.getQueryStringAsObject();for(var a in b){if(a===c){return b[a]}}return""},stripParamFromQs:function(d){var c=cc.helpers.getQueryStringAsObject();var e="?";var b="";for(var a in c){if(a!==d){b+=e+a+"="+cc.helpers.encodeQsParam(c[a]);e="&"}}return window.location.href.split("?")[0]+b},addOrReplaceQsParam:function(h,d,b){var g=h.indexOf("?");if(g<0){return h+"?"+d+"="+b}else{var a=h.split("?")[0];var e=h.substr(g,h.length-g);var j=cc.helpers.getQueryStringAsObject(e);var c="?";e="";for(var f in j){if(f!==d){e+=c+f+"="+cc.helpers.encodeQsParam(j[f]);c="&"}}return cc.helpers.addQSParam(a+e,d+"="+b)}},addAjaxNoCacheParam:function(a){return cc.helpers.addOrReplaceQsParam(a,"t",""+(new Date().getTime())+"")},queryStringErrorMessage:function(){var a=cc.helpers.getQueryStringParam("emsg");if(typeof a!=="undefined"&&a!==""){cc.ui.showModalErrorMessage(a)}}}}();

cc.ajax=function(){var a=".cc-ajaxload";return{displayErrorTimer:null,init:function(b){jQuery("a."+a,b).each(function(){var d=jQuery(this).attr("cc:target");var c=jQuery(this).attr("cc:href");if(typeof c==="undefined"||c===""){c=jQuery(this).attr("href")}jQuery(this).click(function(){cc.ajax.load(d,c);return false})})},load:function(l,m,f,b,j){var h=l;var i=cc.helpers.addAjaxNoCacheParam(m);var o=f;var d=j;var n=false;if(typeof b!=="undefined"&&b===true){n=true}if(n!==true){try{var k=jQuery(h).offset();jQuery("<div />").addClass("loading-clear").css("width",jQuery(h).width()+"px").css("height",jQuery(h).height()+"px").css("line-height",jQuery(h).height()+"px").css("top",k.top+"px").css("left",k.left+"px").html('<img alt="'+cc_resx_TR_Loading+'" src="'+cc_resx_CDN_URL+'images/ajax-loading.gif">').prependTo("body").show().removeAttr("filter");jQuery("[cc\\:target='"+h+"']").each(function(){var c=jQuery(this).offset();jQuery("<div />").addClass("loading-clear").css("width",jQuery(this).width()+"px").css("height",jQuery(this).height()+"px").css("top",c.top+"px").css("left",c.left+"px").css("line-height",jQuery(this).height()+"px").prependTo(jQuery(this)).show().removeAttr("filter")});if(jQuery.browser.msie){}else{jQuery(h).stop(true,true).animate({opacity:"0.50"},1000,function(){jQuery(h).removeAttr("style")})}}catch(g){}}jQuery(h).load(i,function(e,c,p){if(cc.ajax.checkRedirectHeader(p)===true){return}cc.init(h);if(d!==true){cc.tracking.trackPageView(i)}jQuery(".loading,.loading-clear").remove();if(jQuery.browser.msie){jQuery(h).css("display","block")}else{jQuery(h).stop(true,true).animate({opacity:"1"},200,function(){jQuery(h).removeAttr("style")})}if(typeof o==="function"){o()}})},formSubmit:function(k,e,j,b){var g={};var i="";if(typeof e!=="undefined"&&typeof e.target!=="undefined"){i=e.target}var d={success:function(l,c,m,f){if(typeof j==="function"){j(l,c,m,f)}},complete:function(){if(cc.ajax.checkRedirectHeader(XMLHttpRequest)===true){return}if(i!==""){cc.init(i)}if(typeof b==="function"){b()}}};var h=jQuery.extend(g,e||{},d);jQuery(k).ajaxSubmit(h)},formAjaxSubmit:function(b){var c=jQuery(b).attr("cc:target");jQuery(b).ajaxSubmit({target:c,complete:function(){cc.init(c)}});return false},getJSON:function(j,g,e,f){var h=cc.helpers.addAjaxNoCacheParam(j);var k=g||{};var i=e;var b=f;jQuery.ajax({type:"POST",url:h,dataType:"json",cache:false,data:k,success:i,complete:function(){if(cc.ajax.checkRedirectHeader(XMLHttpRequest)===true){return}if(typeof b==="function"){b()}}})},execJSONP:function(i,e,g,b){var f=cc.helpers.addAjaxNoCacheParam(i);var c=e||{};var j=g;var h=b;jQuery.ajax({type:"GET",url:f,dataType:"jsonp",cache:false,data:c,jsonpCallback:j,success:h})},checkRedirectHeader:function(d){try{if(typeof d!=="undefined"){var b="";if(typeof d==="function"){if(typeof d().getResponseHeader==="function"){b=d().getResponseHeader("CC-Redirect")}}else{if(typeof d==="Object"){if(typeof d.getResponseHeader==="function"){b=d.getResponseHeader("CC-Redirect")}}}if(typeof b!=="undefined"&&b!==""){location.href=d.getResponseHeader("CC-Redirect");return true}}}catch(c){}return false},displayAjaxError:function(b){if(jQuery("#ajax-error").size()>0){jQuery("#ajax-error").remove()}if(typeof b==="undefined"||b===""){b=cc_resx_TR_Error_Refresh_Page}jQuery("<div />").attr("id","ajax-error").html('<div class="page-center"><p>'+b+"</p></div>").appendTo("body");if(typeof cc.ajax.displayErrorTimer!=="undefined"){clearTimeout(cc.ajax.displayErrorTimer)}cc.ajax.displayErrorTimer=setTimeout(function(){jQuery("#ajax-error").fadeOut(3000)},4000)}}}();

cc.auth=function(){return{submitInProgress:false,redirecting:false,init:function(b){if(typeof b==="undefined"){b="body"}jQuery(".cc-login").unbind("click").click(function(){var e=escape(window.location);if(cc_resx_SITE_NAME==="ZOORealGirls"){var f=escape(window.location);window.location="http://www.zootoday.com/home/login?forwardDestination="+f}else{cc.ui.colorbox("/login-join/login/?xurl="+e,cc.auth.initAuthOverlay)}return false});jQuery(".cc-acount-linking").unbind("click").click(function(){cc.ui.colorbox("/acccount-link/",cc.auth.initAuthOverlay);return false});jQuery(".cc-signup").unbind("click").click(function(){var e=escape(window.location);if(cc_resx_SITE_NAME==="ZOORealGirls"){var f=escape(window.location);window.location="http://www.zootoday.com/home/registerUser1?forwardDestination="+f}else{cc.ui.colorbox("/login-join/register/?xurl="+e,cc.auth.initAuthOverlay)}return false});jQuery(".cc-register",b).unbind("click").click(function(){if(cc_resx_SITE_NAME==="ZOORealGirls"){var e=escape(window.location);window.location="http://www.zootoday.com/home/registerUser1?forwardDestination="+e}else{cc.auth.showJoin()}});jQuery(".cc-tourjoin",b).unbind("click").click(function(){location.href="/tourjoin"});jQuery("#form-auth",b).unbind("submit").submit(function(){return cc.auth.authFormSubmit()});jQuery("#no-password",b).unbind("submit").submit(function(){return cc.auth.authFormSubmit()});if(b==="body"){var a=cc.helpers.getQueryStringParam("ReturnUrl");if(typeof a!=="undefined"&&a!==""){var c=cc.helpers.getQueryStringParam("ReturnUrl");if(cc_resx_SITE_NAME==="ZOORealGirls"){var d=escape(window.location);window.location="http://www.zootoday.com/home/login?forwardDestination="+d}if(typeof c==="undefined"||c===""){c=cc_resx_TR_You_must_login}cc.ui.colorbox("/login/?msg="+cc.helpers.encodeQsParam(c),cc.auth.initAuthOverlay)}}},showLogin:function(b){if(cc_resx_SITE_NAME==="CandyCrib"){if(b===""){b="null"}var a=escape(window.location);if(jQuery(".ao-content").size()>0){jQuery(".ao-content").fadeOut(300,function(){if(typeof b!=="undefined"&&typeof b!=="object"){cc.ui.colorbox("/login-join/login/"+escape(b)+"/?xurl="+a,cc.auth.initAuthOverlay)}else{cc.ui.colorbox("/login-join/login/?xurl="+a,cc.auth.initAuthOverlay)}})}else{if(typeof b!=="undefined"){cc.ui.colorbox("/login-join/login/"+escape(b)+"/?xurl="+a,cc.auth.initAuthOverlay)}else{cc.ui.colorbox("/login-join/login/?xurl="+a,cc.auth.initAuthOverlay)}}}else{if(cc_resx_SITE_NAME==="ZOORealGirls"){var c=escape(window.location);window.location="http://www.zootoday.com/home/login?forwardDestination="+c}else{if(jQuery(".ao-content").size()>0){jQuery(".ao-content").fadeOut(300,function(){if(typeof b!=="undefined"&&typeof b!=="object"){cc.ui.colorbox("/login/"+escape(b),cc.auth.initAuthOverlay)}else{cc.ui.colorbox("/login/",cc.auth.initAuthOverlay)}})}else{if(typeof b!=="undefined"){cc.ui.colorbox("/login/"+escape(b),cc.auth.initAuthOverlay)}else{cc.ui.colorbox("/login/",cc.auth.initAuthOverlay)}}}}return false},ShowChangeEmail:function(){cc.ui.colorbox("/join/change-email/",cc.auth.initAuthOverlay)},showJoin:function(){if(cc_resx_SITE_NAME==="ZOORealGirls"){var b=escape(window.location);window.location="http://www.zootoday.com/home/registerUser1?forwardDestination="+b}else{var a=escape(window.location);if(jQuery(".ao-content").size()>0){jQuery(".ao-content").fadeOut(300,function(){cc.ui.colorbox("/join/",cc.auth.initAuthOverlay)})}else{jQuery("#username").focus();cc.ui.colorbox("/login-join/register/?xurl="+a+"/",cc.auth.initAuthOverlay);jQuery("#username").focus()}return false}},showModelJoin:function(){if(jQuery(".ao-content").size()>0){jQuery(".ao-content").fadeOut(300,function(){cc.ui.colorbox("/join/model/",cc.auth.initAuthOverlay)})}else{cc.ui.colorbox("/join/model/",cc.auth.initAuthOverlay)}return false},initAuthOverlay:function(){jQuery(".ao-content .cc-login").unbind("click").click(cc.auth.showLogin);jQuery(".ao-content .cc-signup").unbind("click").click(cc.auth.showJoin);jQuery(".ao-content .cc-signup-girls").unbind("click").click(cc.auth.showModelJoin);jQuery(".ao-content #username").keypress(function(){setTimeout(function(){jQuery("#form-auth .auth-url").html(cc_resx_SITE_URL+jQuery(".ao-content #username").val())},10)})},authFormSubmit:function(){var a="";a=jQuery("#form-auth").attr("action");a+="?format=json";if(cc.auth.submitInProgress===true){return false}cc.auth.submitInProgress=true;jQuery(".ao-message").html("");cc.auth.showWait();cc.ajax.formSubmit("#form-auth",{target:"#form-auth",dataType:"json",url:a},function(f,b){if(typeof f.istour!=="undefined"&&f.istour!==""&&f.istour===true){if(typeof f.message!=="undefined"&&f.message!==""){alert(f.message);return}else{if(typeof f.memberid!=="undefined"&&f.memberid!==""){if(cc_resx_SITE_NAME==="CandyCrib"){jQuery(".x_memberid").val(f.memberid);cc.payments.epochTransactionStart(jQuery("#form-tourjoinpay"))}else{var c="0";c=jQuery("#pi_code").value;if(jQuery(".pi_code").length>3){for(var d=0;d<jQuery(".pi_code").length;d++){if(jQuery(".pi_code")[d].checked){c=jQuery(".pi_code")[d].value}else{}}cc.payments.subscribe(c,jQuery("#PageSessionId").val(),"1")}else{cc.payments.UserRegisterPay("uv-bt-userregister",""+f.memberid+"")}}}}}if(typeof f.redirectresp!=="undefined"&&f.redirect!=="200"){jQuery(".ao-message").addClass("error");jQuery(".ao-message").html(cc_resx_TR_AUTH_AJAX_ERROR);return}if(typeof f.redirectresp!=="undefined"&&f.redirect!==""){location.href=f.redirectresp;return}if(typeof f.success!=="undefined"&&f.success===false){if(typeof f.userexpired!=="undefined"&&f.userexpired===true){if(typeof f.message!=="undefined"&&f.message!==""){cc.auth.showExpiredUserMessage(f.message)}}else{jQuery(".ao-message").addClass("error");jQuery(".ao-message").html("")}}else{jQuery(".ao-message").removeClass("error")}if(typeof f.message!=="undefined"&&f.message!==""){jQuery(".ao-message").html(f.message);if(typeof f.ecCity!=="undefined"&&f.ecCity==="success"){jQuery(".girlofweekinput").val("")}}if(typeof f.messageok!=="undefined"&&f.messageok!=""){cc.ui.showModalOK(f.messageok,null,true)}if(typeof f.reload!=="undefined"&&f.reload===true){var e=cc.helpers.getQueryStringParam("ReturnUrl");if(typeof e!=="undefined"&&e!==""){if(typeof f.isjoin!=="undefined"&&f.isjoin===true){cc.ui.showModalOK(cc_resx_TR_A_Verification_Link_Mailed,null,true)}else{cc.auth.showWait(cc_resx_TR_Redirecting);cc.auth.redirecting=true;location.href=e}}else{if(typeof f.isjoin!=="undefined"&&f.isjoin===true){cc.ui.showModalOK(cc_resx_TR_A_Verification_Link_Mailed,null,true)}else{cc.auth.showWait(cc_resx_TR_Logging_In);cc.auth.redirecting=true;location.reload(true)}}}if(typeof f.redirect!=="undefined"&&f.redirect!==""){cc.auth.showWait(cc_resx_TR_Redirecting);cc.auth.redirecting=true;location.href=f.redirect}if(typeof f.overlay!=="undefined"&&f.overlay!==""){cc.ui.colorbox(f.overlay,cc.auth.initAuthOverlay)}if(typeof f.errors!=="undefined"&&f.errors.length>0){if(f.errors.length>0){for(var d=0;d<f.errors.length;d++){cc.form.showFormError(f.errors[d].id,f.errors[d].message)}jQuery(".error:first").focus()}}},function(){cc.auth.submitInProgress=false;if(cc.auth.redirecting!==true){cc.auth.hideWait()}});return false},zooLogout:function(){var a=escape(window.location);window.location="http://www.zootoday.com/home/logoutSubmit?forwardDestination="+a},authLoginSubmit:function(a){var b="";b=jQuery("#"+a).attr("action");b+="?format=json";if(cc.auth.submitInProgress===true){return false}cc.auth.submitInProgress=true;jQuery(".ao-message").html("");cc.auth.showWait();cc.ajax.formSubmit("#"+a,{target:"#"+a,dataType:"json",url:b},function(e,c){if(typeof e.success!=="undefined"&&e.success===false){jQuery(".ao-message").addClass("error");if(typeof e.message!=="undefined"&&e.message!==""){jQuery(".ao-message").html(e.message)}}else{jQuery(".ao-message").removeClass("error")}if(typeof e.redirect!=="undefined"&&e.redirect!==""){cc.auth.showWait(cc_resx_TR_Redirecting);cc.auth.redirecting=true;location.href=e.redirect}if(typeof e.reload!=="undefined"&&e.reload===true){var d=cc.helpers.getQueryStringParam("ReturnUrl");if(typeof d!=="undefined"&&d!==""){if(typeof e.isjoin!=="undefined"&&e.isjoin===true){cc.ui.showModalOK(cc_resx_TR_A_Verification_Link_Mailed,null,true)}else{cc.auth.showWait(cc_resx_TR_Redirecting);cc.auth.redirecting=true;location.href=d}}else{if(typeof e.isjoin!=="undefined"&&e.isjoin===true){cc.ui.showModalOK(cc_resx_TR_A_Verification_Link_Mailed,null,true)}else{cc.auth.showWait(cc_resx_TR_Logging_In);cc.auth.redirecting=true;location.reload(true)}}}},function(){cc.auth.submitInProgress=false;if(cc.auth.redirecting!==true){cc.auth.hideWait()}});return false},showExpiredUserMessage:function(a){var b="<p class=\"header\">Your Membership Subscription has expired!</p><br/><a onclick=\"cc.payments.UserRegisterPay('uv-bt-userregister', '"+a+'\');"  ><span class="button sprite">Renew</span></a><a href="/">Go Back to Homepage</a>';jQuery("body").append("<div style='display:none'><div id='inline-error'><div class='bg'></div><div class='expired-user msg'></div></div></div>");jQuery("#inline-error .bg").css("height","140px");jQuery("#inline-error .bg").css("width","530px");jQuery("#inline-error").css("background-color","#000000");jQuery("#cboxClose").css("background-color","#000000");jQuery("#inline-error .msg").html(b);jQuery.fn.colorbox({href:"#inline-error",inline:true,close:"X",onClosed:function(){if(cc.helpers.getQueryStringParam("emsg")!==""){location.href=cc.helpers.stripParamFromQs("emsg")}l}})},authSelectGender:function(a){if(a==="1"){jQuery("#gender").val("female");if(cc_resx_SITE_NAME==="UltraVixens"){jQuery("#auth-register-head").css("color","#eb3700");document.getElementById("auth-girl").src=cc_resx_CDN_URL+"images/auth/Stage2Girl.png";document.getElementById("auth-guy").src=cc_resx_CDN_URL+"images/auth/Stage1Boy.png"}else{jQuery("#auth-register-head").css("color","#ED0AED");document.getElementById("auth-girl").src=cc_resx_CDN_URL+"images/Stage2Girl.png";document.getElementById("auth-guy").src=cc_resx_CDN_URL+"images/Stage1Boy.png"}}else{jQuery("#gender").val("male");if(cc_resx_SITE_NAME==="UltraVixens"){jQuery("#auth-register-head").css("color","#eb3700");document.getElementById("auth-girl").src=cc_resx_CDN_URL+"images/auth/Stage1Girl.png";document.getElementById("auth-guy").src=cc_resx_CDN_URL+"images/auth/Stage2Boy.png"}else{jQuery("#auth-register-head").css("color","#0494D9");document.getElementById("auth-girl").src=cc_resx_CDN_URL+"images/Stage1Girl.png";document.getElementById("auth-guy").src=cc_resx_CDN_URL+"images/State2Boy.png"}}},ZooForgotPassword:function(){var a=escape("http://realgirls.zootoday.com/myprofile/info/");window.location="http://www.zootoday.com/home/resend.htm?forwardDestination="+a},showWait:function(a){if(typeof a==="undefined"||a===""){a=cc_resx_TR_Please_wait}jQuery("#ao-wait-msg").html(a);jQuery(".ao-wait-bg").show();jQuery(".ao-wait").show()},hideWait:function(){jQuery(".ao-wait-bg").hide();jQuery(".ao-wait").hide()}}}();

cc.auth.login=function(){return{overFg:false,overBg:false,inputFocus:false,fgBoxVisible:false,bgVisible:false,overFgTimeout:null,overBgTimeout:null,inputFocusTimeout:null,hoverTime:300,escKeyPress:false,init:function(){jQuery(".cc-menu-login").unbind("click").click(function(){cc.ui.colorbox("/login/",cc.auth.initAuthOverlay);return false});jQuery(".unsubcribemail").unbind("click").click(function(){return cc.auth.login.unsubscribeMail()})},checkState:function(){if(cc.auth.login.overFg&&!cc.auth.login.fgBoxVisible){cc.auth.login.fgBoxVisible=true;jQuery("#header-login-box").stop(true,true).animate({opacity:"show",top:"20px"},300,function(){cc.auth.login.fgBoxVisible=true})}if(cc.auth.login.inputFocus&&!cc.auth.login.bgVisible){cc.auth.login.bgVisible=true;jQuery("<div/>").addClass("login-bg-overlay").appendTo("BODY").stop(true,true).animate({opacity:"show"},1000)}if((!cc.auth.login.overFg&&!cc.auth.login.inputFocus)||cc.auth.login.escKeyPress){if(cc.auth.login.bgVisible){jQuery(".login-bg-overlay").stop(true,true).animate({opacity:"hide"},400,function(){jQuery(this).remove()});cc.auth.login.bgVisible=false}if(cc.auth.login.fgBoxVisible){jQuery("#header-login-box").animate({opacity:"hide",top:"30px"},200);jQuery("#header-login-box .error").html("");jQuery("#header-login-box .error").hide();cc.auth.login.fgBoxVisible=false}}cc.auth.login.escKeyPress=false},hide:function(){jQuery("#username,#password,#submit").blur();cc.auth.login.escKeyPress=true},unsubscribeMail:function(){cc.ajax.formSubmit("#unsubscribe-form",{target:"#header-login-box",dataType:"json",url:"/unsubscribe"},function(a){if(typeof a!=="undefined"&&a.success===false){jQuery("#response").addClass("error");jQuery("#response").html(a.message);return}else{jQuery("#response").html(a.message);jQuery("#response").addClass("success");return}});return false},loginSubmit:function(){cc.ajax.formSubmit("#header-login",{target:"#header-login-box",dataType:"json",url:"/login?format=json"},function(b,a){if(typeof b.redirectresp!=="undefined"&&b.redirect!=="200"){jQuery("#header-login-box .message").addClass("error");jQuery("#header-login-box .message").html(cc_resx_TR_AUTH_AJAX_ERROR);return}if(typeof b.redirectresp!=="undefined"&&b.redirect!==""){location.href=b.redirectresp;return}if(typeof b.success!=="undefined"&&b.success===false){jQuery("#header-login-box .message").addClass("error")}else{jQuery("#header-login-box .message").removeClass("error")}if(typeof b.message!=="undefined"&&b.message!==""){jQuery("#header-login-box .error").html(b.message);jQuery("#header-login-box .error").slideDown(300)}if(b.reload===true){location.reload(true)}});return false}}}();

cc.history=function(){var a=".cc-history";var b="body";return{init:function(c){if(typeof c!=="undefined"){b=c}if(b==="body"){jQuery.address.internalChange(function(d){if(d.value==="/"){return}cc.history.addressChange(d)});jQuery.address.externalChange(function(d){if(d.value==="/"){return}cc.history.addressChange(d)})}jQuery("a."+a,jQuery(b)).each(function(){var d=jQuery(this).attr("cc:target");if(typeof d==="undefined"||b===""){try{d=jQuery(this).parents("[rel]").first().attr("rel");jQuery(this).attr("cc:target",d)}catch(f){}}var g=jQuery(this).attr("cc:href");if(typeof g==="undefined"||g===""){g=jQuery(this).attr("href")}jQuery(this).click(function(){jQuery.address.value(d+":"+g);return false})})},addressChange:function(c){var e=c.value.substring(c.value.indexOf(":")+1);var d=c.value.substring(1,c.value.indexOf(":"));if(d===null){return}cc.ajax.load(d,cc.helpers.addQSParam(e,"format=ajax"))}}}();

cc.suggest=function(){var a=false;var b="#q";return{init:function(){if(a===true){return}jQuery(b).autocomplete({minChars:2,delimiter:/(,|;)\s*/,width:201,zIndex:9999,params:{country:"Yes"},noCache:false,serviceUrl:"/suggest/users/",params:{format:"json"},fnFormatResult:function(g,i,h){var e=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\"].join("|\\")+")","g");var c="("+h.replace(e,"\\$1")+")";var d="";var f="";if(i.type==="user"){d+="<dl><dt>";d+='<a href="'+i.url+'" title="'+i.friendlyName+'">';d+='<img width="50" height="50" src="'+i.avatarUrl50x50+'" alt="'+i.friendlyName+'" />';d+="</a></dt><dd>";d+='<a href="'+i.url+'" title="'+i.friendlyName+'">';d+=i.friendlyName.replace(new RegExp(c,"gi"),"<strong>$1</strong>");d+="</a>";d+="<div><p>";if(i.cImages===1){d+=""+i.cImages+" "+cc_resx_TR_Image+"&nbsp;";f="&nbsp;&nbsp;"}if(i.cImages>1){d+=""+i.cImages+" "+cc_resx_TR_Images+"&nbsp;";f="&nbsp;&nbsp;"}if(i.cVideos===1){d+=f+i.cVideos+" "+cc_resx_TR_Video+"</p></div>"}if(i.cVideos>1){d+=f+i.cVideos+" "+cc_resx_TR_Videos+"</p></div>"}d+="</p></div>";d+="</dd></dl>"}return d},onSelect:function(c,d){if(d.type==="user"){location.href=d.url}}});a=true}}}();

cc.social=function(){return{facebookShare:function(){var b=encodeURIComponent(location.href);var a=encodeURIComponent(cc.helpers.getPageTitle());window.open("http://www.facebook.com/sharer.php?u="+b+"&t="+a,"sharer","toolbar=0,status=0,width=626,height=436");return false},beboShare:function(a,b){var d=encodeURIComponent(location.href);var c=encodeURIComponent(cc.helpers.getPageTitle());if(typeof a!=="undefined"&&a!==""){d=encodeURIComponent(a)}if(typeof b!=="undefined"&&b!==""){c=encodeURIComponent(b)}window.open("http://www.bebo.com/c/share?Url="+d+"&Title="+c);return false},twitterShare:function(){var b=encodeURIComponent(location.href);var a=encodeURIComponent(cc.helpers.getPageTitle());window.open("http://twitter.com/home?status="+a+":+"+encodeURIComponent(b));return false},mySpaceShare:function(){var d=location.href;var b=cc.helpers.getPageTitle();var c=encodeURIComponent(cc.helpers.getPageTitle());var a="http://www.myspace.com/index.cfm?fuseaction=postto&";a+="t="+c;a+="&c="+encodeURIComponent('<a href="'+d+'" title="'+b+'">'+b+"</a>");a+="&u="+encodeURIComponent("http://myspace.com/")+"&l=1";window.open(a);return false}}}();



cc.ui=function(){var a="";return{showModalConfirmOnCancel:null,showModalConfirmOnConfirm:null,cbLoadInProgress:false,init:function(b){var c=b;jQuery(".cc-elastic",b).elastic();jQuery("#cc-media-dothings",b).unbind("click").click(function(){cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_you_want_save,function(){cc.ui.processMediaItems();jQuery.fn.colorbox.close()},null);return false});jQuery(".modal-select-shop",b).unbind("click").click(function(){cc.ui.colorbox("/valentines-boutique/select-model/",function(){})})},colorbox:function(d,b,g){if(typeof cc.ui.cbLoadInProgress!=="undefined"&&cc.ui.cbLoadInProgress===true){return false}cc.ui.cbLoadInProgress=true;var f=cc.helpers.addAjaxNoCacheParam(d);var e=b;jQuery.fn.colorbox({href:f,data:g,open:true,opacity:0.65,close:"X",onComplete:function(){cc.init("#colorbox");cc.tracking.trackPageView(f);if(typeof e==="function"){e()}cc.ui.cbLoadInProgress=false},onClosed:function(){cc.ui.cbLoadInProgress=false}})},displayLivePagePink:function(b){document.body.style.background=b},ChangeBackColor:function(b){if(b.length>1){document.body.style.background=b}else{document.body.className="wallpaper-effect"}},CountDownTimer:function(){var b=new Date();b=new Date(2011,2-1,14);jQuery("#cc-countdown-timer").countdown({until:b,format:"dHMS"})},TreatMeConfirm:function(d,b,c){jQuery("#cc-models-usersname").val(c);cc.ui.showModalConfirm("Are you sure you would like to buy this item for "+c,function(){cc.ui.boutiqueProductSelect(d,b);jQuery.fn.colorbox.close()},null);return false},GirlOfTheWeekPaging:function(){var j=10;var k=$("#weekno").val();var h=$("#year").val();var d=$("#maxweekno").val();var m=$("#maxyear").val();var i="";$("#show_per_page").val(j);if((parseInt(k)+1)>=0&&(h>=2010)){if(parseInt(k)===1){i="<a class=\"previous_link  prev sprite\" onclick=\"cc.ajax.load('#cc-girloftheweek-control', '/girl-of-the-week/52/"+(parseInt(h)-1)+"/');\" >Prev</a>"}else{i="<a class=\"previous_link  prev sprite\" onclick=\"cc.ajax.load('#cc-girloftheweek-control', '/girl-of-the-week/"+(parseInt(k)-1)+"/"+h+"/');\" >Prev</a>"}}var g=5;var b=5;if(parseInt(d)===parseInt(k)){g=10;b=0}else{if(parseInt(k)===1&&h<=2010){g=0;b=10}else{if((parseInt(d)-parseInt(k))<5&&(parseInt(d)-parseInt(k))>=0){g=10-(parseInt(d)-parseInt(k));b=(parseInt(d)-parseInt(k))}else{if((parseInt(k)<5)&&(parseInt(k)>0)){b=11-parseInt(k);g=k}else{if(parseInt(h)<parseInt(m)){var c=parseInt(d)+(52*(parseInt(m)-parseInt(h)));b=c-parseInt(k);if(parseInt(b)>5){b=5}g=11-parseInt(b)}}}}}var n=parseInt(k)-parseInt(g);while(n<(parseInt(k)+parseInt(b))){var e="";if(n===parseInt(k)){e="highlight"}var l=0;var f=0;if(n<1){l=n+52;f=parseInt(h)-1}else{if(n>52){l=n-52;f=parseInt(h)+1}}if((h>=2010&&(n>=1||l>=1))&&((h<m&&n<=52)||(h===m&&n<=d)||(n>52&&l>=1))){if(n<1||n>52){i+='<a class="page_link '+e+"\" onclick=\"cc.ajax.load('#cc-girloftheweek-control', '/girl-of-the-week/"+l+"/"+f+'/\');" longdesc="'+l+'">'+(l)+"</a>"}else{i+='<a class="page_link '+e+"\" onclick=\"cc.ajax.load('#cc-girloftheweek-control', '/girl-of-the-week/"+n+"/"+h+'/\');" longdesc="'+n+'">'+(n)+"</a>"}}n++}if(((parseInt(k)+1)<=d)||(parseInt(h)<parseInt(m))){if(parseInt(k)===52){i+="<a class=\"next_link next sprite\" onclick=\"cc.ajax.load('#cc-girloftheweek-control', '/girl-of-the-week/1/"+(parseInt(h)+1)+"/');\"  >Next</a>"}else{i+="<a class=\"next_link next sprite\" onclick=\"cc.ajax.load('#cc-girloftheweek-control', '/girl-of-the-week/"+(parseInt(k)+1)+"/"+h+"/');\"  >Next</a>"}}if((parseInt(k)+1)>d&&(parseInt(h)===parseInt(m))){i+='<a class="next_link next sprite" onclick="return;"  >Next</a>'}$("#page_navigation").html(i);$("#page_navigation .page_link:first").addClass("active_page");$("#content").children().css("display","none");$("#content").children().slice(0,j).css("display","block")},getRate:function(b,c){var d=document.createElement("script");d.setAttribute("src","http://query.yahooapis.com/v1/public/yql?q=select%20rate%2Cname%20from%20csv%20where%20url%3D'http%3A%2F%2Fdownload.finance.yahoo.com%2Fd%2Fquotes%3Fs%3D"+b+c+"%253DX%26f%3Dl1n'%20and%20columns%3D'rate%2Cname'&format=json&callback=cc.ui.parseExchangeRate");document.body.appendChild(d)},parseExchangeRate:function(c){var b=(parseFloat(c.query.results.row.rate,10)*100);cc.ajax.load("#cc-girlpayments-report","/admin/girls-payments/"+b+"/")},displayPromoCorner:function(){jQuery("<div />").attr("id","tour-promo").html('<div class="left"><img src="http://cdn.candycrib.com/images/creditspromo.png" /></div>').appendTo("#header")},loadZooBanners:function(b){if(b==="1"){if(window.adgroupid==undefined){window.adgroupid=Math.round(Math.random()*1000)}document.write('<script language="javascript1.1" src="http://adserver.adtech.de/addyn|3.0|311|3199584|0|170|ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp='+window.adgroupid+";misc="+new Date().getTime()+'"></script>')}else{if(b==="2"){if(window.adgroupid==undefined){window.adgroupid=Math.round(Math.random()*1000)}document.write('<script language="javascript1.1" src="http://adserver.adtech.de/addyn|3.0|311|3199582|0|168|ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp='+window.adgroupid+";misc="+new Date().getTime()+'"></script>')}else{if(b==="3"){if(window.adgroupid==undefined){window.adgroupid=Math.round(Math.random()*1000)}document.write('<script language="javascript1.1" src="http://adserver.adtech.de/addyn|3.0|311|3199583|0|1|ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp='+window.adgroupid+";misc="+new Date().getTime()+'"></script>')}}}},boutiqueProductSelect:function(c,d){jQuery(".product").val(c+":1");jQuery(".productid").val(c);if(d.length>1){var b=jQuery("#cc-models-usersname").val();cc.ui.boutiqueProductBuy(d,b)}else{cc.ui.colorbox("/valentines-boutique/select-model/",function(){})}},boutiqueEnterMessagePopUp:function(b){cc.ui.colorbox("/valentines-boutique/enter-message/"+b,function(){})},boutiqueProductBuy:function(b,c){var e=jQuery(".uidstr").val();var d=jQuery(".productid").val();cc.ajax.getJSON("/valentines-boutique/get-country/",{dstmember:b,product:d,uidstr:e},function(f){if(typeof f!=="undefined"&&typeof f.success!==false){if(typeof f.bqDressSize!=="undefined"&&typeof f.bqDressSize!==""){jQuery(".model-dress-size").val(f.bqDressSize)}if(typeof f.bqBraRange!=="undefined"&&typeof f.bqBraRange!==""){jQuery(".model-bra-size").val(f.bqBraRange)}if(typeof f.postCode!=="undefined"&&typeof f.postCode!==""){jQuery(".model-postcode").val(f.postCode)}if(typeof f.houseNumber!=="undefined"&&typeof f.houseNumber!==""){jQuery(".model-house").val(f.houseNumber)}if(typeof f.bqSizeRange!=="undefined"&&typeof f.bqSizeRange!==""){jQuery(".model-size-range").val(f.bqSizeRange)}if(typeof f.ecCountry!=="undefined"&&typeof f.ecCountry!==""){jQuery(".model-country").val(f.ecCountry);jQuery(".model").val(c);jQuery("#boutique-form").submit()}}})},WishListItemProcess:function(c,b,d){cc.ui.showModalConfirm(d,function(){cc.ui.boutiqueProductAdd(c,b);jQuery.fn.colorbox.close()},null)},boutiqueProductAdd:function(c,b){cc.ajax.getJSON(b,{productid:c},function(d){if(typeof d!=="undefined"&&typeof d.success!==false){if(typeof d.message!=="undefined"&&typeof d.message!==""){cc.ui.showModalOK(d.message,"",false)}}})},boutiqueModelSearch:function(){var b=jQuery("#bq-search").val();cc.ajax.load("#bq-searchresults","/valentines-boutique/select-model/"+b)},adminDownloadEmails:function(){var b=false;var e=false;var d=false;var c=false;if(jQuery("#vip_girls").attr("checked")){b=true}if(jQuery("#nonvip_girls").attr("checked")){e=true}if(jQuery("#subscribed_guys").attr("checked")){d=true}if(jQuery("#nonsubscribed_guys").attr("checked")){c=true}if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.ajax.formSubmit(jQuery("#form-admin-options"),{url:"/admin/download-emailaddresses/"+b+"/"+e+"/"+d+"/"+c+"/",dataType:"json"},function(f){if(f.success==="undefined"||f.success===false){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_processing_media_items)}else{if(f.success===true&&f.reload===true){location.reload(true)}}})},checkmaxlength:function(d,b){if(d.value.length>b){d.value=d.value.substring(0,b)}var c=140-d.value.length;jQuery("#uf-charsleft").html(c)},MediaTreatMe:function(){var b=jQuery("#bq_xmemberid").val();window.location="/boutique/"+b+"/"},markAllMedia:function(b){if(b===1){if(jQuery(".admin-vip-all:checked").size()<jQuery(".admin-vip-all").size()){jQuery(".admin-vip-all").attr("checked",true);jQuery("#mrk-all-vip").html(cc_resx_TR_Unmark_all_as_TokenType)}else{jQuery(".admin-vip-all").attr("checked",false);jQuery("#mrk-all-vip").html(cc_resx_TR_Mark_all_as_TokenType)}}else{if(b===2){if(jQuery(".admin-topless-all:checked").size()<jQuery(".admin-topless-all").size()){jQuery(".admin-topless-all").attr("checked",true);jQuery("#mrk-all-topless").html(cc_resx_TR_Unmark_all_as_Topless)}else{jQuery(".admin-topless-all").attr("checked",false);jQuery("#mrk-all-topless").html(cc_resx_TR_Mark_all_as_Topless)}}else{if(b===3){if(jQuery(".admin-delete-all:checked").size()<jQuery(".admin-delete-all").size()){jQuery(".admin-delete-all").attr("checked",true);jQuery("#mrk-all-delete").html(cc_resx_TR_Unmark_all_for_Deletion)}else{jQuery(".admin-delete-all").attr("checked",false);jQuery("#mrk-all-delete").html(cc_resx_TR_Mark_all_for_Deletion)}}else{if(jQuery(".admin-topless-all:checked").size()===jQuery(".admin-topless-all").size()){jQuery("#mrk-all-topless").html(cc_resx_TR_Unmark_all_as_Topless)}if(jQuery(".admin-vip-all:checked").size()===jQuery(".admin-vip-all").size()){jQuery("#mrk-all-vip").html(cc_resx_TR_Unmark_all_as_TokenType)}}}}},adminSearchMedia:function(c,d){var b=jQuery("#adm-media-search").val();window.location="/admin/manage-media/"+b+"/"+d},adminSearchDisable:function(){if(jQuery("#adm-media-search").length>0){jQuery("#adm-media-search-btn").addClass("active")}else{jQuery("#adm-media-search-btn").removeClass("active")}},processMediaItems:function(){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.ajax.formSubmit(jQuery("#form-admin-options"),{url:"/admin/process-manage-media/",dataType:"json"},function(b){if(b.success==="undefined"||b.success===false){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_processing_media_items)}else{if(b.success===true&&b.reload===true){location.reload(true)}}})},videoPlayerPlaylistCount:9,videoPlayer:function(d,b,c){cc.ui.getUpsellAvatars();cc.ui.videoPlayerContentPlugin=null;if(typeof cc_resx_FLOWPLAYER_CONTENT_SWF!=="undefined"&&cc_resx_FLOWPLAYER_CONTENT_SWF!==""){cc.ui.videoPlayerContentPlugin={url:cc_resx_FLOWPLAYER_CONTENT_SWF,closeButton:true,bottom:"50",style:{".anchor":{fontSize:18,fontFamily:"georgia",color:"#0494D9",textDecoration:"underline"},h1:{height:40},".spanimage":{marginLeft:"5",width:200,textAlign:"left"}},display:"none"}}flowplayer(d,{src:cc_resx_FLOWPLAYER_SWF,wmode:"transparent"},{key:cc_resx_FLOWPLAYER_KEY,clip:{url:b,autoBuffering:false,scaling:"fit",autoPlay:false,onCuepoint:[[5000],function(g,f){if(typeof cc.ui.videoPopUpAvatar!=="undefined"&&cc.ui.videoPopUpAvatar!==""&&typeof cc_resx_FLOWPLAYER_CONTENT_SWF!=="undefined"&&cc_resx_FLOWPLAYER_CONTENT_SWF!==""){var e=Math.floor(Math.random()*12);if((typeof cc.activeUsername!=="undefined"&&cc.activeUsername!=="")&&(cc.activeUserIsFemale==="0"&&cc.activeUserIsSubscriber==="0")){this.getPlugin("myContent").css({height:70,width:640,display:"block"});this.getPlugin("myContent").append('<a class="anchor" href="/tour?ref=videoplayer" ><div class="spanimage" ><img align="left" class="simage" src="'+cc.ui.videoPopUpAvatar+'" alt="" ></div><h1><br/>'+cc.ui.GetPopUpText(e)+"</h1></a>")}}}]},plugins:{controls:{url:cc_resx_FLOWPLAYER_CONTROLS_SWF,backgroundColor:"#1A1A1A",backgroundGradient:"none",all:false,play:true,scrubber:true,mute:true,volume:true,fullscreen:true,height:40,sliderColor:"#333333",progressColor:"#0494D9",bufferColor:"#666666"},myContent:cc.ui.videoPlayerContentPlugin,gatracker:cc_resx_flowPlayerConfig},canvas:{backgroundColor:"#000000",backgroundGradient:"none"},screen:{width:640,height:520},onFinish:function(){if(typeof c==="function"){c()}}})},faqInitExpose:function(b){jQuery(".cc-vip-faq a",b).each(function(){jQuery(this).click(function(){jQuery(jQuery(this).attr("href")).seekAttention({paddingTop:5,paddingBottom:5,paddingLeft:5,paddingRight:5,opacity:0.4,fadeSpeed:300,pulse:false})})})},getUpsellAvatars:function(){cc.ajax.getJSON("/watch/get-upsell-avatars/",{},function(b){if(typeof b!=="undefined"&&typeof b.message!==""){cc.ui.videoPopUpAvatar=b.message}})},GetPopUpText:function(b){var c="";switch(b.toString()){case"0":case"1":c=cc_resx_TR_CC_PreRoll_1;break;case"2":c=cc_resx_TR_CC_PreRoll_2;break;case"3":c=cc_resx_TR_CC_PreRoll_3;break;case"4":c=cc_resx_TR_CC_PreRoll_4;break;case"5":c=cc_resx_TR_CC_PreRoll_5;break;case"6":c=cc_resx_TR_CC_PreRoll_6;break;case"7":c=cc_resx_TR_CC_PreRoll_7;break;case"8":c=cc_resx_TR_CC_PreRoll_8;break;case"9":c=cc_resx_TR_CC_PreRoll_9;break;case"10":c=cc_resx_TR_CC_PreRoll_10;break;case"11":c=cc_resx_TR_CC_PreRoll_11;break}return c},checkmaxlength:function(d,b){if(d.value.length>b){d.value=d.value.substring(0,b)}var c=140-d.value.length;jQuery("#uf-charsleft").html(c)},showModalErrorMessage:function(b){if(jQuery("#inline-error").size()<1){jQuery("body").append("<div style='display:none'><div id='inline-error'><div class='bg'></div><div class='msg'></div></div></div>")}jQuery("#inline-error .msg").html(b);jQuery.fn.colorbox({href:"#inline-error",inline:true,opacity:0.65,close:"X",onClosed:function(){if(cc.helpers.getQueryStringParam("emsg")!==""){location.href=cc.helpers.stripParamFromQs("emsg")}}})},hideModalErrorMessage:function(b){jQuery.fn.colorbox.close()},showModalConfirm:function(d,c,b){cc.ui.showModalConfirmOnConfirm=c;cc.ui.showModalConfirmOnCancel=b;if(jQuery("#modal-msg").size()>1){jQuery("#modal-msg").remove()}jQuery("body").append("<div style='display:none'><div id='modal-msg'><div class='bg'></div><div class='msg'></div></div></div>");jQuery("#modal-msg .msg").html(d+"<br /><br /><a onclick='return cc.ui.showModalConfirmNo();' class='no'>"+cc_resx_TR_No+"</a><a onclick='return cc.ui.showModalConfirmYes();' class='yes'>"+cc_resx_TR_Yes+"</a>");jQuery.fn.colorbox({href:"#modal-msg",inline:true,opacity:0.65,close:"X",onClosed:function(){if(typeof cc.ui.showModalConfirmOnCancel==="function"){cc.ui.showModalConfirmOnCancel()}}})},showModalOK:function(d,c,b){cc.ui.showModalConfirmOnOK=c;if(jQuery("#modal-msg").size()>1){jQuery("#modal-msg").remove()}jQuery("body").append("<div style='display:none'><div id='modal-msg'><div class='bg'></div><div class='msg'></div></div></div>");if(typeof b!=="undefined"&&b===true){jQuery("#modal-msg .msg").html(d+"<br /><br /><a onclick='location.reload(true); return false;' class='yes'>"+cc_resx_TR_OK+"</a>")}else{if(typeof c!=="undefined"&&c!==""){jQuery("#modal-msg .msg").html(d+"<br /><br /><a href='"+c+"' class='yes'>"+cc_resx_TR_OK+"</a>")}else{jQuery("#modal-msg .msg").html(d+"<br /><br /><a onclick='jQuery.fn.colorbox.close();' class='yes'>"+cc_resx_TR_OK+"</a>")}}jQuery.fn.colorbox({href:"#modal-msg",inline:true,opacity:0.65,close:"X",onClosed:function(){if(typeof cc.ui.showModalConfirmOnCancel==="function"){cc.ui.showModalConfirmOnCancel()}}})},showModalConfirmNo:function(){jQuery.fn.colorbox.close();return false},stopLiveChatPopUp:function(){jQuery("#cc-livepopup").css("display","none");cc.ajax.getJSON("/stop-livechat-alert/",{},function(b){})},stopLiveChatPud:function(){jQuery("#cc-topup-down").css("display","none");cc.ajax.getJSON("/stop-livechat-pud/",{},function(b){})},myprofileUnfan:function(b,d,c){cc.ajax.getJSON(b,{yesOrNo:c,memberId:d},function(e){if(typeof e.success!=="undefined"&&e.success===true){location.reload(true)}})},getLiveChatPopUp:function(){cc.ajax.getJSON("/get-livechat-alert/",{},function(d){if(typeof d!=="undefined"){if(typeof d.message!==""&&d.message.length>10){var c='<div id="cc-livepopup-message" >'+d.message+"</div>";var b='<div id="cc-livepopup" >'+c+"</div>";jQuery("body").append(b)}else{if(typeof d.redirect!==""&&d.redirect.length>0){var b='<div id="cc-livepopup-message" class="popup-upsell" ><a href="'+d.redirect+'" ><img style="border-style: none;" src="http://cdn.candycrib.com/images/live_chat_ad.jpg" /></a></div>';jQuery("#cc-topup-down").append(b)}}}})},dropLiveChatPopUpTop:function(){if(cc_resx_SITE_NAME!=="ZOORealGirls"){if(cc.activeUserIsFemale==="0"){cc.ajax.getJSON("/get-livechat-popdown/",{},function(c){if(typeof c!=="undefined"){if(typeof c.message!==""&&c.message.length>10){var d=c.message;var b='<div id="cc-PopUpTop-message" ><div class="pop-center">'+d+'<a onclick="cc.ui.stopLiveChatPud();"><span id="cc-pud-close">x</span></a></div></div>';jQuery("#cc-topup-down").append(b);jQuery("#cc-topup-down").slideDown(1400,function(){jQuery("#cc-topup-down").show()})}}})}}},OnHoverMenu:function(){jQuery(".cc-dup-menu").hoverIntent({sensitivity:3,interval:10,over:function(){jQuery(".cc-submenu",jQuery(this)).stop(true,true).animate({opacity:"show",top:"50px"},300);return false},timeout:300,out:function(){jQuery(".cc-submenu",jQuery(this)).animate({opacity:"hide",top:"50px"},200)}})},ZooVIPRedirect:function(b){alert("You are about to be redirected");window.location=b},showModalConfirmYes:function(){if(typeof cc.ui.showModalConfirmOnConfirm==="function"){cc.ui.showModalConfirmOnConfirm()}cc.ui.showModalConfirmOnCancel=null;cc.ui.showModalConfirmOnConfirm=null;return false}}}();

cc.comments=function(){return{displayIds:[],effectTime:150,commentFormSubmitInProc:false,commentDeleteInProc:false,commentFormButtonText:"",showMoreInProc:false,init:function(a){jQuery(".more-paging",a).css("display","block");jQuery(".cc-show-more",a).each(function(){var c=jQuery(this).attr("cc:href");if(typeof c==="undefined"||c===""){c=jQuery(this).attr("href");if(typeof c==="undefined"||c===""){return}}var b=jQuery(this).attr("cc:key");var e=true;if(typeof b==="undefined"||b===""){b="";e=false}var d=jQuery(this).attr("cc:status");if(typeof d!=="undefined"&&d!==""){d="";e=true}jQuery(this).attr("href","#");jQuery(this).click(function(){cc.comments.showMore(c,b,e);if(b!==""){jQuery("#more-paging-"+b).show()}else{jQuery(".more-paging").show()}return false})});jQuery(".cc-form-post-comment",a).each(function(){jQuery(this).unbind("submit").submit(function(){var c="#"+jQuery(this).attr("id");var b=jQuery(this).attr("action");return cc.comments.commentFormSubmit(c,b)})});jQuery(".cc-status-comment-delete",a).live("click",function(){var c=jQuery(this).attr("cc:commentid");var b=jQuery(this).attr("cc:statusid");cc.comments.statusCommentDelete(this,b,c);return false});jQuery(".cc-media-comment-delete",a).live("click",function(){var d=jQuery(this).attr("cc:commentmemberid");var b=jQuery(this).attr("cc:commentid");var e=jQuery(this).attr("cc:mediaid");var c=jQuery(this).attr("cc:shortcommentmemberid");cc.comments.mediaCommentDelete(this,e,b,d,c);return false});jQuery(".cc-blog-comment-delete",a).live("click",function(){var c=jQuery(this).attr("cc:commentid");var b=jQuery(this).attr("cc:blogid");cc.comments.blogCommentDelete(b,c);return false})},mediaCommentDelete:function(c,b,d,a,e){if(typeof cc.comments.commentDeleteInProc!=="undefined"&&cc.comments.commentDeleteInProc===true){return false}cc.comments.commentDeleteInProc=true;jQuery(c).html(cc_resx_TR_deleting);cc.ajax.getJSON("/watch/comment/delete/",{commentMemberId:a,mediaId:b,commentId:d},function(g,f){if(typeof g!=="undefined"&&typeof g.success!=="undefined"&&g.success===true){jQuery("#"+d).slideUp(300,function(){jQuery("#"+e).remove()})}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}},function(){cc.comments.commentDeleteInProc=false})},blogCommentDelete:function(a,b){if(typeof cc.comments.commentDeleteInProc!=="undefined"&&cc.comments.commentDeleteInProc===true){return false}cc.comments.commentDeleteInProc=true;cc.ajax.getJSON("/blogs/delete-comment/",{blogid:a,commentid:b},function(d,c){if(typeof d!=="undefined"&&typeof d.success!=="undefined"&&d.success===true){location.reload(true)}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}},function(){cc.comments.commentDeleteInProc=false})},statusCommentDelete:function(c,a,b){if(typeof cc.comments.commentDeleteInProc!=="undefined"&&cc.comments.commentDeleteInProc===true){return false}cc.comments.commentDeleteInProc=true;jQuery(c).html(cc_resx_TR_deleting);cc.ajax.getJSON("/status/comment/delete/",{statusId:a,commentId:b},function(e,d){if(typeof e!=="undefined"&&typeof e.success!=="undefined"&&e.success===true){jQuery("#"+b).slideUp(300,function(){jQuery("#"+b).remove()})}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}},function(){cc.comments.commentDeleteInProc=false})},showMore:function(g,e,h){var c=g;var d=e;var i=h;if(typeof cc.comments.showMoreInProc!=="undefined"&&cc.comments.showMoreInProc===true){return false}cc.comments.showMoreInProc=true;var b=".cc-show-more";var f=".more-paging";if(d!==""){b="#cc-show-more-"+d;f="#more-paging-"+d}jQuery(b).unbind("click").fadeOut(cc.comments.effectTime);cc.ajax.getJSON(c,{},function(l,a){try{if(l.countResults>0){jQuery(f).prevUntil("ul").each(function(){jQuery(this).remove()});for(var j=0;j<l.data.length;j++){jQuery(f).before(cc.comments.buildHtml(l.data[j],i));jQuery("#"+l.data[j].shortUidKey).show()}if(l.moreUrl!==""){jQuery(b).unbind("click").click(function(){cc.comments.showMore(l.moreUrl);return false});jQuery(b).fadeIn(cc.comments.effectTime)}else{jQuery(f).fadeOut(cc.comments.effectTime)}}else{jQuery(f).fadeOut(cc.comments.effectTime)}}catch(k){}},function(){cc.comments.showMoreInProc=false})},buildHtml:function(c,g){var a="";var e="";var b="";var d="";var f="";if(c.commentOnSelf){a=" owner"}if(typeof cc==="undefined"||cc.activeUsername===""||cc.activeUsername===null){f="hide-deletecomment"}else{if(cc.activeUserIsAdmin==="1"||c.ownerUsername===cc.activeUsername||c.contentOwnerUsername===cc.activeUsername){}else{f="hide-deletecomment"}}if(c.ownerIsVip&&c.ownerIsFemale){b="ov-f";d+=" av-vip-f"}else{if(c.ownerIsVip&&!c.ownerIsFemale){b="ov-m";d+=" av-vip-m"}else{if(!c.ownerIsVip&&!c.ownerIsFemale){b="";d+=" av-m"}else{if(!c.ownerIsVip&&c.ownerIsFemale){b="";d+=" av-f"}else{if(c.ownerIsPremium){b="ov-p";d+=" av-p"}else{if(c.ownerIsAdmin){b="ov-a";d+=" av-a"}}}}}}var h=jQuery("<li />").attr("id",c.shortUidKey).addClass("all-comments").addClass("clearfix").addClass(a);var i="";if(g!==true){i+='<div class="av-outer-overlay t av-border-30x30 '+d+'" ><img class="av-30x30 av-inner-overlay" src="'+c.ownerAvatar30x30+'" title="'+c.ownerFriendlyName+'" /><a id="up-statuscommentowner" class="av-inner-overlay av-border-30x30 '+d+" "+b+'" title="'+c.ownerFriendlyName+'" href="'+c.ownerUrl+'">&nbsp;</a></div>';i+='<a class="comment-owner" href="'+c.ownerUrl+'" >'+c.ownerFriendlyName+"</a>";i+='<span class="date">'+c.createdAtString;i+='<span><a class="'+f+' cc-media-comment-delete" cc:commentmemberid="'+c.memberId+'"  cc:commentid="'+c.uid+'"  cc:mediaid="'+c.mediaId+'" title="'+cc_resx_TR_Delete_Comment+'" >x</a></span></span>';i+="<div><p>"+cc.helpers.nl2br(c.entry)+"</p></div>"}else{i+="<dl><dt>";i+='<div class="av-outer-overlay t av-border-30x30 '+d+'" ><img class="av-30x30 av-inner-overlay" src="'+c.ownerAvatar30x30+'" title="'+c.ownerFriendlyName+'" /><a id="up-statuscommentowner" class="av-inner-overlay av-border-30x30 '+d+" "+b+'" title="'+c.ownerFriendlyName+'" href="'+c.ownerUrl+'">&nbsp;</a></div>';i+="</dt><dd>";i+='<span id="delete"><a class="'+f+' cc-status-comment-delete" cc:commentid="'+c.uid+'" cc:statusid="'+c.statusid+'">x</a></span>';i+='<span class="date">'+c.createdAtString+"</span>";i+='<a title="'+c.ownerFriendlyName+'" href="'+c.ownerUrl+'" >'+c.ownerFriendlyName+"</a>";i+='<div class="entry"><p>'+cc.helpers.nl2br(c.entry)+"</p></div>";i+="</dd></dl>"}h.append(i);h.hide();return h},commentFormSubmit:function(b,a){var e=b;var d=a+"?format=json";var c=true;jQuery(".cc-fill",jQuery(e)).each(function(){if(typeof jQuery(this).val()==="undefined"||jQuery(this).val()===""){c=false}});if(c===false){return false}if(typeof cc.comments.commentFormSubmitInProc!=="undefined"&&cc.comments.commentFormSubmitInProc===true){return false}cc.comments.commentFormSubmitInProc=true;jQuery(".cc-form-post",jQuery(e)).each(function(){if(typeof jQuery(this).html()!=="undefined"&&jQuery(this).html()!==""){cc.comments.commentFormButtonText=jQuery(this).html();jQuery(this).html(cc_resx_TR_Posting)}});cc.ajax.formSubmit(e,{target:e,dataType:"json",url:d},function(g,f){if(typeof g.redirectresp!=="undefined"&&g.redirect!=="200"){jQuery(".ao-message").addClass("error");jQuery(".ao-message").html(cc_resx_TR_AUTH_AJAX_ERROR);return}if(typeof g.redirectresp!=="undefined"&&g.redirect!==""){location.href=g.redirectresp;return}if(typeof g.success!=="undefined"&&g.success===false){jQuery(".ao-message").addClass("error")}else{jQuery(".ao-message").removeClass("error")}if(typeof g.message!=="undefined"&&g.message!==""){jQuery(".ao-message").html(g.message)}if(typeof g.comment!=="undefined"){jQuery(".all-comments").prepend(cc.comments.buildHtml(g.comment));jQuery("#"+g.comment.shortUidKey).show();jQuery("#"+g.comment.commentControl).attr("value","")}if(typeof g.reload!=="undefined"&&g.reload===true){location.reload(true);return}},function(){cc.comments.commentFormSubmitInProc=false;if(cc.comments.commentFormButtonText!==""){jQuery(".cc-form-post",jQuery(e)).each(function(){jQuery(this).html(cc.comments.commentFormButtonText)})}});return false}}}();

cc.upload=function(){return{uploader:null,ajaxRequestsOpen:0,uploadQueueEmpty:true,themekey:cc_resx_THEME_KEY,siteUrl:cc_resx_SITE_URL,cdnUrl:cc_resx_CDN_URL,onCompleteRedirectUrl:"",onCompletePostBackUrl:"",onCompletePostBackTarget:"",uploadUrl:"",inboxUrl:"",username:"",vipStatus:"notset",filenameKey:"",ccusername:"",init:function(c){if(typeof c==="object"){if(typeof c.onCompleteRedirectUrl!=="undefined"){cc.upload.onCompleteRedirectUrl=c.onCompleteRedirectUrl}if(typeof c.onCompletePostBackUrl!=="undefined"){cc.upload.onCompletePostBackUrl=c.onCompletePostBackUrl}if(typeof c.onCompletePostBackTarget!=="undefined"){cc.upload.onCompletePostBackTarget=c.onCompletePostBackTarget}if(typeof c.uploadUrl!=="undefined"){cc.upload.uploadUrl=c.uploadUrl}if(typeof c.inboxUrl!=="undefined"){cc.upload.inboxUrl=c.inboxUrl}if(typeof c.username!=="undefined"){cc.upload.username=c.username}if(typeof c.vipStatus!=="undefined"&&c.vipStatus!==""){cc.upload.vipStatus=c.vipStatus}if(typeof c.filenameKey!=="undefined"&&c.filenameKey!==""){cc.upload.filenameKey=c.filenameKey}if(typeof c.ccusername!=="undefined"&&c.ccusername!==""){cc.upload.ccusername=c.ccusername}}var a={path:""+cc_resx_CDN_URL+"swf/Swiff.Uploader.swf",url:cc.upload.uploadUrl,fileSizeMax:1000*1024*1024,fileListMax:10,timeLimit:10000,verbose:true,fieldName:"SourceFile",data:{themeKey:cc.upload.themekey,siteUrl:cc.upload.siteUrl,inboxUrl:cc.upload.inboxUrl,cdnUrl:cc.upload.cdnUrl,username:cc.upload.username,vipStatus:cc.upload.vipStatus,filenameKey:cc.upload.filenameKey,ccusername:cc.upload.ccusername},onFileComplete:cc.upload.fileQueueItemUploadComplete,onComplete:cc.upload.fileUploadQueueComplete,onFileOpen:cc.upload.fileUploadStart,onFileStop:cc.upload.fileUploadCancel,onSelectFail:cc.upload.errorFileSelectFailure,onFileError:cc.upload.errorFileUploadFailure,onFileRequeue:cc.upload.onFileRequeue};var b=jQuery.extend(a,c||{});cc.upload.uploader=new FancyUpload3.Attach("uploadFileList","#file-attach, #file-attach-2",b)},fileUploadStart:function(a){jQuery("#upload-in-progress").show()},fileQueueItemUploadComplete:function(c){var b="li#file-"+c.id+"";jQuery(b).prepend('<span class="file-processing">'+cc_resx_TR_Processing+"</span>");if(cc.upload.onCompletePostBackTarget===""&&cc.upload.onCompletePostBackUrl!==""){cc.upload.ajaxRequestsOpen+=1;cc.ajax.getJSON(cc.upload.onCompletePostBackUrl,{filename:c.name},function(d){cc.upload.ajaxRequestsOpen-=1;if(cc.upload.ajaxRequestsOpen<1&&cc.upload.uploadQueueEmpty){jQuery("#upload-in-progress").hide();window.location=cc.upload.onCompleteRedirectUrl}})}else{if(typeof cc.upload.onCompletePostBackTarget!=="undefined"&&cc.upload.onCompletePostBackTarget!==""){var a=cc.helpers.addQSParam(cc.upload.onCompletePostBackUrl,"filename="+cc.helpers.encodeQsParam(c.name));cc.ajax.load(cc.upload.onCompletePostBackTarget,a)}else{if(cc.upload.ajaxRequestsOpen<1&&cc.upload.uploadQueueEmpty){jQuery("#upload-in-progress").hide();window.location=cc.upload.onCompleteRedirectUrl}}}},fileUploadQueueComplete:function(){cc.upload.uploadQueueEmpty=true;if(cc.upload.ajaxRequestsOpen<1){jQuery("#upload-in-progress").hide();window.location=cc.upload.onCompleteRedirectUrl}},errorFileSelectFailure:function(a){a.each(function(c){var b=new Element("li",{"class":"file-invalid",events:{click:function(){this.destroy()}}}).adopt(new Element("span",{html:c.validationErrorMessage||c.validationError})).inject(this.list,"bottom")},this)},errorFileUploadFailure:function(b){if(b.response.code!==201||b.response.code!==0){b.ui.cancel.set("html",cc_resx_TR_Retry).removeEvents().addEvent("click",function(){b.requeue();return false});var a=new Element("span",{html:b.errorMessage,"class":"file-error"}).inject(b.ui.cancel,"after")}},onFileRequeue:function(a){a.ui.element.getElement(".file-error").destroy();a.ui.cancel.set("html",cc_resx_TR_Cancel).removeEvents().addEvent("click",function(){a.remove();return false});this.start()}}}();

cc.crop=function(){return{coords:{},saving:false,filename:"",redirect:"",imageWidth:0,imageHeight:0,initialCropSizeX:210,initialCropSizeY:210,onCompletePostBackUrl:"/myprofile/upload/profile-picture/",onCompletePostBackTarget:"#mp-info",avatarUrl:"",username:"",init:function(e,f,d,b,g,c,a){if(typeof f!=="undefined"){cc.crop.redirect=f}cc.crop.avatarUrl=e;cc.crop.filename=d;cc.crop.username=b;if(typeof g!=="undefined"&&g!==""){cc.crop.onCompletePostBackUrl=g}if(typeof c!=="undefined"&&c!==""){cc.crop.onCompletePostBackTarget=c}jQuery("#cropContainer").html("");jQuery("#preview").attr("src",e);cc.upload.init({uploadUrl:cc_resx_UPLOAD_AVATAR_URL,fileListMax:1,onCompleteRedirectUrl:location.href,username:b,filenameKey:a});jQuery("#upload").show();jQuery(new Image()).load(function(){jQuery(this).appendTo("#mp-crop-container");var h=new Image();h.src=cc.crop.avatarUrl;cc.crop.imageWidth=h.width;cc.crop.imageHeight=h.height;jQuery("#cropbox").Jcrop({onChange:cc.crop.showPreview,onSelect:cc.crop.showPreview,boxWidth:200,boxHeight:200,setSelect:[0,0,100,100],aspectRatio:1,onInit:function(){}})}).attr("id","cropbox").attr("src",e);jQuery("#mp-crop-save").click(function(){cc.crop.cropImage();return false})},showPreview:function(d){if(d.w!==0&&d.h!==0){var a=99/d.w;var b=99/d.h;jQuery("#preview").css({width:Math.round(a*jQuery("#cropbox").width())+"px",height:Math.round(b*jQuery("#cropbox").height())+"px",marginLeft:"-"+Math.round(a*d.x)+"px",marginTop:"-"+Math.round(b*d.y)+"px"});cc.crop.coords=d}},cropImage:function(){if(cc.crop.saving===true){return false}cc.crop.saving=true;jQuery("#mp-crop-btn").html(cc_resx_TR_Saving);var b=(cc.crop.initialCropSizeX/cc.crop.imageWidth)*(200/cc.crop.coords.w);var a=(cc.crop.initialCropSizeY/cc.crop.imageHeight)*(200/cc.crop.coords.h);var c=parseInt((cc.crop.coords.x/200)*(cc.crop.imageWidth*b),10);var d=parseInt((cc.crop.coords.y/200)*(cc.crop.imageHeight*a),10);cc.ajax.getJSON("/myprofile/info/profile-picture/crop/",{x:c,y:d,imgW:cc.crop.imageWidth,imgH:cc.crop.imageHeight,scale:b,filename:cc.crop.filename,username:cc.crop.username},function(e){if(cc.crop.redirect!==null&&cc.crop.redirect!==""){location.href=cc.crop.redirect}else{if(typeof e!=="undefined"&&typeof e.success!=="undefined"&&e.success===true){if(typeof e.message!=="undefined"&&(e.message.test(".jpg$")||e.message.test(".gif$"))){jQuery("#myprofile .mp-left .mp-owner img:first").attr("src",e.message);if(e.message.length>e.message.lastIndexOf("/")+5){cc.crop.filename=e.message.substring(e.message.lastIndexOf("/")+1)}return}}}},function(){cc.crop.saving=false;jQuery("#mp-crop-btn").html(cc_resx_TR_Save)})}}}();

cc.events=function(){return{init:function(){}}}();

cc.stars=function(){return{buyInProgress:false,buyInProcess:false,buyError:false,signupRedirect:false,init:function(a){jQuery(".cc-award-token-platinum-girloftheweek",a).unbind("click").click(function(){cc.stars.showGirlOfTheWeekStarsOverlay("1");return false});jQuery(".cc-award-token-gold-girloftheweek",a).unbind("click").click(function(){cc.stars.showGirlOfTheWeekStarsOverlay("3");return false});jQuery(".cc-livechat-buy-overlay",a).unbind("click").click(function(){cc.stars.showGirlOfTheWeekStarsOverlay("3");return false});jQuery(".cc-award-token-platinum",a).unbind("click").click(function(){cc.stars.showStarsOverlay("1");return false});jQuery(".cc-award-token-gold",a).unbind("click").click(function(){cc.stars.showStarsOverlay("3");return false});jQuery(".cc-award-token-silver",a).unbind("click").click(function(){cc.stars.showStarsOverlay("5");return false});jQuery(".cc-buy-tokens",a).unbind("click").click(function(){cc.stars.showBuyStarsOverlay();return false})},showStarsOverlay:function(a){var b=jQuery("#wr-media-id").val();cc.ui.colorbox("/stars/award-overlay/"+a+"/"+b,function(){cc.stars.reloadStarsPanel()})},reloadStarsPanel:function(){cc.ajax.load("#wr-award-stars","/watch/stars/show/",null,false,true)},showBuyStarsOverlay:function(){cc.ui.colorbox("/stars/buy-overlay/",function(){jQuery(".cc-payments","#stars-buy-overlay").unbind("click").click(function(){var b=jQuery(this).attr("cc:product");cc.stars.showOverlayPleaseWait();var a=cc.stars.buy(b)})})},showGirlOfTheWeekStarsOverlay:function(a,b){jQuery("#wr-media-id").val(b);cc.ui.colorbox("/stars/award-overlay/"+a+"/"+b,function(){cc.stars.reloadGirlOfTheWeekStarsPanel()})},reloadGirlOfTheWeekStarsPanel:function(){cc.ajax.load("#cc-winner-topcontent","/girl-of-the-week-topcontent/")},buy:function(c){if(typeof cc.stars.buyInProgress!=="undefined"&&cc.stars.buyInProgress===true){return false}cc.stars.buyInProgress=true;var b=c;var d=cc.helpers.encodeQsParam(document.location.href);var a="/payments/bt-easy-collect/buy/"+b+"/?u="+d;cc.stars.updateOverlayResponseMsg("");cc.ajax.getJSON(a,{},function(h,f){try{if(h.success!==true){cc.stars.updateOverlayResponseMsg(h.message);cc.stars.hideOverlayPleaseWait()}else{if(typeof h.submitForm!=="undefined"&&h.submitForm!==""){cc.stars.updateOverlayResponseMsg(cc_resx_TR_Redirecting);cc.stars.buyInProcess=false;cc.stars.buyError=false;cc.stars.epochOverlayTransactionStart(jQuery(h.submitForm))}else{if(h.redirect!==""){cc.stars.updateOverlayResponseMsg(cc_resx_TR_Redirecting);location.href=h.redirect;return}else{if(h.reload===true){jQuery(".sob-wait p").html(cc_resx_TR_Payment_Success);if(typeof h.ecTransactionId!=="undefined"){cc.tracking.trackEcommerce(h.ecTransactionId,h.ecProductType,h.ecProductDescription,h.ecProductCategory,h.ecShop,h.ecProductValue,h.ecCity,h.ecState,h.ecCountry,function(){location.reload(true)})}else{location.reload(true)}}else{cc.stars.updateOverlayResponseMsg(h.message);cc.stars.hideOverlayPleaseWait()}}}}}catch(g){cc.stars.updateOverlayResponseMsg(cc_resx_TR_AUTH_AJAX_ERROR);cc.stars.hideOverlayPleaseWait()}},function(){cc.stars.buyInProgress=false})},showOverlayPleaseWait:function(){jQuery(".sob-wait-bg, .sob-wait").show()},hideOverlayPleaseWait:function(){jQuery(".sob-wait-bg, .sob-wait").hide()},updateOverlayResponseMsg:function(a){jQuery("#stars-buy-overlay .buy-error").html(a)},epochOverlayTransactionStart:function(b){if(typeof cc.stars.buyInProcess!=="undefined"&&cc.stars.buyInProcess===true){return false}cc.stars.buyInProcess=true;cc.stars.buyError=false;try{var i=b;var d=jQuery(".x_transactionid",i).val();var g=jQuery(".pi_code",i).val();if(typeof g==="undefined"||g===""){cc.stars.updateOverlayResponseMsg(cc_resx_TR_Bad_or_missing_product_code);return false}if(typeof d!=="undefined"&&d!==""){return true}else{var c=cc.helpers.encodeQsParam(document.location.href);var a="/payments/epoch/start/"+g+"/";cc.stars.showOverlayPleaseWait();cc.ajax.getJSON(a,{},function(k,f){try{if(k.success!==true){cc.stars.updateOverlayResponseMsg(k.message);cc.stars.buyError=true}else{if(k.message!==""){jQuery(".x_transactionid",i).val(k.message);jQuery(".x_url",i).val(location.href);cc.stars.showOverlayPleaseWait();cc.stars.buyInProcess=false;cc.stars.signupRedirect=true;jQuery(i).submit()}else{cc.stars.updateOverlayResponseMsg(cc_resx_TR_AUTH_AJAX_ERROR_RETRY);cc.stars.buyError=true}}return false}catch(j){cc.stars.updateOverlayResponseMsg(cc_resx_TR_AUTH_AJAX_ERROR);cc.stars.buyError=true}},function(){cc.stars.buyInProcess=false;if(cc.stars.buyError===false&&cc.stars.signupRedirect===false){cc.stars.hideOverlayPleaseWait();cc.stars.buyError=false}})}}catch(h){cc.stars.updateOverlayResponseMsg(cc_resx_TR_AUTH_AJAX_ERROR_REFRESH);cc.stars.buyInProcess=false}return false}}}();

cc.payments=function(){return{subscribeInProcess:false,subscribeError:false,subscribeRedirect:false,init:function(a){jQuery(".cc-subscription").unbind("click").click(function(){var d=jQuery(this).attr("cc:product");var b=jQuery(this).attr("cc:sessionid");var e=jQuery(this).attr("cc:buttonid");var c=cc.payments.subscribe(d,b,e)});jQuery(".cc-credits-buy").unbind("click").click(function(){var b=jQuery(this).attr("cc:message");var c=jQuery(this).attr("cc:product");cc.ui.showModalConfirm(b,function(){jQuery.fn.colorbox.close();var d=cc.stars.buy(c)},null);return false})},subscribe:function(d,a,e){if(typeof cc.payments.subscribeInProcess!=="undefined"&&cc.payments.subscribeInProcess===true){return false}cc.payments.subscribeInProcess=true;var c=d;var f=cc.helpers.encodeQsParam(document.location.href);var b="/payments/bt-subscription/buy/"+c+"/"+a+"/"+e+"/?u="+f;cc.ajax.getJSON(b,{},function(i,g){try{if(i.success!==true){cc.ui.showModalErrorMessage(i.message)}else{if(i.redirect!==""){cc.ui.showModalErrorMessage(cc_resx_TR_Redirecting_to_BT_for_Payment);location.href=i.redirect;return}else{if(i.reload===true){location.reload(true)}cc.ui.showModalErrorMessage(i.message)}}}catch(h){cc.ui.showModalErrorMessage(cc_resx_TR_AUTH_AJAX_ERROR)}},function(){cc.payments.subscribeInProcess=false;cc.ui.hideModalErrorMessage()})},UserRegisterPay:function(c,d){var b=c;var a="/payments/bt-subscription/new-register/"+b+"/"+d+"/";cc.ajax.getJSON(a,{},function(h,f){try{if(h.success!==true){cc.ui.showModalErrorMessage(h.message)}else{if(h.redirect!==""){cc.ui.showModalErrorMessage(cc_resx_TR_Redirecting_to_BT_for_Payment);location.href=h.redirect;return}else{if(h.reload===true){location.reload(true)}cc.ui.showModalErrorMessage(h.message)}}}catch(g){cc.ui.showModalErrorMessage(cc_resx_TR_AUTH_AJAX_ERROR)}},function(){cc.payments.subscribeInProcess=false;cc.ui.hideModalErrorMessage()})},epochTransactionStart:function(g){cc.payments.subscribeInProcess=true;cc.payments.subscribeError=false;try{var j=g;var b=jQuery(".x_transactionid",j).val();var h=jQuery(".pi_code",j).val();if(typeof h==="undefined"||h===""){cc.ui.showModalErrorMessage(cc_resx_TR_Bad_or_missing_product_code);return false}if(typeof b!=="undefined"&&b!==""){return true}else{var c=jQuery(".x_tourbuttonid",j).val();var d=cc.helpers.encodeQsParam(document.location.href);var i="/payments/epoch/start/"+h+"/"+jQuery("#PageSessionId").val()+"/"+c+"/";cc.ui.showModalErrorMessage(cc_resx_TR_Processing_your_purchase_request);cc.ajax.getJSON(i,{},function(l,f){try{if(typeof l==="undefined"){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_processing_payment);cc.payments.subscribeError=true}else{if(l.success!==true){cc.ui.showModalErrorMessage(l.message);cc.payments.subscribeError=true}else{if(l.message!==""){jQuery(".x_transactionid",j).val(l.message);jQuery(".x_url",j).val(location.href);jQuery(".cc-username",j).val("");cc.ui.showModalErrorMessage(cc_resx_TR_Redirecting_to_payment_provider);cc.payments.subscribeInProcess=false;cc.payments.subscribeRedirect=true;jQuery(j).submit()}else{}}}}catch(k){}},function(){cc.payments.subscribeInProcess=false;if(cc.payments.subscribeError===false&&cc.payments.subscribeRedirect===false){cc.ui.hideModalErrorMessage();cc.payments.subscribeError=false}})}}catch(a){cc.ui.showModalErrorMessage(cc_resx_TR_AUTH_AJAX_ERROR_REFRESH);cc.payments.subscribeInProcess=false}return false}}}();

cc.form=function(){return{postInProgress:false,init:function(a){jQuery(".cc-form",a).unbind("submit").submit(function(){return cc.form.formSubmit("#"+jQuery(this).attr("id"))});jQuery("#info-form",a).unbind("submit").submit(function(){return cc.form.formSubmit("#"+jQuery(this).attr("id"))});jQuery("#info-form .day",a).mask("9999");jQuery("#info-form .month",a).mask("99");jQuery("#info-form .year",a).mask("99");jQuery("#paypal-form",a).unbind("submit").submit(function(){return cc.form.paypalFormSubmit("#paypal-form")});jQuery("#applyVip",a).unbind("submit").submit(function(){return cc.form.applyVipFormSubmit("#applyVip")});jQuery(".cc-ajax-form",a).unbind("submit").submit(function(){return cc.ajax.formAjaxSubmit(jQuery(this))});jQuery(".cc-admin-send-pm",a).unbind("click").click(function(){cc.ui.colorbox("/send-admin-message/",function(){jQuery("#admin-mail-form").unbind("submit").submit(function(){return cc.userprofile.sendMailSubmit("#admin-mail-form")})})});return false},formSubmit:function(b){if(typeof cc.form.postInProgress!=="undefined"&&cc.form.postInProgress===true){return false}cc.form.postInProgress=true;var c=b;var a=jQuery(c).attr("action");var d=jQuery(c).attr("cc:next");cc.ajax.formSubmit(c,{target:c,dataType:"json",url:a},function(g,e){if(typeof g.success==="undefined"||g.success!==true){if(g.errors.length>0){for(var f=0;f<g.errors.length;f++){cc.form.showFormError(g.errors[f].id,g.errors[f].message)}jQuery(".error:first").focus()}return}if(typeof g.reload!=="undefined"&&g.reload===true){location.reload(true);return}if(typeof g.redirect!=="undefined"&&g.redirect!==""){location.href=g.redirect;return}if(typeof d!=="undefined"&&d!==""){location.href=d;return}},function(){cc.form.postInProgress=false});return false},showFormError:function(c,b){if(c==="formerror"){jQuery(".formerror").html(b);jQuery(".formerror").show()}else{var a=jQuery("<div />").attr("id","error"+c).attr("class","error-bubble").hide().html(b);jQuery("#"+c).addClass("error").focus(function(){jQuery("#error"+c).show()}).blur(function(){jQuery("#error"+c).hide()}).after(a).change(function(){jQuery(this).removeClass("error");jQuery("#error"+c).remove();jQuery(this).unbind("focus")})}},paypalFormSubmit:function(b){if(typeof cc.form.postInProgress!=="undefined"&&cc.form.postInProgress===true){return false}cc.form.postInProgress=true;var c=b;var a=jQuery(c).attr("action");jQuery("#submit").html(cc_resx_TR_Saving);cc.ajax.formSubmit(c,{target:c,dataType:"json",url:a},function(e,d){if(typeof e.success==="undefined"||e.success!==true){if(typeof e.message==="undefined"||e.message!==true){jQuery("#paypalResult").html(e.message);jQuery("#paypalResult").fadeOut(2000);jQuery("#paypalEmail").focus()}}else{jQuery("#paypalResult").html(cc_resx_TR_Updated)}jQuery("#paypalResult").stop(true,true).fadeIn(100,function(){jQuery("#paypalResult").fadeOut(2000)});jQuery("#submit").html(cc_resx_TR_Update)},function(){cc.form.postInProgress=false});return false},applyVipFormSubmit:function(b){if(typeof cc.form.postInProgress!=="undefined"&&cc.form.postInProgress===true){return false}cc.form.postInProgress=true;var c=b;var a=jQuery(c).attr("action");jQuery("#submit").html(cc_resx_TR_Please_wait);cc.ajax.formSubmit(c,{target:c,dataType:"json",url:a},function(e,d){if(typeof e.success==="undefined"||e.success!==true){if(typeof e.message==="undefined"||e.message!==true){jQuery("#applyResult").html(e.message);jQuery("#applyResult").stop(true,true).fadeIn(100,function(){jQuery("#applyResult").fadeOut(4000)})}}else{if(typeof e.redirect!=="undefined"&&e.redirect!==""){location.href=e.redirect;return}}jQuery("#submit").html(cc_resx_TR_Apply_Now)},function(){cc.form.postInProgress=false});return false}}}();

cc.userprofile=function(){return{mailSubmitting:false,init:function(b){var a=b;jQuery(".cc-send-pm",b).unbind("click").click(function(){var c=jQuery(this,a).attr("cc:username");cc.ui.colorbox("/userprofile/send-private-message/"+c+"/",function(){jQuery("#mail-form").unbind("submit").submit(function(){return cc.userprofile.sendMailSubmit("#mail-form")})})});jQuery(".cc-view-wishlist",b).unbind("click").click(function(){var c=jQuery(this,a).attr("cc:memberid");cc.ui.colorbox("/boutique/view-wishlist/"+c+"/",function(){})});jQuery(".cc-boutique-large",b).unbind("click").click(function(){var c="/boutique-zoom/"+escape(jQuery(this,a).attr("cc:imageurl"))+"/";cc.ui.colorbox(c,function(){})});jQuery("#cc-up-unfan",b).unbind("click").click(function(){var d=jQuery(this).attr("cc:target");var c=jQuery(this).attr("cc:href");cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_unfan,function(){cc.ajax.load(d,c);jQuery.fn.colorbox.close()},null);return false})},sendMailSubmit:function(a){var b=jQuery(a).attr("action");b+="?format=json";if(typeof cc.userprofile.mailSubmitting!=="undefined"&&cc.userprofile.mailSubmitting===true){return false}cc.userprofile.mailSubmitting=true;cc.userprofile.showOverlayPleaseWait();cc.ajax.formSubmit(a,{dataType:"json",url:b},function(d,c){if(d.success===false){cc.userprofile.updateOverlayResponseMsg(d.message);cc.userprofile.hideOverlayPleaseWait()}else{jQuery(".spm-wait p").html(cc_resx_TR_Message_Successfully_Sent);setTimeout(function(){jQuery.fn.colorbox.close()},1200)}},function(){cc.userprofile.mailSubmitting=false});return false},ChangeTitle:function(a){document.getElementById("sitelogo").innerHTML='<span class="sprite">'+a+"</h1>"},userInfoShowAll:function(a){jQuery("."+a).css("overflow","visible");jQuery("."+a).css("max-height","2000px");jQuery(".up-showall-info").hide();jQuery(".up-hideall-info").show()},userInfoHideAll:function(a){jQuery("."+a).css("overflow","hidden");jQuery("."+a).css("max-height","42px");jQuery(".up-showall-info").show();jQuery(".up-hideall-info").hide()},showOverlayPleaseWait:function(){jQuery(".spm-wait-bg, .spm-wait").show()},hideOverlayPleaseWait:function(){jQuery(".spm-wait-bg, .spm-wait").hide()},adminDeleteUser:function(a){cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_delete_user,function(){cc.userprofile.deleteUser(a);jQuery.fn.colorbox.close()},null);return false},adminChangeGender:function(a){cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_change_gender,function(){cc.userprofile.changeGender(a);jQuery.fn.colorbox.close()},null);return false},changeGender:function(a){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;cc.ajax.load("#userprofile","/admin/change-gender/"+a+"/")},deleteUser:function(a){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;cc.ajax.load("#userprofile","/admin/delete/user/"+a+"/")},adminDeleteAvatar:function(a){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;cc.ajax.load("#userprofile","/admin/delete/avatar/"+a+"/")},WebCamScheduleBook:function(d,a,c){var b=jQuery(".webcambook:checked").val();cc.ajax.getJSON("/userprofile/webcam-schedule-book/",{date:d,time:b,scheduleid:a,memberid:c},function(e){if(typeof e!=="undefined"&&typeof e.success!=="undefined"&&e.success===true){return cc.ui.showModalConfirmNo()}else{if(typeof e!=="undefined"&&typeof e.message!=="undefined"&&typeof e.message!==""){var f=e.message;cc.ui.showModalErrorMessage(f)}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}}},function(){})},SchedulingCheckBoxFix:function(a){jQuery(".webcambook:checked").attr("checked",false);jQuery(a).attr("checked",true);return},WebCamScheduleShowTimeOverlay:function(e,c,a,d){var b="";switch(e){case"1":b+='<div id="wc-bookoverlay"><h1>I\'d Like to chat to you...</h1><p>Sometime between 04:00-05:00 <input id="04"  onclick="cc.userprofile.SchedulingCheckBoxFix(this);" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="04" name="webcambook"  class="webcambook" /></p><p>Sometime between 05:00-06:00 <input id="05" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox"  value="05" name="webcambook"  class="webcambook" />	</p><p>Sometime between 07:00-08:00 <input id="06" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="07" name="webcambook"  class="webcambook"  class="webcambook" />	</p><p>Sometime between 08:00-09:00 <input id="07" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="08" name="webcambook"  class="webcambook" />	</p><a id="submit" href="#" onclick="cc.userprofile.WebCamScheduleBook( \''+c+"', '"+a+"', '"+d+'\');" class="sprite button" >Submit</a><br/><p>*GMT</p></div>';break;case"2":b+='<div id="wc-bookoverlay"><h1>I\'d Like to chat to you...</h1><p>Sometime between 09:00-10:00	<input id="09" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="09"	 name="webcambook"  class="webcambook" />	</p><p>Sometime between 10:00-11:00 <input id="10" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="10" name="webcambook"  class="webcambook" />	</p><p>Sometime between 11:00-12:00 <input id="11" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="11" name="webcambook"  class="webcambook" /></p><p>Sometime between 12:00-13:00 <input id="12" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="12" name="webcambook"  class="webcambook" />	</p><p>Sometime between 13:00-14:00 <input id="13" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="13" name="webcambook"  class="webcambook" />	</p><p>Sometime between 14:00-15:00 <input id="14" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="14" name="webcambook"  class="webcambook" />	</p><p>Sometime between 15:00-16:00 <input id="15" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="15" name="webcambook"  class="webcambook" />	</p><p>Sometime between 16:00-17:00 <input id="16" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="16" name="webcambook"  class="webcambook" />	</p><a id="submit" onclick="cc.userprofile.WebCamScheduleBook( \''+c+"', '"+a+"', '"+d+'\');" href="#" class="sprite button" >Submit</a><br/><p>*GMT</p></div>';break;case"3":b+='<div id="wc-bookoverlay"><h1>I\'d Like to chat to you...</h1><p>Sometime between	17:00-18:00	<input id="17" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="17"	 name="webcambook"  class="webcambook" />	</p><p>Sometime between 18:00-19:00 <input id="18" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="18" name="webcambook"  class="webcambook" />	</p><p>Sometime between 19:00-20:00 <input id="19" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="19" name="webcambook"  class="webcambook" />	</p><p>Sometime between 20:00-21:00 <input id="20" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="20" name="webcambook"  class="webcambook" /></p><a id="submit" onclick="cc.userprofile.WebCamScheduleBook( \''+c+"', '"+a+"', '"+d+'\');" href="#" class="sprite button" >Submit</a><br/><p>*GMT</p></div>';break;case"4":b+='<div id="wc-bookoverlay"><h1>I\'d Like to chat to you...</h1><p>Sometime between	21:00-22:00	<input id="21" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="21"	name="webcambook"  class="webcambook" /></p><p>Sometime between 22:00-23:00	<input id="22" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="22"	 name="webcambook"  class="webcambook" /></p><p>Sometime between 23:00-00:00	<input id="23" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="23"  name="webcambook"  class="webcambook" />	</p><a id="submit" onclick="cc.userprofile.WebCamScheduleBook( \''+c+"', '"+a+"', '"+d+'\');" href="#" class="sprite button" >Submit</a><br/><p>*GMT</p></div>';break;case"5":b+='<div id="wc-bookoverlay"><h1>I\'d Like to chat to you...</h1><p>Sometime between 00:00-01:00	<input id="00" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="00" name="webcambook"  class="webcambook" />	</p><p>Sometime between 01:00-02:00 <input id="01" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="01" name="webcambook"  class="webcambook" />	</p><p>Sometime between 02:00-03:00 <input id="02" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="02" name="webcambook"  class="webcambook" />	</p><p>Sometime between 03:00-04:00 <input id="03" onclick="cc.userprofile.SchedulingCheckBoxFix(this);" type="checkbox" value="03" name="webcambook"  class="webcambook" />	</p><a id="submit" onclick="cc.userprofile.WebCamScheduleBook( \''+c+"', '"+a+"', '"+d+'\');" href="#" class="sprite button" >Submit</a><br/><p>*GMT</p></div>';break}jQuery("body").append("<div style='display:none'><div id='modal-msg'><div class='schedulebg'></div><div class='schedulemsg'></div></div></div>");if(e==="2"){jQuery("#modal-msg .schedulebg").css("height","240px");jQuery("#modal-msg .schedulemsg").css("height","220px")}else{jQuery("#modal-msg .schedulebg").css("height","170px");jQuery("#modal-msg .schedulemsg").css("height","146px")}jQuery("#modal-msg .schedulemsg").html(b);jQuery.fn.colorbox({href:"#modal-msg",inline:true,opacity:0.65,close:"X"})},AppendWishListPopUp:function(a){jQuery("#up-wishlist .send-pm-bg").css("height",parseInt(a)+20);jQuery("#up-wishlist .send-pm-content").css("height",a)},AppendWishListBackground:function(){jQuery("#up-wishlist .send-pm-bg").css("background-color"," #000000");jQuery("#up-wishlist .send-pm-content").css("background-color"," #000000")},updateOverlayResponseMsg:function(a){jQuery(".send-pm-overlay .spm-error").html(a);if(jQuery(".send-pm-overlay .spm-msg").size()>0){jQuery(".send-pm-overlay .spm-msg").fadeOut(100,function(){jQuery(".send-pm-overlay .spm-error").fadeIn(300)})}else{jQuery(".send-pm-overlay .spm-error").fadeIn(300)}}}}();

cc.myprofile=function(){return{postInProgress:false,init:function(a){jQuery(".cc-delete",a).each(function(){var b=jQuery(this).attr("cc:media");var c=jQuery(this).attr("cc:stars");jQuery(this).unbind("click").click(function(){cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_delete_content,function(){jQuery("#modal-msg .msg").html(cc_resx_TR_Deleting_Content_Please_wait+'<br /><br /><img alt="'+cc_resx_TR_Please_wait+'" src="'+cc_resx_CDN_URL+'images/ajax-loading.gif">');cc.ajax.getJSON("/myprofile/media/delete/",{mediaId:b},function(f,d,e){if(f.success!==true){cc.ui.showModalErrorMessage(f.message)}else{jQuery("#media_"+b).remove()}},function(){jQuery.fn.colorbox.close()})},function(){})})});jQuery(".cc-edit",a).each(function(){var b=jQuery(this).attr("cc:media");jQuery(this).unbind("click").click(function(){jQuery("#details_"+b).fadeOut(200,function(){jQuery("#edit_"+b).fadeIn(200,function(){jQuery("#title","#edit_"+b).focus()})})})});jQuery(".cc-status-delete",a).unbind("click").click(function(){var b=jQuery(this).attr("cc:statusid");cc.ui.showModalConfirm(cc_resx_TR_confirm_status_delete,function(){cc.myprofile.statusDelete(b);jQuery.fn.colorbox.close()},null);return false});jQuery(".cc-editov",a).each(function(){jQuery(this).unbind("click").click(function(){jQuery(".mp-mediaov-edit").fadeIn(200,function(){jQuery("#info-bg",a).height(jQuery("#info",a).outerHeight())})})});jQuery(".cc-editov-cancel",a).each(function(){jQuery(this).unbind("click").click(function(){jQuery(".mp-mediaov-edit").fadeOut(200,function(){jQuery("#info-bg",a).height(jQuery("#info",a).outerHeight())})})});jQuery(".cc-edit-item",a).each(function(){jQuery(this).unbind("click").bind("click",function(){var b=jQuery(this).attr("cc:media");jQuery("#details_"+b).fadeOut(200,function(){jQuery("#edit_"+b).fadeIn(200,function(){jQuery("#title","#edit_"+b).focus()})})})});jQuery(".cc-edit-cancel",a).each(function(){var b=jQuery(this).attr("cc:media");jQuery(this).unbind("click").click(function(){jQuery("#edit_"+b).fadeOut(200,function(){jQuery("#details_"+b).fadeIn(200)})})});jQuery(".cc-form-editcontent",a).unbind("submit").submit(function(){var b=jQuery(this).attr("cc:media");return cc.myprofile.contentEditSubmit("#"+jQuery(this).attr("id"),b)});jQuery(".cc-form-editcontent input",a).unbind("change").change(function(){cc.myprofile.contentEditChange("#"+jQuery(this).attr("id"))});jQuery(".cc-form-editcontent-ov",a).unbind("submit").submit(function(){var b=jQuery(this).attr("cc:media");return cc.myprofile.contentEditOverlaySubmit("#"+jQuery(this).attr("id"),b)});jQuery(".cc-colorbox",a).each(function(){var b=jQuery(this).attr("cc:href");b=cc.helpers.addAjaxNoCacheParam(b);jQuery(this).unbind("click").click(function(){cc.ui.colorbox(b);return false})});jQuery(".cc-setfocus",a).each(function(){jQuery(this).unbind("click").click(function(){var b=jQuery(this).attr("cc:focus");jQuery(b).focus();jQuery.scrollTo(b,{duration:500,offset:{left:0,top:-10}});return false})});jQuery(".cc-cam-yes",a).unbind("click").click(function(){var b=jQuery(this).attr("cc:nextQ");return cc.myprofile.camStartingResponse(b,true)});jQuery(".cc-cam-no",a).unbind("click").click(function(){var b=jQuery(this).attr("cc:nextQ");return cc.myprofile.camStartingResponse(b,false)})},contentEditChange:function(a){jQuery(".remember",jQuery(a).parents("form:first")).css("display","block")},myAffiliatesShowAll:function(a){jQuery("#"+a).css("overflow","visible");jQuery(".mp-showall-affs").hide();jQuery(".mp-hideall-affs").show()},myAffiliatesHideAll:function(a){jQuery("#"+a).css("overflow","hidden");jQuery(".mp-showall-affs").show();jQuery(".mp-hideall-affs").hide()},zooCandyLinking:function(){},WebCamScheduleCancel:function(b,a){cc.ajax.getJSON("/webcam-scheduling-cancel/",{bookingid:b,ismodel:a},function(c){if(typeof c!=="undefined"&&typeof c.success!=="undefined"&&c.success===true){jQuery("#c"+b).hide();jQuery("#u"+b).css("display","block")}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}},function(){})},SetDefaultScheduleDates:function(){jQuery("#start_datepicker").datepicker();jQuery("#start_datepicker").datepicker("option","defaultDate","+0m +0w +1d");jQuery("#end_datepicker").datepicker();jQuery("#start_datepicker").datepicker("option","defaultDate","+0m +0w +8d");jQuery("#end_datepicker").datepicker("option","minDate","+0m +0w");jQuery("#end_datepicker").datepicker("option","disabled",true)},SetEndDates:function(){var a=new Date(jQuery("#end_datepicker").datepicker("getDate"));jQuery("#end_day").val(parseInt(a.getDate()));jQuery("#end_month").val(parseInt(a.getMonth())+1);jQuery("#end_year").val(parseInt(a.getFullYear()))},SetStartDates:function(){jQuery("#end_datepicker").datepicker("option","disabled",false);var a=new Date(jQuery("#start_datepicker").datepicker("getDate"));jQuery("#end_datepicker").datepicker("option","minDate",new Date(a));jQuery("#start_day").val(parseInt(a.getDate()));jQuery("#start_month").val(parseInt(a.getMonth())+1);jQuery("#start_year").val(parseInt(a.getFullYear()));a.setDate(a.getDate()+6)},WebCamScheduleInsert:function(g,d,a,b,h,c){var e="#webcam-schedule-layout";var f="/myprofile/webcam-schedule-insert/"+g+"/"+escape(d)+"/"+escape(a)+"/"+escape(c)+"/"+b+"/"+h+"/";cc.ajax.load(e,f)},getRate:function(a,b){var c=document.createElement("script");c.setAttribute("src","http://query.yahooapis.com/v1/public/yql?q=select%20rate%2Cname%20from%20csv%20where%20url%3D'http%3A%2F%2Fdownload.finance.yahoo.com%2Fd%2Fquotes%3Fs%3D"+a+b+"%253DX%26f%3Dl1n'%20and%20columns%3D'rate%2Cname'&format=json&callback=cc.myprofile.parseExchangeRate");document.body.appendChild(c)},parseExchangeRate:function(c){var a=c.query.results.row.name;var f=(parseFloat(c.query.results.row.rate,10)*100);var b="0";if(jQuery("#cs-chatval").size()>0){b=jQuery("#cs-chatval").val().substring(0,5)}var l="0";if(jQuery("#cs-toplessval").size()>0){l=jQuery("#cs-toplessval").val().substring(0,5)}var h=((parseFloat(b)/100)*parseFloat(f));var d=((parseFloat(l)/100)*parseFloat(f));if(jQuery("#chatvalGBP").size()>0){document.getElementById("chatvalGBP").innerHTML=cc_resx_TR_Chat_Pay+" = £"+h.toFixed(2)}if(jQuery("#toplessvalGBP").size()>0){document.getElementById("toplessvalGBP").innerHTML=cc_resx_TR_Topless_Pay+" = £"+d.toFixed(2)}var e=parseFloat(jQuery("#TotalWebCamNotIncluded").val())+parseFloat(h)+parseFloat(d);document.getElementById("thisMonthsPayCheck").innerHTML=cc_resx_TR_Total_Earned+"  £"+parseFloat(e).toFixed(2);var k=0;if(jQuery("#WebCamAllTime").size()>0&&jQuery("#WebCamAllTime").val()!==""){k=jQuery("#WebCamAllTime").val()}var i=((parseFloat(k)/100)*parseFloat(f));var j=0;if(jQuery("#AllTimeWebCamNotIncluded").val()!==""){j=jQuery("#AllTimeWebCamNotIncluded").val()}var g=parseFloat(j)+parseFloat(i);document.getElementById("allTimeTotalPaid").innerHTML=cc_resx_TR_mp_total_paid_to_date+" £"+parseFloat(g).toFixed(2)},launchEmailTemplateOverlay:function(){cc.ui.colorbox("/myprofile/email-template/",function(){})},contentEditSubmit:function(b,d){var f=d;var e="#media_"+d;if(typeof cc.myprofile.postInProgress!=="undefined"&&cc.myprofile.postInProgress===true){return false}cc.myprofile.postInProgress=true;var c=b;var a=jQuery(c).attr("action");jQuery("#submit").html(cc_resx_TR_Saving);jQuery("#submit_"+f).html(cc_resx_TR_Saving);cc.ajax.formSubmit(c,{target:e,url:a},function(h,g){},function(){cc.myprofile.postInProgress=false});return false},contentEditOverlaySubmit:function(b,d){var f=d;var e="#media_"+d;if(typeof cc.myprofile.postInProgress!=="undefined"&&cc.myprofile.postInProgress===true){return false}cc.myprofile.postInProgress=true;var c=b;var a=jQuery(c).attr("action");jQuery("#submitov_"+f).html(cc_resx_TR_Saving);cc.ajax.formSubmit(c,{url:a},function(h,g){cc.ui.colorbox(cc.helpers.addAjaxNoCacheParam("/myprofile/media/view/"+f+"/"));cc.myprofile.reloadPageListItem(f)},function(){cc.myprofile.postInProgress=false});return false},reloadPageListItem:function(b){var a="#media_"+b;var c="list";if(jQuery(".content-list-grid").size()>0){c="grid"}cc.ajax.load(a,"/myprofile/media/item/"+b+"/"+c+"/");return false},enterCoverGirlComptition:function(){cc.ajax.getJSON("/myprofile/enter-competition/",{},function(a){if(typeof a!=="undefined"&&a.success===true){if(typeof a!=="undefined"&&a.message!==""){jQuery("#uv-left-competition").hide();cc.ui.showModalOK(a.message,"",false)}}})},showEnterCompetitionMessage:function(){var a='<p class="header">Make Me a Cover Star</p><br/><a onclick="cc.myprofile.enterCoverGirlComptition();"  ><span class="button sprite">confirm</span></a><a onclick="jQuery.fn.colorbox.close();"  ><span class="button sprite">no thanks</span></a><br/><a href="/competition/covergirl/">more information</a>';jQuery("body").append("<div style='display:none'><div id='inline-error'><div class='bg'></div><div class='enter-competition msg'></div></div></div>");jQuery("#inline-error .bg").css("height","140px");jQuery("#inline-error .bg").css("width","430px");jQuery("#inline-error").css("background-color","#000000");jQuery("#cboxClose").css("background-color","#000000");jQuery("#inline-error .msg").html(a);jQuery.fn.colorbox({href:"#inline-error",inline:true,close:"X",opacity:0.65,onClosed:function(){if(cc.helpers.getQueryStringParam("emsg")!==""){location.href=cc.helpers.stripParamFromQs("emsg")}}})},camStartingResponse:function(d,c){var f=parseInt(d,10);var e=true;while(e){if(jQuery("#question-"+f+"-yes").size()<=0){e=false}else{jQuery("#question-"+f+"-yes").hide();jQuery("#question-"+f+"-no").hide();jQuery("#question-"+f+"-arrow").hide()}f=f+1}f=parseInt(d,10);if(c){for(var b=0;b<=f;b++){jQuery("#question-"+b+"-arrow").show();jQuery("#question-"+b+"-yes").show()}}else{for(var a=0;a<=f;a++){jQuery("#question-"+a+"-arrow").show();jQuery("#question-"+a+"-no").show()}}},blogFormValidate:function(){var a=jQuery("#blogTitle").val();if(typeof a==="undefined"||a===""){jQuery("#blogTitle").addClass("error");return false}var b=tinyMCE.selectedInstance.getContent();if(typeof b==="undefined"||b===""){return false}return true},statusDelete:function(a){cc.comments.commentDeleteInProc=true;cc.ajax.getJSON("/myprofile/status/delete/",{statusid:a},function(c,b){if(typeof c!=="undefined"&&typeof c.success!=="undefined"&&c.success===true){location.reload(true)}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}},function(){cc.comments.commentDeleteInProc=false})},DeleteTwitterAccount:function(){cc.ui.showModalConfirm("Are you sure?",function(){cc.myprofile.ProcessDeleteTwitterAccount();jQuery.fn.colorbox.close()},null)},ProcessDeleteTwitterAccount:function(){cc.ajax.getJSON("/myprofile/socialnetworks/delete-twitter/",{},function(a){if(typeof a!=="undefined"&&typeof a.success!=="undefined"&&a.success===true){window.location="/myprofile/socialnetworks/"}else{cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting)}},function(){})},blogPreview:function(){if(cc.myprofile.blogFormValidate()){var a=jQuery("#blogTitle").val();var b=tinyMCE.selectedInstance.getContent();cc.ui.colorbox("/blogs/preview/",null,{blogTitle:a,blogEntry:b})}}}}();

cc.watch=function(){return{init:function(a){jQuery("#info-bg",a).height(jQuery("#info",a).outerHeight());jQuery(".cc-showinfo",a).unbind("click").click(function(){if(jQuery("#info").is(":visible")){jQuery("#info-bg",a).fadeOut(150);jQuery("#info",a).fadeOut(150)}else{jQuery("#info-bg",a).fadeIn(150);jQuery("#info",a).fadeIn(150)}})},reportMediaItemAsBadProcess:function(a,b){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.ajax.getJSON("/media/report/"+a+"/"+b+"/",{},function(c){if(c.success==="undefined"||c.success===false){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_processing_media_items)}else{if(c.success===true){jQuery("#report-ww-link").hide();jQuery("#reported-result").html(cc_resx_TR_This_content_has_been_reported)}}})},reportMediaItemAsBad:function(a,b){cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_you_want_to_report_this_media,function(){cc.watch.reportMediaItemAsBadProcess(a,b);jQuery.fn.colorbox.close()},null);return false},adminDeleteMedia:function(a){cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_delete_content,function(){cc.watch.deleteMedia(a);jQuery.fn.colorbox.close()},null);return false},hideZooLogos:function(){jQuery("#title").css("height","75px");jQuery("#zrg-logo-bar").hide();jQuery("#zoo-banner-homeright").hide();jQuery("#zg-vip-homereturn").show()},unhideZooLogos:function(){jQuery("#title").css("height","155px");jQuery("#zrg-logo-bar").show();jQuery("#zg-vip-homereturn").hide();jQuery("#zoo-banner-homeright").show()},deleteMedia:function(a){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;cc.ajax.load("#w-media","/admin/delete/media/"+a+"/")}}}();

cc.badbrowser=function(){return{init:function(){if(cc.badbrowser.badBrowser()&&cc.badbrowser.getBadBrowser("browserWarning")!=="seen"){var a='<div id="browserWarning" class="top-notify"><div class="page-center clearfix"><div class="left">';a+="<h3>"+cc_resx_TR_You_Using_Unsupported_Browser+"</h3>";a+="</div><div class=\"right\"><a href='#' id='browser-warning-close'>"+cc_resx_TR_close+"</a>";a+="</div></div></div>";jQuery(a).prependTo("body");jQuery("#browser-warning-close").click(function(){cc.badbrowser.setBadBrowser("browserWarning","seen");jQuery("#browserWarning").slideUp(500);return false})}},badBrowser:function(){if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<7){return true}return false},getBadBrowser:function(a){if(document.cookie.length>0){var c=document.cookie.indexOf(a+"=");if(c!==-1){c=c+a.length+1;var b=document.cookie.indexOf(";",c);if(b===-1){b=document.cookie.length}return unescape(document.cookie.substring(c,b))}}return""},setBadBrowser:function(a,c,d){var b=new Date();b.setDate(b.getDate()+d);document.cookie=a+"="+escape(c)+((d===null)?"":";expires="+b.toGMTString())}}}();

cc.mail=function(){return{actionInProgress:false,init:function(a){jQuery("#cc-mail-checkall",a).unbind("change").change(function(){if(jQuery(this).attr("checked")){jQuery(".cc-mark-mail").attr("checked",true)}else{jQuery(".cc-mark-mail").attr("checked",false)}cc.mail.fixButtons()});jQuery(".cc-mark-mail",a).unbind("change").change(function(){cc.mail.fixButtons()});jQuery("#cc-mails-read",a).unbind("click").click(function(){var b=jQuery(".cc-mail-thread-id",jQuery(this).parents("li:first")).val();cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_mark_as_read,function(){cc.mail.markReadItem(b);jQuery.fn.colorbox.close()},null);return false});jQuery(".cc-send-pm-support",a).unbind("click").click(function(){cc.ui.colorbox("/send-support-message/",function(){})});jQuery("#mail-read-reply-btn",a).unbind("click").click(function(){cc.ui.showModalOK(cc_resx_TR_Reply_Successfully_Sent,"/myprofile/mail/1/");return false});jQuery("#cc-mails-delete",a).unbind("click").click(function(){var b=jQuery(".cc-mail-thread-id",jQuery(this).parents("li:first")).val();cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_delete_mails,function(){cc.mail.deleteCheckedItems();jQuery.fn.colorbox.close()},null);return false});jQuery(".cc-delete-mail",a).each(function(){jQuery(this).unbind("click").click(function(){var b=jQuery(".cc-mail-thread-id",jQuery(this).parents("li:first")).val();cc.ui.showModalConfirm(cc_resx_TR_Are_you_sure_delete_a_mail,function(){cc.mail.deleteItem(b);jQuery.fn.colorbox.close()},null);return false})});jQuery("#cc-mail-results",a).unbind("change").change(function(){var c=jQuery(this).val();var b=jQuery("#sFilter").val();window.location="/myprofile/mail/"+b+"/?limit="+c});return false},fixButtons:function(){if(jQuery(".cc-mark-mail:checked").size()<jQuery(".cc-mark-mail").size()){jQuery("#cc-mail-checkall").attr("checked",false);jQuery("#cc-mail-checkall-lbl").html(cc_resx_TR_Select_All)}else{jQuery("#cc-mail-checkall").attr("checked",true);jQuery("#cc-mail-checkall-lbl").html(cc_resx_TR_Select_None)}if(jQuery(".cc-mark-mail:checked").size()>0){jQuery("#cc-mails-read").addClass("active");jQuery("#cc-mails-delete").addClass("active")}else{jQuery("#cc-mails-read").removeClass("active");jQuery("#cc-mails-delete").removeClass("active")}},deleteItem:function(a){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;jQuery(".cc-delete-mail",jQuery("#"+a).parents("li:first")).html(cc_resx_TR_deleting);cc.ajax.formSubmit(jQuery("#form-mail-options"),{url:"/myprofile/mail/thread/delete/"+a,dataType:"json"},function(b){if(b.success==="undefined"||b.success===false){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting_mails)}else{jQuery("#"+a).parents("li:first").slideUp(300,function(){jQuery("#"+a).remove();cc.mail.fixButtons()})}},function(){jQuery(".cc-delete-mail",jQuery("#"+a).parents("li:first")).html(cc_resx_TR_Delete);cc.mail.actionInProgress=false;cc.mail.fixButtons()})},markReadItem:function(b){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;var a=[];jQuery(".cc-mark-mail:checked").each(function(){a.push(jQuery(this).attr("id"))});cc.ajax.formSubmit(jQuery("#form-mail-options"),{url:"/myprofile/mail/thread/mark-read/",dataType:"json"},function(d){if(d.success==="undefined"||d.success===false){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_processing_mails)}else{for(var c=0;c<a.length;c++){jQuery("#li-"+a[c]).removeClass("unread")}cc.mail.fixButtons()}},function(){cc.mail.actionInProgress=false;cc.mail.fixButtons()})},deleteCheckedItems:function(){if(typeof cc.mail.actionInProgress!=="undefined"&&cc.mail.actionInProgress===true){return false}cc.mail.actionInProgress=true;var a=[];jQuery(".cc-mark-mail:checked").each(function(){a.push(jQuery(this).attr("id"))});jQuery("#cc-mails-delete").html(cc_resx_TR_deleting);cc.ajax.formSubmit(jQuery("#form-mail-options"),{url:"/myprofile/mail/thread/delete/",dataType:"json"},function(c){if(c.success==="undefined"||c.success===false){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_deleting_mails)}else{for(var b=0;b<a.length;b++){jQuery("#"+a[b]).parents("li:first").slideUp(300,function(){jQuery(this).remove();cc.mail.fixButtons()})}}},function(){jQuery("#cc-mails-delete").html("Delete");cc.mail.actionInProgress=false;cc.mail.fixButtons()})}}}();

cc.videochat=function(){return{camListStatusRefreshSeconds:40,camListRefreshSeconds:40,camListRefreshTimeoutMins:15,camListRefreshStart:0,camListUpdateUrl:"/live/",chatGateway:"http://207.38.117.62/gateway/",chatUsername:"",chatPassword:"",chatHost:"",chatMode:"",init:function(a){cc.videochat.camListInitPageUpdates(a);jQuery(".cc-send-videochat-req",a).unbind("click").click(function(){var b=jQuery(this).attr("cc:username");cc.videochat.camListShowBookAModelOverlay(b)});jQuery(".cc-livechat-schedule-popup",a).unbind("click").click(function(){var b=jQuery(this).attr("cc:model");cc.ui.colorbox("/show-livechat-schedule/"+b+"/",function(){})})},camListInitPageUpdates:function(a){var b=0;var c="";jQuery(".cc-chat-online",a).each(function(){b+=1;if(c===""){c=jQuery(this).attr("cc:hostid")}else{if(jQuery(this).attr("cc:hostid")!==c){cc.videochat.camListInitHostStatusCheckTimer("");return}}});if(c!==""){cc.videochat.camListInitHostStatusCheckTimer(c)}},camListInitHostStatusCheckTimer:function(b){var a=b;setTimeout(function(){cc.videochat.camListUpdateHostStatus(a)},cc.videochat.camListStatusRefreshSeconds*1000)},ShowLiveChatOverlayEasyCollect:function(){cc.ui.colorbox("/live/buy-credits-overlay/",cc.auth.initAuthOverlay);return false},camListUpdateHostStatus:function(c){var a=c;var b=cc.videochat.camListUpdateUrl;if(typeof c!=="undefined"&&c!==""){b=b+c+"/?format=json"}cc.ajax.getJSON(b,null,function(d){if(typeof d!=="undefined"&&typeof d.data!=="undefined"){cc.videochat.camListUpdateStatusFromHostArray(d.data)}},function(){cc.videochat.camListInitHostStatusCheckTimer(a)})},camListUpdateStatusFromHostArray:function(a){jQuery(".cc-chat-online").each(function(){var d=false;var c=jQuery(this).attr("cc:hostid");for(var b in a){if(typeof a[b]!=="undefined"&&a[b].hostId===c&&a[b].loggedIntoVideoChat===true){d=true;break}}if(d===true){jQuery(this).show()}else{jQuery(this).hide()}});jQuery(".cc-chat-offline").each(function(){var d=false;var c=jQuery(this).attr("cc:hostid");for(var b in a){if(typeof a[b]!=="undefined"&&a[b].hostId===c&&a[b].loggedIntoVideoChat===false){d=true}}if(d===true){jQuery(this).show()}else{jQuery(this).hide()}})},camListInitAutoRefresh:function(a,b){var d=a;var c=b;setTimeout(function(){cc.videochat.camListRefresh(d,c)},(cc.videochat.camListRefreshSeconds*1000))},camListRefresh:function(b,c){var e=b;var d=c;var a=new Date();if(cc.videochat.camListRefreshStart===0){cc.videochat.camListRefreshStart=a.getTime()}else{if((a.getTime()-cc.videochat.camListRefreshStart)>(cc.videochat.camListRefreshTimeoutMins*60*1000)){return}}cc.ajax.load(d,e,null,true,true)},camListShowBookAModelOverlay:function(a){cc.ui.colorbox("/userprofile/send-videochat-request/"+a+"/",function(){jQuery("#mail-form").unbind("submit").submit(function(){return cc.userprofile.sendMailSubmit("#mail-form")})})},initVideoChat:function(f,e,b,a){cc.videochat.chatUsername=f;cc.videochat.chatPassword=e;cc.videochat.chatHost=b;cc.videochat.chatMode=a;jQuery("#live-head").css("height","465px");jQuery("#videochat-container").html('<div id="videochat-video"></div><div id="videochat-chat"></div>');if(jQuery.browser.msie){if(jQuery("#cc-videochat-events").size()<=0){jQuery("body").append('<script FOR="fvideo" EVENT="FSCommand" LANGUAGE="Jscript">fvideo_DoFSCommand(arguments[0],arguments[1]);</script>');jQuery("body").append('<script FOR="fplayer" EVENT="FSCommand" LANGUAGE="Jscript">fplayer_DoFSCommand(arguments[0],arguments[1]);</script>');jQuery("body").append('<div id="cc-videochat-events"></div>')}}var c=cc_resx_CDN_URL+"content/videochat/preloader.swf?account_id="+cc_resx_VIDEOCHAT_ACCOUNT_ID;c+="&gateway_ip="+cc.videochat.chatGateway;c+="&user="+f;c+="&pass="+e;c+="&host_name="+b;c+="&mode_request="+a;c+="&port=3000";c+="&alerts=0";c+="&bypass=0";c+="&chat_swf="+cc_resx_CDN_URL+"content/videochat/chat.swf";c+="&config_file="+cc_resx_SITE_URL+"content/videochat-flashconfig.xml";var d='<object id="fplayer" name="fplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';d+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">';d+=' <param name="movie" value="'+c+'">';d+=' <param name="quality" value="high">';d+=' <param name="loop" value="false">';d+=' <param name="scale" value="exactfit">';d+=' <param name="allowscriptaccess" value="always">';d+=' <param name="allowfullscreen" value="true">';d+=' <param name="wmode" value="transparent">';d+=' <param name="bgcolor" value="#000000">';d+=' <embed name="fplayer" src="'+c+'" width="100%" wmode="transparent" height="100%" loop="false" type="application/x-shockwave-flash"';d+=' pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#000000" quality="high" scale="exactfit" swLiveConnect="true" allowScriptAccess="always" allowFullScreen="true"></embed>';d+="</object>";jQuery("#videochat-chat").html(d)},changeChatMode:function(a){cc.videochat.initVideoChat(cc.videochat.chatUsername,cc.videochat.chatPassword,cc.videochat.chatHost,a)},flashCallback_startVideo:function(a){var b=cc_resx_CDN_URL+"content/videochat/video.swf";b+="?configFile="+cc_resx_SITE_URL+"content/videochat-config.xml";b+="&mediaElementWidth=320";b+="&mediaElementHeight=240";b+="&mediaElementBorderStrokeThickness=1";b+="&mediaElementBorderStroke=#909090";b+="&zoomBarMarginTop=5";b+="&zoomBarStrokeThickness=1";b+="&zoomBarStroke=#909090";b+="&zoomBarHeight=26";b+="&zoomBarImg="+cc_resx_CDN_URL+"content/videochat/theme/images/zoombar.png";b+="&zoomImg="+cc_resx_CDN_URL+"content/videochat/theme/images/zoombar.png";b+="&zoomImgWidth=0";b+="&fullscreenImg="+cc_resx_CDN_URL+"content/videochat/theme/images/fullscreen.png";b+="&fullscreenImgWidth=30";b+="&muteImg="+cc_resx_CDN_URL+"content/videochat/theme/images/mute.png";b+="&muteImgWidth=16";b+="&sliderTrackImg="+cc_resx_CDN_URL+"content/videochat/theme/images/slider1.png";b+="&sliderTrackImgWidth=70";b+="&sliderKnobImg="+cc_resx_CDN_URL+"content/videochat/theme/images/sliderknob1.png";b+="&sliderKnobImgWidth=30";b+="&backgroundColor=#a8a8a8";b+="&volume=16";b+="&url="+a;b=b.replace(/#/g,"0x");var c='<object id="fvideo" name="fvideo" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="100%" height="100%">';c+=' <param name="movie" value="'+b+'">';c+=' <param name="quality" value="high">';c+=' <param name="loop" value="false">';c+=' <param name="scale" value="exactfit">';c+=' <param name="allowscriptaccess" value="always">';c+=' <param name="allowfullscreen" value="true">';c+=' <param name="wmode" value="transparent">';c+=' <param name="bgcolor" value="#000000">';c+=' <embed name="fvideo" src="'+b+'" width="100%" wmode="transparent" height="100%" loop="false" type="application/x-shockwave-flash"';c+=' pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#000000" quality="high" scale="exactfit" swLiveConnect="true" allowScriptAccess="always" allowFullScreen="true"></embed>';c+="</object>";jQuery("#videochat-video").html(c)},flashCallback_DoVideoCommand:function(a,b){if(a==="volume"){}},flashCallback_DoChatCommand:function(a,b){if(a==="hostVideoInfo"){jQuery("#videochat-video").html("")}else{if(a==="port"){}else{if(a==="alerts"){}}}},flashCallback_Message:function(a){var b="";switch(a){case"0":b=cc_resx_TR_VChat_Closed+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Redirecting_to_Live_Models+"</a>;";setTimeout(function(){location.href="/live/"},2000);break;case"1":b=cc_resx_TR_VChat_Free_Chat_timed_out+'<br /><a onclick="location.reload(true); return false;" href="#" title="'+cc_resx_TR_Reload+'">'+cc_resx_TR_VChat_Click_to_log_back_in+"</a>";break;case"2":b=cc_resx_TR_VChat_Sorry_Im_offline_right_now+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Redirecting_to_Live_Models+"</a>;";setTimeout(function(){location.href="/live/"},2000);break;case"3":b=cc_resx_TR_VChat_Sorry_Server_is_full_try_again_later+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Click_to_return_to_models_list+"</a>";break;case"4":b=cc_resx_TR_VChat_Ive_gone_into_Private_Chat+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Click_to_return_to_models_list+"</a>";break;case"5":b=cc_resx_TR_VChat_Ive_gone_into_Private_Chat+' <br /><a onclick="location.reload(true); return false;" href="#" title="'+cc_resx_TR_Reload+'">'+cc_resx_TR_VChat_Click_to_call_again+"</a>";break;case"6":b=cc_resx_TR_VChat_Host_did_not_answer+'<br /><a onclick="location.reload(true); return false;" href="#" title="'+cc_resx_TR_Reload+'">'+cc_resx_TR_VChat_Click_to_call_again+"</a>";break;case"7":b=cc_resx_TR_VChat_Account_balance_too_low;break;case"8":b=cc_resx_TR_VChat_Username_is_already_logged_In;break;case"9":b=cc_resx_TR_VChat_You_have_been_kicked+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Click_to_return_to_models_list+"</a>";break;case"10":b=cc_resx_TR_VChat_Maximum_number_of_users_reached+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Click_to_return_to_models_list+"</a>";break;case"11":b=cc_resx_TR_VChat_Sorry_my_room_is_full+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Click_to_return_to_models_list+"</a>";break;case"12":b=cc_resx_TR_VChat_Cannot_connect_to_server+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Click_to_return_to_models_list+"</a>";break;case"13":b=cc_resx_TR_VChat_you_have_exceeded_the_permitted_free_time+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Redirecting_to_Live_Models+"</a>;";break;default:b=cc_resx_TR_VChat_Error_connecting_to_user+'<br /><a href="/live" title="'+cc_resx_TR_VChat_Live_Video_Chat+'">'+cc_resx_TR_VChat_Redirecting_to_Live_Models+"</a>;";setTimeout(function(){location.href="/live/"},2000);break}cc.videochat.showMessage(b)},flashCallback_removeMediaPlayer:function(){},creditAuthIFrameAction:function(a){switch(a){case"paymentSuccess":jQuery("#videochat-epochauthmask").remove();jQuery("#videochat-epochauth").hide();jQuery(".x_transactionid").html("");if(jQuery("#videochat-video").size()<=0){location.reload(true)}break;case"goToPayment":jQuery("#videochat-epochauthmask").remove();jQuery("#videochat-epochauth").hide();jQuery(".x_transactionid").html("");break;case"goToLiveModels":location.href="/live/";break;case"reEnterCCDetails":jQuery("#videochat-epochauthmask").remove();jQuery("#videochat-epochauth").hide();jQuery(".x_transactionid").html("");jQuery(".cc-epochPaymentPageForm").show();jQuery(".cc-epochPaymentCreditOverlayForm").hide();break}},purchaseInProcess:false,purchaseError:false,epochCreditsTransactionStart:function(b){cc.videochat.purchaseInProcess=true;cc.videochat.purchaseError=false;try{var i=b;var d=jQuery(".x_transactionid",i).val();if(typeof d!=="undefined"&&d!==""){cc.videochat.formSubmit(i);return false}var h=jQuery(".close_amount",i).val();if(typeof h==="undefined"||h===""){cc.ui.showModalErrorMessage(cc_resx_TR_Bad_or_missing_close_amount);return false}var c=cc.helpers.encodeQsParam(location.href);var a="/payments/epoch/credits/start/"+h;cc.ajax.getJSON(a,{},function(k,f){try{if(typeof k==="undefined"){cc.ui.showModalErrorMessage(cc_resx_TR_An_error_occurred_processing_payment);cc.videochat.purchaseError=true}else{if(k.success!==true){cc.ui.showModalErrorMessage(k.message);cc.videochat.purchaseError=true}else{if(k.message!==""){jQuery(".x_transactionid",i).val(k.message);jQuery(".x_url",i).val(location.href);cc.videochat.purchaseInProcess=false;cc.videochat.formSubmit(i);return false}else{cc.ui.showModalErrorMessage(cc_resx_TR_AUTH_AJAX_ERROR_RETRY);cc.videochat.purchaseError=true}}}}catch(j){cc.ui.showModalErrorMessage(cc_resx_TR_AUTH_AJAX_ERROR+":"+j);cc.videochat.purchaseError=true}},function(){cc.videochat.purchaseInProcess=false})}catch(g){cc.ui.showModalErrorMessage(cc_resx_TR_AUTH_AJAX_ERROR_REFRESH);cc.videochat.purchaseInProcess=false}return false},formSubmit:function(a){var b=a;jQuery("#videochat-epochauthmask").remove();jQuery("body").append('<div id="videochat-epochauthmask"></div>');jQuery("#videochat-epochauth").show();jQuery("#videochat-epochauthmask,#vc-ea-closelink").unbind("click").click(function(){jQuery("#videochatIframe").attr("src","about:blank");jQuery("#videochat-epochauthmask").remove();jQuery("#videochat-epochauth").hide()});jQuery(b).submit()},openToplessChat:function(d,c,b,a){cc.videochat.showMessage(cc_resx_TR_Please_wait_for_the_host_to_accept);if(a>2){jQuery(".cc-topless-chatbtn").hide()}else{jQuery(".cc-topless-chatbtn").show()}cc.videochat.initVideoChat(d,c,b,a)},showMessage:function(c){try{jQuery("#videochat-chat").html("").hide()}catch(b){}try{jQuery("#videochat-video").html("").hide()}catch(a){}jQuery("#live-head").css("height","300px");jQuery("#videochat-container").html('<div class="messages">'+c+"</div>")}}}();function StartMediaPlayer(a){cc.videochat.flashCallback_startVideo(a)}function fvideo_DoFSCommand(a,b){cc.videochat.flashCallback_DoVideoCommand(a,b)}function fplayer_DoFSCommand(a,b){cc.videochat.flashCallback_DoChatCommand(a,b)}function message(a){cc.videochat.flashCallback_Message(a)}function RemoveMediaPlayer(){cc.videochat.flashCallback_removeMediaPlayer()}function videochatCreditAuthIFrameAction(a){cc.videochat.creditAuthIFrameAction(a)};

cc.alerts=function(){return{timerData:null,timerDataInterval:3000,timerDisplay:null,timerDisplayInterval:3000,alertCount:4,list:[],offset:-1,started:false,hidden:true,onAlertEvents:[],init:function(a){if(typeof cc.activeUsername==="undefined"||cc.activeUsername===""){return}},loadAlerts:function(){cc.ajax.getJSON("/alerts/"+cc.alerts.getLastUpdated(),{},function(c,a,b){if(typeof c==="undefined"||c.length<=0){return}cc.alerts.list=c},function(){if(cc.alerts.started!==true){cc.alerts.updateDisplay();cc.alerts.started=true}clearTimeout(cc.alerts.timerData);cc.alerts.timerData=setTimeout(function(){cc.alerts.loadAlerts()},cc.alerts.timerDataInterval)})},getLastUpdated:function(){if(cc.alerts.listOk()!==true){return cc.alertsLastUpdate}for(var a in cc.alerts.list){if(a.createdAtTicks>cc.alertsLastUpdate){cc.alertsLastUpdate=a.createdAtTicks}}return cc.alertsLastUpdate},updateDisplay:function(){if(jQuery("#cc-top-notify-alert").size()<=0){var a='<div id="cc-top-notify-alert">';a+='<div class="tna-bg clearfix"><div class="tna-bg-center"></div></div>';a+='<div class="tna-content"><div class="tna-content-center">';a+='<div class="tna-left" id="cc-alerts-content"></div>';a+='<div class="tna-right">';a+="<a href='#' class=\"tna-arrow\" id='cc-alerts-header-prev'>&lt;</a>";a+="<a href='#' class=\"tna-arrow\" id='cc-alerts-header-next'>&gt;</a>";a+="<a href='#' class=\"tna-arrow\" id='cc-alerts-header-close'>X</a>";a+="</div></div></div>";a+="</div>";jQuery(a).hide().prependTo("body");jQuery("#cc-alerts-header-close").click(function(){clearTimeout(cc.alerts.timerData);clearTimeout(cc.alerts.timerDisplay);jQuery("#cc-top-notify-alert").slideUp(500);return false});jQuery("#cc-alerts-header-next").click(function(){clearTimeout(cc.alerts.timerData);clearTimeout(cc.alerts.timerDisplay);cc.alerts.showNext();return false});jQuery("#cc-alerts-header-prev").click(function(){clearTimeout(cc.alerts.timerData);clearTimeout(cc.alerts.timerDisplay);cc.alerts.showPrev();return false})}cc.alerts.showNext();clearTimeout(cc.alerts.timerDisplay);cc.alerts.timerDisplay=setTimeout(function(){cc.alerts.updateDisplay()},cc.alerts.timerDisplayInterval)},showNext:function(a,b,c){if(cc.alerts.listOk()!==true){return}cc.alerts.offset+=1;if(cc.alerts.offset>=cc.alerts.list.length){cc.alerts.offset=0}cc.alerts.show()},showPrev:function(a,b,c){if(cc.alerts.listOk()!==true){return}cc.alerts.offset-=1;if(cc.alerts.offset<0){cc.alerts.offset=cc.alerts.list.length-1}cc.alerts.show()},show:function(){if(cc.alerts.listOk()!==true){return}if(cc.alerts.hidden){jQuery("#cc-top-notify-alert").slideDown(500);cc.alerts.hidden=false}var a=cc.alerts.list[cc.alerts.offset];if(typeof a!=="undefined"&&typeof a.message!=="undefined"&&a.message!==""){jQuery("#cc-alerts-content").slideDown(500,function(){if(cc.alerts.list.length>1){jQuery("#cc-alerts-content").hide()}jQuery("#cc-alerts-content").html(a.message).fadeIn(500);if(cc.alerts.list.length>1){jQuery("#cc-alerts-header-prev").show();jQuery("#cc-alerts-header-next").show()}else{jQuery("#cc-alerts-header-prev").hide();jQuery("#cc-alerts-header-next").hide()}})}},listOk:function(){if(typeof cc.alerts.list==="undefined"||cc.alerts.list.length<=0){if(cc.alerts.hidden===false){jQuery("#cc-top-notify-alert").slideUp(500);cc.alerts.hidden=true}return false}return true}}}();


