var changerOn = 1;


function loginPop() {
	leftPos = 0;
	topPos = 0;
	if (screen) {
		leftPos = (screen.width / 2);
		topPos = (screen.height / 2) - 300;
	}
	window.open('http://studio.adbeast.com/Login/5160Popup/default.asp',
				'UNTITLED FILMS',
				'height=400, width=400,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,left='+leftPos+',top='+topPos);

}


function openVideo(url, title, dim, that)
{
	changerOn = 0;
	el = this;
	el.stop();
	Mediabox.open(url, title, dim);
	changeLink(that);
}

function changeLink(that)
{
	that.style.color = '#999999';
	// color change when link is clicked
	document.getElementById('wrapper').style.color = '#444444';
	var doc = document.getElementsByTagName('a');
	for (var i = 0; i < doc.length; i++){
		//Do Work on doc[i], this sets the border of the Div black
		doc[i].style.color = "#444444";
	}
	that.style.color = 'white';
	// mouse roll out color change
	that.onmouseout = function() {
		that.style.color = '#FFFFFF';
	}
}


window.addEvent('domready', function() {
	
	var mySmoothScroll = new Fx.SmoothScroll({
		links: '.smoothAnchors',
		wheelStops: false
	});
	
	
	$$('a').addEvent('mouseout', function(event){
			$(this).setStyle('color', '#FFFFFF');
	});
	
	$$('a').addEvent('mouseover', function(event){
			$(this).setStyle('color', '#444444');
	});
	
	
})

function colorSwitch(focused, unfocused) {
	$(focused).setStyle('color', '#FFFFFF');
	$(focused).setProperty('rel', 'active');
	
	$(unfocused).setStyle('color', '#444444');
	$(unfocused).setProperty('rel', 'inactive');
}	
