jQuery(function() {
	jQuery("#datepicker1").datepicker({
		showOn: 'button',
		buttonImage: '/en/wp-content/themes/alamin/images/calendar.gif',
		buttonImageOnly: true 
	});
});

jQuery(function() {
	jQuery("#datepicker2").datepicker({
		showOn: 'button',
		buttonImage: '/en/wp-content/themes/alamin/images/calendar.gif',
		buttonImageOnly: true
	});
});

jQuery(function() {
	jQuery("#datepicker3").datepicker({
		currentText: 'Now',
                showOn: 'button',
		buttonImage: '/en/wp-content/themes/alamin/images/calendar.gif',
		buttonImageOnly: true,
		dateFormat: 'dd.mm.y'
		
	});
});

jQuery(function() {
	jQuery("#datepicker4").datepicker({
		showOn: 'button',
		buttonImage: '/en/wp-content/themes/alamin/images/calendar.gif',
		buttonImageOnly: true,
		dateFormat: 'dd.mm.y'
	});
});


jQuery(document).ready(function() {
	jQuery('#hideSlider').hide();
        jQuery('#slider').show();
	jQuery("#slider").easySlider({
		auto: true, 
		continuous: true,
		numeric: true
	});

	jQuery("#cF").load( function() {alert("done");
		 jQuery('#cL').hide();
		 jQuery('#cF').show();
	} );

	jQuery("#ticketFrame").load( function() {
		 jQuery('#tickLoader').hide();
		 jQuery('#ticketFrame').show();
	} );

	jQuery("#statFrame").load( function() {
		 jQuery('#statLoader').hide();
		 jQuery('#statFrame').show();
	} );
});
	
jQuery(document).ready(function() {	
	jQuery("#topnav li").prepend("<span></span>"); //Throws an empty span tag right before the a tag	
	jQuery("#topnav li").each(function() { //For each list item...
		var linkText = jQuery(this).find("a").html(); //Find the text inside of the a tag
		jQuery(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	jQuery("#topnav li").hover(function() {	//On hover...
		jQuery(this).find("span").stop().animate({ 
			marginTop: "-40" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		jQuery(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});	
	
	jQuery("ul#topnav li a").click(function() {
		jQuery("ul#topnav li").removeClass("activeButton");
		jQuery(this).parent().addClass("activeButton");
	});
});

jQuery(document).ready(function() { 
	jQuery('img#gallerya').addpowerzoom({magnifiersize:[200,200]})
	jQuery('img.#galleryb').addpowerzoom({powerrange:[2,5]})
	jQuery('img.#galleryc').addpowerzoom({powerrange:[2,8], largeimage:"paris.jpg", magnifiersize:[100,100]})
});

function ShowWin(url,x,y,name,isscrollbars) {
	cx=screen.width/2 - (x/2);
	cy=screen.height/2-(y/2);
	isscrollbars=(isscrollbars=="no")?"no":"yes";
window.open(url, name, "toolbar=no,status=no,directories=no,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars="+isscrollbars+",top="+cy+",left="+cx);
}

function submitASR() { alert('s');
jQuery.post("/en/airline-tickets/special-offers-ticket-request?airline", { name: "John", time: "2pm" } );
alert('d');
}

