//<![CDATA[
		function isMouseLeaveOrEnter(e, handler) { 
			if (e.type != 'mouseout' && e.type != 'mouseover') return false; 
			var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement; 
			while (reltg && reltg != handler) reltg = reltg.parentNode; return (reltg != handler); }
			
		function swapIn(url)
		{
		  document.hover.src = url;
		  return true;
		}
		function swapOut(url)
		{
		  document.hover.src = url;
		  return true;
		}
			
			//Scroll
		var i = 0;
		var move = null;


		function moveRight(){
		var mydiv = $("counter").offsetWidth
		var maxI = Math.floor((mydiv-762)/5)
		if(maxI > i){

		  new Effect.MoveBy ('BigBox', 0, -5, {
										  duration: 0.05,  
										  transition: Effect.Transitions.linear
									  });
		 i ++;
		 }
		 move = setTimeout('moveRight()', 50);
		}

		function moveLeft()
		{
		{if(i>0){new Effect.MoveBy ('BigBox', 0, 5, {
		 duration: 0.05,  
		 transition: Effect.Transitions.linear
				 });
		i --;}
		if(i<1){moveNull()}
		}
		move = setTimeout('moveLeft()', 50);
		}



		function moveNull(){clearInterval(move);
		move = null;}
		
		document.observe('dom:loaded', function(){
		var token = 0;
		var hide_pro = null
		  Event.observe('Portfolios', 'mouseover', pOver);
		  Event.observe('Portfolios', 'mouseout', pOut);
		function pOver(){
			new Effect.Appear("Portfolio_List",{duration:0.4, queue:{ position: 'front', scope: 'menuxscope', limit: 1 }});
			window.clearTimeout(hide_pro);
			}
		function pOut(){
		   hide_pro = setTimeout(function() {
			 	new Effect.Fade("Portfolio_List",{duration:0.8, queue: { position: 'end', scope: 'menuxscope', limit: 1 }});
			 }, 1500);
			}
		});
		
		//]]>