$.preloadImages = function() {
	for(var i = 0; i<arguments.length; i++) {
		img = new Image();
	img.src = arguments[i];
	}
};

$(document).ready(function(){
	if(!$.browser.msie) {
		$("#page_container").corners("20px");
		$("#main_container").corners("20px");
		$("#menu_container").corners("12px");
		$("#menu_stroke").corners("8px");
		$("#menu_inner").corners("6px");
		$("#title_container").corners("12px");
		$("#title_stroke").corners("8px");
		$("#title_inner").corners("6px");
		$("#all_include").corners("6px");
		$("#areas_covered_detail").corners("4px");
		$("#grap_button").corners("6px");
		$("#spec_button").corners("6px");
		$("#elec_button").corners("6px");
		$("#why_rent_container").corners("12px");
		$("#why_rent_stroke").corners("8px");
		$("#why_rent_inner").corners("6px");
		$("#kit_includes_container").corners("12px");
		$("#kit_includes_stroke").corners("8px");
		$("#kit_includes_inner").corners("6px");
		$("#optional_container").corners("12px");
		$("#optional_stroke").corners("8px");
		$("#optional_inner").corners("6px");
		$("#order_container").corners("12px");
		$("#order_stroke").corners("8px");
		$("#order_inner").corners("6px");
		$("#footer_container").corners("12px");
		$("#footer_stroke").corners("8px");
		$("#footer_inner").corners("6px");
		$(".package").corners("12px");
	}
			
	$("#all_include").mouseover(function(){
		$("#areas_covered_toggle").css("text-decoration","underline");
	}).mouseout(function(){
		$("#areas_covered_toggle").css("text-decoration","none");
	}).click(function(){
		$("#areas_covered_detail").toggle();
	});
			
	$("#why_rent_container").mouseover(function(){
		$("#why_rent_container .link").css("text-decoration","underline");
	}).mouseout(function(){
		$("#why_rent_container .link").css("text-decoration","none");
	}).click(function(){
		$.alerts.dialogClass = "why_rent_dialog";
		$.ajax({
			url: "why_rent.html",
			dataType: "html",
			success: function(html){
				jAlert(html, 'Why Rent?', function() {
					$.alerts.dialogClass = null; // reset to default
				});
			}
		});
	});
			
	$("#order_container").mouseover(function(){
		$("#order_container .link").css("text-decoration","underline");
	}).mouseout(function(){
		$("#order_container .link").css("text-decoration","none");
	}).click(function(){
		$.alerts.dialogClass = "order_dialog";
		$.ajax({
			url: "contact.html",
			dataType: "html",
			success: function(html){
				jAlert(html, 'How to Order', function() {
					$.alerts.dialogClass = null; // reset to default
				});
			}
		});
	});
});