function popMap(city, state, zip, country) {
    if (country == 'CAN') country = 'CANADA';
    pWindow = window.open('http://mapq.st/map?q='+city+', '+state+' '+zip+' '+country+'&zoom=7&maptype=map', 'MapQuest', 'location=no,menubar=no,status=no,titlebar=no,toolbar=no,directories=no,scrollbars=yes');
    if(window.focus) pWindow.focus();
}

function popDirections(orig, dest) {
    pWindow = window.open('http://www.mapquest.com/maps/'+orig+'/'+dest+'/', 'MapQuest', 'location=no,menubar=no,status=no,titlebar=no,toolbar=no,directories=no,scrollbars=yes');
    if(window.focus) pWindow.focus();
}

function popUp(url, title) {
    pWindow = window.open(url, title, 'location=no,menubar=no,status=no,titlebar=no,toolbar=no,directories=no,scrollbars=yes');
    if(window.focus) pWindow.focus();
}

function flasher(id, shrink) {
	if (document.getElementById(id)) {
		var flashElement=document.getElementById(id);
		if (flashElement.innerHTML.length>0)
			{
//				Effect.Queues.get('global').interval = 100;
				new Effect.Highlight(id, {startcolor:'#FFFF00', endcolor:'#FFFFFF', duration: 4.0} );
				new Effect.Pulsate(id, {duration: 0.5, pulses: 1});
				if (shrink !== false) new Effect.Shrink(id, {duration: 0.5, queue: 'end'} );
			}
	}
}

function highlight_message() {
//	var id="flashMessage";
	flasher('flashMessage');
	Event.stopObserving(window, 'load', highlight_message);
}
Event.observe(window, 'load', highlight_message, false)

