
window.onresize = function() {
	if (navArrow.resetButton) navArrow.set(navArrow.resetButton);
	/*
	if (photoBox.button) {
		$('landing_photo_arrow').style.left = photoBox.getPos(photoBox.button).x+photoBox.button.offsetWidth+'px';
		$('landing_photo_arrow').style.top = photoBox.getPos(photoBox.button).y+'px';
	}
	*/
}

function SwapTracking(dasindex){
	if($('Track'+(dasindex+1)) == null){
		new Effect.DropOut('Track'+dasindex);
		new Effect.Appear('Track1', { queue: 'end' });
	}
	else{
		new Effect.DropOut('Track'+dasindex);
		new Effect.Appear('Track'+(dasindex+1), { queue: 'end' });
	}
}

var LastChart = "unemp";
function swapChart(which){
	if(which != LastChart){
		var foo = LastChart;
		
		$(LastChart+'Container').style.display = 'none';
		$(which+'Container').style.display = '';
		
		$(LastChart+'Link').removeClassName('ChartOption_sel');
		$(LastChart+'Link').addClassName('ChartOption');
		$(which+'Link').removeClassName('ChartOption');
		$(which+'Link').addClassName('ChartOption_sel');
				
		LastChart = which;
		
		IndicateMOut(foo);
	}
	else{
		return false;
	}
}

function IndicateMOver(indic){
	$(indic+'Link').setStyle({
		color: "#1662a3"
	});
}

function IndicateMOut(indic){
	if(indic != LastChart){
		$(indic+'Link').setStyle({
			color: "#6b6b6b"
		});
	}
}

function showPoll(){
	$('PollPopUpBG').style.display = 'block';
	$('PollPopUp').style.display = 'block';
	/*console.log('showPoll ran');*/
}

function hidePoll(){
	$('PollPopUp').style.display = 'none';
	$('PollPopUpBG').style.display = 'none';
}

/*
var photoBox = new function() {
	this.effect = null;
	this.on = 1;
	this.button = null;
	this.freeze = false;
	this.photoEffect = null;

	this.to = function(button) {
		this.button = button;
		var currY = parseInt($('landing_photo_arrow').offsetTop);
		var newY = this.getPos(button).y+12;
		var diffY = newY - currY;
		var transition = Effect.Transitions.full;
		var duration = Math.abs(diffY)/500;
		if (this.effect) { this.effect.cancel(); }
		else {
			if (document.all || navigator.vendor.match('Apple')) {
				/* IE Glitch Fix *//*
				$('landing_photo_arrow').style.left = this.getPos($('landing_photo_arrow')).x+'px';
				$('landing_photo_arrow').style.top = this.getPos($('landing_photo_arrow')).y+'px';
				diffY-=12;
			}
		}
		this.effect = new Effect.Move('landing_photo_arrow', { 
		  duration: 0.001,
		  transition: transition,
		  y: diffY
		});
	}
	
	this.getPos = function(elem) {
		var x = parseInt(elem.offsetLeft);
		var y = parseInt(elem.offsetTop);
		while (elem.offsetParent) {
			x += elem.offsetParent.offsetLeft;
			y += elem.offsetParent.offsetTop;
			elem = elem.offsetParent;
		}
		return {x:x,y:y};
	}
	
	this.step = function(isResize) {
		if (this.freeze) return;
		this.hidePhoto();
		this.on++;
		if ( this.on > 5 ) this.on=1;
		this.showPhoto();
		this.to($('photoCaption'+this.on));
	}
	
	this.jumpTo = function(button) {
		this.freeze = true;
		this.hidePhoto();
		this.on = button.id.charAt(button.id.length-1);
		this.showPhoto();
		this.to(button);
	}
	
	this.hidePhoto = function() {
		if (this.photoEffect) { this.photoEffect.cancel(); }
		$('landing_photo_'+this.on).hide();
		setTimeout("$('landing_photo_"+this.on+"').hide();",100);
		$('photoCaption'+this.on).className = '';
	}
	
	this.showPhoto = function() {
		$('landing_photo_'+this.on).fade({from:0,to:1,duration:1.0});
		setTimeout("$('landing_photo_"+this.on+"').show();",80);
		$('photoCaption'+this.on).className = 'on';
		this.photoEffect = new Effect.Fade('photoCaption'+this.on, {from:0.7,to:1,duration:0.5});
	}
}

setInterval("photoBox.step();",5000);
*/
 