$(document).ready(function() {
   // print link behavior
    $("a.util_print").click(function() {

        window.print();
        return false;

    });
    // popup links behavior
    $("a.popupLink").click(function() {

        var url = $(this).attr("href");
        if ($(this).attr("id") == "survey") {
            window.open(url, '', 'width=576,height=640,scrollbars=yes,resizable=yes,status=yes');
        }
        else if ($(this).attr("id") == "contactus") {
            window.open(url, '', 'width=1030,height=730,scrollbars=yes,resizable=yes,status=yes');
        }
        else {
            window.open(url, '', 'width=780,height=730,scrollbars=yes,resizable=yes,status=yes');
        }
        pageTracker._trackPageview(url);
        return false;

    });
		//-location dropdown ie6
		$("ul.util_location-top-content").mouseover(function(){
			$("ul.util_location-top-content").addClass("hoverClass");
		});
		$("ul.util_location-top-content").mouseout(function(){
			$("ul.util_location-top-content").removeClass("hoverClass");
		});

});

// function for AddThis buttons
function addthis_proxy(arg1, arg2, arg3, arg4, left) {
    addthis_pub = 'scjmonty';
    addthis_logo = 'http://www.whatsinsidescjohnson.com/images/logo.gif';
    addthis_logo_background = 'ffffff';
    addthis_logo_color = '1666A5';
    addthis_brand = 'SC Johnson';
    addthis_options = 'email, favorites, facebook, digg, delicious, twitter';

    if (left) {
        addthis_offset_left = 0;
        addthis_offset_top = 0;
    }
    else {
        addthis_offset_left = -160;
        addthis_offset_top = 3; // ie6 fix
    }

    addthis_open(arg1, arg2, arg3, arg4);
}

// Dropdown fix for IE6
/*
$(document).ready(function(){
	$('.util_location-top-content').hover(
		function(){
			$('.util_location-top-content').css("height", "auto");
			$('.util_location-top-content').css("background", "transparent url(/images/bg/util_location-content.png) bottom left repeat-x");
			$('#util_nav .util_location ul li.ddmain ul').css("display", "block");
			$('#util_nav ul.util_location-top-content ul li.ddmain').css("background-position", "center -16px");
		},
		function(){
			$('.util_location-top-content').css("height", "24px");
			$('.util_location-top-content').css("background", "transparent url(/images/bg/util_location-nominal.png) repeat-x scroll 0 0");
			$('#util_nav .util_location ul li.ddmain ul').css("display", "none");
			$('#util_nav ul.util_location-top-content ul li.ddmain').css("background-position", "center 8px");
		}
	);
});
*/
