$(function () {				
	var tabContainers = $('div#overview > div');
	var tabNav = $('div#prod-nav > ul > li > a');
	
	tabContainers.hide().filter(':first').show().height(485);
	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 == "#home") { $("#overview").height(485); }
		else if (id == "#everything-you-need") { $("#overview").height(640); }
		else if (id == "#easy-to-use") { $("#overview").height(695); }
		else if (id == "#powerful-web-gadgets") { $("#overview").height(690); }
		else if (id == "#secure-ecommerce") { $("#overview").height(720); }
		else if (id == "#media-rich-sites") { $("#overview").height(1100); }
		else if (id == "#perfect-websites") { $("#overview").height(800); }
		
		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);
	});
});



