// Tabbed UI
function tabbedInterface(){
	//Begin Demo Scripts
	$('#tabbedUL li:first').addClass('current');
	$('.tabbedContent:first').show();
	$('#tabbedUL li').click(function(){									 
		var tabIndex = $('#tabbedUL li').index(this);
		var contentIndex = '.tabbedContent:eq('+tabIndex+')';
		var contentNotIndex = '.tabbedContent:not(:eq('+tabIndex+'))';
		$(this).blur();
		$('#tabbedUL li.current').removeClass('current');
		$(this).addClass('current');
		$(contentNotIndex).hide();
		$(contentIndex).show();
		return false;
	});
	//End Demo Scripts
};
$(document).ready(function(){
	tabbedInterface();
	if (GetQueryStringValue("Clinic", window.location.href)!="")
    {
		$('#tabbedUL li:#'+GetQueryStringValue("Clinic", window.location.href)).click();
    }
});

