/*
 *
 * Genx Developing Suit v1 [JScript]
 * autor: Genx <master@genx.ru>
 * file version: $Revision: 1.1.1.1 $
 * file avtor: Genx <master@genx.ru>
 * Modified: $Date: 2011/05/16 12:02:17 $
 *
 ***********************************************/

dsDefineJS("ds/plugin_gallery.js");

var dsPluginGalleryGurrentObj;

function dsPluginsGallery (prefix, ids, url) {

	image_obj = document.getElementById('gallery_image_' + prefix)

	var key;
	for (key in ids) {
		image_id = ids[key];
		thumb_obj = document.getElementById('plugin_gallery_' + image_id);
		thumb_obj.image_id = image_id;
		thumb_obj.onclick = function(e) {
		    dsAjax.requestToDiv(url + '&image_id=' + this.image_id, image_obj);
			for (key1 in ids) {
				document.getElementById('plugin_gallery_' + ids[key1]).className = '';
			}
		    this.className = 'active';
			return false;
		}
	}


}

