$(document).ready(function() {
	/* JavaScript code */
	// Selects one or more elements to assign a simpletip to
	$(function() {
		$('a.imgss').lightBox({
			txtImage: '',
			txtOf: 'of'
		}); // Select all links in the page
		// ... The possibility are many. Use your creative or choose one in the examples above
	});
	/*$('.imgss').simpletip({
		onBeforeShow: function(){
      	// Note this refers to the API in the callback function
      		var result = "";
		    for (var i in this) // обращение к свойствам объекта по индексу
		        result += i + " = " + this[i] + "<br />\n";
		    alert(result);
      		//this.load($(this).attr('id'));
   		},
	   // Configuration properties
	   content: 'Some content may be here',
	   fixed: true,
	   showEffect: 'slide',
	   hideEffect: 'slide',
	   offset: [100,-200],
	   position: 'left'
	});  */    
	// Setup a content array for the tooltips
	var arrayData = ['Люкс', 'Kahekohaline tuba', 'Room2', 'Room3', 'Морской номер'];
	
	$('.demonka a').each(function(i){
	   $(this).simpletip({ 
	   	onBeforeShow: function() {
	   		this.load('http://www.urusel.ee/content/'+i);
	   	},
		   //content: 'Some content may be here',
		   fixed: true,
		   showEffect: 'slide',
		   hideEffect: 'slide',
		   offset: [200,-300],
		   position: 'left',
		   content: arrayData[i] });
	});   
});
