/*!
 * SkyTowN - Exposition module
 * 
 * 2011
 */

 $(document).ready(function() {
 //http://flowplayer.org/tools/tooltip/index.html#positioning
	$("#expo_type_1_pos_1").tooltip(
		{ 
			tip: "#tooltip_expo_type_1_pos_1",
			position: "top right",
			offset: [10,-5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_1_pos_1").removeClass();
				$("#tooltip_expo_type_1_pos_1").addClass('tooltip tooltip_top_right');
			}
		}
	);

	$("#expo_type_1_pos_2").tooltip(
		{ 
			tip: "#tooltip_expo_type_1_pos_2",
			position: "top left",
			offset: [10,5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_1_pos_2").removeClass();
				$("#tooltip_expo_type_1_pos_2").addClass('tooltip tooltip_top_left');
			}			
		}
	);

	$("#expo_type_1_pos_3").tooltip(
		{ 
			tip: "#tooltip_expo_type_1_pos_3",
			position: "top left",
			offset: [10,5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_1_pos_3").removeClass();
				$("#tooltip_expo_type_1_pos_3").addClass('tooltip tooltip_top_left');
			}
		}
	);
	$("#expo_type_1_pos_4").tooltip(
		{ 
			tip: "#tooltip_expo_type_1_pos_4",
			position: "top left",
			offset: [10,5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_1_pos_4").removeClass();
				$("#tooltip_expo_type_1_pos_4").addClass('tooltip tooltip_top_left');
			}
		}
	);	

	$("#expo_type_2_pos_1").tooltip(
		{ 
			tip: "#tooltip_expo_type_2_pos_1",
			position: "top right",
			offset: [10,-5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_2_pos_1").removeClass();
				$("#tooltip_expo_type_2_pos_1").addClass('tooltip tooltip_top_right');
			}			
		}
	);		
	
	$("#expo_type_3_pos_1").tooltip(
		{ 
			tip: "#tooltip_expo_type_3_pos_1",
			position: "top right",
			offset: [10,-5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_3_pos_1").removeClass();
				$("#tooltip_expo_type_3_pos_1").addClass('tooltip tooltip_top_right');
			}	
		}
	);		
	
	$("#expo_type_4_pos_1").tooltip(
		{ 
			tip: "#tooltip_expo_type_4_pos_1",
			position: "bottom left",
			offset: [10,5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_4_pos_1").removeClass();
				$("#tooltip_expo_type_4_pos_1").addClass('tooltip tooltip_bottom_left');
			}	
		}
	);	
	$("#expo_type_4_pos_2").tooltip(
		{ 
			tip: "#tooltip_expo_type_4_pos_2",
			position: "bottom left",
			offset: [10,5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_4_pos_2").removeClass();
				$("#tooltip_expo_type_4_pos_2").addClass('tooltip tooltip_bottom_left');
			}	
		}
	);
	$("#expo_type_5_pos_1").tooltip(
		{ 
			tip: "#tooltip_expo_type_5_pos_1",
			position: "top right",
			offset: [10,-5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_5_pos_1").removeClass();
				$("#tooltip_expo_type_5_pos_1").addClass('tooltip tooltip_top_right');
			}	
		}
	);
	
	$("#expo_type_6_pos_1").tooltip(
		{ 
			tip: "#tooltip_expo_type_6_pos_1",
			position: "bottom right",
			offset: [10,-5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_6_pos_1").removeClass();
				$("#tooltip_expo_type_6_pos_1").addClass('tooltip tooltip_bottom_right');
			}	
		}
	);
	
	$("#expo_type_6_pos_2").tooltip(
		{ 
			tip: "#tooltip_expo_type_6_pos_2",
			position: "bottom left",
			offset: [10,5],
			effect: 'slide',
			onBeforeShow: function() {
				$("#tooltip_expo_type_6_pos_2").removeClass();
				$("#tooltip_expo_type_6_pos_2").addClass('tooltip tooltip_bottom_left');
			}	
		}
	);		
});
