$(document).ready(function() {
                    // GreenIT button actions  
	            $("#flashWrapper").hover(function () {
					       document.body.style.cursor = 'pointer';
					     }, function () {
					       document.body.style.cursor = 'auto';
					     });
                    $("#flashWrapper").click(function () {
					       location.href= "/greenit/greenit.html";
					     });

	            $("#greenbanner").hover(function () {
					      document.body.style.cursor = 'pointer';
					    }, function () {
					      document.body.style.cursor = 'auto';
					    });

                    $("#greenbanner").click(function () {
					      location.href= "/greenit/greenit.html";
					    });

	            $('#greenitbutton').hover(function () {
						document.body.style.cursor = 'pointer';
					      }, function () {
						document.body.style.cursor = 'auto';
					      });

	            $('#greenitbutton').mousedown( function () {
						     $('#greenitbutton').attr('src', '/images/greenit/greenbutton-down-32bit.png');
						   });

	            $('#greenitbutton').mouseup( function () {
						   $('#greenitbutton').attr('src', '/images/greenit/greenbutton-up-32bit.png');
						   location.href= "/greenit/greenit.html";
						 });

	            $('#greenitbuttonie6').hover(function () {
						   document.body.style.cursor = 'pointer';
						 }, function () {
						   document.body.style.cursor = 'auto';
						 });

	            $('#greenitbuttonie6').mousedown( function () {
							$('#greenitbuttonie6').attr('src', '/images/greenit/greenbutton-down.gif');
						      });

	            $('#greenitbuttonie6').mouseup( function () {
						      $('#greenitbuttonie6').attr('src', '/images/greenit/greenbutton-up.gif');
						      location.href= "/greenit/greenit.html";     
						    });



                    // next line causes a JS error in IE7
                    //var origSize = window.getComputedStyle(document.documentElement,null).fontSize;
                    var origSize = 0;
                    var lastSize;
                    if( window.getComputedStyle ) {
                        lastSize = window.getComputedStyle(document.documentElement,null).fontSize;
                        setInterval(function () {
                        var sz = window.getComputedStyle(document.documentElement,null).fontSize;
                        if( sz != lastSize ) {
                            //do whatever fixes you wanted
                            lastSize = sz;
	                    if ( sz != origSize ) {
	                        alert("Warning, resizing could break the page layout! Click OK, then hit Ctrl+0 (Control+Zero) to restore");
                            }
	                 }
	             },500);} 
                    else {
	                //do the IE hackaround
	             }

		  });
