var url = 'http://www.lasvegas-hotels-1.com';
var peg_prefix = 'las-vegas-';
//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 advertise(){
	window.open('http://www.lasvegas-hotels-1.com/advertise/advertise_request.php', 'advertiseWin','width=800,height=600,scrollbars=no,menubar=no,status=no' );
}

function terms(){
	window.open('http://www.lasvegas-hotels-1.com/terms/terms_of_use.php', 'termsWin','width=800,height=600,scrollbars=no,menubar=no,status=no' );
}

function articleJump(page, ext){ 
     _file = (ext) ? page + '.' +ext : page; 
     window.open(url + '/articles/' + _file, '_self'); 
}

function discount(){
	window.open('http://www.lasvegas-hotels-1.com/las-vegas-hotels-discount.html', '_self' );
}

function index(){
	window.open('http://www.lasvegas-hotels-1.com/', '_self' );
}

function hoteldeal(){
	window.open('http://www.lasvegas-hotels-1.com/las-vegas-hotel-deal.html', '_self' );
}

function casinos(){
	window.open('http://www.lasvegas-hotels-1.com/las-vegas-hotel-casinos.html', '_self' );
}

function shows(){
	window.open('http://www.lasvegas-hotels-1.com/las-vegas-shows.html', '_self' );
}

function vacation(){
	window.open('http://www.lasvegas-hotels-1.com/las-vegas-vacation.html', '_self' );
}

function activity(){
	window.open('http://www.lasvegas-hotels-1.com/las-vegas-activity.html', '_self' );
}