/*
Extremly Simple Scrolling Panel with jQuery - v1.1
Developed by: Oscar Alderete - oscaralderete.com (contact to oscaralderete at gmail dot com)
Download files from: http://oscaralderete.com/hscrolling2/hscrolling2.zip
Thank you to use my system, this is for free use and feel free to customize it to your neeeds but I will apreciate if you don't erase this lines and let others know some of my work.
If you found some errors, please mail me to fix them.
*/

function oaScrollTo(num){
	var l = -1 * $('.oa_panel').width() * num; //now width of your container DIV will be detected
	$('ul.oa_scrollPanels').animate({'left': l},'slow');
}

$(function(){
	if ($.browser.msie)
		$('.oa_slider').css('clear','none')
	$('ul.oa_scrollPanels').width($('.oa_panel').width() * $('ul.oa_scrollPanels li').length)
	$('.oa_navigation').click(function(event){
		var $target = $(event.target);
		if ($target.is('a')){
			oaScrollTo($target.attr('name'));
			$('.oa_navigation a').removeClass('oa_selected');
			$target.addClass('oa_selected');
			return false;
		}
	});
});