
if(navigator.appName == "Netscape"){

	var nArcadeInstalled=0;
	var szArcadeVersion="";
	var arcadeInstalled = 0;
	
	if ((navigator.userAgent.charAt(8)) >= ('3'))
	{ 
	  var i=0;
	  while (navigator.plugins[i])
	  {
	    if ((navigator.plugins[i].name) == 'RealArcade NS Plugin' || (navigator.plugins[i].name) == 'RealOne Arcade NS Plugin')
	    {
	      nArcadeInstalled=1;
	      szArcadeVersion=navigator.plugins[i].description;
	      break;
	    }
	    else
	    {
	      nArcadeInstalled=2;
	    }
	    i++;
	  }
	}
	
	if (nArcadeInstalled == 1)
	{
		arcadeInstalled = 1;
	  
	} 



}else{

	var arcadeInstalled = 0;
	
	var undefined;
	
	if ((navigator.userAgent.charAt(8)) >= ('3'))
	{
	  var nRNGCVersion = IERJCtl.RealArcadeVersion;
	  if ( undefined != nRNGCVersion )
	  {
	  	arcadeInstalled = 1;
	    
	  }
	}



}

var strRNGCDistCode = RNGCIEPLUG.RealArcadeDistCode;
var macMSG = "Sorry, the Skunk Studios RealArcade is not available for Macintosh.\n\nPlease visit our Downloads section for all the Skunk Studios Mac titles.";
var freeMSG = "Apologies, this free game offer is not available on Macintosh, since the Skunk Studios RealArcade only runs on Windows.\n\nSkunk Studios does love and support the Mac, though. You can find all of our original games in the Download section.";

function freegame(url) {
if (arcadeInstalled == 1){
  if (strRNGCDistCode != 'W4F0'){
    if (browser_mac()) { 
	  alert(freeMSG);
	}
	else
	{
    document.location=url;
	}
  }
  else
  {
  document.location=url;
  }
}
else
  {
  if (browser_mac()) { 
   alert(freeMSG);
  }
  else
  {
   document.location=url;
  }
  }
}

function dld(url) {
if (arcadeInstalled == 1){
  if (strRNGCDistCode != 'W4F0'){
    if (browser_mac()) { 
	  alert(macMSG);
	}
	else
	{
    document.location="http://switchboard.real.com/arcade/feeds.html?tps=skunk_&client=web&partner=1&action=download&gameid=" + url + "&gametype=download&dltype=rdxbundle";
	}
  }
  else
  {
  document.location="http://switchboard.real.com/arcade/download.html?file=games/demorgses/rgp/" + url + "_free.rgp";
  }
}
else
  {
  if (browser_mac()) { 
   alert(macMSG);
  }
  else
  {
   document.location="http://switchboard.real.com/arcade/feeds.html?tps=skunk_&client=web&partner=1&action=download&gameid=" + url + "&gametype=download&dltype=rdxbundle";
  }
  }
}

function oss(url,parameters) {
    var parameters = "scrollbars=auto,left=20,top=20,width=600,height=550,noresize";
	var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?action=screen_shots&tps=skunk_&gameid=' + url,'racshots',parameters);
}

var startdl = 0;

function ogp(url) {
var parameters = "scrollbars=auto,left=20,top=20,width=758,height=620";
var macprm = "scrollbars=auto,left=20,top=20,width=600,height=550,noresize";
if (arcadeInstalled == 1){
  if (strRNGCDistCode != 'W4F0'){
    if (browser_mac()) { 
	var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?action=screen_shots&tps=skunk_&gameid=' + url,'racgames',macprm);
	}
	else
	{
	//var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?tps=skunk_&client=web&partner=1&action=download&gameid=' + url + '&gametype=download&dltype=rdxbundle','racgames',parameters);
	var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?tps=skunk_&lang=EN&country=US&client=web&partner=1&src=&action=page&ptype=game&gameid=' + url + '&gametype=download','racgames',parameters);
	if (startdl == 0) {
	 var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?tps=skunk_&lang=EN&country=US&client=web&partner=1&src=&action=page&ptype=game&gameid=' + url + '&gametype=download','racgames',parameters);
	 document.location="http://switchboard.real.com/arcade/feeds.html?tps=skunk_&client=web&partner=1&action=download&gameid=" + url + "&gametype=download&dltype=rdxbundle";
	 startdl = 1;
	 }
	}
  }
  else
  {
  var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?tps=skunk_&lang=EN&country=US&client=web&partner=1&src=&action=page&ptype=game&gameid=' + url + '&gametype=download','racgames',parameters);
  }
}
else
  {
  if (browser_mac()) { 
   var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?action=screen_shots&tps=skunk_&gameid=' + url,'racgames',macprm);
  }
  else
  {
  var thewin = window.open('http://switchboard.real.com/arcade/feeds.html?tps=skunk_&lang=EN&country=US&client=web&partner=1&src=&action=page&ptype=game&gameid=' + url + '&gametype=download','racgames',parameters);
  }
  }
  thewin.focus();
}