function popWindow(url, w, h)
{
	var rand = Math.round(Math.random() * 1000);
	window.open(url, 'r_' + rand, 'height='+h+',width='+w+',status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');
}

function setSliderValues(heat, activity, urban)
{
	document.getElementById('heatValue').value = heat;
	document.getElementById('activityValue').value = activity;
	document.getElementById('urbanValue').value = urban;
}

window.onresize = function()
{
	var flash = document.getElementById("h");
	if(flash)
	{
		flash.style.height = Math.max(732, winHeight()) + "px";
	}
}


function scrollToTop()
{
	document.scrollY = 0;
}

function winHeight()
{
	var myHeight = 0;
	if( typeof( window.innerHeight ) == 'number' )
	{
		//Non-IE
		myHeight = window.innerHeight;
	}
	else if( document.documentElement && document.documentElement.clientHeight )
	{
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	} else if ( document.body && document.body.clientHeight )
	{
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	}
	return myHeight;
}



