function autoFireLightbox() 
{
	setTimeout(function() 
	{
		if(document.location.hash && $(document.location.hash.substr(1)).rel.indexOf('lightbox')!=-1) 
		{
			myLightbox.start($(document.location.hash.substr(1)));
		}
	},
		250
	);
}
//Event.observe(window, 'load', autoFireLightbox, false);


/* new on mouse over function */
function over (obj){
	obj.className=obj.className+'_over';
}

/* new on mouse out function */
function out (obj){
	var str=obj.className;
	var pos=str.indexOf("_over")
	obj.className=str.substr(0,pos);
}

// Function that executes function inside input string when enter is pressed.
function doKey(sFunc, e) {
	e = e || window.event;
	whichASC = e.keyCode;
	e.keycode=null;

	if(whichASC==13){
		eval(sFunc);
	}
}

function login(){
	if (document.LOGIN.username.value==''){
		
	}
	else{
		document.LOGIN.submit();
	}
}
// check search string
function search(){
	if (document.FORM_SEARCH.search.value==''){
		
	}
	else{
		document.SEARCH.submit();
	}
}
