AdGCopyright='Copyright(c) 2002-2010 Ad Gardener, Inc., eProof.com All Rights Reserved.';isSpring=1;AdGs=1;if (typeof AdG == 'undefined') { AdG = {}; function addEvent(obj, type, fn) { if (obj.addEventListener) { obj.addEventListener(type, fn, false); } else if (obj.attachEvent) { obj['e' + type + fn] = fn; obj[type + fn] = function() { obj['e' + type + fn](window.event); }; obj.attachEvent('on' + type, obj[type + fn]); } else { obj['on' + type] = obj['e' + type + fn]; } }; if (typeof AdG.Util == 'undefined') { AdG.Util = {}; AdG.Util.isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") !== -1) ? true : false; AdG.Util.isIE = (navigator.appVersion.indexOf("MSIE") !== -1 && AdG.Util.isOpera == false) ? true : false; AdG.Util.isNet = (navigator.userAgent.indexOf("Netscape") !== -1) ? true : false; AdG.Util.isGecko = (navigator.userAgent.indexOf("Gecko") !== -1) ? true : false; AdG.Util.isSafari = (navigator.userAgent.toLowerCase().indexOf("apple") !== -1) ? true : false; AdG.Util.ec = function(v) { if (typeof encodeURIComponent !== 'undefined') { return encodeURIComponent(v); } else { return escape(v); } }; AdG.Util.sc = function(cName, cValue, nDays, domain, path, secure) { if (nDays !== null) { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + 1000 * 60 * 60 * 24 * nDays); } var curCookie = cName + "=" + AdG.Util.ec(cValue) + ((expire) ? "; expires=" + expire.toGMTString() : "") + ((path) ? "; path=" + path : "; path=/") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; }; AdG.Util.rc = function(cName) { var lookFor = cName + "="; var myCookie = document.cookie; var myResult = null; if (myCookie.length > 0) { var offset = myCookie.indexOf(lookFor); if (offset != -1) { offset += lookFor.length; var end = myCookie.indexOf(";", offset); if (end == -1) { end = myCookie.length; } myResult = unescape(myCookie.substring(offset, end)); } } return myResult; }; } }
function AGGoogleCallBack() {
    $(document).ready(function() {
        DRAMiniInit();
        AGSE();
    }); 
}

AdGCopyright='SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: http://www.opensource.org/licenses/mit-license.php';if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
if(typeof AdG.Env=='undefined'){AdG.Env={};AdG.Env.jsVer='0.0';AdG.Env.fpv='';AdG.Env.unk='21';AdG.Env.fpvObj=deconcept.SWFObjectUtil.getPlayerVersion();if(AdG.Env.fpv['major']=='6'){AdG.Env.fpv=AdG.Env.fpvObj['major']+'.?.?';}else{AdG.Env.fpv=AdG.Env.fpvObj['major']+'.'+AdG.Env.fpvObj['minor']+'.'+AdG.Env.fpvObj['rev'];}if(AdG.Env.fpvObj['major']<=0){AdG.Env.unk='5';}if(AdG.Env.fpvObj['major']<=6){if(AdG.Env.fpvObj['major']==6&&AdG.Env.fpvObj['rev']>=65){}else{AdG.Env.unk='6';}}if(document.createElement){for(var i=0;i<=9;i=i+1){document.write('<scr'+'ipt language="Javascript1.'+i+'"><!--\n AdG.Env.jsVer = "1.'+i+'";\n// -->\n</scr'+'ipt>');}}AdG.Env.rightNow=new Date();AdG.Env.date1=new Date(AdG.Env.rightNow.getFullYear(),0,1,0,0,0,0);AdG.Env.temp=AdG.Env.date1.toGMTString();AdG.Env.date2=new Date(AdG.Env.temp.substring(0,AdG.Env.temp.lastIndexOf(" ")-1));AdG.Env.hrsDiffStdTime=(AdG.Env.date1-AdG.Env.date2)/(1000*60*60);AdG.Env.qStr=AdG.Util.ec('unk='+AdG.Env.unk+'&fpv='+AdG.Env.fpv+'&js='+AdG.Env.jsVer+'&tz='+AdG.Util.ec(AdG.Env.hrsDiffStdTime)+'&sWH='+screen.width+'x'+screen.height+'&sCD='+screen.colorDepth);} 
if(typeof AdG !== 'undefined' && typeof AdG.Env !== 'undefined' && typeof AdG.Util !== 'undefined' && typeof AdG.Env.qStr !== 'undefined'){document.write('<scr'+'ipt type="text/javascript" src="http://harvest.adgardener.com/gather.aspx?s='+AdGs+'&qStr='+AdG.Env.qStr+'&rfr='+AdG.Util.ec(document.referrer)+'&host='+AdG.Util.ec(window.location.href)+'&sc='+Math.random()+'"></scr'+'ipt>');}AGVeps='1';AGVtrackAll = true; AGVhrefType = null; AGVhrefLink = ''; AGVisSubmit = false; var AGep = { parseOnClick: function(c) { if (c !== null) { var H = c.toString(); var J = H.indexOf("{") + 1; var I = H.indexOf("}"); return H.substring(J, I); } else { return ''; } }, getClick: function(g) { var keyCode = null; var e = null; var G = null; var B = null; keyCode = window.event ? event.keyCode : g.which; e = window.event ? event.button : g.which; G = window.event ? event.srcElement : g.target; if (G !== null && G !== '') { var j = G.tagName == "IMG" ? true : false; var k = j ? G.src : 'x'; var d = false; var t = true; try { if (G.tagName !== "INPUT") { if (!G.href || G.tagName == "IMG") { G = G.parentElement ? G.parentElement : G.parentNode; if (!G.href || G.tagName == "IMG") { G = G.parentElement ? G.parentElement : G.parentNode; if (!G.href || G.tagName == "IMG") { G = G.parentElement ? G.parentElement : G.parentNode; } } } } } catch (f) { t = false; } if (t) { var w = null; var v = null; var A = null; try { w = G.href; } catch (f) { t = false; } try { v = G.id; } catch (f) { v = ''; } try { A = G.name; } catch (f) { A = ''; } try { AGVhrefOnClick = AGep.parseOnClick(G.onclick); } catch (f) { AGVhrefOnClick = ''; } } if (t) { if (!G.form) { if (e == 1) { AGVhrefType = 'l'; } if (AdG.Util.isNet) { if (e == 3) { AGVhrefType = 'r'; } } else { if (e == 2) { AGVhrefType = 'r'; } } } else { if (AGVisSubmit) { AGVhrefType = 'f'; w = G.form.action; v = G.form.id; A = G.form.name; var length = G.form.elements.length; for (i = 0; i < length; i = i + 1) { if (G.form.elements[i].type.toLowerCase() == 'submit') { B = G.form.elements[i].value; } } AGVisSubmit = false; d = true } } if (AGVhrefType !== null && AGVhrefType !== 'f') { if (G.href) { if (G.tagName == "A" || G.tagName == "INPUT" || G.tagName == "AREA") { d = true; if (j) { B = k; AGVhrefType = 'i'; } if (G.tagName == "AREA") { var l = AdG.Util.isNet ? G.parentNode : G.parentElement; B = l.name; AGVhrefType = 'a'; } } } } if (G.tagName == 'A') { if (typeof G.innerHTML == 'string' || typeof G.innerHTML == 'object') { var N = G.innerHTML; B = N.replace(/(<([^>]+)>)/ig, ''); } if (B === null || B === '') { if (typeof G.childNodes[0].nodeValue == 'string' || typeof G.childNodes[0].nodeValue == 'object') { var F = G.childNodes.length; for (var z = 0; z < F; z = z + 1) { if (G.childNodes[z].nodeValue !== null) { B = B + G.childNodes[z].nodeValue; } } } } } if (d) { if (B === null) { B = ''; } var K = B; if ((/\<img/.test(K.toLowerCase()) === true)) { K = K.replace(/</, '&lt;'); B = K.replace(/>/, '&gt;'); } AGVhrefLink = w; if (AGVtrackAll) { AGep.capture(B, w, v, A, AGVhrefType, AGVhrefOnClick, G); } else { var L = window.location.host.toLowerCase(); var M = w.toLowerCase(); if (M.indexOf(L) < 0) { AGep.capture(B, w, v, A, AGVhrefType, AGVhrefOnClick, G); } } } } } }, capture: function(C, n, m, o, D, r, G) { var O = document.location.protocol + '//keisu.eproof.com/?s=' + AGVeps + '&t=' + escape(C) + '&l=' + escape(n) + '&id=' + escape(m) + '&n=' + escape(o) + '&ty=' + escape(D) + '&oc=' + escape(r) + '&pp=' + escape(window.location) + '&sc=' + Math.random(); AGep.imgLoad(O); }, imgLoad: function(O) { AGVimgep = new Image(); AGVimgep.onload = function() { AdG.Util.sc('etoofast', 'del', -1); }; AGVimgep.src = O + '&scc=' + Math.random(); if (AdG.Util.rc('etoofast') == null) { AdG.Util.sc('etoofast', O, 90); } }, imgCatchUp: function() { var O = AdG.Util.rc('etoofast'); if (O !== null) { AGep.imgLoad(O); } } }; AGep.imgCatchUp(); addEvent(document, 'keyup', AGep.getClick); addEvent(document, 'mousedown', AGep.getClick);
DRAMiniScTop=0;DRAMiniScLeft=0;
function DRAMiniLS(p,obj)
{
	DRAMiniClick(obj);
    var s = document.createElement("script");
    s.type = "text/javascript";
    s.language = "javascript";
    var sc = '2010/02/09';
    if (jQuery.browser.opera) {
    	sc = Math.random();
	}        
    s.src = 'http://mini.drudgereportarchives.com/'+p+'.js?sc='+sc;
    document.getElementsByTagName("head")[0].appendChild(s);
}
function DRAMiniInit(){
    var isBrowserOkay = false;
    if (jQuery.browser.msie && parseInt(jQuery.browser.version) >= 7) {
        isBrowserOkay = true;
    }
    if (jQuery.browser.safari && parseInt(jQuery.browser.version) >= 4) {
        isBrowserOkay = true;
    };
    if (jQuery.browser.opera && parseInt(jQuery.browser.version) >= 9) {
        isBrowserOkay = true;
    }
    if (jQuery.browser.mozilla && parseInt(jQuery.browser.version) >= 1) {
        isBrowserOkay = true;
    }
    if (isBrowserOkay == false) {
    	$("#draMini").html('Drudge Report Archives Mini not supported on this browser version.');
    	return;
    }
    
	var s = [];
	s.push("<style type=\"text\/css\">");
	if (jQuery.browser.safari || jQuery.browser.mozilla) {s.push("#draMini {margin-bottom:10px;}");}	
	s.push("#draMiniDivider{border-bottom:1px solid black}#draMiniTopBar{height:57px}#draMiniBox{width:99%;max-width:350px;border:1px solid black}#draMiniTitle{margin-top:7px;margin-bottom:3px;text-align:center;font-family:Arial;color:black;font-size:10pt;font-weight:bold}#draMiniMenu{padding-bottom:3px;text-align:center;white-space:nowrap}#draMiniMenu,#draMiniMenu a{margin-left:4px;margin-right:4px;font-family:Arial;color:black;font-size:9pt}#draMiniContentBox{overflow:auto;width:100%;height:215px;background-color:#fff;}#draMiniContent{padding:5px;font-family:Arial;color:black;font-size:9pt}#draMiniContent a{text-decoration:none;font-family:Arial;color:black;font-size:10pt;font-weight:normal}#draMiniBTYBBox{padding:0px;border-top:1px solid black}#draMiniBTYBBox div,#draMiniBTYBBox td{font-family:Arial;color:black;font-weight:normal;font-size:8pt;padding:5px;}#draMiniBTYB{padding:10px;font-size:11pt}.DRAMiniH{margin-bottom:10px;}#DRAMiniBTN{color:#555;font:bold 10pt Arial;background-color:#e5e5e5;border:1px solid;border-color: #666 #999 #666 #999;width:15px;margin:0px;padding:0px;}");
	if (jQuery.browser.msie) {s.push("#draMiniBox{width:85%;}");}
	s.push("</style>");
	s.push("\r<div id=\"draMiniBox\">\r<div id=\"draMiniTopBar\">\r<div id=\"draMiniTitle\">\rDRUDGE REPORT <a href=\"http://www.drudgereportarchives.com/\" style=\"color:black;\">ARCHIVES</a>&sup1;\r</div>\r<div id=\"draMiniMenu\">\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'pictures\', this);\" class=\"DRAMiniLink\">Pictures</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'popular\', this);\" class=\"DRAMiniLink\" id=\"DRAMiniDL\">Popular</a>\r<div style=\"margin-top:3px;\">\rHeadlines\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H1\', this);\" class=\"DRAMiniLink\">1</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H2\', this);\" class=\"DRAMiniLink\">2</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H3\', this);\" class=\"DRAMiniLink\">3</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H4\', this);\" class=\"DRAMiniLink\">4</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H5\', this);\" class=\"DRAMiniLink\">5</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H6\', this);\" class=\"DRAMiniLink\">6</a>\r<a href=\"javascript://\" onClick=\"DRAMiniLS(\'H7\', this);\" class=\"DRAMiniLink\">7</a>\rDays Ago\r</div>\r</div>\r</div>\r<div id=\"draMiniDivider\"></div>\r<div id=\"draMiniContentBox\">\r<div id=\"draMiniContent\"></div>\r<div style=\"font-size:8pt;font-family:Arial;margin-top:5px;padding:5px;font-weight:normal;\">&sup1; Matt Drudge does not own, operate or maintain the DrudgeReportArchives.com. He is not responsible for it in anyway.</div>\r</div>\r<div id=\"draMiniBTYBBox\">\r<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r<tr>\r<td>\r<a href=\"http://www.drudgereportarchives.com/dsp/specialReports.htm\" style=\"margin-bottom:4px;\">Special Reports</a><br />\r<a href=\"http://www.drudgereportarchives.com/dsp/timeline_html.htm\">Timeline</a>\r</td>\r<td nowrap=\"nowrap\" valign=\"middle\" align=\"center\">\r<form action=\"http://www.drudgereportArchives.com/dsp/search.htm\" method=\"GET\" style=\"margin:0px;padding:0px;\">\r<input type=\"text\" name=\"searchFor\" style=\"width:80%;color:#999;\" value=\"Search Archives\" onfocus=\"if(this.value==\'Search Archives\'){this.value=\'\'};\">\r<input type=\"submit\" value=\"&gt;\" id=\"DRAMiniBTN\" />\r</form>\r</td>\r<td valign=\"middle\" align=\"center\" nowrap=\"nowrap\" style=\"width:9px;\">\r<a href=\"javascript://\" onclick=\"self.scrollTo(DRAMiniScLeft,DRAMiniScTop);$(\'#draMiniContentBox\').css({\'height\':\'215\'});$(\'#draMiniContentBox\').css({\'overflow\':\'auto\'});\" style=\"text-decoration:none;\">&and;</a>\r<br />\r<a href=\"javascript://\" onclick=\"DRAMiniScTop=parseInt($(document).scrollTop());DRAMiniScLeft=parseInt($(document).scrollLeft());$(\'#draMiniContentBox\').css({\'height\':\'auto\'});$(\'#draMiniContentBox\').css({\'overflow\':\'visible\'});\" style=\"text-decoration:none;\">&or;</a>\r</td>\r</tr>\r</table>\r</div>\r</div>\r");
	
	if (jQuery.browser.safari || jQuery.browser.mozilla) {$("#draMini").html(s.join(""));} else {$("#draMini").animate({"height":"300px"}).html(s.join(""));};
	DRAMiniLS('popular', $("#DRAMiniDL"));
	
    $(window).resize(function() { $("#draMini").css({ 'width': '98%' }) });
}
function DRAMiniClick(obj) {
	$("#draMiniContent").html("Loading...");
	$('.DRAMiniLink').css('text-decoration','underline');
	$(obj).css({'text-decoration':'none'});
}
function DRAMiniIS(o) {var f=0;};

UpdateDrudgeTopHeadlinesLastModified = new Date(document.lastModified).toUTCString().replace('UTC', 'GMT');
UpdateDrudgeTopHeadlinesEnabled = true;

function UpdateDrudgeTopHeadlines() {
    if (UpdateDrudgeTopHeadlinesEnabled == false) {
        return;
    }
    var isBrowserOkay = false;
    if (jQuery.browser.msie && parseInt(jQuery.browser.version) >= 7) {
        isBrowserOkay = true;
    }
    if (jQuery.browser.safari && parseInt(jQuery.browser.version) >= 4) {
        isBrowserOkay = true;
    }
    if (jQuery.browser.opera && parseFloat(jQuery.browser.version) >= 9.8) {
        isBrowserOkay = true;
    }
    if (jQuery.browser.mozilla && parseInt(jQuery.browser.version) >= 1) {
        isBrowserOkay = true;
    }

    var headURL = window.location.protocol + "//" + window.location.host + "/head.htm";
    $.ajax({
        type: "GET",
        url: headURL,
        dataType: "html",
        beforeSend: function(xmlHttpRequest) {
            xmlHttpRequest.setRequestHeader("If-Modified-Since", UpdateDrudgeTopHeadlinesLastModified);
        },
        complete: function(xmlHttpRequest, status) {
            if (xmlHttpRequest.status == 200) {
                UpdateDrudgeTopHeadlinesLastModified = xmlHttpRequest.getResponseHeader("Last-Modified");

                $("#drudgeTopHeadlines").fadeOut(500);

                if ($.browser.msie) {
                    var innerContainer = document.createElement("div");
                    innerContainer.innerHTML = xmlHttpRequest.responseText;
                    document.getElementById("drudgeTopHeadlines").innerHTML = "";
                    document.getElementById("drudgeTopHeadlines").appendChild(innerContainer);
                } else {
                    $("#drudgeTopHeadlines").html(xmlHttpRequest.responseText);
                }

                $("#drudgeTopHeadlines").fadeIn(500);
                if (isBrowserOkay) {
                    $("#drudgeTopHeadlines").effect("highlight", { color: "red", mode: "show" }, 1500);
                }
            }
            if (xmlHttpRequest.status == 403) {
                UpdateDrudgeTopHeadlinesEnabled = false;
            }
        }
    });
}
function AGSE_sc(c_name, value, expiredays) {
    var exdate = new Date();
    exdate.setDate(exdate.getDate() + expiredays);
    document.cookie = c_name + "=" + escape(value) +
	((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
}

function AGSE_gc(c_name) {
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=");
        if (c_start != -1) {
            c_start = c_start + c_name.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) c_end = document.cookie.length;
            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}

AGSEResults = new Array();

function AGSE() {
    var isBrowserOkay = false;
    if (jQuery.browser.msie && parseInt(jQuery.browser.version) >= 7) {isBrowserOkay = true;}
    if (jQuery.browser.safari && parseInt(jQuery.browser.version) >= 4) { isBrowserOkay = true; }
    if (jQuery.browser.opera && parseInt(jQuery.browser.version) >= 9) { isBrowserOkay = true; }
    if (jQuery.browser.mozilla && parseInt(jQuery.browser.version) >= 1) { isBrowserOkay = true; }
    if (isBrowserOkay == false) {return;}

    var stored = AGSE_gc('AGSE');
    if (stored !== '') {
        $('<img />').attr('src', 'http://harvest.adgardener.com/SE.aspx?AGSE=' + stored + '&sc=' + Math.random()).load(function() {
            AGSE_sc('AGSE', '', 5);
        });
    }
    AGSEResults['88888888-8888-8888-8888-888888888888'] = 0;

    AGSEContainers = $('div.AGContainer');
    $.each(AGSEContainers, function() {
        AGSEResults[this.id] = 0;
    });

    window.setInterval(function() {
        $.each(AGSEContainers, function() {
            AGSECalculate($(this), this.id);
        });
        AGSEResults['88888888-8888-8888-8888-888888888888'] = parseInt(AGSEResults['88888888-8888-8888-8888-888888888888']) + 1;
    }, 1000);


    $(window).unload(function() {
        for (var i in AGSEResults) {
            AGSE_ac('AGSE', i + '|' + AGSEResults[i]);
        }
    });
}

function AGSECalculate(box, id) {
    var viewportHeight = parseInt($(window).height());
    var pageScrollTop = parseInt($(document).scrollTop());

    var vwTop = pageScrollTop;
    var vwBottom = pageScrollTop + viewportHeight;

    if (typeof box.position() == 'undefined') return;
    var initPosTop = box.position().top;

    var boxTop = parseInt(initPosTop - pageScrollTop);
    var boxHeight = parseInt(box.attr('offsetHeight') + (parseInt(box.css('marginTop')) || 0) + (parseInt(box.css('marginBottom')) || 0));
    var boxBottom = boxTop + boxHeight;
    var boxHalf = (boxHeight / 2);
    var boxCenter = boxTop + boxHalf;

    if (boxCenter >= (0 + boxHalf) && boxCenter <= (viewportHeight - boxHalf)) {
        AGSEResults[id] = parseInt(AGSEResults[id]) + 1;
    }
}

function AGSE_ac(name, value) {
    if (!AGSE_gc(name)) {
        AGSE_sc(name, value);
        return;
    }
    AGSE_sc(name, AGSE_gc(name) + "^" + value, 5);
};







