jQuery(document).ready(function() {

	var SelfLocation = window.location.href.split('?');
	switch (SelfLocation[1]) {
	  case "justify_right":
		jQuery(".megamenu").megamenu({ 'justify':'right' });
		break;
	  case "justify_left":
	  default:
		jQuery(".megamenu").megamenu();
	}
});

function clearValue(id, name){
	if (document.getElementById(id).value==name) document.getElementById(id).value = '';
}
function resetValue(id, name){
	if (document.getElementById(id).value=='') document.getElementById(id).value = name;
}

