// JavaScript Document

function CurrencyPopup(QueryString)
  {
    CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=170,width=600')
    CurrencyWindow.focus()
    CurrencyWindow.location.href = 'http://www.xe.com/ecc/input.cgi?Template=sw&'+QueryString
  }
  
  function setaction(theaction){
		document.forms[0].action.value = theaction;
		document.forms[0].submit();
	}



var Page =
{
	showForm: function(e)
	{
		this.fader.stop();
		this.fader.start(1.0);
	},
	hideForm: function(e)
	{
		if (window.event == null || event.toElement != null)
		{
			this.fader.stop();
			this.fader.start(0.0);
		}
	},
	init: function()
	{
		var items = $ES("div.item");
		for (var i = 0; i < items.length; i++)
		{
			$(items[i]).fader = new Fx.Style($(items[i]).getElement("form"), "opacity", {duration: 500}).set(0.0);
			
			items[i].addEvent("mouseenter", Page.showForm.bindWithEvent(items[i]));
			items[i].addEvent("mouseleave", Page.hideForm.bindWithEvent(items[i]));
		}
	}
}
	
window.addEvent("domready", Page.init);




