uagent = window.navigator.userAgent.toLowerCase();
IEB = (uagent.indexOf('msie') != -1) ? true : false;
OPB = (uagent.indexOf('opera') != -1) ? true : false;
CRB = (uagent.indexOf('chrome') != -1) ? true : false;
SFB = (uagent.indexOf('safari') != -1) ? true : false;
var scompat = document.compatMode;
var Shows = null;
var Showdescgoster = 0;
var Showthumbgoster = 0;
var Showcwidth = 0;
var Showcheight = 0;
var Showcalc = 0;
var Showtam = 0;
var Showkalan = 0;
var Showkalany = 0;
var Showts = "";
var Showds = "";
var Showjbtype = 0;
var Showrealcurrent = 0;
var Showtimeo = null;
Showthumbs_obj = null;
Showmoving_obj = null;
ShowTotalThumbWidth = 0;
ShowTotalThumbHeight = 0;
ShowMoveIcWidth = 0;
var ExposeTime = 4000;
var TransitionTime = 2000;
var TBW = 0;
var CursorStr = "default";
var ShowDescCalcWidth = 0;
var ShowDescCalcHeight = 0;
var ShowDescCalcIcWidth = 0;
var ShowDescCalcIcHeight = 0;
var MoveWidth = 0;

PicWidth = 460;
PicHeight = 345;

Showimgarr = new Array();
Showthumbimgstr = new Array();
Showimgstr = new Array();
Showlinkstr = new Array();
Showclslinkstr = new Array();
Showtitarr = new Array();
Showdesarr = new Array();

PicNames = new Array();
PicNames[0] = '0.jpg';
PicNames[1] = '2.jpg';
PicNames[2] = '3.jpg';
PicNames[3] = '4.jpg';
PicNames[4] = '1.jpg';
PicNames[5] = '5.jpg';
PicNames[6] = '6.jpg';
PicNames[7] = '7.jpg';

for (i = 0; i < PicNames.length; i++)
{
  Showimgarr[i] = new Image();
  Showimgarr[i].c = 0;
  Showimgarr[i].onload = Showsecondcomplate;
  Showimgarr[i].src = Showfoldername + PicNames[i];
  Showimgstr[i] = Showfoldername + PicNames[i];
  Showthumbimgstr[i] = Showfoldername + PicNames[i];
  Showlinkstr[i] = '';
  Showclslinkstr[i] = '';
  Showtitarr[i] = "";
  Showdesarr[i] = "";
}

if ((IEB == true) && (scompat == "BackCompat"))
{
  Showcwidth = PicWidth;
  Showcheight = PicHeight;
}
else
{
  Showcwidth = PicWidth - 2 * (0);
  Showcheight = PicHeight - 2 * (0);
}
var Showicwidth = PicWidth - 2 * (0);
var Showicheight = PicHeight - 2 * (0);
ShowDescCalcWidth = 260;
ShowDescCalcHeight = 80;
if ((IEB == true) && (scompat == "BackCompat"))
{
  ShowDescCalcIcWidth = ShowDescCalcWidth;
  ShowDescCalcIcHeight = ShowDescCalcHeight;
}
else
{
  ShowDescCalcIcWidth = ShowDescCalcWidth - 2 * (2) - 2 * (3);
  ShowDescCalcIcHeight = ShowDescCalcHeight - 2 * (2) - 2 * (3);
}
document.write('<div style="position:relative;width:' + Showcwidth + 'px;height:' + Showcheight + 'px;overflow:hidden;border-style:' + 'solid' + ';border-width:' + 0 + 'px;border-color:#' + 'CCCCCC' + ';' + '' + '' + '">');
document.write('<div id="Showdv" style="position:relative;width:' + Showicwidth + 'px;height:' + Showicheight + 'px;overflow:hidden;padding:0px;margin:0px;z-index:1;' + 'FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=2,enabled=false);' + '"' + ' onfilterchange=ShowFadeBitti()' + '></div>');

for (i = 0; i < PicNames.length; i++)
{
  if (0 == 0)
  {
    Showds = Showds + Showlinkstr[i];
    if (Showlinkstr[i].length > 2)
    {
      CursorStr = "pointer";
    }
    else
    {
      CursorStr = "default";
    }
  }
  Showds = Showds + '<div id="Showdesc' + i + '" style="position:absolute;top:' + 120 + 'px;left:' + 10 + 'px;width:' + ShowDescCalcWidth + 'px;height:' + ShowDescCalcHeight + 'px;visibility:hidden;overflow:hidden;cursor:' + CursorStr + ';z-index:20;">';
  Showds = Showds + '<div style="position:absolute;left:0px;top:0px;width:' + ShowDescCalcWidth + 'px;height:' + ShowDescCalcHeight + 'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#' + '000000' + ';opacity: ' + '0.50' + ';filter:alpha(opacity=' + '50' + ');-moz-opacity:' + '0.50' + ';"></div>';
  Showds = Showds + '<div style="position:relative;left:0px;top:0px;width:' + ShowDescCalcIcWidth + 'px;height:' + ShowDescCalcIcHeight + 'px;overflow:hidden;padding:' + 3 + 'px;text-align:' + 'left' + ';border-style:' + 'solid' + ';border-width:' + 2 + 'px;border-color:#' + '990000' + ';color:#' + 'FFFFFF' + ';font-family:' + 'arial' + ';font-style:' + 'normal' + ';font-size: ' + '13px' + ';font-weight:' + 'normal' + ';text-decoration:' + 'none' + ';opacity: 1.0;filter:alpha(opacity=100);-moz-opacity:1.0;">';
  Showds = Showds + '<span style="color:#' + 'FECE3F' + ';font-family:' + 'arial' + ';font-style:' + 'normal' + ';font-size: ' + '14px' + ';font-weight:' + 'bold' + ';text-decoration:' + 'none' + ';">' + Showtitarr[i] + '</span><br />' + Showdesarr[i];
  Showds = Showds + '</div>';
  Showds = Showds + '</div>';
  if (0 == 0)
  {
    Showds = Showds + Showclslinkstr[i];
  }
}
document.write('' + Showds);

function ShowShowCurrentDesc()
{
  if ((Showdescgoster == 1) && ((Showtitarr[Showrealcurrent].length > 0) || (Showdesarr[Showrealcurrent].length > 0)))
  {
    after_des = document.getElementById('Showdesc' + Showrealcurrent);
    after_des.style.visibility = "visible";
  }
}
function ShowHideCurrentDesc()
{
  before_des = document.getElementById('Showdesc' + Showvcurr);
  before_des.style.visibility = "hidden";
}
function ShowHighlightCurrTumb()
{
  if ((0 == 1) && (0 == 0))
  {
    Showbeforethumb = document.getElementById('Showthumb' + Showvcurr);
    Showafterthumb = document.getElementById('Showthumb' + Showrealcurrent);
    Showbeforethumb.style.borderColor = '999999';
    Showafterthumb.style.borderColor = '990000';
  }
}
document.write('</div>');

function Showzindx()
{
  Showobjn.style.visibility = "visible";
  Showobjc.style.zIndex = 2; Showobjn.style.zIndex = 3;
}

function ShowThumbOut(tobj, nm)
{
  if ((Showvcurr == nm) && (0 == 0)) { } else { tobj.style.borderColor = '999999';
	}
}
function ShowThumbOver(tobj, nm)
{
  tobj.style.borderColor = '990000';
}

function ShowSonrakiClick(c, n)
{
  Showvcurr = c; Showvnext = n;
  Showobjc = document.getElementById('Showd' + Showvcurr);
  Showobjn = document.getElementById('Showd' + Showvnext);
}

function ShowSonraki()
{
  Showvcurr = Showvnext;
  Showvnext = Showvnext + 1;
  if (Showvnext >= PicNames.length)
  {
    Showvnext = 0;
    Showtam = 1;
  }
  Showobjc = document.getElementById('Showd' + Showvcurr);
  Showobjn = document.getElementById('Showd' + Showvnext);
}
function Showsecondcomplate()
{
  this.c = 1;
}
function Showdevam(fm, pt)
{
  if ((Showimgarr[Showvnext].c == 1) && (Showimgarr[Showvcurr].c == 1))
  {
    Showtimeo = setTimeout(fm + '()', pt);
  }
  else
  {
    setTimeout('Showdevam("' + fm + '")', 500);
  }
  var Showcagain = 1;
  for (i = 0; i < PicNames.length; i++)
  {
    if (Showimgarr[i].c == 1)
    { }
    else
    { Showcagain = 0; }
  }
  if (Showcagain == 1)
  { Showtam = 1; }
}
function ThumbClick(clicked_img, tobj)
{
  if (Showjbtype == 1)
  { return; }
  clearTimeout(Showtimeo);
  ShowSonrakiClick(Showrealcurrent, clicked_img);
  if (Showfademi == 1)
  {
    if (IEB == true)
    {
      if (Showtam == 0) { Showdevam("Showdotrans", ExposeTime); }
      else { Showdotrans(); }
    }
    else
    {
      if (Showtam == 0) { Showdevam("Showbeftrans", ExposeTime); }
      else { Showbeftrans(); }
    }
  }
  else if (Showfademi == 2) { if (Showtam == 0) { Showdevam("ShowDoSlide", ExposeTime); } else { ShowDoSlide(); } }
  else if (Showfademi == 3) { if (Showtam == 0) { Showdevam("ShowDoScrollUp", ExposeTime); } else { ShowDoScrollUp(); } } else if (Showfademi == 4) { if (Showtam == 0) { Showdevam("ShowDoBlindX", ExposeTime); } else { ShowDoBlindX(); } } else if (Showfademi == 5) { if (Showtam == 0) { Showdevam("ShowDoBlindY", ExposeTime); } else { ShowDoBlindY(); } }
}
function Showsl()
{
  Showfademi = 1;
  Showvcurr = 0;
  Showvnext = 0;
  Showvssdiv = null;
  stepc = 20 * (2);
  Showdif = 0.00;
  Showop = 1.00;
  Showdif = (1.00 / stepc);
  dstr1 = '<div id="';
  dstr2 = '" style="position:absolute;visibility:hidden;' + 'left:0px;top:0px;' + 'padding:0px;margin:0px;overflow:hidden;">';
  dstr23 = '<table cellspacing="0" cellpadding="0" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;"><tr><td style="width:' + Showicwidth + 'px;height:' + Showicheight + 'px;left:0px;top:0px;padding:0px;margin:0px;text-align:' + 'center' + ';vertical-align:' + 'middle' + ';">';
  dstr3 = '<img id="Showimg';
  dstr4 = '" src="';
  dstr5 = '"  border="0" style="position:relative;border-style:' + 'solid' + ';border-width:' + '0' + 'px;border-color:' + '#CCCCCC' + ';' + "" + '" alt=""></img>';
  dstr56 = '</td></tr></table>';
  dstr6 = '</div>';
  this.Showdotrans = Showdotrans;
  this.Showinitte = Showinitte;
  this.Showinitte2 = Showinitte2;
  this.Showbeftrans = Showbeftrans;
  this.Showdotransff = Showdotransff;
}
function ShowFadeBitti()
{ Showjbtype = 0; ShowShowCurrentDesc(); }
function Showdotrans()
{
  Showjbtype = 1;
  ShowHideCurrentDesc();
  if (IEB == true)
  {
    Showvssdiv.filters[0].apply();
  }
  Showobjc.style.visibility = "hidden";
  Showobjn.style.visibility = "visible";
  if (IEB == true)
  { Showvssdiv.filters[0].play(); } Showrealcurrent = Showvnext; ShowHighlightCurrTumb(); ShowSonraki(); if (Showtam == 0) { Showdevam("Showdotrans", ((1000 * 2) + ExposeTime)); } else { Showtimeo = setTimeout('Showdotrans()', (TransitionTime + ExposeTime)); }
}
function Showdotransff()
{
  Showop = Showop - Showdif;
  if (Showop < (0.00))
  { Showop = 0.00; }
  Showobjc.style.opacity = Showop;
  Showobjn.style.opacity = 1.00 - Showop;
  if (Showop > (0.00))
  { setTimeout('Showdotransff()', 50); }
  else
  {
    Showobjc.style.zIndex = 2;
    Showobjn.style.zIndex = 3;
    Showrealcurrent = Showvnext;
    ShowShowCurrentDesc();
    ShowHighlightCurrTumb();
    ShowSonraki();
    if (Showtam == 0)
    { Showdevam("Showbeftrans", ExposeTime); }
    else
    { Showtimeo = setTimeout('Showbeftrans()', ExposeTime); }
    Showjbtype = 0;
  }
}
function Showbeftrans()
{
  Showjbtype = 1;
  ShowHideCurrentDesc();
  Showop = 1.00;
  Showobjc.style.visibility = "visible";
  Showobjn.style.visibility = "visible";
  Showobjc.style.zIndex = 3;
  Showobjn.style.zIndex = 2;
  Showobjc.style.opacity = 1.00;
  Showobjn.style.opacity = 1.00;
  Showdotransff();
}
function ShowDoSlide()
{ Showjbtype = 1; ShowHideCurrentDesc(); Showkalan = Showkalan - Math.ceil(Showkalan / 2); Showobjc.style.left = "" + (Showkalan - Showicwidth) + "px"; Showobjn.style.left = "" + Showkalan + "px"; if (Showkalan <= 0) { Showrealcurrent = Showvnext; ShowShowCurrentDesc(); ShowHighlightCurrTumb(); ShowSonraki(); Showkalan = Showicwidth; Showobjn.style.left = "" + Showkalan + "px"; Showzindx(); Showjbtype = 0; if (Showtam == 0) { Showdevam("ShowDoSlide", ExposeTime); } else { Showtimeo = setTimeout('ShowDoSlide()', ExposeTime); } } else { setTimeout('ShowDoSlide()', 50); } }
function ShowDoScrollUp()
{ Showjbtype = 1; ShowHideCurrentDesc(); Showkalan = Showkalan - Math.ceil(Showkalan / 2); Showobjc.style.top = "" + (Showkalan - Showicheight) + "px"; Showobjn.style.top = "" + Showkalan + "px"; if (Showkalan <= 0) { Showrealcurrent = Showvnext; ShowShowCurrentDesc(); ShowHighlightCurrTumb(); ShowSonraki(); Showkalan = Showicheight; Showobjn.style.top = "" + Showkalan + "px"; Showzindx(); Showjbtype = 0; if (Showtam == 0) { Showdevam('ShowDoScrollUp', ExposeTime); } else { Showtimeo = setTimeout('ShowDoScrollUp()', ExposeTime); } } else { setTimeout('ShowDoScrollUp()', 50); } }
function ShowDoBlindX()
{
 Showjbtype = 1;
 ShowHideCurrentDesc();
 Showkalan = Showkalan - Math.ceil(Showkalan / 2);
 Showobjc.style.left = "" + (Showicwidth - Showkalan) + "px";
 Showobjn.style.left = "" + Showkalan + "px";
 if (Showkalan <= 0) 
 {
  Showrealcurrent = Showvnext;
  ShowShowCurrentDesc();
  ShowHighlightCurrTumb();
  ShowSonraki();
  Showkalan = Showicwidth;
  Showobjn.style.left = "" + Showkalan + "px";
  Showzindx(); Showjbtype = 0;
  if (Showtam == 0)
  {
   Showdevam("ShowDoBlindX", ExposeTime);
  }
  else
  {
   Showtimeo = setTimeout('ShowDoBlindX()', ExposeTime);
  }
 }
 else
 {
  setTimeout('ShowDoBlindX()', 50);
 }
}

function ShowDoBlindY()
{
  Showjbtype = 1;
  ShowHideCurrentDesc();
  Showkalan = Showkalan - Math.ceil(Showkalan / 2);
  Showobjc.style.top = "" + (Showicheight - Showkalan) + "px";
  Showobjn.style.top = "" + Showkalan + "px";
  if (Showkalan <= 0)
  {
    Showrealcurrent = Showvnext;
    ShowShowCurrentDesc();
    ShowHighlightCurrTumb();
    ShowSonraki();
    Showkalan = Showicheight;
    Showobjn.style.top = "" + Showkalan + "px";
    Showzindx();
    Showjbtype = 0;
    if (Showtam == 0)
    {
      Showdevam("ShowDoBlindY", ExposeTime);
    }
    else
    {
      Showtimeo = setTimeout('ShowDoBlindY()', ExposeTime);
    }
  }
  else
  {
    setTimeout('ShowDoBlindY()', 50);
  }
}
function Showinitte2()
{
  Showthumbs_obj = document.getElementById('Showthumbsid');
  Showmoving_obj = document.getElementById('Showmovingdiv');
  Showvssdiv = document.getElementById("Showdv");
  if (2 > 0)
  {
    Showobjc = document.getElementById('Showd' + 0);
    Showobjc.style.visibility = "visible";
  }
  if (2 > 1)
  {
    Showvcurr = 0;
    Showvnext = 0;
    Showrealcurrent = 0;
    if (Showfademi == 0)
    {
      Showvcurr = 0;
      Showvnext = 1;
      Showrealcurrent = 0;
      setTimeout('Showdotrans()', ExposeTime);
    }
    else
      if (Showfademi == 1)
    {
      if (IEB == true)
      {
        ShowSonraki();
        ShowShowCurrentDesc();
        ShowHighlightCurrTumb();
        Showdevam("Showdotrans", ExposeTime);
      } else
      {
        ShowSonraki();
        ShowShowCurrentDesc();
        ShowHighlightCurrTumb();
        Showdevam("Showbeftrans", ExposeTime);
      }
    }
    else
      if (Showfademi == 2)
    {
      Showkalan = Showicwidth;
      ShowSonraki();
      Showrealcurrent = 0;
      ShowShowCurrentDesc();
      ShowHighlightCurrTumb();
      Showobjn.style.left = "" + Showkalan + "px"; Showzindx(); Showdevam("ShowDoSlide", ExposeTime);
    }
    else
      if (Showfademi == 3)
    {

      Showkalan = Showicheight; ShowSonraki();
      Showrealcurrent = 0; ShowShowCurrentDesc();
      ShowHighlightCurrTumb();
      Showobjn.style.top = "" + Showkalan + "px";
      Showzindx();
      Showdevam("ShowDoScrollUp", ExposeTime);
    }
    else
      if (Showfademi == 4)
    {
      Showkalan = Showicwidth;
      ShowSonraki();
      Showrealcurrent = 0;
      ShowShowCurrentDesc();
      ShowHighlightCurrTumb();
      Showobjn.style.left = "" + Showkalan + "px";
      Showzindx(); Showdevam("ShowDoBlindX", ExposeTime);
    }
    else
      if (Showfademi == 5)
    {
      Showkalan = Showicheight;
      ShowSonraki();
      Showrealcurrent = 0;
      ShowShowCurrentDesc();
      ShowHighlightCurrTumb();
      Showobjn.style.top = "" + Showkalan + "px"; Showzindx(); Showdevam("ShowDoBlindY", ExposeTime);
    }
  }
}
function Showinitte()
{
  i = 0; innertxt = "";
  for (i = 0; i < PicNames.length; i++)
  {
    innertxt = innertxt + dstr1 + "Showd" + i + dstr2 + dstr23 + Showlinkstr[i] + dstr3 + i + dstr4 + Showimgstr[i] + dstr5 + Showclslinkstr[i] + dstr56 + dstr6;
  }
  spage = document.getElementById('Showdv');
  spage.innerHTML = "" + innertxt; setTimeout('Showinitte2()', 100);
}
function ShowBas() { Shows = new Showsl(); Shows.Showinitte(); } setTimeout('ShowBas()', 100);