// JavaScript Document

$(document).ready(function() {
	$("#tabs").tabs();					   
 
	$("#tabs").bind('tabsselect', function(event, ui) {
		document.location='#'+(ui.index+1);
	});
 
	if(document.location.hash!='') {
      //get the index
      indexToLoad = document.location.hash.substr(1,document.location.hash.length);
	  $("#tabs").tabs('select',indexToLoad-1);
   }
});

