function vB_AJAX_analytics_query(){$.ajax({url:"ajax.php?do=analytics_query",data:SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=analytics_query",type:"POST",success:function(a,c,b){b.responseXML&&$("#stats").fadeTo(1E3,0,function(){try{$("#ana_day").html(b.responseXML.getElementsByTagName("today")[0].firstChild.nodeValue)}catch(a){$("#ana_day").html("Error")}try{$("#ana_week").html(b.responseXML.getElementsByTagName("week")[0].firstChild.nodeValue)}catch(c){$("#ana_week").html("Error")}try{$("#ana_month").html(b.responseXML.getElementsByTagName("month")[0].firstChild.nodeValue)}catch(d){$("#ana_month").html("Error")}$("#stats").fadeTo(1E3,
1)})}})}function double_check_confirm(){var a=$("#cb_confirm_forum").prop("checked");$("#vB_Editor_001_textarea").prop("disabled",!a);$("#subject").prop("disabled",!a);a&&$("#vB_Editor_001_textarea").prop("value").length==0&&($("#vB_Editor_001_textarea").prop("value"," "),$("#vB_Editor_001_textarea").prop("value",""));return!1}
function marketplace_fade(a){a=="wts"?($("#marketplace_container").css("opacity",0),$("#marketplace_container").slideDown(1E3),$("#marketplace_container").animate({opacity:1},{duration:1E3,queue:!1})):($("#marketplace_container").slideUp(1E3),$("#marketplace_container").animate({opacity:0},{duration:1E3,queue:!1}))}
function marketplace_advanced_filter(){$("#advanced").css("display")=="none"?($("#advanced").css("opacity",0),$("#advanced").slideDown(1E3),$("#advanced").animate({opacity:1},{duration:1E3,queue:!1}),$("#show_advanced").html("Hide Advanced Options")):($("#advanced").slideUp(1E3),$("#advanced").animate({opacity:0},{duration:1E3,queue:!1}),$("#show_advanced").html("Show Advanced Options"))}
function premium_fade(){$("#premium_dialog").css("opacity")==0?$("#premium_dialog").fadeTo(1E3,0.9):$("#premium_dialog").fadeTo(1E3,0,function(){$("#premium_dialog").css("display","none");window.focus()})}function did_you_know_slide_in(){$("#did_you_know").animate({left:0},2E3)}function did_you_know_slide_out(){$("#did_you_know").animate({left:-450},1E3)}
function banner_slide_in(){var a=["easeOutBack","easeOutBounce","easeOutElastic","easeInOutBack"],c=Math.floor(Math.random()*a.length),b=Math.floor(Math.random()*a.length);$("#ad_global_header").addClass("zoom");$("#ad_global_header").animate({top:2},500,a[c],function(){$("#yah").css("top",56-$("#yah").height()).animate({left:229-$("#yah").width()},1E3,a[b],function(){setTimeout(function(){var a="translateY(6px) rotate("+(Math.floor(Math.random()*2)?3:-3)+"deg)";$("#ad_global_header").css({"-webkit-transform":a,
"-moz-transform":a,"-ms-transform":a,"-o-transform":a,transform:a}).animate({top:0})},2E3)})})}
function twitter_rotate(){if($(".below_nav").css("width")!="225px"){dp_twitter_current++;dp_twitter_current>dp_twitter.length&&(dp_twitter_current=1);var a=typeof dp_dyk=="undefined"?dp_twitter[dp_twitter_current-1]:dp_dyk;$(".below_nav .dp_tweets").prepend('<div class="tweet_row" style="opacity:0">'+a+"</div>").css("top","-65px").animate({top:"-15px"},1E3);$(".below_nav .dp_tweets .tweet_row").size()>1&&$(".below_nav .dp_tweets .tweet_row:last").animate({opacity:0},750,"linear",function(){$(".below_nav .dp_tweets .tweet_row:last").remove()});
$(".below_nav .dp_tweets .tweet_row:first").animate({opacity:1},{duration:1E3,queue:!1});a=1E4;typeof dp_dyk!="undefined"&&(delete dp_dyk,a=2E4)}setTimeout("twitter_rotate()",a)}
function social_bar_expand_toggle(){if($(".below_nav").css("width")=="225px")$(".below_nav .expand").css("background-position","-9px 0"),$(".below_nav .dp_tweets").css("display","inline-block"),$(".below_nav").animate({width:$(".body_wrapper").css("width")},1E3,"linear",function(){$(".below_nav").css("width","")}),document.cookie="sbc=1;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/;domain=.digitalpoint.com";else{$(".below_nav .expand").css("background-position","0px 0");$(".below_nav").animate({width:225},
1E3,"linear",function(){$(".below_nav .dp_tweets").css("display","none")});var a=new Date;a.setTime(a.getTime()+31536E7);document.cookie="sbc=1;expires="+a.toUTCString()+";path=/;domain=.digitalpoint.com"}}
function show_email(a){var c="";for(i=0;i<a.length;i++){var b="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.-".indexOf(a[i]);c+=b>-1?"g3LodBhW1yFR@qrT68V5ZtEJQ9k-YMXuPHwpsnOCjGi0I4N.zSv7xDlbUfA2c_aemK"[b]:a[i]=="<"?"&lt;":a[i]==">"?"&gt;":a[i]}$(".email_crypt:last").html('<a href="mailto:'+c+'">'+c+"</a>")}
function disabled_account(){$(document).ready(function(){$("body").append('<div class="disabled_account"><h1>This account is disabled</h1><p />This account may not use Digital Point services or website.<br />Other users may not send messages to you.<p /><h2><a href="profile.php?'+SESSIONURL+'do=allownewsletter">Click here</a> to enable your account.</h2></div>');$(".disabled_account").animate({opacity:0.9},{duration:1E3,queue:!1})})}google_analytics_uacct="UA-51946-4";
google_analytics_domain_name=".digitalpoint.com";var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-51946-4"],["_setDomainName",".digitalpoint.com"],["_trackPageview"]);(function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src="http://www.google-analytics.com/ga.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)})();
$(document).ready(function(){document.getElementById("navbarsearch").focused=!1;document.getElementById("navbarsearch").onfocus=function(){if(document.getElementById("navbarsearch").focused!=!0)document.getElementById("extra_search_options").style.display="block",$("#extra_search_options").stop(!0).fadeTo(1E3,1);document.getElementById("navbarsearch").focused=!0};document.getElementById("navbarsearch").onblur=function(){setTimeout(function(){document.getElementById("navbarsearch").focused!=!0&&$("#extra_search_options").fadeTo(1E3,
0,function(){$("#extra_search_options").css("display","none")})},5E3);document.getElementById("navbarsearch").focused=!1};typeof dp_ads_section!="number"&&(dp_ads_section=0);$.ajaxSetup({cache:!0});$("body").append('<script tyle="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script><script type="text/javascript" src="http://forums.digitalpoint.com/twitter_feed.php/latest.js?f='+dp_ads_section+'"><\/script>');$(".below_nav .expand").click(function(){social_bar_expand_toggle()})});

