$(document).ready(function(){
	
	$("#nav_click_subjects").click(function () {
		$("#nav_click_destinations").css("background", "url(/images/shd/nav/search_by_destination.gif)" );
		$("#nav_click_subjects").css("background", "url(/images/shd/nav/search_by_subject.gif)" );
		if ($("#subnav_subjects:first").is(":hidden")) {
			$("#subnav_destinations").slideUp("slow");
			$("#subnav_destinations").queue(function () {
				$("#subnav_subjects").slideDown("slow");
				$("#subnav_subjects").dequeue();
			});
		}
	});
	
	$("#nav_click_destinations").click(function () {
		$("#nav_click_destinations").css("background", "url(/images/shd/nav/search_by_destination_ovr.gif)" );
		$("#nav_click_subjects").css("background", "url(/images/shd/nav/search_by_subject_ovr.gif)" );
		if ($("#subnav_destinations:first").is(":hidden")) {
			$("#subnav_subjects").slideUp("slow");
			$("#subnav_subjects").queue(function () {
				$("#subnav_destinations").slideDown("slow");
				$("#subnav_destinations").dequeue();
			});
		}
	});
	
	$("#conference_more").toggle(function(){
		$(".conference_more_text").slideDown('slow');		
		$("#conference_more").css("background", "url(/images/shd/arrow_less.gif)" )
	},function(){
		$(".conference_more_text").slideUp('slow');
		$("#conference_more").css("background", "url(/images/shd/arrow_more.gif)" )
	});
	
	
	//$(".programme_more_text").slideUp('slow');
	$(".programme_more_text").animate({height:"100px"}, "fast");
	$("#programme_more").css("background", "url(/images/shd/arrow_more.gif)" )
	
	$("#programme_more").toggle(function(){
		//$(".programme_more_text").slideDown('slow');	
		$(".programme_more_text").animate({height:"100%"}, "slow");
		$("#programme_more").css("background", "url(/images/shd/arrow_less.gif)" )
	},function(){
		//$(".programme_more_text").slideUp('slow');
		$(".programme_more_text").animate({height:"100px"}, "slow");
		$("#programme_more").css("background", "url(/images/shd/arrow_more.gif)" )
	});	
	
	
	$("#package_open1").toggle(function(){
			$(".package1").slideDown('slow');		
			$("#package_open1").css("background", "url(/images/conf/detail/package_option_close.gif)" )
		},function(){
			$(".package1").slideUp('slow');
			$("#package_open1").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
		$("#package_open2").toggle(function(){
			$(".package2").slideDown('slow');		
			$("#package_open2").css("background", "url(/images/conf/detail/package_option_close.gif)" )
		},function(){
			$(".package2").slideUp('slow');
			$("#package_open2").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
		$("#package_open3").toggle(function(){
			$(".package3").slideDown('slow');		
			$("#package_open3").css("background", "url(/images/conf/detail/package_option_close.gif)" )
		},function(){
			$(".package3").slideUp('slow');
			$("#package_open3").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
		$("#package_open4").toggle(function(){
				$(".package4").slideDown('slow');		
				$("#package_open4").css("background", "url(/images/conf/detail/package_option_close.gif)" )
			},function(){
				$(".package4").slideUp('slow');
				$("#package_open4").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
		$("#package_open5").toggle(function(){
				$(".package5").slideDown('slow');		
				$("#package_open5").css("background", "url(/images/conf/detail/package_option_close.gif)" )
			},function(){
				$(".package5").slideUp('slow');
				$("#package_open5").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
		$("#package_open6").toggle(function(){
				$(".package6").slideDown('slow');		
				$("#package_open6").css("background", "url(/images/conf/detail/package_option_close.gif)" )
			},function(){
				$(".package6").slideUp('slow');
				$("#package_open6").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
			$("#package_open7").toggle(function(){
					$(".package7").slideDown('slow');		
					$("#package_open7").css("background", "url(/images/conf/detail/package_option_close.gif)" )
				},function(){
					$(".package7").slideUp('slow');
					$("#package_open7").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
			$("#package_open8").toggle(function(){
					$(".package8").slideDown('slow');		
					$("#package_open8").css("background", "url(/images/conf/detail/package_option_close.gif)" )
				},function(){
					$(".package8").slideUp('slow');
					$("#package_open8").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
			$("#package_open9").toggle(function(){
					$(".package9").slideDown('slow');		
					$("#package_open9").css("background", "url(/images/conf/detail/package_option_close.gif)" )
				},function(){
					$(".package9").slideUp('slow');
					$("#package_open9").css("background", "url(/images/conf/detail/package_option_open.gif)" )
		});	
			$("#package_open10").toggle(function(){
					$(".package10").slideDown('slow');		
					$("#package_open10").css("background", "url(/images/conf/detail/package_option_close.gif)" )
				},function(){
					$(".package10").slideUp('slow');
					$("#package_open10").css("background", "url(/images/conf/detail/package_option_open.gif)" )
	});
		
	for (i=1;i<=10;i=i+1) 
	{
		
		$(".package" + i).slideUp('slow');
		$("#package_open" + i).css("background", "url(/images/conf/detail/package_option_open.gif)" )
	}
	
	$('#dialog').jqm();	
	$('#brdialog').jqm({trigger:'.dynReqBroc'});
	
	$(".package1").slideDown('slow');		
	$("#package_open1").css("background", "url(/images/conf/detail/package_option_close.gif)" )

});

