
var oldDot = 0;

/*
function init()
{
//	var mtSelector = $$('#slides div.mtContainer');
	var currentMt = $( mts[current] );
	alert(current);
	currentMt.styles.visibility= 'visible');
}
*/

function displayInfo(){

    window.open('http://snocountry.com/snowclient/displayinfox.php?permcode=' + areaIds[areaIndex] + '&from=iphone');
    
}

function changeSlideBy(amt)
{
var ifr = $("ifr_ad");
ifr.src=ifr.src;

	if(mts.length > 1){
	    oldDot = current;
		var newSlide = (current + amt) % mts.length;
		if(newSlide < 0) newSlide = mts.length + newSlide;
		
		areaIndex = newSlide;
		
		$(mts[newSlide]).style.visibility= 'visible';
		$(mts[current]).style.visibility= 'hidden';

		current = newSlide;

	}
	
	setDots();
}

function setDots()
{	
	//var lastDot = $$('#status_dots div.selected');
	var lastDot = $('d' + oldDot);	
	lastDot.removeClass('selected');		
	
	var newDot = $('d'+ (current));
	newDot.addClass('selected');
}

