url=document.location;
title=document.title;

function go(url){
url = "http://" + url;
document.location = url;
}

function FlashInstalled(){
result = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
{result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;}
else if (document.all && (navigator.appVersion.indexOf("Mac")==-1)){
// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');}
return result;
}

function FlashWrite(url,width,height){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
document.write('  WIDTH=' + width + ' HEIGHT=' + height + '>');
document.write(' <PARAM NAME=movie VALUE="' + url + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#20081C>  '); 
document.write(' <EMBED src="' + url + '" quality=high bgcolor=#20081C  ');
document.write(' swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED></OBJECT>');
}

function WizardsAutoCard (cardname)
{
windowName = "WotCWindow";
params = "toolbar=0, location=0, directories=0, status=0,   menubar=0, scrollbars=0, resizable=0, width=450, height=400";
win = window.open("http://www.wizards.com/magic/autocard.asp?name="+cardname,    windowName, params);
}

function lastmod()
{document.write( "Last Modified: " + document.lastModified + " BST" );}

function pop_img(a,b,c)
{
var x = "top=40,left=40,width="+b+",height="+c+",resizable=no,scrollbars=no";
var newwindow = window.open("", "", x);
var newtext = "<body topmargin='0' leftmargin='0'>" 
newtext += "<a href='javascript:self.close();'><img border='0'  alt='Click to close window' src=" + a + "></a>";
newtext += "</body>"
newwindow.document.write( newtext );
newwindow.focus;
}

function popup(fn){
window.open(fn, "", "top=40,left=40,width=480,height=320");
}