/**
This will set the swf container to either its minimum height (which is the total height of the swf as built) or 100% width and height if viewable space allows.  Always manually set your min-height as the value of "swfMinHeight"
*/


function toggleNav(country){
	if(country=='US' || country=='CA'){
		targetClass='expanded';
	}else{
		targetClass='collapsed';
	};
	if (document.getElementById("globalNav").className!= targetClass){
		document.getElementById("globalNav").className = targetClass; 
	};
}

function setSwfSize() {	
	h = $(window).height();
	swfMinHeight = 800;	
	if (swfMinHeight > h ) {	
		$('#swfwrapper').height(swfMinHeight);
	} else {
		$('#swfwrapper').height(h);
	}	
};


$(window).resize(function(){
	setSwfSize();	
});


