$(document).ready(function() {
  // shows the slickbox on clicking the noted link  
  $('a#showcase-show').click(function() {
    $('#showcasebox').show('slow');
    return false;
  }); 
   $('a#showcase-show1').click(function() {
    $('#showcasebox1').show('slow');
    return false;
  }); 
 // hides the slickbox on clicking the noted link  
  $('a#showcase-hide').click(function() {
    $('#showcasebox').hide('fast');
    return false;
  });
  
  // shows the slickbox on clicking the noted link  
  $('a#detail-show').click(function() {
    $('#detailbox').show('slow');
    return false;
  }); 
  $('a#detail-show1').click(function() {
    $('#detailbox').show('slow');
    return false;
  }); 
 // hides the slickbox on clicking the noted link  
  $('a#detail-hide').click(function() {
    $('#detailbox').hide('fast');
    return false;
  });

  // shows the slickbox on clicking the noted link  
  $('a#location-show').click(function() {
    $('#locationbox').show('slow');
    return false;
  });
  $('a#location-show1').click(function() {
    $('#locationbox').show('slow');
    return false;
  }); 
  
 // hides the slickbox on clicking the noted link  
  $('a#location-hide').click(function() {
    $('#locationbox').hide('fast');
    return false;
  });
  
  // shows the slickbox on clicking the noted link  
  $('a#spa-show').click(function() {
    $('#spabox').show('slow');
    return false;
  }); 
  $('a#spa-show1').click(function() {
    $('#spabox').show('slow');
    return false;
  });
  // hides the slickbox on clicking the noted link  
  $('a#spa-hide').click(function() {
    $('#spabox').hide('fast');
    return false;
  });
// hides the ratebox on clicking the noted link  
 
 
  

   $('a#morerate').click(function() {
    $('#moreratebox').show('slow');
	//document.getElementById('ajaxMoreRate').style.display='none';
	document.getElementById('moreratebox').style.display='block';
    return false;
  }); 
  
  // hides the slickbox on clicking the noted link  
  $('a#morerate-hide').click(function() {
    $('#moreratebox').hide('fast');
    return false;
  });
  
 
 
 
 
 
   $('a#morerate11').click(function() {
    $('#moreratebox11').show('slow');
	//document.getElementById('ajaxMoreRate').style.display='none';
	document.getElementById('moreratebox11').style.display='block';
    return false;
  }); 
  
  // hides the slickbox on clicking the noted link  
  $('a#morerate11-hide').click(function() {
    $('#moreratebox11').hide('fast');
    return false;
  });
  
 
 
 
 
 
 
  $('a#morepackrate').click(function() {
    $('#morepackratebox').show('slow');
	document.getElementById('curr_pack_newResult').style.display='none';
	document.getElementById('morepackratebox').style.display='block';
    return false;
  }); 
  
  // hides the slickbox on clicking the noted link  
  $('a#morepackrate-hide').click(function() {
    $('#morepackratebox').hide('fast');
    return false;
  });
 
 
 
 $('a#morehoneyrate').click(function() {
    $('#morehoneyratebox').show('slow');
	document.getElementById('curr_pack_newResult1').style.display='none';
	document.getElementById('morehoneyratebox').style.display='block';
    return false;
  }); 
  
  // hides the slickbox on clicking the noted link  
  $('a#morehoneyrate-hide').click(function() {
    $('#morehoneyratebox').hide('fast');
    return false;
  });
 
 
 
 
 
  $('a#tariff-show').click(function() {
    $('#tariffbox').show('slow');
    return false;
  });
   $('a#tariff-show1').click(function() {
    $('#tariffbox').show('slow');
    return false;
  });
  // hides the ratebox on clicking the noted link  
  $('a#tariff-hide').click(function() {
    $('#tariffbox').hide('fast');
    return false;
  });
  
  // hides the packagesbox on clicking the noted link  
 
  $('a#pack-show').click(function() {
    $('#packbox').show('slow');
    return false;
  });
  
   $('a#pack-show1').click(function() {
    $('#packbox').show('slow');
    return false;
  });
    
  // hides the ratebox on clicking the noted link  
  $('a#pack-hide').click(function() {
    $('#packbox').hide('fast');
    return false;
  });
  $('a#honeymoon-show').click(function() {
    $('#honeymoonbox').show('slow');
    return false;
  });
   $('a#honeymoon-show1').click(function() {
    $('#honeymoonbox').show('slow');
    return false;
  });
   $('a#honeymoon-hide').click(function() {
    $('#honeymoonbox').hide('fast');
    return false;
  });
  // shows the slickbox on clicking the noted link  
  $('a#meeting-show').click(function() {
    $('#meetingbox').show('slow');
    return false;
  }); 
   $('a#meeting-show1').click(function() {
    $('#meetingbox').show('slow');
    return false;
  });
  // hides the slickbox on clicking the noted link  
  $('a#meeting-hide').click(function() {
    $('#meetingbox').hide('fast');
    return false;
  });  

  // shows the slickbox on clicking the noted link  
  $('a#dinning-show').click(function() {
    $('#dinningbox').show('slow');
    return false;
  });
  $('a#dinning-show1').click(function() {
    $('#dinningbox').show('slow');
    return false;
  }); 
 // hides the slickbox on clicking the noted link  
  $('a#dinning-hide').click(function() {
    $('#dinningbox').hide('fast');
    return false;
  });
  
  // shows the slickbox on clicking the noted link  
  $('a#accommodation-show').click(function() {
    $('#accommodationbox').show('slow');
    return false;
  }); 
  $('a#accommodation-show1').click(function() {
    $('#accommodationbox').show('slow');
    return false;
  });
  
   // shows the slickbox on clicking the noted link  
  $('a#accommodation-hide').click(function() {
    $('#accommodationbox').hide('slow');
    return false;
  }); 


 // hides the slickbox on clicking the noted link  
  $('a#service-show').click(function() {
    $('#servicebox').show('fast');
    return false;
  });
  $('a#service-show1').click(function() {
    $('#servicebox').show('fast');
    return false;
  });
  
  $('a#service-hide').click(function() {
    $('#servicebox').hide('fast');
    return false;
  });

  // shows the slickbox on clicking the noted link  
  $('a#image-show').click(function() {
    $('#imagebox').show('slow');
    return false;
  }); 
  $('a#image-show1').click(function() {
    $('#imagebox').show('slow');
    return false;
  });
  //feedback
  $('a#feedback-show').click(function() {
    $('#feedbackbox').show('slow');
    return false;
  }); 
  $('a#feedback-show1').click(function() {
    $('#feedbackbox').show('slow');
    return false;
  });
  $('a#feedback-hide').click(function() {
    $('#feedbackbox').hide('fast');
    return false;
  });
  //end feedback
  // hides the slickbox on clicking the noted link  
  $('a#image-hide').click(function() {
    $('#imagebox').hide('fast');
    return false;
  });

  // shows the slickbox on clicking the noted link  
  $('a#booking-show').click(function() {
    $('#bookingbox').show('slow');
    return false;
  }); 
 $('a#booking-show1').click(function() {
    $('#bookingbox').show('slow');
    return false;
  });
  
 // hides the slickbox on clicking the noted link  
  $('a#booking-hide').click(function() {
    $('#bookingbox').hide('fast');
    return false;
  });
 // hides the future validity on clicking the noted link  
  $('a#validity').click(function() {
    $('#tarifftbl').show('slow');
    return false;
  }); 
 // hides the future validity on clicking the noted link  
  $('a#validity_hide').click(function() {
    $('#tarifftbl').hide('slow');
    return false;
  });
 // hides the future validity on clicking the noted link  
  $('a#validity_0').click(function() {
    $('#tarifftbl_0').show('slow');
    return false;
  });
  $('a#validity_hide_0').click(function() {
    $('#tarifftbl_0').hide('fast');
    return false;
  });
  $('a#validity_1').click(function() {
    $('#tarifftbl_1').show('slow');
    return false;
  });
  $('a#validity_hide_1').click(function() {
    $('#tarifftbl_1').hide('fast');
    return false;
  });
  $('a#validity_2').click(function() {
    $('#tarifftbl_2').show('slow');
    return false;
  });
  $('a#validity_hide_2').click(function() {
    $('#tarifftbl_2').hide('fast');
    return false;
  });
  $('a#validity_3').click(function() {
    $('#tarifftbl_3').show('slow');
    return false;
  });
  $('a#validity_hide_3').click(function() {
    $('#tarifftbl_3').hide('fast');
    return false;
  });
  $('a#validity_4').click(function() {
    $('#tarifftbl_4').show('slow');
    return false;
  });
  $('a#validity_hide_4').click(function() {
    $('#tarifftbl_4').hide('fast');
    return false;
  });
  $('a#validity_5').click(function() {
    $('#tarifftbl_5').show('slow');
    return false;
  });
  $('a#validity_hide_5').click(function() {
    $('#tarifftbl_5').hide('fast');
    return false;
  });
  $('a#validity_6').click(function() {
    $('#tarifftbl_6').show('slow');
    return false;
  });
  $('a#validity_hide_6').click(function() {
    $('#tarifftbl_6').hide('fast');
    return false;
  });
  $('a#validity_7').click(function() {
    $('#tarifftbl_7').show('slow');
    return false;
  });
  $('a#validity_hide_7').click(function() {
    $('#tarifftbl_7').hide('fast');
    return false;
  });

});
function image(src,alttext){ 
  $('#city_codeLoading').show();
      $.post("http://www.travelmasti.com/showimagehotel.php", {
        src: src,
		alttext: alttext
      }, function(response){ 
        $('#city_codeResult').fadeOut();
        setTimeout("finishAjax('city_codeLoading','city_codeResult', '"+escape(response)+"')", 400);
      });
    	return false;
}
function showCurrency(id,inrValue,honeymoon_status,curr_code,rate_of){ 
	  $('#currency_newLoading').show();
      $.post("http://www.travelmasti.com/rate-ajax.php", {
        currency_id: id,
	    inr_value:inrValue,
		honeymoon:honeymoon_status,
		code:curr_code, 
		query_url:'/hotelpushpvilla_agra.htm',
		hotel:'Hotel Pushp-Villa',
		city:'Agra',
		country:'ind',
		hotel_id:'717',
		rate_of:rate_of
      }, function(response){ 
        if(rate_of=='tariff'){
			$('#currency_newResult').fadeOut();
			setTimeout("finishAjax('currency_newLoading','currency_newResult', '"+escape(response)+"')", 400);
		}else if(rate_of=='package'){
			$('#curr_pack_newResult').fadeOut();
			setTimeout("finishAjax('currency_newLoading','curr_pack_newResult', '"+escape(response)+"')", 400);
		}else if(rate_of=='honeymoonpackage'){
			$('#curr_pack_newResult1').fadeOut();
			setTimeout("finishAjax('currency_newLoading','curr_pack_newResult1', '"+escape(response)+"')", 400);
		}
      });
    	return false;
}

function finishAjax(imageid, id, response) {
  $('#'+imageid).hide();
  $('#'+id).html(unescape(response));
  $('#'+id).fadeIn();
} //finishAjax

