/**
 *	AlliedLockSafe.com
 */
$(document).ready(function()
	{
		/**
		 *	Add Lightbox
		 */
		$('.lightbox').lightBox({fixedNavigation:true});
		
		/**
		 *	Dropdown Menu for horizontal navigation
		 */
		$("#topNav li").hover(
			function() // Hover in /////////////////
			{
				$("ul", this).fadeIn("fast");
			}, 
			function() // Hover out ////////////////
			{
				$("ul", this).fadeOut("fast");
			}
		 );
		
		/**
		 *	Contact form - Map directions
		 */
		$("#dirInput").focus(function()
			{
				if( $(this).val() == 'Zip Code' ) $(this).val("");
			});
		$("#dirInput").blur(function()
			{
				if( $(this).val() == '' ) $(this).val("Zip Code");				
			});
		$("#dirSubmit").click(function()
			{
				var fromAddy = $("#dirInput").val();
				directions.load("from: "+ fromAddy +" to: 1122 Saratoga Avenue, San Jose, CA 95129");
				$("#dirBox").show();
				return false;
			});
		
		/**
		 *	Contact Form
		 */
		$("#contactForm").submit(function()
			{
				/**
				 *	Here we should check for empty values and check client side
				 */
				//return false;
			});
		$("#cName").blur(function()
			{
				if( $(this).val() == '' ) $(this).val("Name");				
			}).focus(function() {$(this).val("");});
		$("#cEmail").blur(function()
			{
				if( $(this).val() == '' ) $(this).val("E-Mail Address");				
			}).focus(function() {$(this).val("");});
		$("#cCompany").blur(function()
			{
				if( $(this).val() == '' ) $(this).val("Company Name");				
			}).focus(function() {$(this).val("");});
		$("#txtMsg").blur(function()
			{
				if( $(this).val() == '' ) $(this).val("Inquiry");
			}).focus(function() {$(this).val("");});
		/* completed*/
		//email form 
		//		#eName, #eEmail,#eMobile,#ePhno, #eFaxno, #eStreetAdd
		
		
		
		
		
			
	});// Dom ready

//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/cot.js" :
"http://www.trustlogo.com/trustlogo/javascript/cot.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
