
///////////////////////////////////////////////////////////////////////////////////////////////
// Not Yet Active
///////////////////////////////////////////////////////////////////////////////////////////////
function NotYet() {
	alert('This feature is coming soon!');
	}
///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// Bookmark Routine
///////////////////////////////////////////////////////////////////////////////////////////////
//
function addbookmark()
{
bookmarkurl="http://www.topendgraphics.com/"
bookmarktitle="Top End Graphics - high quality motorsports art by DENNIS BROWNFIELD"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

///////////////////////////////////////////////////////////////////////////////////////////////
// Mouse-over Sound Junk
///////////////////////////////////////////////////////////////////////////////////////////////
// Implementation
//
//	  <a href="#" onMouseover="playSound()"  onMouseOut="stopSound()">
//	  		<img src="image.gif" width="100" height="100" border="0">
//	  </a>
//
//
var can_play = false;
var wavefilepath = '/audio/mnu_clik.wav';
var mimetype = 'audio/wav';
if (navigator.mimeTypes) {
    if (navigator.mimeTypes[mimetype] != null) {
        if (navigator.mimeTypes[mimetype].enabledPlugin != null) {
            can_play = true;
            document.write('<embed src="' + wavefilepath + '" hidden=true loop=false autostart=false>');
        }
    }
}
if (document.all) {
    can_play = true;
    document.write('<embed src="' + wavefilepath + '" hidden=true loop=false autostart=false>');
}

function playSound() {
   try
      {
	    if (document.embeds && can_play) {
	        if (navigator.appName == 'Netscape')
	            document.embeds[0].play();
	        else
	            document.embeds[0].play();
	    }
	}
	  catch(errorObject)
	      {
/*	      msg = "Dennis is a dweeb! \n\nThere was an error on this page.\n\n"
	      msg += "An internal programming error may keep\n"
	      msg += "this page from displaying properly.\n"
	      msg += "Click OK to continue.\n\n"
	      msg += "Error number: " + 
	        (errorObject.number & 0xffff) + "\n"
	      msg += "Description: " + 
	        errorObject.description + 
	        "\n\n"
	      alert(msg)  */
	      }
	
}

function stopSound() {
    if (document.embeds && can_play)
        document.embeds[0].stop();
}

	
///////////////////////////////////////////////////////////////////////////////////////////////
// Pop Up Functions
///////////////////////////////////////////////////////////////////////////////////////////////
function popup ( page, h, w, x, y ) {
	window.open( page, "popup", "height="+h+", width="+w+",resizable=yes,status=no,z-lock,top="+y+",left="+x+",screenX="+x+",screenY="+y);
	}	
	
function popupchat ( page, h, w, x, y ) {
	window.open( page, "chat", "height="+h+", width="+w+",resizable=yes,status=no,z-lock,top="+y+",left="+x+",screenX="+x+",screenY="+y);
	}	
	
function spopup ( page, h, w, x, y ) {
	window.open( page, "popup", "height="+h+", width="+w+",resizable=yes,scrollbars=yes,z-lock,status=no,top="+y+",left="+x+",screenX="+x+",screenY="+y);
	}	

function zoom ( image, h, w ) {
	var html = "<html><head><title>Enlarged Image</title>";
	html = html + "<script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/br-v1.js\"></script></head>";
	html = html + "<body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 bgcolor=\"#ffffff\">";
	html = html + "<table align=center width=200 cellspacing=0 cellpadding=0 border=1><tr>";
	html = html + "<td align=center valign=top background=\"" + image + "\">";
	html = html + "<IMG src=\"/images/clear.gif\" width=" + w + " height="+ h + " alt=\"\" border=0></td></tr>";
	html = html + "<tr><td align=center><font size=2><a href=\"javascript:window.close();\">Close Window</a></font></td></tr>";
	html = html + "</table></body></html>";
	
	var leftprop, topprop, screenX, screenY;
	if(navigator.appName == "Microsoft Internet Explorer") {
		screenY = document.body.offsetHeight;
		screenX = window.screen.availWidth;
		}
	else {
		screenY = window.outerHeight
		screenX = window.outerWidth
		}
	leftprop = (screenX - w) / 2;
	topprop = (screenY - h) / 2;

	
	var NewWindow = window.open( "", "zoom", "height="+(h+20)+", width="+w+",resizable=no,scrollbars=no,z-lock,status=no,top="+topprop+",left="+leftprop+",screenX="+leftprop+",screenY="+topprop);
		NewWindow.document.open();
		NewWindow.document.write( html );
		//NewWindow.close();

	}	
///////////////////////////////////////////////////////////////////////////////////////////////
// End Pop Up Functions
///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// Window Resize
///////////////////////////////////////////////////////////////////////////////////////////////
function winresize ( h, w, x, y ) {
	window.resizeTo( w, h );
	window.moveTo( x, y );
	}

	
function stopthief(ie) { 
	var warning = "Site content, graphics and photos are copyrighted (c)2003, 2004 Top End Graphics.com\nPlease contact the webmaster for permission to use.";
	if (navigator.appName == 'Netscape' && ie.which == 3) {
		alert(warning);
		return false;
		}
	else
	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
		alert(warning);
		return false;
		}
	return true;
	}

 document.onmousedown = stopthief;