/*------------------------------------------------------------------*/
/*   Search Form Holiday Type Radio Button URL Jump                 */
/*------------------------------------------------------------------*/

function jumpcruise() {
  eval("window.location='" + document.getElementById("cruise").value + "'");
}
function jumpcombined() {
  eval("window.location='" + document.getElementById("combined").value + "'");
}
function jumpflightonly() {
  eval("window.location='" + document.getElementById("flightonly").value + "'");
}
function jumphotelonly() {
  eval("window.location='" + document.getElementById("hotelonly").value + "'");
}
function jumpcitybreaks() {
  eval("window.location='" + document.getElementById("citybreaks").value + "'");
}
function jumppackages() {
  eval("window.location='" + document.getElementById("packages").value + "'");
}

/*------------------------------------------------------------------*/
/*   Select Field Jump Menu                                         */
/*------------------------------------------------------------------*/

function jumpmenu() {
  eval("window.location='" + document.jumpform.jumplist.options[document.jumpform.jumplist.selectedIndex].value + "'");
}

/*------------------------------------------------------------------*/
/*   Alternate Color Of Result Rows                                 */
/*------------------------------------------------------------------*/

/* Hotel and Transfers Results */
document.observe('dom:loaded', function(){
	$$('table.altrows tr:nth-child(even)').invoke("addClassName", "evenrow");
});

/* Flight Details */
document.observe('dom:loaded', function(){
	$$('div.ff-detail-segment:nth-child(even)').invoke("addClassName", "evenrow");
});

/* Flight Results */
document.observe('dom:loaded', function(){
	$$('div.ff-result-row:nth-child(even)').invoke("addClassName", "evenrow");
});

/* Cruise Homepage Offers */
document.observe('dom:loaded', function(){
	$$('div.top-cruises-row:nth-child(even)').invoke("addClassName", "evenrow");
});

/* Flight Board Details */
document.observe('dom:loaded', function(){
	$$('div.flight-details-row:nth-child(even)').invoke("addClassName", "evenrow");
});

/*------------------------------------------------------------------*/
/*   Sliding Toggle For Narrowing Selection On Hotel Results Page   */
/*------------------------------------------------------------------*/

function toggleblind(element){
  new Effect.toggle(element, 'blind', {duration:0.5}); return false;
}


