
/****************
 * Create tour locator drop down menu
 * rollovers
 ****************/
var TourLocator = new function(){
	
	this.loadCities = function(){
		var divTags = document.getElementsByTagName( "div" );
		for( i = 0; i < divTags.length; i++ ){
			if( divTags[i].className == 'city' ){
				
				divTags[i].onmouseover = function(){
					for( j = 0; j < this.childNodes.length; j++ ){
						if( this.childNodes[j].nodeName == "UL" ){
							this.childNodes[j].className = 'show';
						}
					}
				}
				
				divTags[i].onmouseout = function(){
					for( j = 0; j < this.childNodes.length; j++ ){
						if( this.childNodes[j].nodeName == "UL" ){
							this.childNodes[j].className = 'hide';
						}
					}
				}
			}
		}
	}
} 



function openSubscribe( anchor ) {
	if ( anchor == null)  anchor = '';
	subscribeWindow = window.open("https://secure.res.com/res/subscribe/subscribe.jsp" + anchor , "subscribeWin", "width=450,height=500,menubar=0,scrollbars=1,status=1,location=1,resizable=1,toolbar=1");
	if (subscribeWindow) {
		if (subscribeWindow.focus) subscribeWindow.focus();
	}
}
