// array of slideshow objects
var slideshow_objects = new Array();


function loadSlideShow(xmlname)
{

var url = "";

url = xml_path+"/"+xmlname;

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    x=xmlhttp.responseXML.documentElement.getElementsByTagName("CLIENT");
    for (i=0;i<x.length;i++)
      {
      var clientID     = "";
      var active_img   = "";

      xx=x[i].getElementsByTagName("CLIENTID");
        {
        try
          {
	          clientID = xx[0].firstChild.nodeValue;

          }
        catch (er)
          {

          }
        }
    xx=x[i].getElementsByTagName("ACTIVE_IMG");
      {
        try
          {
	          active_img = xx[0].firstChild.nodeValue;
          }
        catch (er)
          {

          }
        }
    xx=x[i].getElementsByTagName("CATEGORY");
      {
        try
          {
		var tmp_client = new client_obj(clientID,active_img,xx[0].firstChild.nodeValue);
		slideshow_objects.push(tmp_client);
          }
        catch (er)
          {

          }
        }
    }

	preload_gallery(slideshow_objects);

	showSlideShow();

    }
  }
xmlhttp.open("GET",url,true);
xmlhttp.send();
}// end


function client_obj(clientid,active_img,category)
{
	this.clientid=clientid
	this.active_img=active_img
	this.category=category
}// end


