if (!SITE){var SITE = new Object();};
SITE.hasRequired = function(){
	if (document.getElementById && document.getElementsByTagName) {
		var html = document.getElementsByTagName('html')[0];
		html.className += ((html.className=='')?'':' ')+'has-dom';
		return true;
	};
	return false;
}();
SITE.onload = function() {if (SITE.hasRequired) { for (var module in SITE) { if (SITE[module].domready) { SITE[module].onload(); };};};};
SITE.domready = function() {if (SITE.hasRequired) { for (var module in SITE) { if (SITE[module].domready) { SITE[module].domready(); };};};};
/******************************************************************************
 Image Gallery
 ******************************************************************************/
SITE.ImageGallery = 
{
	domready	: function(){
		this.anchors=[];
		$each(document.links,function(a){if(a.name&&a.name.test(/^gallery/i)){a.onclick=this.click.pass(a,this);this.anchors.push(a);}},this);
	},
	
	click		: function(aGallery){
		this.anchors.each(function(alink, index){if(alink.rel == aGallery.rel){$(alink.name).style.display = "none"};});
		$(aGallery.name).style.display = "block";
		return false;
	}
};
/******************************************************************************
 Image Gallery
 ******************************************************************************/
SITE.LanguageDropdown = 
{
	domready	: function(){
	
		var myDropdown = new Fx.Slide('countries');
		myDropdown.hide();
		$('country_list').addEvent('mouseenter', function(e){
			e = new Event(e);
			myDropdown.slideIn();
			e.stop();
		});
 
		$('country_list').addEvent('mouseleave', function(e){
			e = new Event(e);
			myDropdown.slideOut();
			e.stop();
		});
		
	}
}
window.addEvent('domready', function(){SITE.domready();});
