<!--

function browser_check() 
{
	var b = navigator.appName;
	
	if ( b == "Netscape" ) this.b = "ns";
	
	else if ( b == "Microsoft Internet Explorer" ) this.b = "ie";
	
	else this.b = b;
	
	this.v = parseInt(navigator.appVersion );
	this.ns = ( this.b == "ns" && this.v >= 4 );
	this.ns4 = ( this.b == "ns" && this.v == 4 );
	this.ns5 = ( this.b == "ns" && this.v == 5 );
	this.ns6 = ( this.b == "ns" && this.v == 6 );
	this.ie = ( this.b == "ie" && this.v >= 4 );
	this.ie4 = ( navigator.userAgent.indexOf('MSIE 4') > 0 );
	this.ie5 = ( navigator.userAgent.indexOf('MSIE 5') > 0 );
	
	if (this.ie5) this.v = 5;
	
	this.min = (this.ns || this.ie);
}


// automatically create the "is" object
is = new browser_check();


// set the preloaded flag to false
var preloaded = false;

// call the function to preload the images
preload_img();


// this function preloads an image
function new_img( img ) 
{
	if ( document.images ) 
	{
		rslt = new Image();
		rslt.src = img;
		
		return rslt;
	}
}


// this function preloads the nav bar rollovers
function preload_img() 
{
	if ( document.images ) 
	{
		img_nav_mafia = new_img( "/global/header/pics/nav_mafia.gif" );
		img_nav_classics = new_img( "/global/header/pics/nav_classics.gif" );
		img_nav_underground = new_img( "/global/header/pics/nav_underground.gif" );
		img_nav_junk = new_img( "/global/header/pics/nav_junk.gif" );
		img_nav_login = new_img( "/global/header/pics/nav_login.gif" );
		
		preloaded = true;
	}
}


function change_img() 
{
	// make sure there won't be any errors ...
	if ( document.images && ( preloaded == true )) 
	{
		for ( var i = 0; i < change_img.arguments.length; i += 2) 
		{
				document[change_img.arguments[i]].src = change_img.arguments[i + 1];
				
				document[change_img.arguments[i]].usemap = change_img.arguments[i + 1];
		}
	}
}


function email_reminder(seriesid, episodeid)
{
	window.open("/series/emailreminder.php?seriesid=" + seriesid + "&episodeid=" + episodeid,"emailreminder","WIDTH=313,HEIGHT=322,menubar=no,location=no,alwaysRaised=yes,resizable=no,scrollbars=no");
	self.name = "mainromp";
}

function profile(username)
{
	window.open("/underground/profiles/profile.php?user=" + username,"profile","WIDTH=495,HEIGHT=460,menubar=no,location=no,alwaysRaised=yes,resizable=no,scrollbars=yes");
	self.name = "mainromp";
}

function do_nothing()
{
	
}

	
// -->

