var product_image_id = 0;
$(document).ready
( function()
  {
		  $(".frame_box").corner("5px");
				setTimeout("$('#text_front').show();", 1000);
		  $(".nav_hover").hover
				( function()
				  {
						  $(this).children(':first').toggle().next().toggle();
						},
						function()
						{
						  $(this).children(':first').toggle().next().toggle();
						}
				);
		  $('.hover_galleries').hover
				( function()
						{
						  var gallery_id = $(this).attr('id').slice(8);
								$(this).children().children(":first").css('background-color', '#444444');
								$('#gallery_name_background_' + gallery_id).css('background-color', '#c58b55'); 
								//$('#gallery_name_text_' + gallery_id).css('color', '#999999');
						},
						function()
						{
						  var gallery_id = $(this).attr('id').slice(8);
								$(this).children().children(":first").css('background-color', '#ffffff');
								$('#gallery_name_background_' + gallery_id).css('background-color', '#cccccc'); 
								//$('#gallery_name_text_' + gallery_id).css('color', '#111111'); 
						}
				);
			 $('.enquire_trigger').overlay();
				$('#enquire_form').draggable();
				$("input").val('');
				$("textarea").val('');
		}
);
function auroraking_enquire()
{
  $.post
  ( "/toffsystems_clients_auroraking_ajax.php",
	   { task: 'auroraking_enquire',
	     name: $("#name").val(),
	     email: $("#email").val(),
	     phone: $("#phone").val(),
	     message: $("#message").val(),
      image_id: product_image_id
	 		},
	 		function(data)
	 		{
				  eval(data);
	   }
	 );
}
function auroraking_contact()
{
  $.post
  ( "/toffsystems_clients_auroraking_ajax.php",
	   { task: 'auroraking_enquire',
	     name: $("#name_contact").val(),
	     email: $("#email_contact").val(),
	     phone: $("#phone_contact").val(),
	     message: $("#message_contact").val(),
						image_id: 0
	 		},
	 		function(data)
	 		{
				  eval(data);
	   }
	 );
}

