
function isWin () { return (navigator.appVersion.indexOf ("Win") != -1); }

function isMac () { return (navigator.appVersion.indexOf ("Mac") != -1); }

function isIE () { return (navigator.appName.indexOf ("Explorer") != -1); }

function isNS () { return (navigator.appName.indexOf ("Netscape") != -1); }

function isWinIE () { return (isWin () && isIE ()); }

function isWinNS () { return (isWin () && isNS ()); }

function isMacIE () { return (isMac () && isIE ()); }

function isMacNS () { return (isMac () && isNS ()); }

function onRss(){
	//alert(navigator.userAgent);
	//==== for Macintosh
	 if(navigator.userAgent.indexOf('Opera') != -1) {
		 location.href = "http://www.nissan-motorsports.com/ENN/rss.rdf";
		 
	 } else if(navigator.userAgent.indexOf('WebKit') != -1) {
		//document.write('<a href="feed://www.nissan-motorsports.com/JPN/rss.rdf">');
		if(navigator.userAgent.indexOf('Chrome') != -1) {
			location.href = "http://www.nissan-motorsports.com/ENN/rss.rdf";
		}
		else
		{
			location.href = "feed://www.nissan-motorsports.com/ENN/rss.rdf";
		}
	}
	else if(navigator.userAgent.indexOf('Gecko') != -1) {
		if(isMac()){ 
			location.href = "http://www.nissan-motorsports.com/ENN/rss.rdf";
		}
		else
		{
			location.href = "/ENN/rssref.html";
		}
	}
	//==== for Windows
	else {
		if(navigator.appName.indexOf ("Explorer") != -1) {
			//document.write('<a href="http://www.nissan-motorsports.com/JPN/rss.rdf">');
			//document.close();
			location.href = "http://www.nissan-motorsports.com/ENN/rss.rdf";
		}
		else{
			//document.write('<a href="feed://www.nissan-motorsports.com/JPN/rss.rdf">');
			//document.close();
			//alert("");
			location.href = "feed://www.nissan-motorsports.com/ENN/rss.rdf";
		}
	}

}
