/*
	Fry Them All Javascript pour la section videos; La FryTv	
*/

var r = false;
var l = false;
//alert(window.location.hash);
//window.onload = eval('alert(document.anchors[1])')
//if (window.location.hash != '' && document.anchors.indexOf(window.location.hash.sub('#','')) != -1)
//{
//	alert('hio');
//}

function stopR(){r = false;}
function stopL(){l = false;}

function toR()
{
	if(r){
	var e = document.getElementById('videos');
	e.scrollLeft += 20;
	setTimeout('toR()',50);}
}

function toL()
{
	if(l){
	var e = document.getElementById('videos');
	e.scrollLeft += -20;
	setTimeout('toL()',50);}
}

function VidScrollR()
{
	r = true;
	toR();
}

function VidScrollL()
{
	l = true;
	toL();	
}


Event.observe(window,'load',function(){
	Event.observe('after','mouseover',VidScrollR);
	Event.observe('before','mouseover',VidScrollL);
	Event.observe('after','mouseout',stopR);
	Event.observe('before','mouseout',stopL);
	});

function upHash(a)
{
	window.location.hash='#'+a;
}