function foundString(a,b){return b.toLowerCase().search(a.toLowerCase())!="-1"?true:false}function getTrackingID(a){return foundString(encodeURIComponent(String.fromCharCode(63)),encodeURIComponent(a))?String.fromCharCode(38)+"src="+strTrackingID:String.fromCharCode(63)+"src="+strTrackingID}
var strTrackingID="sethomepagelink",strCurrentPage=document.location.toString()+getTrackingID(document.location.toString()),strHomepage="Make this my homepage",strLink="#",strInstrTitle="Set this as my homepage | Reuters.com",strInstrH3="Set this page as my homepage",strInstrBlurb1="Want to set this Reuters.com page as your homepage?  It's easy!",strInstrNS='<ol style="margin-left: 0px; padding-left: 25px;">';strInstrNS+="<li>In your Firefox menu, click <em>Tools</em>, then <em>Options</em>.</li>";
strInstrNS+='<li>In the "Options" window, click <em>General</em>.</li>';strInstrNS+='<li>Under "Home Page", in the "Locations(s)" text field, paste this:<br /><input type="text" size="50" value="'+strCurrentPage+'" /></li>';strInstrNS+="<li>Click the <em>OK</em> button.</li>";strInstrNS+="<li>That's it!</li>";var strInstrNSM='<ol style="margin-left: 0px; padding-left: 25px;">';strInstrNSM+="<li>In your toolbar, click <em>Firefox</em>, then <em>Preferences</em>.</li>";strInstrNSM+="<li>In the pop-up window, click <em>General</em>.</li>";
strInstrNSM+='<li>Under "Home Page", in the "Locations(s)" text field, paste this:<br /><input type="text" size="50" value="'+strCurrentPage+'" /></li>';strInstrNSM+="<li>Close the window.</li>";strInstrNSM+="<li>That's it!</li>";var strInstrSaf='<ol style="margin-left: 0px; padding-left: 25px;">';strInstrSaf+="<li>In your toolbar, click <em>Safari</em>, then <em>Preferences</em>.</li>";strInstrSaf+="<li>In the pop-up window, click <em>General</em>.</li>";
strInstrSaf+='<li>In the "Home page:" text field, paste this:<br /><input type="text" size="50" value="'+strCurrentPage+'" /></li>';strInstrSaf+="<li>Close the window.</li>";strInstrSaf+="<li>That's it!</li>";var strInstrMoz='<ol style="margin-left: 0px; padding-left: 25px;">';strInstrMoz+="<li>In your Mozilla toolbar, click <em>Edit</em>, then <em>Preferences</em>.</li>";strInstrMoz+='<li>In the "Preferences" window, click <em>Navigator</em>.</li>';
strInstrMoz+='<li>Under "Home Page", in the "Location:" text field, paste this:<br /><input type="text" size="50" value="'+strCurrentPage+'" /></li>';strInstrMoz+="<li>Click the <em>OK</em> button.</li>";strInstrMoz+="<li>That's it!</li>";var strInstrIE='<script language="javascript"> function autosetHomepageIE() { homepagelink.style.behavior="url(#default#homepage)"; homepagelink.setHomePage(strCurrentPage); } var strCurrentPage="'+strCurrentPage+'"; <\/script>';strInstrIE+='<ol style="margin-left: 0px; padding-left: 25px;">';
strInstrIE+="<li>Click the button below to automatically set your homepage to:<br />";strInstrIE+='<input type="text" size="40" value="'+strCurrentPage+'" /> ';strInstrIE+='<input type="button" id="homepagelink" onclick="javascript:autosetHomepageIE();" value="'+strHomepage+'"></li>';strInstrIE+="<li>That's it!</li>";
var strInstrImg="/resources/images/sethomepage_",agt=navigator.userAgent.toLowerCase(),is_major=parseInt(navigator.appVersion),is_minor=parseFloat(navigator.appVersion),is_nav=agt.indexOf("mozilla")!=-1&&agt.indexOf("spoofer")==-1&&agt.indexOf("compatible")==-1&&agt.indexOf("opera")==-1&&agt.indexOf("webtv")==-1&&agt.indexOf("hotjava")==-1,is_nav2=is_nav&&is_major==2,is_nav3=is_nav&&is_major==3,is_nav4=is_nav&&is_major==4,is_nav4up=is_nav&&is_major>=4,is_navonly=is_nav&&(agt.indexOf(";nav")!=-1||
agt.indexOf("; nav")!=-1),is_nav6=is_nav&&is_major==5,is_nav6up=is_nav&&is_major>=5,is_gecko=agt.indexOf("gecko")!=-1,is_mac=agt.indexOf("mac")!=-1,is_safari=agt.indexOf("safari")!=-1,is_firefox=agt.indexOf("firefox")!=-1,is_ie=agt.indexOf("msie")!=-1&&agt.indexOf("opera")==-1,is_ie3=is_ie&&is_major<4,is_ie4=is_ie&&is_major==4&&agt.indexOf("msie 4")!=-1,is_ie4up=is_ie&&is_major>=4,is_ie5=is_ie&&is_major==4&&agt.indexOf("msie 5.0")!=-1,is_ie5_5=is_ie&&is_major==4&&agt.indexOf("msie 5.5")!=-1,is_ie5up=
is_ie&&!is_ie3&&!is_ie4,is_ie5_5up=is_ie&&!is_ie3&&!is_ie4&&!is_ie5,is_ie6=is_ie&&is_major==4&&agt.indexOf("msie 6.")!=-1,is_ie6up=is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5;
function setHomepageIE(){var a=window.open("","IEwindow","width=500,height=180,toolbar=no,status=yes,resizable=no,scrollbars=auto");a.document.write("<html><head><title>"+strInstrTitle+'</title><style type="text/css"><\!--li { margin-bottom: 5px; }--\></style><link href="/resources/css/rcom-main.css" type="text/css" rel="stylesheet" /></head><body>');a.document.write('<div style="width: 480px; margin: 0px 10px 10px 10px;"><img src="/resources/images/logo_reuters_media_us.gif" border="0" alt="Reuters" /><br /><div class="module"><div class="moduleHeaderInline"><h3>');
a.document.write(strInstrH3);a.document.write('</h3></div><div class="moduleBody">');a.document.write("<strong>"+strInstrBlurb1+"</strong>");a.document.write(strInstrIE);a.document.write("</div></div></div></body></html>");a.document.close()}
function setHomepageNS(){strInstrImg=is_safari?"/resources/images/sethomepage_safari.gif":is_firefox&&is_mac?"/resources/images/sethomepage_firefoxMac.gif":is_firefox?"/resources/images/sethomepage_firefox.gif":"/resources/images/sethomepage_mozilla.gif";var a=window.open("","nswindow","width=600,height=230,toolbar=no,status=no,resizable=no,scrollbars=auto");a.document.write("<html><head><title>"+strInstrTitle+'</title><style type="text/css"><\!--li { margin-bottom: 5px; }--\></style><link href="http://i.today.reuters.com/styles/master.css" type="text/css" rel="stylesheet" /></head><body>');
a.document.write('<div style="width: 580px; margin: 0px 10px 10px 10px;"><img src="/resources/images/logo_reuters_media_us.gif" border="0" alt="Reuters" /><br /><div class="module"><div class="moduleHeaderInline"><h3>');a.document.write(strInstrH3);a.document.write('</h3></div><div class="moduleBody">');a.document.write('<div class="inlineThumbnail"><img src="'+strInstrImg+'" border="0" alt="Thumbnail" /></div>');a.document.write("<strong>"+strInstrBlurb1+"</strong>");is_safari?a.document.write(strInstrSaf):
is_mac&&is_firefox?a.document.write(strInstrNSM):is_firefox?a.document.write(strInstrNS):a.document.write(strInstrMoz);a.document.write("</div></div></div></body></html>");a.document.close()}function writeHomepageLink(){document.write('<a id="homepagelink" href="'+strLink+'">'+strHomepage+"</a>")}is_ie&&!is_mac?is_ie5up&&(strLink="javascript:setHomepageIE();",writeHomepageLink()):is_nav&&is_nav6up&&(strLink="javascript:setHomepageNS();",writeHomepageLink());

