jQuery.noConflict();
jQuery(function($){

	jQuery('#stateroom_pricing table tr:odd td').addClass('oddrow');
	jQuery('#stateroom_pricing table tr:even td').addClass('evenrow');

});

// JavaScript Document
function getCruiseShips(CruiseLineID){
	jQuery("#loading_icon").show();
	jQuery.ajax({
		url: 'ajax/GetCruiseShip.php?CruiseLineID='+CruiseLineID+'&offer_dest_id='+jQuery("#Destinations").val(),
		dataType: 'html',
		type: 'POST',
		async: false,
		success: function(html){
			//alert(html);
			eval(html);
		}
	});
}
function GetSupplier(val)
{
	jQuery("#loading_icon").show();
	jQuery.ajax({
		url: "ajax/advanced_search.php",
		type: "POST",
		data: {"offer_dest_id": val, "action": "GetSupplier"},
		dataType: "html",
		success: function(data) {
		//alert(data);
		eval(data);
		}
	});		
}
function GetSupplierLeft(val,SupSelected)
{
	jQuery("#loading_icon_left").show();
	var link = jQuery("#Destinations_left").attr('url'); 
//	console.log(link + 'test omg');
	
	jQuery.ajax({
		url: link + "/ajax/advanced_search.php",
		type: "POST",
		data: {"offer_dest_id": val, "action": "GetSupplier","direction":"left","selected_supplier":SupSelected},
		dataType: "html",
		success: function(data) {
		//alert(data);
		eval(data);
		}
	});		
}

function getCruiseShipsLeft(CruiseLineID,SelectedMonth){
	jQuery("#loading_icon_left").show();
	var link = jQuery("#Destinations_left").attr('url'); 
	jQuery.ajax({
		url: link + '/ajax/GetCruiseShip.php?direction=left&CruiseLineID='+CruiseLineID+'&offer_dest_id='+jQuery("#Destinations_left").val()+'&selected_month='+SelectedMonth,
		dataType: 'html',
		type: 'POST',
		async: false,
		success: function(html){
			//alert(html);
			eval(html);
		}
	});
}
