// Openers.js
// McAdoo - 10/26/2000 - a collection opener shortcuts
// McAdoo - 10/30/2000 - change the URLs to the new locations
// McAdoo - 11/01/2000 - updated param usage for "Open" routines
// McAdoo - 11/03/2000 - slash, burn, rebuild!
// McAdoo - 11/09/2000 - updated URL for cruises; updated OfferOpen
// McAdoo - 11/21/2000 - added menu bars and tool bars
//                     - updated URL (from site) for OfferOpen

var opener_width = 640, opener_height = 400;
var remotesitebase = 'http://www.latesttraveloffers.com/lton/LTOxFrmS.asp?FrameSize=small&Direction=&SpecialId=&ShowSweep=false'

/*
  Supplier detailed description
    * http://www.latesttraveloffers.com/lton/SuppDetl.asp?SupplierId=ID

  Offer by ID
    * http://www.latesttraveloffers.com/lton/ltonclct.asp?distributorcode=cit&distributoraccount=CITravel&gotooffer=true&specialid=ID
    
  Vacation List by Location
    * http://www.latesttraveloffers.com/lton/LTONCLCT.asp?distributorcode=cit&distributoraccount=CITravel&searchid=ID
    
  Cruise List by Supplier
    * http://www.latesttraveloffers.com/lton/LTONCLCT.asp?distributorcode=cit&distributoraccount=CITravel&searchid=ID
  
  Current Featured list
    * http://www.latesttraveloffers.com/lton/LTONCLCT.asp?distributorcode=cit&distributoraccount=CITravel
*/

function CruiseLineOpen ( cruiselineid )
  // McAdoo - 11/03/2000 - get the details of a specific cruise line
  // MCole - 04/04/2001 - updated URL
  {
	//popUp ( 'http://www.latesttraveloffers.com/lton/SuppDetl.asp?SupplierId=' + cruiselineid, 'supplier', 560, 500, 'yes', 'yes' );
	popUp ( 'http://www.latesttraveloffers.com/lton/SupplierDetail.asp?supplierid=' + cruiselineid, 'supplier', 600, 500, 'yes', 'yes' );
  }

function CruisesOpen ( cruiseid )
  // McAdoo - 11/03/2000 - get the details of a given cruise
  // McAdoo - 11/08/2000 - updated URL
  {
    popUp ( 'http://www.latesttraveloffers.com/lton/LTONCLCT.asp?distributorcode=cit&distributoraccount=CITravel&searchid=' + cruiseid , 'win', opener_width, opener_height, 'yes', 'yes' );
  }

function OfferOpen ( offerid )
  // McAdoo - 11/03/2000 - get the details of a given offer
  // McAdoo - 11/09/2000 - revised the url & renamed function
  {
    // change the location of the given frame
    //popUp ('http://www.latesttraveloffers.com/lton/OffrDetlId.asp?SpecialId=' + escape(offerid) + '&SupplierId='+ supplierid, 'win', opener_width, opener_height );
    popUp ( 'http://www.latesttraveloffers.com/lton/ltonclct.asp?distributorcode=cit&distributoraccount=CITravel&gotooffer=true&priceid=' + escape(offerid), 'win', opener_width, opener_height, 'yes', 'yes' );
  }

function HotDealsList ( )
  // McAdoo - 11/03/2000 - get the list of current hot deals
  {
    popUp ( 'http://www.latesttraveloffers.com/lton/LTONCLCT.asp?distributorcode=cit&distributoraccount=CITravel', 'win', opener_width, opener_height, 'yes', 'yes' );
  }
 
function VacationsOpenList ( locationid )
  // McAdoo - 11/03/2000 - get the list of vacations by a location ID
  {
    popUp ( 'http://www.latesttraveloffers.com/lton/LTONCLCT.asp?distributorcode=cit&distributoraccount=CITravel&searchid=' + locationid, 'win', opener_width, opener_height, 'yes', 'yes' );
  }  
  