// JavaScript Document
function over(el){
	el.className= el.id + "_na";	
}
function out(el){
	if (el.id != 'menu_'+ activeMenu ){
		el.className= el.id + "_n";	
	}
}
function goUrl(url){
	document.location.href=url;
	//setTimeout('document.location.href="../'+url+'"',100 ); 
	return true;
}
function clear_search(el,text){
	if (el.value == text){
		el.value = "";
	}	
}
function slide(napr){
	if(napr == 'up'){
		//alert (1);
		var off = $('#obj_gallery').offset();
		if( parseInt(off.top) > 300){
			$('#obj_gallery').animate({"top": "-=200px"}, "normal");	
		}
	};
	if(napr == 'down'){
		var off = $('#obj_gallery').css('top');
		if(parseInt(off) < 0 ){
			$('#obj_gallery').animate({"top": "+=200px"}, "normal");	
		}
	};
	if(napr == 'left'){
		var off = $('#obj_gallery').css('left');
		if(parseInt(off) < 0 ){
			$('#obj_gallery').animate({"left": "+=270px"}, "normal");	
		}
	};
	if(napr == 'right'){
		var off = $('#obj_gallery').css('left');
		var off2 = $('#obj_gallery').css('width');
		 
		 var tmp = parseInt(off2) - (-1*parseInt(off)+parseInt($('#slide_obj2').css('width')));
		  //alert( parseInt(off2) +" "+ parseInt(off)+" "+parseInt($('#slide_obj2').css('width')) );
		  if(tmp > 0 ){
			$('#obj_gallery').animate({"left": "-=270px"}, "normal");	
		  }
	};
}
