$(document).ready(function () {		// alert messages	setTimeout(function() {		$(".flash").fadeOut("slow", function () {		$(".flash").slideUp("slow");	}); }, 2000)		// order summary load	$.get("/ordering/summary/", function(response) {		$("#ordersummary .data").html(response).fadeIn("fast");		$("#ordersummary .load").hide();	});		// order summary update	$("#ordersummary .remove").live("click", function() {		$("#ordersummary .data").hide();		var ppid = $(this).attr("id");		$.ajax({			method: "get", url: "/ordering/removeitem/"+ppid, data: "",			beforeSend: function(){$("#ordersummary .load").fadeIn("fast");}, // show loading			complete: function(){ $("#ordersummary .load").hide();}, // hide loading			success: function(html){ // if data is retrieved, store it in html				$("#ordersummary .data").fadeIn("fast"); // animation				$("#ordersummary .data").html(html); // show the html inside #summarydata div				$("#item"+ppid).removeClass("qtyfill"); // remove highlight class				$("#item"+ppid).val(""); // clear text value		 	}		 });		});	// login form	$(".loginlink").colorbox({		scrollbars: false,		opacity:.65	}, function(){		$("#email").focus();	});		// login submit	$("#loginsubmit").live("click", function() {		$("#login #adminform").hide();		$.ajax({			type: "POST", 			url: "/auth/login/",			data: $("#login #adminform form").serialize(),			beforeSend: function(){ // on send actions				$("#login .load").fadeIn("fast");				$.fn.colorbox.resize();			},			complete: function(){ // on complete actions				$("#login .load").hide();			},			success: function(html){ // success store returned data in html				$("#cboxLoadedContent").html(html);				$.fn.colorbox.resize();		 	}		 });		});		// email request form	$(".emailrequest").colorbox({		scrollbars: false,		opacity:.65	});		// email request submit	$("#emailrequestsubmit").live("click", function() {		$("#emailrequest #adminform").hide();		$.ajax({			type: "POST", 			url: "/account/emailrequest/",			data: $("#emailrequest #adminform form").serialize(),			beforeSend: function(){ // on send actions				$("#emailrequest .load").fadeIn("fast");				$.fn.colorbox.resize();			},			complete: function(){ // on complete actions				$("#emailrequest .load").hide();			},			success: function(html){ // success store returned data in html				$("#cboxLoadedContent").html(html);				$.fn.colorbox.resize();		 	}		 });		});});