function goToByScroll(t){$("html, body").animate({scrollTop:$("#"+t).offset().top},"slow")}function hide_bbl(){$(".settings").click();var t=new Date;t.setDate(t.getDate()+7),document.cookie="zoig[fset] = 1; expires = "+t}!function(t){t.fn.select_skin=function(e){return t(this).each(function(e){if(s=t(this),!s.attr("multiple")){s.wrap('<div class="cmf-skinned-select"></div>'),c=s.parent(),c.children().before('<div class="cmf-skinned-text">&nbsp;</div>').each(function(){this.selectedIndex>=0&&t(this).prev().text(this.options[this.selectedIndex].innerHTML.replace("&amp;","&"))}),c.width(s.outerWidth()-2),c.height(s.outerHeight()-2),c.css("background-color",s.css("background-color")),c.css("color",s.css("color")),c.css("font-size",s.css("font-size")),c.css("font-family",s.css("font-family")),c.css("font-style",s.css("font-style")),c.css("position","relative"),s.css({opacity:0,position:"relative","z-index":100});var o=c.children().prev();o.height(c.outerHeight()-s.css("padding-top").replace(/px,*\)*/g,"")-s.css("padding-bottom").replace(/px,*\)*/g,"")-o.css("padding-top").replace(/px,*\)*/g,"")-o.css("padding-bottom").replace(/px,*\)*/g,"")-2),o.width(c.innerWidth()-s.css("padding-right").replace(/px,*\)*/g,"")-s.css("padding-left").replace(/px,*\)*/g,"")-o.css("padding-right").replace(/px,*\)*/g,"")-o.css("padding-left").replace(/px,*\)*/g,"")-c.innerHeight()),o.css({opacity:100,overflow:"hidden",position:"absolute","text-indent":"0px","z-index":1,top:0,left:0}),c.children().click(function(){o.text(this.options.length>0&&this.selectedIndex>=0?this.options[this.selectedIndex].innerHTML.replace("&amp;","&"):"")}),c.children().change(function(){o.text(this.options.length>0&&this.selectedIndex>=0?this.options[this.selectedIndex].innerHTML.replace("&amp;","&"):"")})}})},t.fn.select_unskin=function(e){return t(this).each(function(e){s=t(this),!s.attr("multiple")&&s.parent().hasClass("cmf-skinned-select")&&(s.siblings(".cmf-skinned-text").remove(),s.css({opacity:100,"z-index":0}).unwrap())})}}(jQuery),$.fn.insertAtCaret=function(t){return this.each(function(){document.selection?(this.focus(),sel=document.selection.createRange(),sel.text=t,this.focus()):this.selectionStart||"0"==this.selectionStart?(startPos=this.selectionStart,endPos=this.selectionEnd,scrollTop=this.scrollTop,this.value=this.value.substring(0,startPos)+t+this.value.substring(endPos,this.value.length),this.focus(),this.selectionStart=startPos+t.length,this.selectionEnd=startPos+t.length,this.scrollTop=scrollTop):(this.value+=t,this.focus())})},function(t){t.fn.hoverIntent=function(e,s){var o,i,n,a,r={sensitivity:7,interval:100,timeout:0};r=t.extend(r,s?{over:e,out:s}:e);var l=function(t){o=t.pageX,i=t.pageY},p=function(e,s){if(s.hoverIntent_t=clearTimeout(s.hoverIntent_t),Math.abs(n-o)+Math.abs(a-i)<r.sensitivity)return t(s).unbind("mousemove",l),s.hoverIntent_s=1,r.over.apply(s,[e]);n=o,a=i,s.hoverIntent_t=setTimeout(function(){p(e,s)},r.interval)},c=function(e){var s=jQuery.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseenter"==e.type?(n=s.pageX,a=s.pageY,t(o).bind("mousemove",l),1!=o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){p(s,o)},r.interval))):(t(o).unbind("mousemove",l),1==o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){!function(t,e){e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=0,r.out.apply(e,[t])}(s,o)},r.timeout)))};return this.bind("mouseenter",c).bind("mouseleave",c)}}(jQuery),function(t){t.ifixpng=function(e){t.ifixpng.pixel=e},t.ifixpng.getPixel=function(){return t.ifixpng.pixel||"images/zoig2/pixel.gif"};var e=t.browser.msie&&t.browser.version<7,s=function(t){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+t+"')"};t.fn.ifixpng=e?function(){return this.each(function(){var e=t(this),o=t("base").attr("href");if(o&&(o=o.replace(/\/[^\/]+$/,"/")),e.is("img")||e.is("input")){if(e.attr("src")&&e.attr("src").match(/.*\.png([?].*)?$/i)){var i=o&&e.attr("src").search(/^(\/|http:)/i)?o+e.attr("src"):e.attr("src");e.css({filter:s(i),width:e.width(),height:e.height()}).attr({src:t.ifixpng.getPixel()}).positionFix()}}else{var n=e.css("backgroundImage");n.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)&&(n=RegExp.$1,n=o&&"/"!=n.substring(0,1)?o+n:n,e.css({backgroundImage:"none",filter:s(n)}).children().children().positionFix())}})}:function(){return this},t.fn.iunfixpng=e?function(){return this.each(function(){var e=t(this),s=e.css("filter");s.match(/src=["']?(.*\.png([?].*)?)["']?/i)&&(s=RegExp.$1,e.is("img")||e.is("input")?e.attr({src:s}).css({filter:""}):e.css({filter:"",background:"url("+s+")"}))})}:function(){return this},t.fn.positionFix=function(){return this.each(function(){var e=t(this),s=e.css("position");"absolute"!=s&&"relative"!=s&&e.css({position:"relative"})})}}(jQuery),$(function(){$.ajaxSetup({cache:!1}),$(document).click(function(){$(".open").removeClass("open").fadeOut("fast")}),$(".check_all").click(function(){$(this).parents("form").find("input:checkbox").attr("checked",$(this).is(":checked"))}),$("#navigation form input.text, form.create_folder input.text").focus(function(){"undefined"==typeof originalText&&(originalText=$(this).val()),$(this).val()==originalText&&$(this).val("")}).blur(function(){""==$(this).val()&&$(this).val(originalText)}),$("#smallsignup p.dob input.text").focus(function(){$(this).val("")}),$(".invitefr input.text, .profile_ovrv form input.text, .text.autoselect ").live("click",function(){$(this).select()}),$("#loginform label.float").show(),$("#loginform input.text").val(""),$("#loginform label.float").click(function(){$(this).hide().parents("fieldset").find("input.text").focus()}),$("#loginform input.text").focus(function(){$(this).parents("fieldset").find("label.float").hide()}).blur(function(){""==$(this).val()&&$(this).parents("fieldset").find("label.float").show()});$(".rotator").each(function(){$(this).find("ul li").each(function(){var t=$(this).find("a.thumbnail").attr("href");$(this).parents(".rotator").find(".pagination").append('<a href="'+t+'"><span>&middot;</span></a>')}),$(this).find(".pagination a:first").addClass("active")});var t=setInterval(function(){$active=$(".rotator li.active"),$active.is(":last-child")?($active.removeClass("active"),$active.parents("ul").find("li:first").addClass("active"),$active.parents(".rotator").find(".pagination a.active").removeClass("active").end().find(".pagination a:first").addClass("active")):($active.removeClass("active").next().addClass("active"),$active.parents(".rotator").find(".pagination a.active").removeClass("active").next().addClass("active"))},4e3);$(".rotator .pagination a").mouseover(function(){clearInterval(t);var e=$(this).index()+1;return $(this).parents(".rotator").find("ul li.active").removeClass("active"),$(this).parents(".rotator").find("ul li:nth-child("+e+")").addClass("active"),$(this).parent().find("a.active").removeClass("active"),$(this).addClass("active"),!1});if($("#signupform input#g_couple").is(":checked")&&($("#signupform #dob_single").hide(),$("#signupform #dob_couple").show()),$("#signupform #gender input").click(function(){"g_couple"==$(this).attr("id")?($("#signupform #dob_single").hide(),$("#signupform #dob_couple").show()):($("#signupform #dob_single").show(),$("#signupform #dob_couple").hide())}),$("#smallsignup #gender input").click(function(){"g_couple"==$(this).attr("id")?($("#smallsignup #dob_single").hide(),$("#smallsignup #dob_couple").show()):($("#smallsignup #dob_single").show(),$("#smallsignup #dob_couple").hide())}),$(".settings").click(function(){return $("#settingsbbl").load(site_url+"ajax/user_filter.php?show=form&url="+window.location.pathname,function(){if($("#settingsbbl").hasClass("open"))$("#settingsbbl").stop(!0,!0).removeClass("open").fadeOut("fast");else{var t=$(".settings").position();$("#settingsbbl").height();$("#settingsbbl").css({top:t.top+20+"px",left:t.left+5+"px"}).stop(!0,!0).addClass("open").fadeIn("fast")}}),!1}),$("#settingsbbl").click(function(t){t.stopPropagation()}),$(window).load(function(){$("#settingsbbl").hasClass("showhint")&&$(".settings").click()}),/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent))$(".browse li .thumbnail strong img").remove();else{var e={interval:500,over:function(){$(this).addClass("onhover")},timeout:200,out:function(){$(this).removeClass("onhover")}};$("#navigation li").hoverIntent(e),$(".tt").each(function(){$(this).attr("rel",$(this).attr("title")).removeAttr("title")}).hover(function(){$("#tooltip").html($(this).attr("rel")).show()},function(){$("#tooltip").hide()}).mousemove(function(t){$("#tooltip").css({top:t.pageY+10+"px",left:t.pageX+10+"px"})}),$(".userprofile").live({mouseenter:function(){if($(this).attr("rel")){var t=$(this).attr("rel");$("#profile_popup").html('<div class="bla" style="height: 106px; text-align: center; line-height: 100px;">Loading...</div>').load(site_url+"ajax/tprofile.php?uid="+t)}},mouseleave:function(){$("#profile_popup").hide().removeClass("genuine").empty()},mousemove:function(t){$(this).attr("rel")&&($(this).hasClass("genuine")&&$("#profile_popup").addClass("genuine"),$("#profile_popup").stop(!0,!0).fadeIn("fast"),t.pageX+305<$(window).width()?$("#profile_popup").css({top:t.pageY+10+"px",left:t.pageX+10+"px"}):$("#profile_popup").css({top:t.pageY+10+"px",left:t.pageX-300+"px"}))}}),$(".collink").hover(function(){if($(this).attr("rel")){var t=$(this).attr("rel");$("#profile_popup").html('<div class="bla" style="height: 106px; text-align: center; line-height: 100px;">Loading...</div>').load(site_url+"ajax/tcollection.php?cid="+t)}},function(){}),$(".collink").mousemove(function(t){$(this).attr("rel")&&($("#profile_popup").stop(!0,!0).fadeIn("fast"),t.pageX+305<$(window).width()?$("#profile_popup").css({top:t.pageY+10+"px",left:t.pageX+10+"px"}):$("#profile_popup").css({top:t.pageY+10+"px",left:t.pageX-300+"px"}))}),$(".collink").mouseout(function(t){$("#profile_popup").hide().empty()}),$(".thumbnail strong img:not(.disabled), .thumbnailz strong img:not(.disabled), .f_hover strong img:not(.disabled)").live("click",function(){$(this).addClass("disabled").attr("rel","Added to zList");var t=$(this).parents("strong").attr("rel"),e=0;return $("#zlist").hasClass("hidden")||(e=1),$.post(site_url+"ajax/zlist.php",{a:"a",o:e,c:t},function(t){if(1==e){var s=t.split("|"),o=s[0],i=s[1];$(".zphotos a span").html(i),$(".zvideos a span").html(o),$("#zlist").stop(!0,!0).animate({bottom:"+=15"},150).animate({bottom:"-=15"},100)}else $("#zlist").fadeIn("fast").html(t).removeClass("hidden")}),!1}),$("#zlist #zlclose").live("click",function(){return $.post(site_url+"ajax/zlist.php",{a:"c"},function(){$("#zlist").html("").addClass("hidden").hide(),$("#tooltip").hide()}),!1}),$("#zlist .zclp").live("click",function(){return confirm("Are you sure you want to clear the photos from your zList?")&&$.post(site_url+"ajax/zlist.php",{a:"d",c:2},function(){$(".zphotos a span").html("0")}),!1}),$("#zlist .zclv").live("click",function(){return confirm("Are you sure you want to clear the videos from your zList?")&&$.post(site_url+"ajax/zlist.php",{a:"d",c:1},function(){$(".zvideos a span").html("0")}),!1})}if($(".tabsbox .tabs:not(.profile, .nojs) li a").click(function(){if(!$(this).parents("li").hasClass("selected")){var t=$(this).parents("li").index()+2;$(".tabsbox .tabs li").removeClass("selected"),$(".box_content.shown").hide().removeClass("shown"),$(this).parents("li").addClass("selected"),$(".box_content.tabs:nth-child("+t+")").addClass("shown").show()}return!1}),$(".browse_members select#country").change(function(){if("us"==$(this).val()||"ca"==$(this).val()||"au"==$(this).val()||"uk"==$(this).val()){var t=$(this).val();$.get(site_url+"ajax/members_state.php?code="+t,function(t){var e=t;$(".browse_members .hold").html(e).show(),$(".browse_members .hold select").select_skin()})}else $(this).parents("fieldset").find(".hold").empty().hide()}),$("#profile_form select#scountry").change(function(){var t="";if($("#profile_form").hasClass("editprofile")&&(t="<span>*</span>"),"uk"==$("select#scountry").val()?$("#stcnt").html("<strong>County: "+t+"</strong>"):$("#stcnt").html("<strong>State: "+t+"</strong>"),"us"==$(this).val()||"ca"==$(this).val()||"au"==$(this).val()||"uk"==$(this).val()){var e=$(this).val();$.get(site_url+"ajax/members_state_search.php?code="+e,function(t){var e=t;$("#profile_form select#sstate").html(e).parents("p").find(".cmf-skinned-text").html("--")})}else $("#profile_form select#sstate").html('<option selected="selected">--</option>').parents("p").find(".cmf-skinned-text").html("--")}),$("#side .browse_members input:checked:not(.styled)").parents("label").addClass("active"),$("#side .browse_members input").live("change",function(){$(this).is(":checked")?($(this).is(":radio")&&$(this).parents("fieldset").find(".active").removeClass("active"),$(this).parents("label").addClass("active")):$(this).parents("label").removeClass("active")}),$(".browse_prefs.highlight p:not(.actions) a").click(function(){if($(this).hasClass("active")){$(this).removeClass("active");var t="."+(e=$(this).attr("rel"));$(".members_list").find(t).removeClass("hl").addClass("faded"),0==$(".members_list li.hl").length&&$(".members_list li").removeClass("faded"),document.cookie="zoig[hl]["+e+"]=;expires=Thu, 01-Jan-70 00:00:01 GMT;"}else{$(this).addClass("active");var e;t="."+(e=$(this).attr("rel"));$(".members_list").find(t).removeClass("faded").addClass("hl"),$(".members_list li").not(".hl").addClass("faded"),document.cookie="zoig[hl]["+e+"]=1"}return!1}),$("#side .pv_info em").hide(),$("#shomoretags").click(function(){return $("#side .pv_info em").show(),$(this).remove(),!1}),$("form#profile_form").length){function s(t){if($("#profile_form fieldset:not(.sm_forall)").hide(),$.browser.msie&&6==$.browser.version.substr(0,1)||$("#profile_form fieldset:not(.sm_forall) select.styled").select_unskin(),"sm_couples"==t)$("#profile_form div.couple fieldset").show(),$("#profile_form.editprofile #howweplay").show(),$.browser.msie&&6==$.browser.version.substr(0,1)||$("#profile_form div.couple fieldset select.styled").select_skin();else{var e="."+t;$("#profile_form.editprofile #howweplay").hide(),$(e).show(),$.browser.msie&&6==$.browser.version.substr(0,1)||$("#profile_form fieldset"+e+" select.styled").select_skin()}}$("#profile_form.editprofile #howweplay").hide(),$.browser.msie&&6==$.browser.version.substr(0,1)||$("#profile_form fieldset.sm_forall select.styled").select_skin(),$("#profile_form .sm_forall input.radio").click(function(){s($(this).attr("id"))}),$("#profile_form .sm_forall input.radio:checked").length>0&&s($("#profile_form .sm_forall input.radio:checked").attr("id"))}if($(".uploadtags input.category:checked")){var o=$(".uploadtags input.radio.category:checked").attr("id");$(".uploadtags ."+o).show()}if($(".uploadtags input.category").click(function(){$(this).parents("form").find(".subcat").hide(),$(this).parents("form").find("."+$(this).attr("id")).show()}),$("#category_preview").length&&$(".uploadtags input.radio.subcategory").click(function(){var t=$(this).val();$("#category_preview").load(site_url+"ajax/upload_examples.php?c="+t).show()}),$.fn.insertAtCaret&&$("#qr_emoticons img").click(function(){var t=$(this).attr("rel");$("#replytxt").insertAtCaret(t)}),$(".comments .message.warning").hide(),$(".comments form:not(#postreply) textarea").focus(function(){$(".comments .message").show(),$(this).addClass("focused")}).blur(function(){$(".comments .message").hide(),$(this).removeClass("focused")}),$(".comments #postreply textarea").focus(function(){$(this).addClass("focused")}).blur(function(){$(this).removeClass("focused")}),$(".comments .quotelink").click(function(){$(".comments form blockquote").remove();var t=$(this).parents("li").find(".userprofile").html(),e=$(this).parents("li").find("span.comment_message").html(),s=$(this).parents("li").attr("rel");return $(".comments form textarea").focus().before('<blockquote><a href="#" class="removethis">Remove quote</a><cite><strong>QUOTE:</strong> '+t+"</cite>"+e+"</blockquote>"),$(".comments form input[name=qid]").val(s),!1}),$(".comments .replylink").click(function(){$("a.c_edit_rep").hide();var t=$(this).parents("li").attr("rel").split("-"),e=$(this).parents("div #parent_box"),s=$("#postreply");return $("#postreply input[name=qid]").val(t[0]),void 0!==t[1]&&null!==t[1]&&$("#postreply input[name=cid]").val(t[1]),$("#postreply input[name=act]").val("post_comment"),$("#postreply textarea").val(""),s.hide().appendTo(e).slideDown("fast"),$("#postreply textarea").focus(),!1}),$("#postreply").live("submit",function(t){if($("#postreply button[type=submit]").attr("disabled","disabled"),t.preventDefault(),$(".comments").hasClass("prof"))var e="profile_comment.php";else if($(".comments").hasClass("private"))e="comment_private.php";else if($(".comments").hasClass("coll"))e="collection_comment.php";else e="comment.php";var s=$("#postreply textarea").val(),o=$("#postreply input[name=qid]").val(),i=$("#postreply input[name=cid]").val(),n=$("#postreply input[name=act]").val();$.post(site_url+"ajax/comments/"+e,{act:n,lit:0,cid:i,qid:o,com:s},function(t){var e=t.split("|");if("err"==e[0])alert("Oops! Something went wrong. Please reload the page and try again.");else if("err_com"==e[0])alert("Please enter your comment!");else if("err_words"==e[0])alert(e[1]);else{var s=$("#postreply").parents("div #parent_box");$("#postreply").hide(),$(t).hide().appendTo(s).fadeIn("fast")}$("#postreply button[type=submit]").removeAttr("disabled")})}),$("#parent_box .c_edit_rep").live("click",function(){var t=$(this).parents("li").attr("rel");return $("#postreply input[name=act]").val("update_comment"),$("#postreply input[name=cid]").val(t),$("#postreply").show(),$(this).parents("li").remove(),!1}),$("a.removethis").live("click",function(){return $("#postcomment input[name=qid]").val(0),$(this).parents("blockquote").remove(),$(".comments form textarea").focus(),!1}),$(".comments .c_rep").click(function(){if(confirm("Are you sure you want to report this comment?")){var t=$(this),e=$(this).parents("li").attr("rel"),s="";$(this).parents("ul").hasClass("prof")?s="&prof=1":$(this).parents("ul").hasClass("coll")?s="&coll=1":$(this).parents("ul").hasClass("private")&&(s="&prv=1"),$.get(site_url+"ajax/comments/report.php?cid="+e+s,function(){t.parents("li").addClass("reported"),t.replaceWith("<strong>Reported!</strong>")})}return!1}),$(".comments .c_del").click(function(){if(confirm("Are you sure you want to remove this comment?")){var t=$(this),e=$(this).parents("li").attr("rel"),s="";$(this).parents("ul").hasClass("prof")?s="&prof=1":$(this).parents("ul").hasClass("coll")?s="&coll=1":$(this).parents("ul").hasClass("private")&&(s="&prv=1"),$.get(site_url+"ajax/comments/delete.php?cid="+e+s,function(e){"ok"==e?t.parents("li").fadeOut():alert("Something went wrong. Please reload the page and try again!")})}return!1}),$("#postcomment").live("submit",function(t){if($("#postcomment button[type=submit]").attr("disabled","disabled"),t.preventDefault(),$(".comments").hasClass("prof"))var e="profile_comment.php";else if($(".comments").hasClass("private"))e="comment_private.php";else if($(".comments").hasClass("coll"))e="collection_comment.php";else e="comment.php";var s=$("#postcomment textarea").val();if($("#postcomment input[name=lit]").is(":checked"))var o=1;else o=0;var i=$("#postcomment input[name=qid]").val(),n=$("#postcomment input[name=cid]").val(),a=$("#postcomment input[name=act]").val();$.post(site_url+"ajax/comments/"+e,{act:a,lit:o,cid:n,qid:i,com:s},function(t){var e=t.split("|");"err"==e[0]?alert("Oops! Something went wrong. Please reload the page and try again."):"err_com"==e[0]?alert("Please enter your comment!"):"err_words"==e[0]?alert(e[1]):($("#postcomment, .comments .message").hide(),$(".comments ul").prepend(t)),$("#postcomment button[type=submit]").removeAttr("disabled")})}),$(".comments .c_edit").live("click",function(){var t=$(this).parents("li").attr("rel");return $("#postcomment input[name=act]").val("update_comment"),$("#postcomment input[name=cid]").val(t),$("#postcomment, .comments .message").show(),$(this).parents("li").remove(),!1}),$(".comments .show_more a").click(function(){return $("#more_comments").show(),$(".comments .show_more").remove(),!1}),$("a.rep_post").click(function(){if(confirm("Are you sure you want to report this post?")){var t=$(this).attr("rel");$.get(site_url+"ajax/report_post.php?pid="+t,function(){}),$(this).replaceWith("<strong>Thanks for your report!</strogn>")}return!1}),$("#reportuserlink").click(function(){return $("#reportuserform").show().find("textarea").focus(),!1}),$("#reportuserform p a").click(function(){return $("#reportuserform").hide(),!1}),$("#reportuserform").live("submit",function(t){t.preventDefault();var e=$("#reportuserform textarea").val(),s=$("#reportuserlink").attr("rel");$.post(site_url+"ajax/user_report.php",{act:"sub",oth:e,user_id:s},function(){$("#reportuserlink").replaceWith('<strong id="reportuserlink">Thanks for your report!</strong>'),$("#reportuserform").hide()})}),$("#faqlist li p").hide(),$("#faqlist li a.question").toggle(function(){$(this).parent().find("p").show(),$(this).prepend("<span>x</span>")},function(){$(this).parent().find("p").hide(),$(this).find("span").remove()}),$(".video_chat form").hasClass("holdup"))setInterval(function(){var t=parseInt($(".video_chat form p span").html());t>1?$(".video_chat form p span").html(t-1):($(".video_chat form p").remove(),$(".video_chat form input").removeAttr("disabled"),$(".video_chat form label").removeClass("faded"))},1e3);function i(t){$("#pvbox td").hide().html(t).find("em").hide().end().removeAttr("style").addClass("visible");var e=$("#pvbox td em").html();$("#pvbox td em").remove(),$("#actionlinks a#pv_vote").hasClass("voted")||""==e||($("#votebutton p:not(.voted)").html(e),$("#votebutton a").replaceWith('<p class="voted"><strong>Thanks</strong> for your like</p>'),$("#actionlinks a#pv_vote").addClass("voted"))}if($(".pop_forum tr:last td, #faqlist li:last, .guides_list li:last, ul.billinginfo li:last").css("border","0"),$("#content .comments ul li:last").css("margin-bottom","0"),$("#side .related li:last").css({border:"none",marginBottom:0}),$("#profile ul li a span, #flashcontent .stamp, #zlist a.zicon span, #fileQueue .cancel img, #flowreplace img, img.xplay").ifixpng(),$.browser.msie&&6==$.browser.version.substr(0,1)?($(".browse li, .list_categories li, .members_list li").hover(function(){$(this).addClass("iehover"),$(this).find(".thumbnail strong img").show()},function(){$(this).removeClass("iehover"),$(this).find(".thumbnail strong img").hide()}),$(window).scroll(function(){$("#zlist").css("position","relative").css("position","absolute")})):$("form:not(#profile_form) select.styled").select_skin(),$("#page_jump").change(function(){var t=$(this).val();document.location=t}),$(".quick_reply #attach_files a.showfields").click(function(){return"zgplus"==$(this).attr("rel")?$(".quick_reply #attach_files").html('<p><input type="file" class="file" name="1" /></p><p><input type="file" class="file" name="2" /></p><p><input type="file" class="file" name="3" /></p><p class="note">Valid file extensions: gif, jpg, jpeg, png.</p>'):$(".quick_reply #attach_files").html('<p><input type="file" class="file" disabled="disabled" /></p><p><input type="file" class="file" disabled="disabled" /></p><p><input type="file" class="file" disabled="disabled" /></p><p class="note">Valid file extensions: gif, jpg, jpeg, png.</p> <p><a href="'+site_url+'plus/upgrade">Upgrade to ZG+</a> and send up to three photo attachments with every private message! As a <a href="'+site_url+'plus/upgrade">ZG+ member,</a> you can also receive up to three photos from anyone else with every private message response.</p>'),!1}),$(".quick_reply select#tmpl").change(function(){$(this).parents("form").find("textarea#replytxt").val($(this).val())}),$("a.msg_report").click(function(){$("#repmsgform").remove();var t=$(this).attr("rel"),e=$(this).parents("td").attr("rel").split("|");return $(this).parents(".message_details td").append('<form id="repmsgform" action="" method="post" rel="'+t+"\"><p>If you don't want to receive messages from "+e[1]+' anymore, simply <a href="'+site_url+"mailbox.php?show=ignores&ignore="+e[0]+'">ignore the member</a>.</p><textarea cols="90" rows="3"></textarea><p class="endform"><button type="submit" class="btn btn-xs btn-danger" value=""><strong>REPORT</strong></button> <a href="#" class="rep_cancel btn btn-xs btn-danger"><strong>CANCEL</strong></a></p></form>'),$("#repmsgform").show().find("textarea").focus(),!1}),$("#repmsgform p a.rep_cancel").live("click",function(){return $("#repmsgform").remove(),!1}),$("#repmsgform").live("submit",function(t){t.preventDefault();var e=$("#repmsgform").attr("rel"),s=$("#repmsgform textarea").val();$.post(site_url+"ajax/mailbox/report.php",{messid:e,message:s},function(){}),$(this).parents("td").find(".msg_report").replaceWith("<strong>Thank you!</strong>"),$("#repmsgform").remove()}),$("a.msg_edit").click(function(){var t=$(this),e=$(this).parents("tr").prev("tr"),s=$(this).attr("rel");return $(".quick_reply").hide(),$.get(site_url+"ajax/mailbox/edit_reply.php?act=get&rid="+s,function(o){"*-*1*-*"==o?(alert("Message is too old to edit. Sorry!"),t.remove()):(e.find("span.rep_body").hide(),$("#edit_reply").length<1&&e.find(".message_body").prepend('<form id="edit_reply" action="" method="post"><textarea rows="5" cols="45">'+o+'</textarea><input type="hidden" class="hidden" value="'+s+'" name="rid" /><p><input type="submit" class="submit" value="" /> or <a href="#">Cancel</a></p></form>'),$("#edit_reply textarea").focus())}),!1}),$("#edit_reply").live("submit",function(t){t.preventDefault();var e=$(this).parents("tr"),s=$("#edit_reply input.hidden").val(),o=$("#edit_reply textarea").val();$.post(site_url+"ajax/mailbox/edit_reply.php?act=update",{rid:s,reply:o},function(t){"*-*2*-*"==t?(e.find("span.rep_body").show(),alert("Cannot update with empty message! Sorry!")):"*-*3*-*"==t?(e.find("span.rep_body").show(),alert("You are not allowed to edit this reply!")):e.find("span.rep_body").html(t).show(),$(".quick_reply").show()}),$("#edit_reply").remove()}),$("#edit_reply p a ").live("click",function(){return $(this).parents(".message_body").find("span.rep_body").show(),$(this).parents("form").remove(),$(".quick_reply").show(),!1}),$("#mbs_settings input.checkbox").each(function(){"checked"!=$(this).attr("checked")&&$(this).parents("p").find("select").attr("disabled","disabled")}),$("#mbs_settings input.checkbox").change(function(){"checked"!=$(this).attr("checked")?$(this).parents("p").find("select").attr("disabled","disabled"):$(this).parents("p").find("select").removeAttr("disabled")}),$("#mbs_country select").change(function(){"us"==$(this).val()||"uk"==$(this).val()||"ca"==$(this).val()||"au"==$(this).val()?$.get(site_url+"ajax/members_filter_state.php?code="+$(this).val(),function(t){$("#mbs_state").html(", "+t)}):$("#mbs_state").html("")}),$("#flashcontent").hasClass("genuine")&&$("#flashcontent").append('<img src="'+site_url+'images/zoig2/real.png" alt="" class="stamp" />'),$("#votebutton a").click(function(){if($(this).hasClass("gosignup"))return!0;var t=$("#votebutton").attr("rel");if($("#votebutton").hasClass("collection"))var e="vote_collection";else if($("#votebutton").hasClass("private"))e="vote_private";else e="vote";return $.get(site_url+"ajax/"+e+".php?cid="+t,function(t){$("#votebutton p:not(.voted)").html(t)}),$(this).replaceWith('<p class="voted"><strong>Thanks</strong> for your like</p>'),$("#actionlinks a#pv_vote").addClass("voted"),$("#pvactions_new").show(),!1}),$("#col_vote a").click(function(){var t=$("#col_vote").attr("rel");return $.get(site_url+"ajax/vote_collection.php?cid="+t+"&col_vote=1",function(t){}),$(this).replaceWith("You liked this collection."),!1}),$("#actionlinks a").click(function(){var t=$("#votebutton").attr("rel");return $("#actionlinks td.active").removeClass("active"),$("#actionlinks td").css("border-bottom","1px solid #ddd"),"pv_fav"==$(this).attr("id")?$.get(site_url+"ajax/panel_favorites.php?cid="+t,function(t){i(t)}):"pv_col"==$(this).attr("id")?$.get(site_url+"ajax/panel_collection.php?cid="+t,function(t){$("#pvbox td").hide().html(t).removeAttr("style").addClass("visible"),$("#colform .styled").select_skin()}):"pv_report"==$(this).attr("id")?$(this).hasClass("private")?$.get(site_url+"ajax/panel_report_private.php?cid="+t,function(t){$("#pvbox td").hide().html(t).removeAttr("style").addClass("visible")}):$.get(site_url+"ajax/panel_report.php?cid="+t,function(t){$("#pvbox td").hide().html(t).removeAttr("style").addClass("visible")}):"pv_share"==$(this).attr("id")?$.get(site_url+"ajax/panel_share.php?cid="+t,function(t){$("#pvbox td").hide().html(t).removeAttr("style").addClass("visible")}):"pv_vote"==$(this).attr("id")?$(this).hasClass("voted")?$("#pvbox td").hide().html("<strong>Already liked!</strong>").removeAttr("style").addClass("visible"):($(this).hasClass("private")?$.get(site_url+"ajax/vote_private.php?cid="+t,function(t){$("#votebutton p:not(.voted)").html(t)}):$.get(site_url+"ajax/vote.php?cid="+t,function(t){$("#votebutton p:not(.voted)").html(t)}),$("#votebutton a").replaceWith('<p class="voted"><strong>Thanks</strong> for your like</p>'),$("#pvbox td").hide().html("<strong>Thanks for your like!</strong>").removeAttr("style").addClass("visible"),$(this).addClass("voted")):$("#pvbox td").hide().html("AJAX not set yet!").show(),$(this).parent().addClass("active").css("border-bottom","0"),!1}),$("#shareform input.text").live("click",function(){$(this).select()}),$("#colform input.ok, #colform button.okk").live("click",function(t){t.preventDefault();var e=$("#colform").find("option:selected").val(),s=$("#votebutton").attr("rel");""==e?($("#pvbox td").hide(),$("#actionlinks td").css("border-bottom","none"),$("#actionlinks td.active").removeClass("active")):0==e?window.location=site_url+"account.php?show=collections&list=create&cid="+s:e>0&&$.get(site_url+"ajax/panel_collection.php?cid="+s+"&col="+e+"&act=sub",function(t){i(t)})}),$("#colform_new button.ok").live("click",function(t){t.preventDefault();var e=$("#colform_new").find("option:selected").val(),s=$("#votebutton").attr("rel");0==e?window.location=site_url+"account.php?show=collections&list=create&cid="+s:e>0&&$.get(site_url+"ajax/panel_collection.php?cid="+s+"&col="+e+"&act=sub&new=1",function(t){$("#pvbox_new").hide().html(t).show()})}),$("#repform input.report, #repform button.reportt").live("click",function(t){t.preventDefault();var e=$("#votebutton").attr("rel"),s=0,o=0,i=0;$("#repform input[name=com]").is(":checked")&&(s=1),$("#repform input[name=por]").is(":checked")&&(o=1),$("#repform input[name=cat]").is(":checked")&&(i=1);var n=$("#repform input[name=oth]").val();if(1==$("#repform input[name=prv]").val())var a="panel_report_private";else a="panel_report";$.post(site_url+"ajax/"+a+".php",{cid:e,com:s,por:o,cat:i,oth:n,act:"sub"},function(t){$("#pvbox td").hide().html(t).show()})}),$("#shareform input.submit, #shareform button.submit, #colform input.cancel, #colform button.cancell, #repform input.cancel, #repform button.cancell").live("click",function(){return $("#pvbox td").hide(),$("#actionlinks td").css("border-bottom","none"),$("#actionlinks td.active").removeClass("active"),!1}),$(".pv_more").length&&$(document).bind("keydown",function(t){return 37!=t.keyCode||!$(".pv_more p a.prev").length||$(".comments textarea").hasClass("focused")||$(".comments #postreply textarea").hasClass("focused")?39==t.keyCode&&$(".pv_more p a.next").length&&!$(".comments textarea").hasClass("focused")?(window.location=$(".pv_more p a.next").attr("href"),!1):void 0:(window.location=$(".pv_more p a.prev").attr("href"),!1)}),$(".ssopts").length&&$(".ssopts .timeleft").length){var n,a=$(".ssopts .nextimg .thumbnail").attr("href"),r=parseInt($(".ssopts .timeleft strong").html());function l(){var t;r>0?($(".ssopts .timeleft strong").html(r),0==--r&&$(".ssopts .timeleft span").html("second"),n=setTimeout(l,1e3)):(t=$(".ssopts .setuptime strong span").html(),window.location=a+"&si="+t+"#wide")}l(),$(".ssopts #playpause").click(function(){return $(this).hasClass("play")?(l(),$(this).removeClass("play").addClass("pause").html("Pause")):(clearTimeout(n),$(this).removeClass("pause").addClass("play").html("Start")),!1}),$(".ssopts .setuptime strong .inc").click(function(){r+=5,$(".ssopts .timeleft strong").html(r);var t=parseInt($(".ssopts .setuptime strong span").html())+5;return $(".ssopts .setuptime strong span").html(t),!1}),$(".ssopts .setuptime strong .dec").click(function(){if(r>5&&(r-=5,$(".ssopts .timeleft strong").html(r)),parseInt($(".ssopts .setuptime strong span").html())>5){var t=parseInt($(".ssopts .setuptime strong span").html())-5;$(".ssopts .setuptime strong span").html(t)}return!1}),$(".ssopts .previmg a, .ssopts .nextimg a").click(function(){var t=$(this).attr("href")+"&si="+$(".ssopts .setuptime strong span").html()+"#wide";return window.location=t,!1})}$("ul.collections .removelink").click(function(){if(confirm("Are you sure you want to remove your submission from this collection?")){var t=$(this).parents("li"),e=$(this).attr("rel").split("|");$.post(site_url+"ajax/collections_self_remove.php",{cid:e[0],col:e[1]},function(e){"ok"==e?t.fadeOut():alert("Something went wrong. Please reload the page and try again!")})}return!1}),$(".tour_payments li a").hover(function(){var t=$(this).parents("li").find("p").html();$("#tooltip").html(t).show()},function(){$("#tooltip").hide().empty()}),$("#vss_next, #vss_prev").click(function(){if(!$(this).hasClass("disnav")){if($(this).addClass("disnav"),$(this).parents(".box_content").addClass("vloading"),$(".videoss").empty(),"vss_next"==$(this).attr("id")?action="next":action="prev",$(".videoss").hasClass("collections"))var t="ajax/collections_more.php";else if($(".videoss").hasClass("favorites"))t="ajax/favorites_more.php";else t="ajax/zlist_video.php";$.post(site_url+t,{page:page,video:video,action:action,colid:colid},function(t){$(".box_content.vloading").removeClass("vloading"),$(".videoss").append(t),$("#vss_next, #vss_prev").removeClass("disnav"),page>1&&page<all_pages?($("#vss_next").removeClass("disnav"),$("#vss_prev").removeClass("disnav")):page>1&&page==all_pages?($("#vss_next").addClass("disnav"),$("#vss_prev").removeClass("disnav")):1==page&&all_pages>1&&($("#vss_next").removeClass("disnav"),$("#vss_prev").addClass("disnav"))})}return!1}),$("#promo_banner.show #bhld a").hover(function(){$(this).find("strong").css({opacity:1})},function(){$(this).find("strong").css({opacity:0})}),$("#promo_banner.fade #bhld a").hover(function(){$(this).find("strong").stop(!0,!0).animate({opacity:1},300)},function(){$(this).find("strong").stop(!0,!0).animate({opacity:0},300)}),$("#promo_banner.slideleft #bhld a strong").css("margin-left","-320px"),$("#promo_banner.slideleft #bhld a:not(#zg1)").hover(function(){$(this).find("strong").stop(!0,!0).animate({"margin-left":0,opacity:1},300)},function(){$(this).find("strong").stop(!0,!0).animate({"margin-left":-320,opacity:0},300)}),$("#promo_banner.slideright #bhld a strong").css("margin-left","320px"),$("#promo_banner.slideright #bhld a:not(#zg1)").hover(function(){$(this).find("strong").stop(!0,!0).animate({"margin-left":0,opacity:1},300)},function(){$(this).find("strong").stop(!0,!0).animate({"margin-left":320,opacity:0},300)}),$("#promo_banner.slidedown #bhld a strong").css("margin-top","-110px"),$("#promo_banner.slidedown #bhld a:not(#zg1)").hover(function(){$(this).find("strong").stop(!0,!0).animate({"margin-top":0,opacity:1},200)},function(){$(this).find("strong").stop(!0,!0).animate({"margin-top":-110,opacity:0},400)}),$("#promo_banner.slideup #bhld a strong").css("margin-top","110px"),$("#promo_banner.slideup #bhld a:not(#zg1)").hover(function(){$(this).find("strong").stop(!0,!0).animate({"margin-top":0,opacity:1},200)},function(){$(this).find("strong").stop(!0,!0).animate({"margin-top":110,opacity:0},400)}),$("#lightbox .closelink").click(function(){return $("#lb_overlay").fadeOut(function(){$(this).remove()}),!1})});var hRotator={timer:0,cache:{},id:0,curr:!1,stopped:!0,clicked:!1,time:0};function setCookie(t,e,s){var o=new Date;o.setTime(o.getTime()+24*s*60*60*1e3);var i="expires="+o.toUTCString();document.cookie=t+"="+e+"; "+i+"; path=/"}function getCookie(t){for(var e=t+"=",s=document.cookie.split(";"),o=0;o<s.length;o++){for(var i=s[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return""}function checkCookie(){var t=-(new Date).getTimezoneOffset()/60+5,e=getCookie("zoig[tzone]");""==e&&e==t||setCookie("zoig[tzone]",t,365)}hRotator.start2=function(t){$(t).bind("mouseout",hRotator.stop),hRotator.start.call(t)},hRotator.start=function(t){var e=$(this);hRotator.stop(),hRotator.curr=e,hRotator.id=e.attr("id"),hRotator.time=$.now(),hRotator.curr.css("background-position","0 0"),hRotator.playicon=$("small",e.parent()),hRotator.cache[hRotator.id]?img=hRotator.cache[hRotator.id]:(img=new Image,img.loaded=!1,hRotator.cache[hRotator.id]=img,img.vid=hRotator.id),hRotator.stopped=!1,img.loaded?hRotator.begin():(e.parent().append("<i></i>"),hRotator.loader=$("i",e.parent()),$(img).bind("load",hRotator.onLoad),img.src=e.attr("sprite"))},hRotator.stop=function(){hRotator.stopped=!0,hRotator.clicked=!1,clearTimeout(hRotator.timer),hRotator.curr&&(hRotator.curr.css({"background-image":""}),hRotator.loader&&(hRotator.loader.remove(),hRotator.loader=!1),hRotator.playicon&&hRotator.playicon.show()),hRotator.id=!1,hRotator.curr=!1,hRotator.loader=!1},hRotator.onTime=function(t){if(clearTimeout(hRotator.timer),hRotator.stopped)return hRotator.stop(),!0;++t>=sprite_size&&(t=0),pos=-180*t+"px 0px",hRotator.curr.css({"background-position":pos}),hRotator.timer=setTimeout("hRotator.onTime("+t+")",500)},hRotator.onLoad=function(t){if(this.loaded=!0,this.vid!=hRotator.id)return!0;hRotator.begin()},hRotator.begin=function(){hRotator.loader&&(hRotator.loader.remove(),hRotator.loader=!1),hRotator.playicon&&hRotator.playicon.hide(),sprite_size=img.width/180,hRotator.curr.css({"background-position":"0 0"}),hRotator.curr.css({"background-image":"url("+hRotator.curr.attr("sprite")+")"}),hRotator.onTime(-1)};