function $(){var A=[];for(var C=0;C<arguments.length;C++){var B=arguments[C];if(typeof B=="string"){B=document.getElementById(B);}if(arguments.length==1){return B;}A.push(B);}return A;}function getCookie(C){var A=C+"=";var B=document.cookie.indexOf(A);if(B==-1){return null;}var E=document.cookie.indexOf(";",B+A.length);if(E==-1){E=document.cookie.length;}return unescape(document.cookie.substring(B+A.length,E));}function navigate(A){var B=window.open(A,"navigate","");B.focus();}function bio(B){var A=500;var C=375;var E=window.open("/bio.php?author_name="+B,"bio","width="+A+", height="+C+", left="+(screen.width-A)/2+", top="+(screen.height-C)/2+",toolbar=no,location=no,status=0,menubar=0,scrollbars=yes,resizable=no");E.focus();}var share_link=window.location.href;var share_title=document.title;function show_share(B,C){var A=$("protector");A.style.display="block";A.style.width=D.getDocumentWidth()+"px";A.style.height=D.getDocumentHeight()+"px";var E=$("spu");E.style.display="block";E.style.left=Math.round((D.getViewportWidth()-E.offsetWidth)/2)+D.getDocumentScrollLeft()+"px";E.style.top=Math.round((D.getViewportHeight()-E.offsetHeight)/2)+D.getDocumentScrollTop()+"px";$("spu_im_message").value=B;share_link=B;share_title=C;if($("advertisement300_hidden")&&$("advertisement300_hidden")){$("advertisement300").style.display="none";$("advertisement300_hidden").style.display="block";}}window.share_doanloaded=false;function share(C,G){if(window.share_doanloaded){show_share(C,G);}else{var E=function(I){if(I.responseText!==undefined){var H=document.createElement("div");document.body.appendChild(H);H.innerHTML=I.responseText;YAHOO.util.Event.onDOMReady(function(){window.spu_htmlLoaded=true;spu_init();show_share(C,G);});}};var A=function(H){if(H.responseText!==undefined){alert("please check your internet connection");}};var F={success:E,failure:A,argument:{}};var B=YAHOO.util.Connect.asyncRequest("GET","/include/sharing_popup.php?ajax=1",F);}}function share_hide(){var A=$("protector");A.style.display="none";var B=$("spu");B.style.display="none";if($("spu_emailsList").style.display=="none"){$("spu_emailsList").style.height="1px";}$("spu_emailsList").style.display="none";$("spu_emailsList").src="/loading.html";$("spu_logginMsg").innerHTML="";if($("advertisement300_hidden")&&$("advertisement300_hidden")){$("advertisement300_hidden").style.display="none";$("advertisement300").style.display="block";}}function send_mail(C,F){if(F=="spu"){F="spu_";}else{F="";}var B="include/sharing_mail.php";if(F){$(F+"email_page").value=share_link;$(F+"email_pagetitle").value=share_title;}var E="";var A="";for(i=0;i<C.elements.length;i++){E=E+A+escape(C.elements[i].name)+"="+escape(C.elements[i].value);A="&";}if($(F+"emailsList").style.display=="none"){$(F+"emailsList").style.height="1px";}$(F+"emailsList").style.display="block";$(F+"emailsList").src="/include/sharing_mail.php?"+E+"&randomnum="+aamPageId;var G=$(F+"emailsList");}function getTodayDate(){var C=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var B=new Date();return C[B.getDay()]+", "+A[B.getMonth()]+" "+B.getDate()+", "+B.getFullYear();}