function myfunc(object) {
	/*
	*/
}

function isMouseLeaveOrEnter(e, handler) {		
	if (e.type != 'mouseout' && e.type != 'mouseover') return false;
	var reltg = e.relatedTarget ? e.relatedTarget :
	e.type == 'mouseout' ? e.toElement : e.fromElement;
	while (reltg && reltg != handler) reltg = reltg.parentNode;
	return (reltg != handler);
}

function onRL(id,speed,amount,size,onExitOptionalFunction,stop1,stop2)
{
	document.getElementById('galeriavideopanelcapt1').style.display="none";
	document.getElementById('galeriavideopanelcapt3').style.display="block";
  if (id)
    {
      id = typeof id == "object" ? id.id : id;
      var variableName = id + "_clipper";
      if (window[variableName] && window[variableName].isRunning)
        {
          return ;
        }
      if (! id || ! document.getElementById(id))
        {
          return ;
        }
      document.getElementById(id).style.display="block";
      var object = window[variableName] = new Object();
      object["layer"] = document.getElementById(id);
      object["id"] = id;
      var name = "onRL";
      object[name] = eval(name);
      object["last"] = name;
      object.isRunning = 1;
      object["speed"] = parseFloat(speed) || 100;
      object["amount"] = parseFloat(amount) || 1;
      object["size"] = parseFloat(size) || object["layer"].offsetWidth / 2;
      onExitOptionalFunction = typeof onExitOptionalFunction == "string" ? eval(onExitOptionalFunction) : onExitOptionalFunction;
      object["onExitOptionalFunction"] = typeof onExitOptionalFunction == "function" ? onExitOptionalFunction : onExitOptionalFunction ? (function (object)
{
  (document.getElementById(object.id)).style.visibility = "hidden";
  object.setClip(object.originalClip);
}
) : 0;
      object["stop1"] = parseFloat(stop1) || object["layer"].offsetWidth;
      object["stop2"] = parseFloat(stop2) || object["layer"].offsetHeight;
      object["timer"] = null;
      object["stop"] = (function ()
{
  clearInterval(this.timer);
  this.isRunning = 0;
  if (typeof this.onExitOptionalFunction == "function")
    {
      this.onExitOptionalFunction(this);
    }
}
);
      object["setClip"] = (function (array)
{
  if (typeof array == "string")
    {
      array = array.match(/\d+/g);
    }
  var output = "rect(";
  for (var a = 0;a < array.length;a++)
    {
      output += array[a] + "px, ";
    }
  this.layer.style.clip = output.substring(0, output.length - 2) + ")";
  this.layer.style.left = 266-array[1];
}
);
      object["getClip"] = (function ()
{
  if (! this.layer.style.clip)
    {
      this.layer.style.clip = "rect(0px, " + parseFloat(this.layer.offsetWidth) + "px, " + parseFloat(this.layer.offsetHeight) + "px, 0px)";
    }
  var clip = this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g, "").replace(/\s+/g, " ").split(" ");
  return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
}
);
      object["layer"].style.position = "absolute";
      object["layer"].style.visibility = "visible";
      object["originalTop"] = object["layer"].offsetTop;
      object["originalLeft"] = object["layer"].offsetLeft;
      object["originalClip"] = object.getClip();
      object["top"] = object["originalClip"][0];
      object["right"] = 88;
      object["bottom"] = object["originalClip"][2];
      object["left"] = object["originalClip"][3];
      object.setClip([object["top"], object["right"], object["bottom"], object["left"]]);
      object["timer"] = setInterval(variableName + "." + name + "()", object["speed"]);
      return 0;
    }
  this.right += this.right + this.amount <= this.stop1 ? this.amount : this.stop1 == this.layer.offsetWidth ? this.stop1 - this.right : this.stop1 - this.right > 0 ? this.stop1 - this.right : 0;
  this.setClip([this.top, this.right, this.bottom, this.left]);
  if (this.right >= this.stop1)
    {
      this.stop();
    }
/* keep this comment to reuse freely:
http://www.unitedscripters.com */}





function onLR(id,speed,amount,size,onExitOptionalFunction,stop1,stop2)
{
	document.getElementById('galeriavideopanelcapt1').style.display="none";
	document.getElementById('galeriavideopanelcapt2').style.display="block";
  if (id)
    {
      id = typeof id == "object" ? id.id : id;
      var variableName = id + "_clipper";
      if (window[variableName] && window[variableName].isRunning)
        {
          return ;
        }
      if (! id || ! document.getElementById(id))
        {
          return ;
        }
      document.getElementById(id).style.display="block";
      var object = window[variableName] = new Object();
      object["layer"] = document.getElementById(id);
      object["id"] = id;
      var name = "onLR";
      object[name] = eval(name);
      object["last"] = name;
      object.isRunning = 1;
      object["speed"] = parseFloat(speed) || 100;
      object["amount"] = parseFloat(amount) || 1;
      object["size"] = parseFloat(size) || object["layer"].offsetWidth / 2;
      onExitOptionalFunction = typeof onExitOptionalFunction == "string" ? eval(onExitOptionalFunction) : onExitOptionalFunction;
      object["onExitOptionalFunction"] = typeof onExitOptionalFunction == "function" ? onExitOptionalFunction : onExitOptionalFunction ? (function (object)
{
  (document.getElementById(object.id)).style.visibility = "hidden";
  object.setClip(object.originalClip);
}
) : 0;
      object["stop1"] = parseFloat(stop1) || object["layer"].offsetWidth;
      object["stop2"] = parseFloat(stop2) || object["layer"].offsetHeight;
      object["timer"] = null;
      object["stop"] = (function ()
{
  clearInterval(this.timer);
  this.isRunning = 0;
  if (typeof this.onExitOptionalFunction == "function")
    {
      this.onExitOptionalFunction(this);
    }
}
);
      object["setClip"] = (function (array)
{
  if (typeof array == "string")
    {
      array = array.match(/\d+/g);
    }
  var output = "rect(";
  for (var a = 0;a < array.length;a++)
    {
      output += array[a] + "px, ";
    }
  this.layer.style.clip = output.substring(0, output.length - 2) + ")";
}
);
      object["getClip"] = (function ()
{
  if (! this.layer.style.clip)
    {
      this.layer.style.clip = "rect(0px, " + parseFloat(this.layer.offsetWidth) + "px, " + parseFloat(this.layer.offsetHeight) + "px, 0px)";
    }
  var clip = this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g, "").replace(/\s+/g, " ").split(" ");
  return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
}
);
      object["layer"].style.position = "absolute";
      object["layer"].style.visibility = "visible";
      object["originalTop"] = object["layer"].offsetTop;
      object["originalLeft"] = object["layer"].offsetLeft;
      object["originalClip"] = object.getClip();
      object["top"] = object["originalClip"][0];
      object["right"] = 176;
      object["bottom"] = object["originalClip"][2];
      object["left"] = object["originalClip"][3];
      object.setClip([object["top"], object["right"], object["bottom"], object["left"]]);
      object["timer"] = setInterval(variableName + "." + name + "()", object["speed"]);
      return 0;
    }
  this.right += this.right + this.amount <= this.stop1 ? this.amount : this.stop1 == this.layer.offsetWidth ? this.stop1 - this.right : this.stop1 - this.right > 0 ? this.stop1 - this.right : 0;
  this.setClip([this.top, this.right, this.bottom, this.left]);
  if (this.right >= this.stop1)
    {
      this.stop();
    }
/* keep this comment to reuse freely:
http://www.unitedscripters.com */}


function onRLback(id,speed,amount,size,onExitOptionalFunction,stop1,stop2)
{
	document.getElementById('galeriavideopanelcapt3').style.display="none";
	document.getElementById('galeriavideopanelcapt1').style.display="block";
  if (id)
    {
      id = typeof id == "object" ? id.id : id;
      var variableName = id + "_clipper";
      if (window[variableName] && window[variableName].isRunning)
        {
          return ;
        }
      if (! id || ! document.getElementById(id))
        {
          return ;
        }
      document.getElementById(id).style.display="block";
      var object = window[variableName] = new Object();
      object["layer"] = document.getElementById(id);
      object["id"] = id;
      var name = "onRLback";
      object[name] = eval(name);
      object["last"] = name;
      object.isRunning = 1;
      object["speed"] = parseFloat(speed) || 100;
      object["amount"] = parseFloat(amount) || 1;
      object["size"] = parseFloat(size) || object["layer"].offsetWidth / 2;
      onExitOptionalFunction = typeof onExitOptionalFunction == "string" ? eval(onExitOptionalFunction) : onExitOptionalFunction;
      object["onExitOptionalFunction"] = typeof onExitOptionalFunction == "function" ? onExitOptionalFunction : onExitOptionalFunction ? (function (object)
{
  (document.getElementById(object.id)).style.visibility = "hidden";
  object.setClip(object.originalClip);
}
) : 0;
      object["stop1"] = parseFloat(stop1) || object["layer"].offsetWidth;
      object["stop2"] = parseFloat(stop2) || object["layer"].offsetHeight;
      object["timer"] = null;
      object["stop"] = (function ()
{
  clearInterval(this.timer);
  this.isRunning = 0;
  if (typeof this.onExitOptionalFunction == "function")
    {
      this.onExitOptionalFunction(this);
    }
}
);
      object["setClip"] = (function (array)
{
  if (typeof array == "string")
    {
      array = array.match(/\d+/g);
    }
  var output = "rect(";
  for (var a = 0;a < array.length;a++)
    {
      output += array[a] + "px, ";
    }
  this.layer.style.clip = output.substring(0, output.length - 2) + ")";
  this.layer.style.left = 266-array[1];
}
);
      object["getClip"] = (function ()
{
  if (! this.layer.style.clip)
    {
      this.layer.style.clip = "rect(0px, " + parseFloat(this.layer.offsetWidth) + "px, " + parseFloat(this.layer.offsetHeight) + "px, 0px)";
    }
  var clip = this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g, "").replace(/\s+/g, " ").split(" ");
  return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
}
);
      object["layer"].style.position = "absolute";
      object["layer"].style.visibility = "visible";
      object["originalTop"] = object["layer"].offsetTop;
      object["originalLeft"] = object["layer"].offsetLeft;
      object["originalClip"] = object.getClip();
      object["top"] = object["originalClip"][0];
      object["right"] = 266;
      object["bottom"] = object["originalClip"][2];
      object["left"] = object["originalClip"][3];
      object.setClip([object["top"], object["right"], object["bottom"], object["left"]]);
      object["timer"] = setInterval(variableName + "." + name + "()", object["speed"]);
      return 0;
    }
  this.right -= this.amount;
  this.setClip([this.top, this.right, this.bottom, this.left]);
  if (this.right <= 88)
    {
	this.layer.style.left=178;
	this.right=88;
	this.setClip([this.top, this.right, this.bottom, this.left]);
	this.layer.style.visibility="hidden";
      this.stop();
    }
/* keep this comment to reuse freely:
http://www.unitedscripters.com */}









function onLRback(id,speed,amount,size,onExitOptionalFunction,stop1,stop2)
{
	document.getElementById('galeriavideopanelcapt2').style.display="none";
	document.getElementById('galeriavideopanelcapt1').style.display="block";
  if (id)
    {
      id = typeof id == "object" ? id.id : id;
      var variableName = id + "_clipper";
      if (window[variableName] && window[variableName].isRunning)
        {
          return ;
        }
      if (! id || ! document.getElementById(id))
        {
          return ;
        }
      document.getElementById(id).style.display="block";
      var object = window[variableName] = new Object();
      object["layer"] = document.getElementById(id);
      object["id"] = id;
      var name = "onLRback";
      object[name] = eval(name);
      object["last"] = name;
      object.isRunning = 1;
      object["speed"] = parseFloat(speed) || 100;
      object["amount"] = parseFloat(amount) || 1;
      object["size"] = parseFloat(size) || object["layer"].offsetWidth / 2;
      onExitOptionalFunction = typeof onExitOptionalFunction == "string" ? eval(onExitOptionalFunction) : onExitOptionalFunction;
      object["onExitOptionalFunction"] = typeof onExitOptionalFunction == "function" ? onExitOptionalFunction : onExitOptionalFunction ? (function (object)
{
  (document.getElementById(object.id)).style.visibility = "hidden";
  object.setClip(object.originalClip);
}
) : 0;
      object["stop1"] = parseFloat(stop1) || object["layer"].offsetWidth;
      object["stop2"] = parseFloat(stop2) || object["layer"].offsetHeight;
      object["timer"] = null;
      object["stop"] = (function ()
{
  clearInterval(this.timer);
  this.isRunning = 0;
  if (typeof this.onExitOptionalFunction == "function")
    {
      this.onExitOptionalFunction(this);
    }
}
);
      object["setClip"] = (function (array)
{
  if (typeof array == "string")
    {
      array = array.match(/\d+/g);
    }
  var output = "rect(";
  for (var a = 0;a < array.length;a++)
    {
      output += array[a] + "px, ";
    }
  this.layer.style.clip = output.substring(0, output.length - 2) + ")";
}
);
      object["getClip"] = (function ()
{
  if (! this.layer.style.clip)
    {
      this.layer.style.clip = "rect(0px, " + parseFloat(this.layer.offsetWidth) + "px, " + parseFloat(this.layer.offsetHeight) + "px, 0px)";
    }
  var clip = this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g, "").replace(/\s+/g, " ").split(" ");
  return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
}
);
      object["layer"].style.position = "absolute";
      object["layer"].style.visibility = "visible";
      object["originalTop"] = object["layer"].offsetTop;
      object["originalLeft"] = object["layer"].offsetLeft;
      object["originalClip"] = object.getClip();
      object["top"] = object["originalClip"][0];
      object["right"] = 266;
      object["bottom"] = object["originalClip"][2];
      object["left"] = object["originalClip"][3];
      object.setClip([object["top"], object["right"], object["bottom"], object["left"]]);
      object["timer"] = setInterval(variableName + "." + name + "()", object["speed"]);
      return 0;
    }
  this.right -= this.right - this.amount >= this.stop1 ? this.amount : this.stop1 == this.layer.offsetWidth ? this.stop1 - this.right : this.stop1 - this.right > 0 ? this.stop1 - this.right : 0;
  this.setClip([this.top, this.right, this.bottom, this.left]);
  if (this.right <= this.stop2)
    {
      this.right=this.stop2;
      this.setClip([this.top, this.right, this.bottom, this.left]);
      this.layer.style.visibility="hidden";
      this.stop();
    }
/* keep this comment to reuse freely:
http://www.unitedscripters.com */}
