var url = 'http://www.disney-vacation-hotels.com';
var peg_prefix = '';
//var directory_url = url + '/new-york/new-york-directory.php';

function pageJump(id, ext){
	//if(id == 'directory')
	//{
		//window.open(directory_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=80362&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 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 linkpage(page){
	window.open(url + '/'+page+'.php', '_self');
}



function articleJump(page, ext){ 
     _file = (ext) ? page + '.' +ext : page; 
     window.open(url + '/articles/' + _file, '_self'); 
}



function index(){
	window.open('http://www.disney-vacation-hotels.com/', '_self' );
}
function advertise(){
	window.open('http://www.disney-vacation-hotels.com/advertise/advertise_request.php','','scrollbars=yes,resizable=yes,width=600,height=500');
}

function terms(){
	window.open('http://www.disney-vacation-hotels.com/terms/terms_of_use.php?city=disney-vacation-hotels.com','tersmwindow','toolbar=yes,location=no,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600');
}
