      jQuery(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 searchValidate(){
		if(document.getElementById("searchQuery").value=="Search" || document.getElementById("searchQuery").value==""){
			alert("Please enter atleast one keyword to search!!!");
			return false;
			
		}   else{
		document.headerForm.action="/Header.do?parameter=redirectSearch";
		document.headerForm.submit();
		}
}
function displayAlert(alertMsg) {
          lcAlert.alert("<h1>Latestchoice.com Alert</h1><p><br/>"+ alertMsg  +"</p>"); return false;
}

function displayErrorAlert(alertMsg) {
          lcAlert.error("<h1>Latestchoice.com Errors</h1><p><br/>"+ alertMsg  +"</p>"); return false;
}

function displayInfoAlert(alertMsg) {
          lcAlert.info("<h1>Latestchoice.com Info</h1><p><br/>"+ alertMsg  +"</p>"); return false;
}




