/* for interactive map on homepage */

function show(url) {
newwin =top.window.open(url, '_blank', 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=620,height=450');
}

function MyF(partN) {
window.document.usa_locator.SetVariable("perem1", "state" + partN);
}

$j(document).ready(function(){


	/* preload images */

	jQuery.preloadImages = function() {
		for(var i = 0; i<arguments.length; i++) {
			jQuery("<img>").attr("src", arguments[i]);
		}
	}
    
    /* donate tab slide */
    
    $j("#donatetab").hover(function() {
        $j("#donatepull").animate({"top":"0px"}, 500 );
    });
    $j("#donatetab").click(function() {
        $j("#donatepull").animate({"top":"0px"}, 500 );
    });
    $j("#donatepull_in a.close").click(function() {
        $j("#donatepull").animate({"top":"-300px"}, 500 );
    });
	
	var pageheight = $j(document.window).height();
	var pageinheight = pageheight - 6
	$j("#popwrap_in").css({"min-height":pageinheight});
	
	
});