// Copyright 2008 Olshan Grundman Frome Rosenzweig & Wolosky LLP
// Design and code by Pinpoint Design, NYC

var browsers = ((navigator.appName == "Netscape") || (navigator.appName == "Opera"));

function isC() {
	if (navigator.userAgent.indexOf("Chrome")!= -1) return true; }

function isS() {
	if (navigator.userAgent.indexOf("Safari")!= -1) return true; }
	
// must detect Chrome first then Safari

function getRSS() { 

	if (isC()) { alert('Please log into Google Reader and enter "olshanlaw.com"\n in the Add Subscription search box.') }

	else if (isS()) { window.location.href = "news/rss/OlshanNews.xml" }

	else { if (browsers) { alert('Please use the RSS feed icon on your\nbrowser to subscribe.') }

		   else { window.location.href = "news/rss/OlshanNews.xml" }
		 }
	}
