/* FUNCTIONS
------------------------------------------------------------------------------*/

function moveMenu(id){
  new Effect.Move(id,{ x: 10, y: 0, mode: "absolute", duration: 0.2});
}
function moveMenuOut(id){
  new Effect.Move(id,{ x: 0, y: 0, mode: "absolute", queue: "end", duration: 0.3});
}


/* BLANKWIN
/* written by Alen Grakalic, provided by Css Globe (cssglobe.com)
/* http://cssglobe.com/post/1281/open-external-links-in-new-window-automatically/
------------------------------------------------------------------------------*/

this.blankwin = function(){
	var hostname = window.location.hostname;
	hostname = hostname.replace("www.","").toLowerCase();
	var a = document.getElementsByTagName("a");
	this.check = function(obj){
		var href = obj.href.toLowerCase();
		return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? true : false;
	};
	this.set = function(obj){
		obj.target = "_blank";
		//obj.className = "external";
	};
	for (var i=0;i<a.length;i++){
		if(check(a[i])) set(a[i]);
	};
};



