$(document).ready(function(){
$("#ttypeselect").change(function() 
		    	{ 
					if ($("#ttypeselect").val() == 1) {
						$("#airporttext").html("<p class='sfh'>Arrival Airport</p>");
						$("#resorttext").html("<p class='sfh'>Arrival Resort</p>");
					}else{
						$("#airporttext").html("<p class='sfh'>Departing Airport</p>");
						$("#resorttext").html("<p class='sfh'>Departing Resort</p>");
					}					
				return false;}); 
$("#quote").click(function()
{
if(($("#ttypeselect").val()=='2')&&($("#yar").val()=='2'))
{$.msgbox("<p style='font-size:18px;'>Opps !</p><p style='font-size:13px;'><b>(Resort > Airport)</b> must be one way transfer.</p>");return false;};

$(".buttonx").attr("disabled", true);
$("#content").empty();var a=parseInt($("#pas").val());
$("#wait").empty().html('<img src="http://www.qxygene.net/ajax-loader.gif" />');
var b="p="+a;b+="&airport="+$("#airportselect").val();
b+="&resort="+$("#resortselect").val();
b+="&curr="+$("#curr").val();
b+="&ttype="+$("#ttypeselect").val();
b+="&type="+$("#yar").val();$.ajax({type:"POST",url:"http://www.qxygene.net/getv.php",data:b,timeout:10000,success:function(a){$("#content").html(a);$(".buttonx").removeAttr("disabled");$("#wait").empty()},error:function(a,b,c){if(b=="timeout"){

$.msgbox("<p style='font-size:18px;'>Opps !</p><p style='font-size:13px;'><b>Something went wrong.</b> Please try again...</p>");

$(".buttonx").removeAttr("disabled");$("#wait").empty()}}})})});

(function(a){a.fn.tipsy=function(b){b=a.extend({},a.fn.tipsy.defaults,b);return this.each(function(){var c=a.fn.tipsy.elementOptions(this,b);a(this).hover(function(){a.data(this,"cancel.tipsy",true);var b=a.data(this,"active.tipsy");if(!b){b=a('<div class="tipsy"><div class="tipsy-inner"/></div>');b.css({position:"absolute",zIndex:1e5});a.data(this,"active.tipsy",b)}if(a(this).attr("title")||typeof a(this).attr("original-title")!="string"){a(this).attr("original-title",a(this).attr("title")||"").removeAttr("title")}var d;if(typeof c.title=="string"){d=a(this).attr(c.title=="title"?"original-title":c.title)}else if(typeof c.title=="function"){d=c.title.call(this)}b.find(".tipsy-inner")[c.html?"html":"text"](d||c.fallback);var e=a.extend({},a(this).offset(),{width:this.offsetWidth,height:this.offsetHeight});b.get(0).className="tipsy";b.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var f=b[0].offsetWidth,g=b[0].offsetHeight;var h=typeof c.gravity=="function"?c.gravity.call(this):c.gravity;switch(h.charAt(0)){case"n":b.css({top:e.top+e.height,left:e.left+e.width/2-f/2}).addClass("tipsy-north");break;case"s":b.css({top:e.top-g,left:e.left+e.width/2-f/2}).addClass("tipsy-south");break;case"e":b.css({top:e.top+e.height/2-g/2,left:e.left-f}).addClass("tipsy-east");break;case"w":b.css({top:e.top+e.height/2-g/2,left:e.left+e.width}).addClass("tipsy-west");break}if(c.fade){b.css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:.8})}else{b.css({visibility:"visible"})}},function(){a.data(this,"cancel.tipsy",false);var b=this;setTimeout(function(){if(a.data(this,"cancel.tipsy"))return;var d=a.data(b,"active.tipsy");if(c.fade){d.stop().fadeOut(function(){a(this).remove()})}else{d.remove()}},100)})})};a.fn.tipsy.elementOptions=function(b,c){return a.metadata?a.extend({},c,a(b).metadata()):c};a.fn.tipsy.defaults={fade:false,fallback:"",gravity:"n",html:false,title:"title"};a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"};a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"}})(jQuery);

(function(a){function c(a){return"object"==typeof a?a:{top:a,left:a}}var i=a.scrollTo=function(d,e,b){a(window).scrollTo(d,e,b)};i.defaults={axis:"y",duration:1};i.window=function(){return a(window).scrollable()};a.fn.scrollable=function(){return this.map(function(){var d=this.parentWindow||this.defaultView,d="#document"==this.nodeName?d.frameElement||d:this,e=d.contentDocument||(d.contentWindow||d).document,b=d.setInterval;return"IFRAME"==d.nodeName||b&&a.browser.safari?e.body:b?e.documentElement:
this})};a.fn.scrollTo=function(d,e,b){"object"==typeof e&&(b=e,e=0);"function"==typeof b&&(b={onAfter:b});b=a.extend({},i.defaults,b);e=e||b.speed||b.duration;b.queue=b.queue&&1<b.axis.length;b.queue&&(e/=2);b.offset=c(b.offset);b.over=c(b.over);return this.scrollable().each(function(){function i(a){l.animate(f,e,b.easing,a&&function(){a.call(this,d,b)})}function j(a){var a="scroll"+a,b=k.ownerDocument;return n?Math.max(b.documentElement[a],b.body[a]):k[a]}var k=this,l=a(k),h=d,m,f={},n=l.is("html,body");
switch(typeof h){case "number":case "string":if(/^([+-]=)?\d+(px)?$/.test(h)){h=c(h);break}h=a(h,this);case "object":if(h.is||h.style)m=(h=a(h)).offset()}a.each(b.axis.split(""),function(a,e){var d="x"==e?"Left":"Top",c=d.toLowerCase(),g="scroll"+d,o=k[g],p="x"==e?"Width":"Height",q=p.toLowerCase();m?(f[g]=m[c]+(n?0:o-l.offset()[c]),b.margin&&(f[g]-=parseInt(h.css("margin"+d))||0,f[g]-=parseInt(h.css("border"+d+"Width"))||0),f[g]+=b.offset[c]||0,b.over[c]&&(f[g]+=h[q]()*b.over[c])):f[g]=h[c];/^\d+$/.test(f[g])&&
(f[g]=0>=f[g]?0:Math.min(f[g],j(p)));!a&&b.queue&&(o!=f[g]&&i(b.onAfterFirst),delete f[g])});i(b.onAfter)}).end()}})(jQuery);
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
