$(function () {				
	var tabContainers = $('div#overview > div');
	var tabNav = $('div#prod-nav > ul > li > a');
	
	tabContainers.addClass('tabs');
	tabContainers.hide().filter(':first').show().height(230);
	tabNav.filter(':first').addClass('selected');
	
	if ((window.location.hash) != "") {
			var id1 = (window.location.hash);
			tabContainers.hide().filter(window.location.hash).fadeIn(1000);
			tabNav.removeClass('selected').filter('a[href=/webplus/'+id1+']').addClass('selected');
	};
	
	$('a.showtabs').click(function () {
		var id = this.href.toString().replace(/^[^#]*#/,'#');
		if (id == "#00") { $("#overview").height(230); }
		else if (id == "#01") { $("#overview").height(230); }
		else if (id == "#02") { $("#overview").height(230); }
		else if (id == "#03") { $("#overview").height(230); }
		else if (id == "#04") { $("#overview").height(230); }
		else if (id == "#05") { $("#overview").height(230); }
		
		tabContainers.hide().filter(this.hash).fadeIn(1000);
		tabNav.removeClass('selected').filter('a[href=/webplus/'+id+']').addClass('selected');
		return false;
	});
	
	$('.scroll').click(function(){
	$.scrollTo('#overview', 500);
	});
});




