var url = 'http://atlanta.traveler.bz';
var peg_prefix = 'atlanta-';
var directory_url = url + '/atlanta-directory/';
var cid = '80362';
function pageJump(id, ext){
	if(id == 'directory')
	{
		window.open(directory_url, '_self');
	} else if(!id)
	{
		window.open(url, '_self');
	} else {
		window.open(url + '/' + peg_prefix + id + '.' + ext, '_self');
	}
}

function ianJump(rkey, hid, loc, hname){
	url = (rkey) ? '&requestKey='+rkey : '';
	url += (hid) ? '&hotelID='+hid : '';
	url += (loc) ? '&location='+loc : '';
	url += (hname) ? '&hotelName='+hname : '';
	window.open('http://travel.ian.com/index.jsp?cid='+cid+'&showInfo=true&hotnetrates=true&currencyCode=USD&showPopUpMap=false&pageName=hotAvail&city=Las+Vegas&stateProvince=Nv&country=Us&locale=en_US&destinationID=4fded4ff-af4a-41b7-976b-bd5bd436f135' + url, '_blank');
}
function travelJump(hid){; 
     window.open('http://www.travel.com/index.jsp?http://www.travelnow.com/index.jsp?locale=en_US&pageName=hotAvail&currencyCode=USD&cid=131138&additionalDataString=vrBookingSource%7ChotSearch&hotelID='+ hid +'&cid='+ cid, '_blank'); 
}

function viatorJump(id, pid, code, auid){
	url = (id) ? '&ID='+id : '';
	url += (pid) ? '&PRODUCTID='+pid : '';
	url += (code) ? '&CODE='+code : '';
	url += (auid) ? '&AUID='+auid : '';
	window.open('http://www.affiliate.viator.com/brochure/product_show.jsp?SUBAUID=null' + url, '_blank');
}

function advertise(city){
	window.open('http://forms.hotel-travel-vacation.com/advertise/advertise-form.php?city_code='+city, 'advertiseWin','width=800,height=600,scrollbars=no,menubar=no,status=no' );
}

function sitemap(){ 
     window.open(url + '/sitemap.php', '_self');
}

function terms(city){
	window.open('http://atlanta.traveler.bz/terms/terms_of_use.php?city='+city, 'advertiseWin','width=800,height=600,scrollbars=no,menubar=no,status=no' );
}