
function show_loading(id) {
	$(id).style.display = 'inline';
}

function changeCurrency() {
        val = $('model_currency').value;
        $$('div').each(function(cur) {
		if (cur.hasClass('price'+val))
			cur.style.display = '';
		else if ( cur.hasClass('priceCAD') || cur.hasClass('priceAUD') || cur.hasClass('priceGBP') || cur.hasClass('priceEUR') || cur.hasClass('priceUSD') )
			cur.style.display = 'none';
		
        });
	new Ajax('/reservation/currency?currency=' + val).request();
}

function load_thumb(src, target) {
	$(target).src = src;
}

function load_tips() {
	//var _tips = new Tips($$('.Tips'), { showDelay: 500 });
	var _tips = new Tips($$('.Tips'), { onShow: function(tip){ tip.effects({duration: 500, transition: Fx.Transitions.quadInOut}).custom({'opacity': [0, 0.9]}); }, onHide: function(tip){ tip.effects({duration: 100, transition: Fx.Transitions.quadInOut}).custom({'opacity': [0.9, 0]}); }, showDelay : 500 });
}
YAHOO.util.Event.addListener(window, "load", load_tips);

