var FSR = {
    version: '7.0.0',
    date: '08/16/2011',
    files: 'http://www.nlm.nih.gov/medlineplus/jslib/foresee/',
    cid: 'WyHFr2m0PoaGCBUsi00QIQ==',
    sid: 'MEDLINEPLUS_MOBILE_EN',
    url: 'survey.foreseeresults.com/survey/display',
    sp: 30,
    lf: 2,
    repeatdays: 0,
    invite: {
        type: 'invite_page',
        page: 'invite.html'
    },
    site: {
        path: '/',
        domain: 'm.medlineplus.gov'
    }
};
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
FSR.Browser=function(){try{var a="applewebkit/[0-9]+|blackberry[0-9]+/[0-9]+|playstation portable[)]?; [0-9]+|opera mini/[0-9]+|iemobile [0-9]+|up.browser/[0-9]+";
return escape(new String(navigator.userAgent.match(new RegExp("safari/[0-9]+","i"))||navigator.userAgent.match(new RegExp(a,"i"))||navigator.userAgent.match(new RegExp("opera [0-9]+","i"))||"unknown").replace(/blackberry[0-9]+/i,"BlackBerry").replace(/playstation portable[)]?;/i,"PSP").replace("/"," "))
}catch(b){}};FSR.Device=function(){try{var a="ipad|iphone|ipod|itouch|blackberry|nokia|android|windows ce|hp ipaq|palm|playstation portable";
return escape(navigator.userAgent.match(new RegExp(a,"i"))||navigator.userAgent.match(new RegExp("ppc","i"))||"other")
}catch(b){}};FSR.Screen=function(){try{return screen.width+"x"+screen.height}catch(a){}};FSR.resetCookie=function(){FSR.setCookie("fsr.lc",0);
FSR.deleteCookie("fsr.i");FSR.deleteCookie("fsr.rd");window.history.go(0)};FSR.setCookie=function(b,d,a,f,c,e){document.cookie=b+"="+escape(d)+((a)?"; expires="+FSR.cookieDuration(a):"")+((f)?"; path="+f:"; path="+FSR.site.path)+((c)?"; domain="+c:"; domain="+FSR.site.domain)+((e)?"; secure":"")
};FSR.deleteCookie=function(a,c,b){if(this.getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}};FSR.getCookie=function(d){var b=d+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+f;
if(document.cookie.substring(e,c)==b){return FSR.getCookieVal(c)}e=document.cookie.indexOf(" ",e)+1;
if(e==0){break}}return null};FSR.cookieDuration=function(b){var a=new Date();a.setTime(a.getTime()+b*24*60*60*1000);
return a.toGMTString()};FSR.getCookieVal=function(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length
}return unescape(document.cookie.substring(b,a))};FSR.getParameter=function(b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var a="[\\?&]"+b+"=([^&#]*)";var d=new RegExp(a);var c=d.exec(window.location.href);if(c==null){return""
}else{return c[1]}};FSR.popSurvey=function(){FSR.setCookie("fsr.i",1);FSR.setCookie("fsr.rd",1,FSR.repeatdays);
var a=location.protocol+"//"+FSR.url+"?cid="+FSR.cid+"&sid="+FSR.sid+"&cpp[device]="+FSR.Device()+"&cpp[browser]="+FSR.Browser()+"&cpp[screen]="+FSR.Screen()+"&cpp[url]="+escape(window.location.href);
var b=window.open(a,"popup")};FSR.random=function(b,a){return(Math.random()*(a-b))+b};FSR.show=function(){switch(FSR.invite.type){case"dynamic_link":FSR.showLink();
break;case"invite_page":FSR.setCookie("fsr.i",1);FSR.setCookie("fsr.rd",1,FSR.repeatdays);FSR.showInvite();
break;default:return}};FSR.showInvite=function(){var a=FSR.files+FSR.invite.page+"?cid="+FSR.cid+"&sid="+FSR.sid+"&cpp[device]="+FSR.Device()+"&cpp[browser]="+FSR.Browser()+"&cpp[screen]="+FSR.Screen()+"&cpp[url]="+escape(window.location.href);
window.location.href=a};FSR.showLink=function(){var a=document.getElementById(FSR.invite.id);switch(FSR.invite.show){case"display":a.style.display="block";
a.style.display="inline-block";break;case"visibility":a.style.visibility="visible";break;default:return
}};FSR.onload=function(){if(FSR.invite.type==="static_link"){return}if(FSR.Device().match(new RegExp("blackberry","i"))&&!FSR.Browser().match(new RegExp("safari","i"))){return
}if(FSR.getCookie("fsr.rd")){return}var b=parseInt(FSR.getCookie("fsr.lc"),10)||0;b=b+1;FSR.setCookie("fsr.lc",b);
if(b<FSR.lf){return}if(FSR.invite.type==="dynamic_link"&&FSR.getCookie("fsr.i")){FSR.showLink();return
}var a=FSR.random(0,100);if(a>0&&a<=FSR.sp){FSR.show();return}};(function(){var a=window.onload;if(typeof window.onload!="function"){window.onload=FSR.onload
}else{window.onload=function(){if(a){a()}FSR.onload()}}})();
