 // handle all click events
 
 
 $("#walkin").click(checkFreezerType);
 $("#reachin").click(checkFreezerType);
 $("#stdMsgs2").click(resetBox);
 $("#metricMsgs").click(resetBox);
 $("#inch").click(checkMeasurementType);
 $("#mm").click(checkMeasurementType);
 $("#extraDoors").click(checkExtraDoorsStatus);
 $("#vendor").click(checkGlassDoor);
 $("#floor").click(checkFloorStatus);
 $("#reefer").click(checkRefrigerationStatus);
 $("#degrees1").click(isDegrees);
 $("#degrees2").click(isDegrees);
 $("#tc").click(calculate);
 /*$("#prt").click(window.print);*/
 $("#percent").click(setBuyoutIndex);
 $("#dollar").click(setBuyoutIndex);
 $("#36").click(setMonthIndex);
 $("#48").click(setMonthIndex);
 $("#60").click(setMonthIndex);
 $("#lease").click(calculateLease);
 $("#mail2").click(sendMail2);
 $("#stdbox").focusout(stdboxEdit);
 $("#metricbox").focusout(metricboxEdit);
 $("#doors").focusout(editExtraDoors);
  $('#Vendoraccess').click(checkVendor);
 $('#noVendoraccess').click(checkVendor);
// toggle on/off icecicles on rudy's logo


$("#images").hover(
     function () {
     var original_image = 'url(rudysbg.jpg)';
	 var second_image = 'url(rudysbg.jpg)';

       //alert('hover over header')
       $('#IMG1c').hide();
       $('#IMG1d').attr("src","images/rudysnewfrozen.gif");
       $('#IMG1d').show();
      // $('#header').css('background-image','url(rudysbg.jpg)');
      // $('#left').css('background-image','url(rudysbg.jpg)')
      // $('#right').css('background-image','url(rudysbg.jpg)')
     },
     function () {
       $('#IMG1d').hide();
       $('#IMG1c').attr("src","images/rudysnew.gif")
       $('#IMG1c').show();
      // $('#header').css('background-image','');
      // $('#header').css('background-color','white');
      // $('#left').css('background-image','')
      // $('#right').css('background-image','')
     }
   );
   $('#dsaccess').click(function () {
    if (navigator.appName == "Microsoft Internet Explorer") {
	 var mypage="walkinDoorMini.htm";
	 var myname="walkinDoor";
	 var w=820;
	 var h=415;
	 var winl = (screen.width-w)/2;
     var wint = (screen.height-h)/2;
     var settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,toolbar=no'
     window.open(mypage,myname,settings)
     // window.open ("http://www.rudysrefrigeration.com/walkinDoor.htm", "mywindow",    "status=1,width=800,height=650");
	 document.frmone.accessory[1].checked=true
	} else {
	  $('#dsa').show(); 
	}
   });
   $('#noaccess').click(function () {
       $('#dsa').hide();

   });
   $(function() {
           $('.map').css('border','1px double #a9a9a9');
           $('.map').maphilight();
           $('#hilightlink1').mouseover(function(e) {
               $('#door').mouseover();
           }).mouseout(function(e) {
               $('#door').mouseout();
            });
            $('#hilightlink2').mouseover(function(e) {
   		    $('#hinge1').mouseover();
   		    }).mouseout(function(e) {
   		    $('#hinge1').mouseout();
            });
            $('#hilightlink3').mouseover(function(e) {
   		 	$('#hinge2').mouseover();
   		 	}).mouseout(function(e) {
   		 	$('#hinge2').mouseout();
            });
            $('#hilightlink4').mouseover(function(e) {
   		 	$('#latch').mouseover();
   		 	}).mouseout(function(e) {
   		 	$('#latch').mouseout();
            });
            $('#hilightlink5').mouseover(function(e) {
   		 	$('#switch').mouseover();
   		 	}).mouseout(function(e) {
   		 	$('#switch').mouseout();
            });
            $('#hilightlink6').mouseover(function(e) {
						 $('#themometer').mouseover();
						 }).mouseout(function(e) {
						 $('#themometer').mouseout();
            });
            $('#hilightlink7').mouseover(function(e) {
						 $('#strip').mouseover();
						 }).mouseout(function(e) {
						 $('#strip').mouseout();
            });

            $('#hilightlink8').mouseover(function(e) {
						 $('#gasket').mouseover();
						 }).mouseout(function(e) {
						 $('#gasket').mouseout();
            });

	 });
