function pageload(hash) {
	// hash doesn't contain the first # character.
	if(hash) {

		hash2=""
		hash2 = hash.replace(/^.*#/, '');
		hash2 = hash.replace("_php_projetID_", '.php?projetID=');
	
		
		$("#contenu").load(hash2);
		
	} else {
		// start page
		$("#contenu").load("accueil.php");
	}
}

$(document).ready(function(){
	// Initialize history plugin.
	// The callback is called at once by present location.hash. 
	$.historyInit(pageload);
	
	// set onlick event for buttons
	$("a[@rel='history']").click(function(){
		 
		
		var hash = this.href;
		
		
		hash2 = hash.replace("http://www.ceramiquevachon.com/", '');
		hash2 = hash2.replace("http://ceramiquevachon.com/", '');

		
		// moves to a new page. 
		// pageload is called at once
		$.historyLoad(hash2);
		return false;
	});
});
function calllelien(hash){
		
		
		

		hash2 = hash.replace("http://www.ceramiquevachon.com/", '');
		hash2 = hash2.replace("http://ceramiquevachon.com/", '');
	
		
		// moves to a new page. 
		// pageload is called at once
		$.historyLoad(hash2);
		return false;
	}

function callLien(args) {
 
 	$("#" + args).triggerHandler("click");
 
}	
	
  	var _officeItemListCombobox = null;
  	var _animationType = "slide";


	function createComboBox()
			{
				var comboboxSettings = {animationSpeed: 100};
				
				// Create the example combobox
				setupCombobox();
			
				
			
			}
			
			// create a jquery combobx and set the Css class styles
			function setupCombobox()
			{
				_officeItemListCombobox = $('#officeItemList').combobox(
					{
						comboboxContainerClass: "comboboxContainer",
						comboboxValueContentContainerClass: "comboboxValueContainer",
						comboboxValueContentClass: "comboboxValueContent",
						comboboxDropDownClass: "comboboxDropDownContainer",
						comboboxDropDownButtonClass: "comboboxDropDownButton",
						comboboxDropDownItemClass: "comboboxItem",
						comboboxDropDownItemHoverClass: "comboboxItemHover",
						comboboxDropDownGroupItemHeaderClass: "comboboxGroupItemHeader",
						comboboxDropDownGroupItemContainerClass: "comboboxGroupItemContainer"
					},
					{
						animationType: _animationType,
						width: 251
					});
			}