	//gallery_data.js
	//odvisna od gallery_class.js
	//odvisna od ajax_class.js
	//****************************************
	//Vsebino galerije
	GetGalleryItem = function() {
		
		this.GetData = function(start, show)
      {	
			var getstr = "?tab_id=" + tab_id + "&start=" + start + "&show=" + show + "&objectid=" + objectid+ "&ownerid=" + ownerid + "&item=" + item + "&item_id=" + item_id  + "&sid="  + Math.random();
         this.InitializeRequest('GET', "/ajax/GetGalleryItem.php" + getstr);
         this.Commit(null);
		}
   }

   GetGalleryItem.prototype = new ajax();

	// Added by David
	// Only get IDs
	GetGalleryItemsId = function() {
		this.GetData = function(start,show) {
			var getstr = "?tab_id=" + tab_id + "&start=" + start + "&show=" + show + "&objectid=" + objectid+ "&ownerid=" + ownerid + "&item=" + item + "&item_id=" + item_id + "&only_ids=1" + "&sid="  + Math.random();
         		this.InitializeRequest('GET', "/ajax/GetGalleryItem.php" + getstr);
         		this.Commit(null);
		}
	}
	GetGalleryItemsId.prototype = new ajax();

	// Only get DATA
	GetGalleryItemsData = function() {
		this.GetData = function(id) {
			var getstr = "?tab_id=" + tab_id + "&wanted_id=" + id + "&objectid=" + objectid+ "&ownerid=" + ownerid + "&item=" + item + "&item_id=" + item_id + "&sid="  + Math.random();
         		this.InitializeRequest('GET', "/ajax/GetGalleryItem.php" + getstr);
         		this.Commit(null);
		}
	}
	GetGalleryItemsData.prototype = new ajax();
			

	//*****************************************
	//Pager
	GetGalleryPager = function() {
		
		this.GetData = function(num_all)
      {	
			var getstr = "?all=" + num_all +  "&onpage=" + page_item_onpage + "&cpage="+ cpage + "&objectid=" + objectid + "&sid="  + Math.random();
         this.InitializeRequest('GET', "/ajax/GetGalleryPager.php" + getstr);
         this.Commit(null);
		}
   }

   GetGalleryPager.prototype = new ajax();
	//****************************************
	//Galerijo
	GetGallery = function() {
		
		this.GetData = function()
      {	
			getstr = "?tab_id=" + tab_id + "&cpage=" + cpage + "&objectid=" + objectid+ "&ownerid=" + ownerid + "&item=" + item + "&item_id=" + item_id  + "&sid="  + Math.random();
         this.InitializeRequest('GET', "/ajax/GetGalleryByID.php" + getstr);
         this.Commit(null);
      }
   }
   GetGallery.prototype = new ajax;
	//*****************************************
