// JavaScript Document
function flaGeneric(file,w,h,id)
{
	getURL		= window.document.location.href.toString();
	urlBits		= getURL.split('/') ;
	numLevels	= urlBits.length ;
	subStr		= "" ;
	jj			= numLevels - 5 ; // 5 for Localhost, 4 for live site
	while ( jj > 0 )
	{
		subStr = subStr + "../" ;
		jj-- ;
	}

	document.write ( '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' + w + '" HEIGHT="' + h + '" id="' + id + '" ALIGN="">' ) ;
	document.write ( ' <PARAM NAME=movie VALUE="' + subStr + file + '">' ) ;
	document.write ( ' <PARAM NAME=loop VALUE=false>' ) ;
	document.write ( ' <PARAM NAME=menu VALUE=false>' ) ;
	document.write ( ' <PARAM NAME=quality VALUE=high>' ) ;
	document.write ( ' <PARAM NAME=scale VALUE=exactfit>' ) ;
	document.write ( ' <PARAM NAME=wmode VALUE=transparent>' ) ;
	document.write ( ' <EMBED src="' + subStr + file + '" loop=false menu=false quality=high scale=exactfit bgcolor=#678C9E  WIDTH="' + w + '" HEIGHT="' + h + '" NAME="' + id + '" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' ) ;
	document.write ( '</OBJECT>' ) ;
}

function NewWindow(mypage,myname,w,h,scroll,pos)
{
	if(pos=="random")
	{
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center")
	{
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null)
	{
		LeftPosition=0;
		TopPosition=20
	}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
}

function displayEmail(prefix,dispText)
{
	domain = "ccosti.com" ;
	addy = prefix + "@" + domain ;
	if ( dispText == "" ) dispText = addy ;
	document.write ( "<a href=mailto:" + addy + ">" + dispText + "</a>" ) ;
}

/*
Add-to-favorites Script
Created by David Gardner (toolmandav@geocities.com)
No warranty of any kind comes with this script!
Permission granted to Dynamic Drive (http://dynamicdrive.com) 
to post and feature this script on their DHTML archive
*/

//configure the two variables below to match yoursite's own info
var bookmarkurl="http://www.ccosti.com/currencies.html"
var bookmarktitle="G Costi, Real Time Currencies"

function addbookmark(){
	if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4()
{
	if (event.button==2)
	{
		alert(message);
		return false;
	}
}

function clickNS4(e)
{
	if (document.layers||document.getElementById&&!document.all)
	{
		if (e.which==2||e.which==3)
		{
			alert(message);
			return false;
		}
	}
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById)
{
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")