/*
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto();
});
*/

$(document).ready(function(){
	$('a[rel="external"]').attr('target', '_blank');

	//controlame la ruedita
	function hookEvent(element, eventName, callback)
	{
		if(typeof(element) == "string")
			element = document.getElementById(element);
		if(element == null)
			return;
		if(element.addEventListener)
		{
			if(eventName == 'mousewheel')
			element.addEventListener('DOMMouseScroll', callback, false);  
			element.addEventListener(eventName, callback, false);
		}
		else if(element.attachEvent)
			element.attachEvent("on" + eventName, callback);
	}

	function cancelEvent(e)
	{
		e = e ? e : window.event;
		if(e.stopPropagation)
			e.stopPropagation();
		if(e.preventDefault)
			e.preventDefault();
			
		e.cancelBubble = true;
		e.cancel = true;
		e.returnValue = false;
		
		return false;
	}

	hookEvent('scrollContent', 'mousewheel', cancelEvent);

	
});

