var supersleight=function(){var root=false;var applyPositioning=true;var shim="/images/blank.gif";var shim_pattern=/blank\.gif$/i;var fnLoadPngs=function(){if(root){root=document.getElementById(root)}else{root=document}for(var i=root.all.length-1,obj=null;(obj=root.all[i]);i--){if(obj.currentStyle.backgroundImage.match(/\.png/i)!==null){bg_fnFixPng(obj)}if(obj.tagName=="IMG"&&obj.src.match(/\.png$/i)!==null){el_fnFixPng(obj)}if(applyPositioning&&(obj.tagName=="A"||obj.tagName=="INPUT")&&obj.style.position===""){obj.style.position="relative"}}};var bg_fnFixPng=function(obj){var mode="scale";var bg=obj.currentStyle.backgroundImage;var src=bg.substring(5,bg.length-2);if(obj.currentStyle.backgroundRepeat=="no-repeat"){mode="crop"}obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='"+mode+"')";obj.style.backgroundImage="url("+shim+")"};var el_fnFixPng=function(img){var src=img.src;img.style.width=img.width+"px";img.style.height=img.height+"px";img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')";img.src=shim};var addLoadEvent=function(func){var oldonload=window.onload;if(typeof window.onload!="function"){window.onload=func}else{window.onload=function(){if(oldonload){oldonload()}func()}}};return{init:function(){addLoadEvent(fnLoadPngs)},limitTo:function(el){root=el},run:function(){fnLoadPngs()}}}();if($.browser.msie&&$.browser.version<=6){supersleight.init()};
$(function(){var firstPopShotEl=$("#recentShot");var firstPopShotElHeight=firstPopShotEl.innerHeight();firstPopShotEl.css("margin-top","-"+(firstPopShotElHeight)+"px");var linkToHover=firstPopShotEl.find(".title");$(".recent_shot_img").hover(function hoverIn(){firstPopShotEl.addClass("hovered")},function hoverOut(){firstPopShotEl.removeClass("hovered")})});
$(function(){$("form.subscribe_form input.simpl_btn").click(function(){function showMsg(msg,status){var msgContElem=$(".mail_list_section p.result_msg_cont");msgContElem.find(".msg").html(msg);msgContElem.removeClass("loading").removeClass("ok").removeClass("error").addClass(status).show()}var email=$.trim($("form.subscribe_form input.email-field").val());if(!email||email=="Enter e-mail address"){showMsg("Please enter your email address.","error");return false}showMsg("Subscribing...","loading");$.ajax({type:"POST",url:"/Articles/AjaxHandler.aspx",dataType:"json",data:{action:"join_email_list",txtEmail:email},success:function(resp){showMsg(resp.message,resp.isSuccess?"ok":"error")},error:function(){showMsg("An unknown error occurred. Please try again later. We apologize for the inconvenience.","error")}});return false})});
$(document).ready(function(){var hdnEmail=$("#hdnSexIsEmail");var href;if(hdnEmail.parents().is("table.contact-information")){href='Have questions about Sexis, write to <a href="mailto:'+EF.Config.CompanyInfo.companyEmails.sexIs+'">'+EF.Config.CompanyInfo.companyEmails.sexIs+"</a>"}else{href='Have questions, write to <a href="mailto:'+EF.Config.CompanyInfo.companyEmails.sexIs+'">'+EF.Config.CompanyInfo.companyEmails.sexIs+"</a>"}hdnEmail.before(href).remove()});
