function showreelsImgOnLoad(target, color){
	var rgb = hexaToRGBpixastic(color);	
	//var w = $(target).parent().css("width");
	//var h = $(target).parent().css("height");
	$(target).css({opacity:0,display:"block"}).pixastic("desaturate").pixastic("coloradjust",{red:rgb[0],green:rgb[1],blue:rgb[2]});
}
function showreelRollOver(num,color){
	var speed = 150;	
	$("#showreelImg"+num+" #imgOn").stop().animate({opacity:1},speed);
	$("#showreelMenu #item"+num).css({color:color});
}
function showreelRollOut(num,color){
	var speed = 150;
	$("#showreelImg"+num+" #imgOn").stop().animate({opacity:0},speed);
	$("#showreelMenu #item"+num).css({color:color});
}
function showreelMouse(target){
	$(document).mousemove(function(e){
		showreelMouseX = e.pageX-($("#container1").position().left);
		showreelMouseY = e.pageY;
		if(showreelMouseX<0){
			showreelMouseX = 0;
		}
		if(showreelMouseX>720){
			showreelMouseX = 720;
		}
	});	
	showreelInteval = setInterval("showreelScroll()",33.333);
}
function showreelScroll(){
	if(showreelMouseY>620 && showreelMouseY <816){
		x = -((showreelWidth-720)/720*showreelMouseX);
	}
	var newx = $("#reelThumbs #cont").position().left+((x-$("#reelThumbs #cont").position().left) / 10);
	//_x += ( _parent._xmouse - _x ) / 10 ;
	$("#reelThumbs #cont").css({left:newx});
}
function resetShowreelScroll(){
	clearInterval(showreelInteval);
	showreelInteval = null;	
}
