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;
FFB=(uagent.indexOf('firefox') != -1)?true:false;
var scompat = document.compatMode;
function secondcomplate(){this.c=1;}
function gallerysampleScSlideShow(){
    var CursorStr="default";
    var Xpos=0;var yy=0;
    function ff1ff(){
	if(descgoster==1){
	    lll1llllllll=0;lll1lllllllll=0;
	    DescCalcWidth=420;
	    ll1lllllllll=66;
	    if((IEB==true)&&(scompat == "BackCompat" )){
		lll1llllllll=DescCalcWidth;
		lll1lllllllll=ll1lllllllll;
	    }else{
		lll1llllllll=DescCalcWidth-2*(1)-(5+5);
		lll1lllllllll=ll1lllllllll-2*(1)-(5+5);
	    }
	    l1lllll = spageObj.appendChild(document.createElement("DIV"));
	    l1lllll.id="disdesc";
	    l1lllll.style.position="absolute";
	    l1lllll.style.left=""+3+"px";
	    l1lllll.style.top=""+196+"px";
	    l1lllll.style.width=""+DescCalcWidth+"px";
	    l1lllll.style.height=""+ll1lllllllll+"px";
	    l1lllll.style.overflow="hidden";
	    l1lllll.style.borderStyle="solid";
	    l1lllll.style.borderWidth="0px";
	    l1lllll.style.borderColor="#000000";
	    l1lllll.style.visibility="visible";
	    l1lllll.style.zIndex=(0+3);

	    //what is this 20 ?
	    for(i=0;i<10;i++){
		l1llllll = l1lllll.appendChild(document.createElement("DIV"));
		l1llllll.id="desc"+i;
		l1llllll.style.position="absolute";
		l1llllll.style.left="0px";
		l1llllll.style.top="0px";
		l1llllll.style.width=""+DescCalcWidth+"px";
		l1llllll.style.height=""+ll1lllllllll+"px";
		l1llllll.style.visibility="hidden";
		l1llllll.style.overflow="hidden";
		CursorStr="default";
		if( (0==0) && (linkstr[i].length>2)){CursorStr="pointer";}
		l1llllll.style.cursor=""+CursorStr;
		l1llllll.indx=i;
		l1llllll.onclick=ff1fff;
		l1llllll.style.zIndex=0;
		l1lllllll = l1llllll.appendChild(document.createElement("DIV"));
		l1lllllll.style.position="absolute";
		l1lllllll.style.left="0px";
		l1lllllll.style.top="0px";
		l1lllllll.style.width=""+DescCalcWidth+"px";
		l1lllllll.style.height=""+ll1lllllllll+"px";
		l1lllllll.style.borderStyle="solid";
		l1lllllll.style.borderWidth="0px";
		l1lllllll.style.borderColor="#000000";
		l1lllllll.style.backgroundColor="#"+"000000";
		
		if(IEB==true){l1lllllll.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+"60"+")";}
		else{l1lllllll.style.opacity='0.60';}

		// is this the gallery ?
		l1llllllll = l1llllll.appendChild(document.createElement("DIV"));
		//l1llllllll.style.position="relative";
		l1llllllll.style.position="absolute";
		l1llllllll.style.left="0px";
		l1llllllll.style.top="0px";
		l1llllllll.style.width=""+lll1llllllll+"px";
		l1llllllll.style.height=""+lll1lllllllll+"px";
		l1llllllll.style.overflow="hidden";
		l1llllllll.style.padding=""+5+"px "+5+"px "+5+"px "+5+"px";
		l1llllllll.style.borderStyle=""+"solid";
		l1llllllll.style.borderWidth=""+1+"px";
		l1llllllll.style.borderColor="#"+"4C4C4C";
		l1llllllll.style.textAlign=""+"left";
		l1llllllll.style.color="#"+'FFFFFF';
		l1llllllll.style.fontFamily='arial';
		l1llllllll.style.fontStyle='normal';
		l1llllllll.style.fontSize="13px";
		l1llllllll.style.fontWeight='normal';
		l1llllllll.style.textDecoration='none';
		
		if(IEB==true){l1llllllll.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)";}
		else{l1llllllll.style.opacity=1.0;}
		l1llllllll.innerHTML='<span style="color:#'+'FECE3F'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'14px'+';font-weight:'+'bold'+';text-decoration:'+'none'+';">'+titarr[i]+'</span><br />'+desarr[i];
		llllllllllllll[i]=l1llllll;
	    }
	}
    }
    
    function ffffffffffffff(){
	if((descgoster==1)&&( (titarr[llll].length>0) || (desarr[llll].length>0)  )){
	    if((ll1llllllll==1)||(ll1llllllll==2)){currstep=stepcount;}
	    else{currstep=0;}ffffffffffffffff();}
    }

    function fffffffffffffff(){
	if(descgoster==1){clearTimeout(lll1llllllllll);llllllllllllll[ll].style.visibility="hidden";}
    }
    
    function ffffffffffffffff(){
	if(currstep<=0){
	    llllllllllllll[llll].style.left=""+0+"px";
	    llllllllllllll[llll].style.top=""+0+"px";
	    if((titarr[llll].length>0)||(desarr[llll].length>0)){
		if(ll1llllllll==3){
		    clearTimeout(lll1llllllllll);
		    ll1lllll=0;ll1llllll=0.00;
		    llllllllllllll[llll].style.visibility="visible";
		    fffffffffffffffff();}
		else if(ll1llllllll==4){
		    clearTimeout(lll1llllllllll);
		    llllllllllllll[llll].style.visibility="visible";
		    BottomClip=0;stepsay=1;stepcount=10;
		    YStep=Math.ceil((ll1lllllllll)/stepcount);
		    llllllllllllll[llll].style.visibility="visible";
		    llllllllllllll[llll].style.clip="rect("+0+"px, auto, "+BottomClip+"px, auto)";
		    ff1f();
		}else{
		    llllllllllllll[llll].style.visibility="visible";
		}
	    }else{
		llllllllllllll[llll].style.visibility="hidden";
	    }
	    return;
	}
	if((ll1llllllll==1)||(ll1llllllll==2)){
	    var dtop=0;
	    if(ll1llllllll==1){
		dtop= parseInt(ll1lllllllll-((ll1lllllllll/stepcount)*(stepcount-(currstep-1))));
	    }else{
		dtop= parseInt((-1*ll1lllllllll)+      ((ll1lllllllll/stepcount)*(stepcount-(currstep-1)))         );
	    }
	    llllllllllllll[llll].style.top=""+dtop+"px";
	    if(currstep==stepcount){
		if((titarr[llll].length>0)||(desarr[llll].length>0)){
		    llllllllllllll[llll].style.visibility="visible";
		}else{llllllllllllll[llll].style.visibility="hidden";}
	    }
	}
	currstep--;
	lll1llllllllll=setTimeout("gallerysample.ffffffffffffffff()",10);
    }

    function fffffffffffffffff(){
	ll1lllll=ll1lllll+5;
	ll1llllll=ll1llllll+0.05;
	if(IEB==true){
	    if(ll1lllll>100){
		ll1lllll=100;
		return;
	    }
	}else{
	    if(ll1llllll>1.00){
		ll1llllll=1.00;
		return;
	    }
	}
	if(IEB==true){
	    llllllllllllll[llll].style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+ll1lllll+")";
	}else{
	    llllllllllllll[llll].style.opacity = ll1llllll;}lll1llllllllll=setTimeout("gallerysample.fffffffffffffffff()",10);
    }

    function ff1f(){
	BottomClip=BottomClip+YStep;
	if(stepsay<=stepcount){
	    llllllllllllll[llll].style.clip="rect("+0+"px, auto, "+BottomClip+"px, auto)";
	    lll1llllllllll=setTimeout('gallerysample.ff1f()',50);
	}else{
	    llllllllllllll[llll].style.clip="rect(auto, auto, auto, auto)";
	}
	stepsay=stepsay+1;
    }

    // thumbnails section
    function CreateThumbnails(){
	if(thumbgoster!=1){return;}
	tleft=0;ttop=0;
	lll1llll=0;
	lll1lllll=0;
	//lllllllllll=70+2*2+2*2;
	//llllllllllll=48+2*2+2*2;
	lllllllllll=137;  // thumbnail border width
	llllllllllll=48+2*2+2*2;
	if(0==0){
	    ll1llll=llllllllllll;
	    if((IEB==true)&&(scompat == "BackCompat" )){
		lll1lllll=llllllllllll+(2*0)+(0+0);
		lll1llll=ll1lll+(2*0)+(0+0);
	    }else{
		lll1lllll=llllllllllll+(0+0);
		lll1llll=ll1lll+(0+0);
	    }
	    lllllllll=(10*lllllllllll)+((10-1)*4);llllllllll=llllllllllll;
	}else{
	    ll1lll=lllllllllll;
	    if((IEB==true)&&(scompat == "BackCompat" )){
		lll1llll=lllllllllll+(2*0)+(0+0);
		lll1lllll=ll1llll+(2*0)+(0+0);
	    }else{
		lll1llll=lllllllllll+(0+0);
		lll1lllll=ll1llll+(0+0);
	    }
	    lllllllll=lllllllllll;
	    llllllllll=(10*llllllllllll)+((10-1)*4);
	}
	MoveIcWidth=lllllllll-2*lllllllllll;
	MoveIcHeight=llllllllll-2*llllllllllll;
	lll1 = spageObj.appendChild(document.createElement("DIV"));
	lll1.style.position="absolute";
	lll1.style.left=""+10+"px"; // position of thumbnails section
	lll1.style.top=""+185+"px";
	lll1.style.borderStyle=""+'solid';
	lll1.style.borderWidth=""+0+"px";
	lll1.style.borderColor="#000000";
	lll1.style.zIndex=0+4;
	lll1.style.width=""+570+"px";
	//lll1.style.width=""+lll1llll+"px";
	lll1.style.height=""+lll1lllll+"px";
	lll1.style.visibility="inherit";
	lll1.style.backgroundColor="";
	lll1.style.backgroundImage="";
	lll1.style.backgroundRepeat="";
	lll1.style.backgroundPosition=""+0+"px "+0+"px";
	l1lllllllll = lll1.appendChild(document.createElement("DIV"));
	l1lllllllll.id="thumbsid";
	l1lllllllll.style.position="absolute";
	///l1lllllllll.style.width=""+ll1lll+"px";
	//l1lllllllll.style.height=""+ll1llll+"px";
	l1lllllllll.style.width=""+570+"px";
	l1lllllllll.style.height=""+ll1llll+"px";
	l1lllllllll.style.visibility="inherit";
	l1lllllllll.style.overflow="hidden";
	l1lllllllll.style.left=""+0+"px";
	l1lllllllll.style.top=""+0+"px";
	l1lllllllll.style.zIndex=0+4;
	l1lllllllll.style.borderStyle="solid";
	l1lllllllll.style.borderWidth="0px";
	l1lllllllll.onmousemove=ffffffff;
	l1lllllllll.onmouseover=ff;
	l1lllllllll.onmouseout=fff;
	l1llllllllll = l1lllllllll.appendChild(document.createElement("DIV"));
	l1llllllllll.id="altid";
	l1llllllllll.style.position="absolute";
	l1llllllllll.style.width=""+570+"px";
	l1llllllllll.style.height=""+ll1llll+"px";
	//l1llllllllll.style.width=""+ll1lll+"px";
	//l1llllllllll.style.height=""+ll1llll+"px";
	l1llllllllll.style.visibility="inherit";
	l1llllllllll.style.overflow="hidden";
	l1llllllllll.style.left="0px";
	l1llllllllll.style.top="0px";
	l1llllllllll.style.borderStyle="solid";
	l1llllllllll.style.borderWidth="0px";
	l1llllllllll.style.borderColor="#000000";
	l1llllllllll.style.zIndex=0;
	l1llllllllll.style.backgroundColor="#000000";
	
	if(IEB==true){l1llllllllll.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=1)";}else{l1llllllllll.style.opacity=0.01;}
	
	l1lllllllllll = l1lllllllll.appendChild(document.createElement("DIV"));
	l1lllllllllll.id="movingdiv";
	l1lllllllllll.style.position="absolute";
	l1lllllllllll.style.left="0px";
	l1lllllllllll.style.top="0px";
	l1lllllllllll.style.zIndex=1;
	l1lllllllllll.style.width=""+570+"px";
	l1lllllllllll.style.height=""+ll1llll+"px";
	//l1lllllllllll.style.width=""+lllllllll+"px";
	//l1lllllllllll.style.height=""+llllllllll+"px";
	l1lllllllllll.style.visibility="inherit";
	l1lllllllllll.style.overflow="visible";
	l1lllllllllll.style.borderStyle="solid";
	l1lllllllllll.style.borderWidth="0px";
	l1lllllllllll.style.borderColor="#FFF1D6";

	var lll1llllll=0;
	var lll1lllllll=0;
	if(1==1){lll1llllll=70-(2*0);lll1lllllll=48-(2*0);}else{lll1llllll=0;lll1lllllll=0;}

	// this control number of small thumbnail at bottom
	for(i=0;i<10;i++){
	    if(0==0){tleft=((i*lllllllllll)+(i*4)); ttop=0;}else{tleft=0; ttop=((i*llllllllllll)+(i*4));}

	    lll1l = l1lllllllllll.appendChild(document.createElement("DIV"));
	    lll1l.id="thumb"+i;
	    lll1l.style.position="absolute";
	    lll1l.style.left=""+tleft+"px";
	    lll1l.style.top=""+ttop+"px";
	    lll1l.style.cursor='pointer';
	    lll1l.indx=i;
	    lll1l.style.overflow="hidden";
	    lll1l.style.width=""+(lllllllllll)+"px";
	    lll1l.style.height=""+(llllllllllll)+"px";
	    lll1l.hs=0;lll1l.mouse_pos=0;lll1l.onclick= ffffffffffff;
	    lll1l.onmouseover=fffff;lll1l.onmouseout=ffff;
	    l1llllllllllll = lll1l.appendChild(document.createElement("DIV"));
	    l1llllllllllll.style.zIndex=1;
	    l1llllllllllll.style.padding=""+1+"px";
	    l1llllllllllll.style.cursor='pointer';
	    l1llllllllllll.style.backgroundColor='';
	    l1llllllllllll.style.borderStyle=""+'solid';
	    l1llllllllllll.style.borderWidth=""+2+"px";   // thumnail border
	    l1llllllllllll.style.borderColor=""+"#FFF1D6";
	    l1llllllllllll.indx=i;
	    l1llllllllllll.style.overflow="hidden";
	    if((IEB==true)&&(scompat == "BackCompat" )){
		l1llllllllllll.style.width=""+(lllllllllll)+"px";
		l1llllllllllll.style.height=""+(llllllllllll)+"px";
	    }else{
		l1llllllllllll.style.width=""+(lllllllllll-(2*2+2*2))+"px";
		l1llllllllllll.style.height=""+(llllllllllll-(2*2+2*2))+"px";
	    }
	    l1llllllllllll.style.backgroundImage="";
	    l1llllllllllll.style.backgroundRepeat="no-repeat";
	    l1llllllllllll.style.backgroundPosition=""+0+"px "+0+"px";
	    l1llllllllllll.style.color="#000000";
	    l1llllllllllll.style.fontFamily="";
	    l1llllllllllll.style.fontSize=0+"pt";
	    l1llllllllllll.style.fontStyle="normal";
	    l1llllllllllll.style.fontWeight="normal";
	    l1llllllllllll.style.textAlign="left";

	    // size of the small thumb
	    lll1ll = l1llllllllllll.appendChild(document.createElement("IMG"));
	    lll1ll.src=thumbimgstr[i];
	    lll1ll.style.display="block";
	    lll1ll.style.position="relative";
	    lll1ll.style.left="0px";
	    lll1ll.style.top="0px";
	    //lll1ll.style.width=""+lll1llllll+"px"; // size of image - not table
	    lll1ll.style.width=""+129+"px"; // size of image - not table
	    lll1ll.style.height=""+lll1lllllll+"px";
	    lll1ll.style.margin="0px 0px 0px 0px";
	    lll1ll.style.borderStyle=""+"solid";
	    lll1ll.style.borderWidth=""+0+"px";
	    lll1ll.style.borderColor=""+"#000000";
	    
	    if(0==0){
		lll1ll.style.styleFloat="none";
		lll1ll.style.cssFloat="none";
	    }else if(0==1){
		lll1ll.style.styleFloat="left";
		lll1ll.style.cssFloat="left";
	    }else if(0==2){
		lll1ll.style.styleFloat="right";
		lll1ll.style.cssFloat="right";
	    }
	    
	    ThumbSpan = l1llllllllllll.appendChild(document.createElement("SPAN"));
	    ThumbSpan.innerHTML=thumbtextarr[i];
	    lll1lll = lll1l.appendChild(document.createElement("DIV"));
	    lll1lll.style.zIndex=2;
	    lll1lll.sid=33;lll1lll.style.position="absolute";
	    lll1lll.style.width=""+(lllllllllll)+"px";
	    lll1lll.style.height=""+(llllllllllll)+"px";
	    lll1lll.style.left="0px";lll1lll.style.top="0px";
	    lll1lll.style.backgroundColor="#000000";
	    lll1lll.style.borderStyle="solid";
	    lll1lll.style.borderWidth="0px";
	    lll1lll.style.borderColor="#000000";
	    lll1lll.style.padding="0px";
	    lll1lll.style.overflow="hidden";
	    
	    if(IEB==true){lll1lll.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=1)";}else{lll1lll.style.opacity=0.01;}
	    
	    lllllllllllllll[i]=lll1l;
	    ThumbContArr[i]=l1llllllllllll;
	    lll1llArr[i]=lll1ll;
	}
	moving_obj=l1lllllllllll;
    }

    function ff(){lllllll=1;}

    function fff(){lllllll=0;}

    function ffffffff(event){
	if(ll1lll>=lllllllll){return;}
	var EX=0;e=null;
	if((IEB==true)||(OPB==true)||(CRB==true)||(SFB==true)){
	    EX=parseInt(window.event.offsetX);
	    e=window.event.srcElement;
	}else{
	    EX=parseInt(event.layerX);
	    e=event.target;
	}
	var obj=e;
	if(obj){
	    if(obj==moving_obj){
		Xpos=EX+parseInt(""+moving_obj.style.left);
		zz=Xpos-lllllllllll;
		oran=(zz/(ll1lll-2*lllllllllll));
		yy=Xpos-parseInt(oran*MoveIcWidth)-lllllllllll;
		if(yy>0){yy=0;}
		if(yy<(ll1lll-lllllllll)){
		    yy=ll1lll-lllllllll;
		}ffffff();
	    }else if(obj.sid==33){
		obj2=obj.offsetParent;
		Xpos=EX+parseInt(obj2.style.left)+parseInt(""+moving_obj.style.left);
		zz=Xpos-lllllllllll;oran=(zz/(ll1lll-2*lllllllllll));
		yy=Xpos-parseInt(oran*MoveIcWidth)-lllllllllll;
		if(yy>0){yy=0;}
		if(yy<(ll1lll-lllllllll)){yy=ll1lll-lllllllll;}
		ffffff();
	    }
	}
    }

    function fffffff(event){
	if(ll1llll>=llllllllll){return;}
	var EX=0;
	e=null;
	if((IEB==true)||(OPB==true)||(CRB==true)||(SFB==true)){
	    EX=parseInt(window.event.offsetY);
	    e=window.event.srcElement;
	}else{
	    EX=parseInt(event.layerY);
	    e=event.target;
	}

	var obj=e;
	if(obj){
	    if(obj==moving_obj){
		Xpos=EX+parseInt(""+moving_obj.style.top);
		zz=Xpos-llllllllllll;oran=(zz/(ll1llll-2*llllllllllll));
		yy=Xpos-parseInt(oran*MoveIcHeight)-llllllllllll;
		if(yy>0){yy=0;}
		if(yy<(ll1llll-llllllllll)){yy=ll1llll-llllllllll;}
		ffffff();
	    }else if(obj.sid==33){
		obj2=obj.offsetParent;
		Xpos=EX+parseInt(obj2.style.top)+parseInt(""+moving_obj.style.top);
		zz=Xpos-llllllllllll;oran=(zz/(ll1llll-2*llllllllllll));
		yy=Xpos-parseInt(oran*MoveIcHeight)-llllllllllll;
		if(yy>0){yy=0;}
		if(yy<(ll1llll-llllllllll)){yy=ll1llll-llllllllll;}
		ffffff();
	    }
	}
    }

    function ffffff(){
	if(0==0){
	    if(3==0){
		moving_obj.style.left=""+(yy)+  "px";
	    }else{ffffffffff();}
	}else{
	    if(3==0){
		moving_obj.style.top=""+(yy)+  "px";
	    }else{ffffffffff();}
	}
    }

    function fffffffff(rc){
	if(lllllll==1){return;}
	if(1==0){return;}
	if(0==0){if(ll1lll>=lllllllll){return;}}else{if(ll1llll>=llllllllll){return;}}
	my=0;clearTimeout(ll1l);
	if(1==1){
	    if(0==0){
		my=(-1)*(parseInt(lllllllllllllll[rc].style.left) - (parseInt(ll1lll/2)-parseInt(lllllllllll/2)));
		if(my>0){my=0;}
		if(my<((-1)*(lllllllll-ll1lll))) {my=((-1)*(lllllllll-ll1lll));}ll1llllllllll=parseInt(moving_obj.style.left);
	    }else{
		my=(-1)*(parseInt(lllllllllllllll[rc].style.top) - (parseInt(ll1llll/2)-parseInt(llllllllllll/2)));
		if(my>0){my=0;}
		if(my<((-1)*(llllllllll-ll1llll))) {my=((-1)*(llllllllll-ll1llll));}
		ll1llllllllll=parseInt(moving_obj.style.top);
	    }
	}else{
	    if(0==0){
		my=((-1)*parseInt(lllllllllllllll[rc].style.left));
		if(my>0){my=0;}
		if(my<        ((-1)*(lllllllll-ll1lll))      ){my=((-1)*(lllllllll-ll1lll));}ll1llllllllll=parseInt(moving_obj.style.left);
	    }else{
		my=((-1)*parseInt(lllllllllllllll[rc].style.top));
		if(my>0){my=0;}
		if(my<        ((-1)*(llllllllll-ll1llll))     ){my=((-1)*(llllllllll-ll1llll));}ll1llllllllll=parseInt(moving_obj.style.top);
	    }
	}
	Art=0;Tutyy=my;Fark=Tutyy-ll1llllllllll;TutFark=Fark;Kalan=Fark;
	if(Fark==0){return;}
	CY=ll1llllllllll;llllll=0;
	if(Fark<0){llllll=1;}
	ThumbScrollReason=1;fffffffffff();
    }

    function ffffffffff(){
	clearTimeout(ll1l);
	Art=0;Tutyy=yy;
	if(0==0){ll1llllllllll=parseInt(moving_obj.style.left);}else{ll1llllllllll=parseInt(moving_obj.style.top);}
	Fark=Tutyy-ll1llllllllll;TutFark=Fark;Kalan=Fark;
	if(Fark==0){return;}
	CY=ll1llllllllll;ThumbScrollReason=0;llllll=0;
	if(Fark<0){llllll=1;}
	if((3==1) || (3==2) || (3==3)){ fffffffffff();}
    }
    
    function fffffffffff(){
	if(ThumbScrollReason==1){
	    if(llllll==1){Art=Art-1;}else{Art=Art+1;}
	    CY=CY+Art;
	}else{
	    if(3==1){
		if(llllll==1){Art=Art-1;}else{Art=Art+1;}
		CY=CY+Art;
	    }else if(3==2){
		if(llllll==1){Art=Math.floor(Kalan/12);}else{Art=Math.ceil(Kalan/12);}
		if((Art>1) || (Art<(-1))){Kalan=Kalan-Art;}else{if(llllll==1){Kalan=Kalan-(-1);}else{Kalan=Kalan-(+1);}}
		CY=ll1llllllllll+TutFark-(Kalan);
	    }else if(3==3){
		if(llllll==1){Art=Math.floor(TutFark/10);}else{Art=Math.ceil(TutFark/10);}CY=CY+Art;}
	}
	if(llllll==1){
	    if(CY>Tutyy){ll1l=setTimeout("gallerysample.fffffffffff()",10);}else{CY=Tutyy;}
	}else{
	    if(CY<Tutyy){ll1l=setTimeout("gallerysample.fffffffffff()",10);}else{CY=Tutyy;}
	}if(0==0){
	    moving_obj.style.left=""+(CY)+"px";}else{moving_obj.style.top=""+(CY)+"px";}
    }

    function fff1f(tn){ThumbContArr[tn].style.borderColor="#990000";ThumbContArr[tn].style.backgroundColor='';ThumbContArr[tn].style.backgroundImage="";ThumbContArr[tn].style.color="#000000";lll1llArr[tn].style.borderColor="#000000";lllllllllllllll[tn].hs=1;}

    function fff1(tn){if(lllllllllllllll[tn].mouse_pos==0){ThumbContArr[tn].style.borderColor="#FFF1D6";ThumbContArr[tn].style.backgroundColor='';ThumbContArr[tn].style.backgroundImage="";ThumbContArr[tn].style.color="#000000";lll1llArr[tn].style.borderColor="#000000";lllllllllllllll[tn].hs=0;}}

    function thumbjustswitch(indxg){clearTimeout(ll1ll);clearTimeout(lll1llllllllll);if((indxg==llll)&&(Beklemedemi==1)){return;}if((IEB==true)&&(1==1)&&(Beklemedemi==0)){spageIcObj.filters[0].stop();}eskicurr=ll;eskinext=lll;if(llll!=indxg){llllllllllllll[llll].style.visibility="hidden";}if(eskicurr!=indxg){llllllllllllll[eskicurr].style.visibility="hidden";}if(eskinext!=indxg){llllllllllllll[eskinext].style.visibility="hidden";}lll=indxg;lllllllllllll[lll].style.visibility="visible";lllllllllllll[lll].style.left="0px";lllllllllllll[lll].style.top="0px";if(1==1){if(IEB==true){lllllllllllll[lll].style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)";}else{lllllllllllll[lll].style.opacity=1.00;}}ll=llll;if(ll!=lll){lllllllllllll[ll].style.visibility="hidden";}if(eskicurr!=lll){lllllllllllll[eskicurr].style.visibility="hidden";}if(eskinext!=lll){lllllllllllll[eskinext].style.visibility="hidden";}if((titarr[lll].length>0)||(desarr[lll].length>0)){llllllllllllll[lll].style.left=""+0+"px";llllllllllllll[lll].style.top=""+0+"px";llllllllllllll[lll].style.visibility="visible";if(IEB==true){llllllllllllll[lll].style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+ll1lllll+")";}else{llllllllllllll[lll].style.opacity = ll1llllll;}}llll=lll;Beklemedemi=1;}

    function ffff(){this.mouse_pos=0;thumbmouseic=0;if(llll==this.indx){}else{fff1(this.indx);}if(0==1){ll1ll=setTimeout("gallerysample.ContinueSlideshow()",4000);}}

    function fffff(){this.mouse_pos=1;thumbmouseic=1;fff1f(this.indx);if(0==1){thumbjustswitch(this.indx);}for(i=0;i<10;i++){if((lllllllllllllll[i].hs==1)&&(i!=llll)){fff1(i);}}}

    function ffffffffffff(){if(0==1){return;}if(Beklemedemi==0){return;}clearTimeout(ll1ll);f1f(llll,this.indx);ff1fffff(50);}

    function f1ffffff(){if(this.btype==0){if(Beklemedemi==1){clearTimeout(ll1ll);IsManualAction=1;ff1fffff(50);}}else if(this.btype==1){if(Beklemedemi==1){clearTimeout(ll1ll);IsManualAction=1;f1fffff();ff1fffff(50);}}else if(this.btype==2){if(llllllll==1){if(1==1){l1llll.style.visibility="visible";}if(1==1){l1lll.style.visibility="hidden";}llllllll=0;}else{return;}if(Beklemedemi==1){clearTimeout(ll1ll);IsManualAction=0;}}else if(this.btype==3){if(llllllll==0){if(1==1){l1lll.style.visibility="visible";}if(1==1){l1llll.style.visibility="hidden";}llllllll=1;}else{return;}if(Beklemedemi==1){clearTimeout(ll1ll);IsManualAction=0;ll1ll=setTimeout("gallerysample.ff1fffff(50)",4000);}}}

    function f1fffffff(){this.moimg.style.visibility="inherit";this.noimg.style.visibility="hidden";this.style.color="#000000";}

    function f1ffffffff(){this.noimg.style.visibility="inherit";this.moimg.style.visibility="hidden";this.style.color="#000000";}

    function f1fffffffff(op,onum,cbutvis,posx,posy,iebutopacity,iebutmoopacity,ffbutopacity,ffbutmoopacity,ContMOButtonVarmi,contimgsrc,contmoimgsrc,OriginalSize,ContButtonWidth,ContButtonHeight,ContButtonAltText){op.btype=onum;op.style.position="absolute";    op.style.visibility=cbutvis;op.style.zIndex=0+5;op.style.cursor='pointer';op.style.width="1px";op.style.height="1px";op.style.left=""+posx+"px";op.style.top=""+posy+"px";op.style.overflow="visible";op.style.fontFamily="";op.style.fontSize=0+"pt";    op.style.fontStyle="normal";op.style.fontWeight="normal";    op.style.color="#000000";op.onmouseover = f1fffffff;op.onmouseout = f1ffffffff;op.noimg=op.appendChild(document.createElement("IMG"));op.noimg.style.position="relative";op.noimg.style.visibility="inherit";op.noimg.style.left="0px";op.noimg.style.top="0px";op.moimg=op.appendChild(document.createElement("IMG"));op.moimg.style.position="absolute";op.moimg.style.visibility="hidden";op.moimg.style.left="0px";op.moimg.style.top="0px";op.noimg.src=contimgsrc;if(ContMOButtonVarmi!=1){op.moimg.src=contimgsrc;}else{op.moimg.src=contmoimgsrc;}op.noimg.setAttribute("title", ContButtonAltText);op.moimg.setAttribute("title", ContButtonAltText);if(OriginalSize==1){op.noimg.style.width=""+ContButtonWidth+"px";op.noimg.style.height=""+ContButtonHeight+"px";op.moimg.style.width=""+ContButtonWidth+"px";op.moimg.style.height=""+ContButtonHeight+"px";}if(IEB){op.noimg.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+iebutopacity+")";op.moimg.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+iebutmoopacity+")";}else{op.noimg.style.opacity=ffbutopacity;op.moimg.style.opacity=ffbutmoopacity;}op.icspan = op.appendChild(document.createElement("DIV"));op.onclick= f1ffffff;}

    function f1ffffffffff(){if(1==1){l1ll = spageObj.appendChild(document.createElement("DIV"));
    f1fffffffff(l1ll,0,"hidden",520,70,20,100,0.20,1.00,0,"right1_48.png","",0,0,0,"Next");
    l1ll.icspan.innerHTML="";}if(1==1){l1l = spageObj.appendChild(document.createElement("DIV"));
    f1fffffffff(l1l,1,"hidden",15,70,20,100,0.20,1.00,0,"left1_48.png","",0,0,0,"Previous");
    l1l.icspan.innerHTML="";}if(1==1){l1lll = spageObj.appendChild(document.createElement("DIV"));
    f1fffffffff(l1lll,2,"hidden",270,70,30,100,0.30,1.00,0,"pause2.png","",0,0,0,"Pause");
    l1lll.icspan.innerHTML="";}if(1==1){l1llll = spageObj.appendChild(document.createElement("DIV"));
    f1fffffffff(l1llll,3,"hidden",270,70,30,100,0.30,1.00,0,"play2.png","",0,0,0,"");
    l1llll.icspan.innerHTML="";}}

    function ff1ffffffff(){if(1==1){if(l1ll){l1ll.style.visibility = "inherit";}}if(1==1){if(l1l){l1l.style.visibility = "inherit";}}if((1==1)&&(llllllll==1)&&(ll1lllllll==0)){if(l1lll){l1lll.style.visibility = "inherit";}}if((1==1)&&(llllllll==0)&&(ll1lllllll==0)){if(l1llll){l1llll.style.visibility = "inherit";}}}

    function ff1fffffffff(){if(1==1){if(l1ll){l1ll.style.visibility = "hidden";}}if(1==1){if(l1l){l1l.style.visibility = "hidden";}}if(1==1){if(l1lll){l1lll.style.visibility = "hidden";}}if(1==1){if(l1llll){l1llll.style.visibility = "hidden";}}}

    function f1fffffffffff(){ll1lllllllllll=spageObj.appendChild(document.createElement("IMG"));ll1lllllllllll.src="";ll1lllllllllll.style.position="absolute";ll1lllllllllll.style.zIndex=0+7;ll1lllllllllll.style.visibility="inherit";ll1lllllllllll.style.left=0+"px";ll1lllllllllll.style.top=0+"px";if(0==1){ll1lllllllllll.style.width=""+0+"px";ll1lllllllllll.style.height=""+0+"px";}if(100==100){return;}if(IEB){ll1lllllllllll.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+100+")";}else{ll1lllllllllll.style.opacity=0.100;}}

    function f1ffffffffffff(gcur){if(0!=1){return;}ll1llllllllllll.innerHTML=""+""+(gcur+1)+""+20+"";}

    function f1fffffffffffff(){if(0!=1){return;}ll1llllllllllll = spageObj.appendChild(document.createElement("DIV"));ll1llllllllllll.style.position="absolute";ll1llllllllllll.style.zIndex=0+6;ll1llllllllllll.style.display="block";ll1llllllllllll.style.left=""+0+"px";ll1llllllllllll.style.top=""+0+"px";ll1llllllllllll.style.borderWidth=""+0+"px";ll1llllllllllll.style.borderStyle="solid";    ll1llllllllllll.style.visibility="inherit";ll1llllllllllll.style.textAlign="left";ll1llllllllllll.style.cursor='default';ll1llllllllllll.style.overflow="visible";ll1llllllllllll.style.fontFamily="";ll1llllllllllll.style.fontSize=0+"pt";    ll1llllllllllll.style.fontStyle="normal";ll1llllllllllll.style.fontWeight="normal";    ll1llllllllllll.style.color="#000000";ll1llllllllllll.innerHTML="";}

    function ff1fff(){ix=this.indx;if(linkstr[ix].substring(0,11)=="javascript:"){eval(""+linkstr[ix]);return;}if(targetstr[ix]==''){targetstr[ix]='_self';}if(IEB){window.open(''+linkstr[ix],''+targetstr[ix]);}else{if((targetstr[ix].indexOf("_parent")>-1)){eval("parent.window.location='"+linkstr[ix]+"'");}else if((targetstr[ix].indexOf("_top")>-1)){eval("top.window.location='"+linkstr[ix]+"'");}else{window.open(''+linkstr[ix],''+targetstr[ix]);}}}

    function f1fffff(){lll=ll-1;if(lll<0){lll=20-1;}}

    function f1ff(){if((0==1)&&(thumbmouseic==1)){return;}Beklemedemi=1;llll=lll;ffffffffffffff();fffffffffffff();Sonraki();var ekbekleme=0;if(IEB){ekbekleme=parseInt(1000*1.0);}else{ekbekleme=0;}if(llllllll==1){if(!((ReachedTheEnd==1)&&(1==0))){if(tam==0){if(ll1lllllll==0){devam("f1ffff",(ekbekleme+4000));}}else{if(ll1lllllll==0){ll1ll=setTimeout('gallerysample.f1ffff()',(ekbekleme+4000));}} }else{ll1ll=setTimeout("gallerysample.ff1ffff()",4000);}}}

    function f1fff(){op=op-dif;op=(Math.floor(op*100))/100;if(op<(0.01)){op=0.00;}if(op>(0.99)){op=1.00;}lllllllllllll[ll].style.opacity = op;lllllllllllll[lll].style.opacity = 1.00-op;if(op>(0.00)){ll1ll=setTimeout('gallerysample.f1fff()',50);}else{lllllllllllll[ll].style.zIndex=2;lllllllllllll[lll].style.zIndex=3;f1ff();}}

    function f1ffff(){Beklemedemi=0;fffffffffffffff();if(IEB){if(IEB==true){spageIcObj.filters[0].apply();}lllllllllllll[ll].style.visibility="hidden";lllllllllllll[lll].style.visibility="visible";if(IEB==true){spageIcObj.filters[0].play();}}else{op=1.00;lllllllllllll[ll].style.visibility="visible";lllllllllllll[lll].style.visibility="visible";lllllllllllll[ll].style.zIndex=3;lllllllllllll[lll].style.zIndex=2;lllllllllllll[ll].style.opacity = 1.00;lllllllllllll[lll].style.opacity = 1.00;f1fff();}}

    function f1fffffffffffffff(){Beklemedemi=0;fffffffffffffff();lllll=lllll-Math.ceil(lllll/1.0);if(1==2){lllllllllllll[ll].style.left=""+(lllll-icwidth)+"px";lllllllllllll[lll].style.left=""+lllll+"px";}else if(1==3){lllllllllllll[ll].style.top=""+(lllll-icheight)+"px";lllllllllllll[lll].style.top=""+lllll+"px";}else if(1==4){lllllllllllll[ll].style.left=""+(icwidth-lllll)+"px";lllllllllllll[lll].style.left=""+lllll+"px";}else if(1==5){lllllllllllll[ll].style.top=""+(icheight-lllll)+"px";lllllllllllll[lll].style.top=""+lllll+"px";}if(lllll<=0){f1ffffffffffffff(trans_func_str);}else{ll1ll=setTimeout("gallerysample."+trans_func_str+"()",50);    }}

    function f1ffffffffffffff(fname){llll=lll;ffffffffffffff();fffffffffffff();  Sonraki();if((1==0)||(1==1)){}else{if((1==3)||(1==5)){lllll=icheight;lllllllllllll[lll].style.top=""+lllll+"px";}else{lllll=icwidth;lllllllllllll[lll].style.left=""+lllll+"px"; }}if(1!=0){zindx();}Beklemedemi=1;if(llllllll==1){if(!((ReachedTheEnd==1)&&(1==0))){if(tam==0){if(ll1lllllll==0){devam(fname,4000);}}else{if(ll1lllllll==0){ll1ll=setTimeout('gallerysample.'+fname+'()',4000);}}}else{ll1ll=setTimeout('gallerysample.ff1ffff()',4000);}}}

    function ContinueSlideshow(){Beklemedemi=1;Sonraki();if((1==0)||(1==1)){}else{if((1==3)||(1==5)){lllll=icheight;lllllllllllll[lll].style.top=""+lllll+"px";}else{lllll=icwidth;lllllllllllll[lll].style.left=""+lllll+"px"; }}if((1!=0)&&(1!=1)){zindx();}if(llllllll==1){if(!((ReachedTheEnd==1)&&(1==0))){if(tam==0){if(ll1lllllll==0){devam("f1ffff",50);}}else{if(ll1lllllll==0){ll1ll=setTimeout("gallerysample."+"f1ffff"+"()",50);}} }else{ll1ll=setTimeout('gallerysample.ff1ffff()',50);}}}

    function Sonraki(){ll=lll;lll=lll+1;if(lll>=vnumbofimages){lll=0;ReachedTheEnd=1;}else{ReachedTheEnd=0;}      }

    function fffffffffffff(){if((1==1)&&(0==0)){fff1(ll);fff1f(llll);fffffffff(llll);}f1ffffffffffff(llll);}

    function zindx(){lllllllllllll[lll].style.visibility="visible";lllllllllllll[ll].style.zIndex=2;lllllllllllll[lll].style.zIndex=3;    }

    function DoJustSwitch(){fffffffffffffff();lllllllllllll[lll].style.visibility="visible";lllllllllllll[ll].style.visibility="hidden";f1ffffffffffffff(trans_func_str);}

    function f1f(c,n){ll=c;lll=n;if(1!=1){lllllllllllll[ll].style.visibility="visible";lllllllllllll[lll].style.visibility="visible";}lllllllllllll[ll].style.zIndex=2;lllllllllllll[lll].style.zIndex=3;}

    function ff1ffff(){if(ActionofLastImage==1){if(URLtoGo.length>3){if(URLtoGo.substring(0,11)=="javascript:"){eval(""+URLtoGo);return;}else{if(IEB){window.open(''+URLtoGo,'_self');}else{window.open(''+URLtoGo,'_self');}}}}}

    function devam(fm,pt){if((imgarr[lll].c==1)&&(imgarr[ll].c==1)){ll1ll=setTimeout('gallerysample.'+fm+'()',pt);}else{ll1ll=setTimeout('gallerysample.devam("'+fm+'",'+pt+')',4000);}var cagain=1;for(i=0;i<vnumbofimages;i++){if(imgarr[i].c==1){}else{cagain=0;}}if(cagain==1){tam=1;}}

    function ff1fffff(msec){if(tam==0){devam(trans_func_str,msec);}else{if(1==0){ll1ll=setTimeout("gallerysample.DoJustSwitch()",msec);}else if(1==1){ll1ll=setTimeout("gallerysample.f1ffff()",msec);}else{ll1ll=setTimeout("gallerysample.f1fffffffffffffff()",msec);}}}

    // only display up to 20 pictures - can change to 5
    function ff1ffffff(){ff1ff();CreateThumbnails();for(i=0;i<10;i++){lllllllllllll[i]=document.getElementById("gallerysampled"+i);}if(0==1){f1fffffffffffff();}if(0==1){f1fffffffffff();}f1ffffffffff();if(10>0){lllllllllllll[ll].style.visibility="visible";}if(10>1){ll=0;lll=0;llll=0;Sonraki();ffffffffffffff();fffffffffffff();if(1==0){}else if(1==1){        }         else if(1==2)        {lllll=icwidth;lllllllllllll[lll].style.left=""+lllll+"px";zindx();                    }else if(1==3){lllll=icheight;lllllllllllll[lll].style.top=""+lllll+"px";zindx();            }          else if(1==4){lllll=icwidth;lllllllllllll[lll].style.left=""+lllll+"px";zindx();            }    else if(1==5){lllll=icheight;lllllllllllll[lll].style.top=""+lllll+"px";zindx();            }else if(1==6){zindx();}if(ll1lllllll==0){ff1fffff(4000);}}}

    //function ff1fffffff(){spageObj = DisObj.appendChild(document.createElement("DIV"));spageObj.style.position="relative";spageObj.style.width=""+cwidth+"px";spageObj.style.height=""+cheight+"px";spageObj.style.overflow="hidden";spageObj.style.borderStyle=""+"solid";spageObj.style.borderWidth=""+2+"px";spageObj.style.borderColor="#"+"CCCCCC";if(0==1){spageObj.style.backgroundColor=""+"";}if(0==1){spageObj.style.backgroundImage=SldBgImageName;spageObj.style.backgroundRepeat=SldBgImageRepeat;spageObj.style.backgroundPosition=""+SldBgImagePosY+"px "+SldBgImagePosX+"px";}spageObj.style.visibility="inherit";spageObj.onmouseover=ff1ffffffff;spageObj.onmouseout=ff1fffffffff;spageIcObj = spageObj.appendChild(document.createElement("DIV"));spageIcObj.style.position="relative";spageIcObj.style.width=""+icwidth+"px";spageIcObj.style.height=""+icheight+"px";spageIcObj.style.overflow="hidden";spageIcObj.style.margin="0px";spageIcObj.style.padding="0px";spageIcObj.style.zIndex=(0+1);if(IEB==true){spageIcObj.style.filter='FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=1.0,enabled=false);';spageIcObj.onfilterchange=f1ff;}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:'+icwidth+'px;height:'+icheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'center'+';vertical-align:'+'top'+';">';dstr3='<img id="img';dstr4='" src="';dstr5='"  border="0" style="position:relative;'+'left:0px;top:3px;'+'border-style:'+'solid'+';border-width:'+'0'+'px;border-color:'+'#CCCCCC'+';'+""+'" alt=""></img>';dstr56='</td></tr></table>';dstr6='</div>';i=0;innertxt="";lnkstr="";lnkstrclose="";for(i=0;i<10;i++){if(linkstr[i].length>2){lnkstr='<a href="'+linkstr[i]+'" target="'+targetstr[i]+'" style="text-decoration: none;">';lnkstrclose="</a>";}else{lnkstr='';lnkstrclose='';}innertxt=innertxt+dstr1+"gallerysampled"+i+dstr2+dstr23+lnkstr+dstr3+i+dstr4+imgstr[i]+dstr5+lnkstrclose+dstr56+dstr6;}spageIcObj.innerHTML=""+innertxt;setTimeout('gallerysample.ff1ffffff()',100);}

    function ff1fffffff(){
	spageObj = DisObj.appendChild(document.createElement("DIV"));
	spageObj.style.position="absolute";
	spageObj.style.top=""+215+"px";
	spageObj.style.left=""+0+"px";
	spageObj.style.width=""+570+"px";
	spageObj.style.height=""+250+"px";
	spageObj.style.overflow="hidden";
	spageObj.style.borderStyle=""+"0";
	spageObj.style.borderWidth=""+0+"px";
	spageObj.style.borderColor="#"+"CCCCCC";
	if(0==1){spageObj.style.backgroundColor=""+"";}
	if(0==1){
	    spageObj.style.backgroundImage=SldBgImageName;
	    spageObj.style.backgroundRepeat=SldBgImageRepeat;
	    spageObj.style.backgroundPosition=""+SldBgImagePosY+"px "+SldBgImagePosX+"px";
	}
	spageObj.style.visibility="inherit";
	spageObj.onmouseover=ff1ffffffff;
	spageObj.onmouseout=ff1fffffffff;
	spageIcObj = spageObj.appendChild(document.createElement("DIV"));
	spageIcObj.style.position="relative";
	spageIcObj.style.top=""+0+"px";
	spageIcObj.style.left=""+10+"px";
	//spageIcObj.style.width=""+icwidth+"px";
	spageIcObj.style.width=""+570+"px";
	spageIcObj.style.height=""+icheight+"px";
	spageIcObj.style.overflow="hidden";
	spageIcObj.style.margin="0px";
	spageIcObj.style.padding="0px";
	spageIcObj.style.zIndex=(0+1);
	
	if(IEB==true){
	    spageIcObj.style.filter='FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=1.0,enabled=false);';
	    spageIcObj.onfilterchange=f1ff;
	}

	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:'+icwidth+'px;height:'+icheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'center'+';vertical-align:'+'top'+';">';
	dstr3='<img id="img';
	dstr4='" src="';
	dstr5='" border="0" style="position:relative;'+'left:0px;top:3px;'+'border-style:'+'solid'+';border-width:'+'0'+'px;border-color:'+'#CCCCCC'+';'+""+'" alt=""></img>';
	dstr56='</td></tr></table>';
	dstr6='</div>';
	i=0;innertxt="";lnkstr="";lnkstrclose="";
	for(i=0;i<10;i++){
	    if(linkstr[i].length>2){
		lnkstr='<a href="'+linkstr[i]+'" target="'+targetstr[i]+'" style="text-decoration: none;">';
		lnkstrclose="</a>";
	    }else{
		lnkstr='';lnkstrclose='';
	    }
	    innertxt=innertxt+dstr1+"gallerysampled"+i+dstr2+dstr23+lnkstr+dstr3+i+dstr4+imgstr[i]+dstr5+lnkstrclose+dstr56+dstr6;
	}
	spageIcObj.innerHTML=""+innertxt;setTimeout('gallerysample.ff1ffffff()',100);
    }

    function Bas(){DisObj=document.getElementById('gallerysamplesodis');if(!DisObj){setTimeout('gallerysample.Bas()',200);return;}ff1fffffff();}
    
    var imgarr=new Array();
    var imgstr=new Array();
    var linkstr=new Array();
    var targetstr=new Array();
    var titarr=new Array();
    var desarr=new Array();
    var thumbimgstr=new Array();
    var thumbtextarr=new Array();
    var gallerysamplefoldername="Hgallery\/";
    imgarr[0]=new Image();
    imgarr[0].c=0;imgarr[0].onload = secondcomplate;imgarr[0].src=gallerysamplefoldername+'sampleimg30.jpg';
    imgstr[0]=gallerysamplefoldername+'sampleimg30.jpg';thumbimgstr[0]=gallerysamplefoldername+'sampleimg30t.jpg';
    linkstr[0]='';targetstr[0]="";titarr[0]="";desarr[0]="";thumbtextarr[0]="";
    
    imgarr[1]=new Image();
    imgarr[1].c=0;imgarr[1].onload = secondcomplate;imgarr[1].src=gallerysamplefoldername+'sampleimg31.jpg';
    imgstr[1]=gallerysamplefoldername+'sampleimg31.jpg';thumbimgstr[1]=gallerysamplefoldername+'sampleimg31t.jpg';
    linkstr[1]='';targetstr[1]="";titarr[1]="";desarr[1]="";thumbtextarr[1]="";

    imgarr[2]=new Image();
    imgarr[2].c=0;imgarr[2].onload = secondcomplate;imgarr[2].src=gallerysamplefoldername+'sampleimg32.jpg';
    imgstr[2]=gallerysamplefoldername+'sampleimg32.jpg';thumbimgstr[2]=gallerysamplefoldername+'sampleimg32t.jpg';
    linkstr[2]='';targetstr[2]="";titarr[2]="";desarr[2]="";thumbtextarr[2]="";

    imgarr[3]=new Image();
    imgarr[3].c=0;imgarr[3].onload = secondcomplate;imgarr[3].src=gallerysamplefoldername+'sampleimg33.jpg';
    imgstr[3]=gallerysamplefoldername+'sampleimg33.jpg';thumbimgstr[3]=gallerysamplefoldername+'sampleimg33t.jpg';
    linkstr[3]='';targetstr[3]="";titarr[3]="";desarr[3]="";thumbtextarr[3]="";

    imgarr[4]=new Image();
    imgarr[4].c=0;imgarr[4].onload = secondcomplate;imgarr[4].src=gallerysamplefoldername+'sampleimg34.jpg';
    imgstr[4]=gallerysamplefoldername+'sampleimg34.jpg';thumbimgstr[4]=gallerysamplefoldername+'sampleimg34t.jpg';
    linkstr[4]='';targetstr[4]="";titarr[4]="";desarr[4]="";thumbtextarr[4]="";

    imgarr[5]=new Image();
    imgarr[5].c=0;imgarr[5].onload = secondcomplate;imgarr[5].src=gallerysamplefoldername+'sampleimg35.jpg';
    imgstr[5]=gallerysamplefoldername+'sampleimg35.jpg';thumbimgstr[5]=gallerysamplefoldername+'sampleimg35t.jpg';
    linkstr[5]='';targetstr[5]="";titarr[5]="";desarr[5]="";thumbtextarr[5]="";
    
    imgarr[6]=new Image();
    imgarr[6].c=0;imgarr[6].onload = secondcomplate;imgarr[6].src=gallerysamplefoldername+'sampleimg36.jpg';
    imgstr[6]=gallerysamplefoldername+'sampleimg36.jpg';thumbimgstr[6]=gallerysamplefoldername+'sampleimg36t.jpg';
    linkstr[6]='';targetstr[6]="";titarr[6]="";desarr[6]="";thumbtextarr[6]="";

    imgarr[7]=new Image();
    imgarr[7].c=0;imgarr[7].onload = secondcomplate;imgarr[7].src=gallerysamplefoldername+'sampleimg37.jpg';
    imgstr[7]=gallerysamplefoldername+'sampleimg37.jpg';thumbimgstr[7]=gallerysamplefoldername+'sampleimg37t.jpg';
    linkstr[7]='';targetstr[7]="";titarr[7]="";desarr[7]="";thumbtextarr[7]="";

    imgarr[8]=new Image();
    imgarr[8].c=0;imgarr[8].onload = secondcomplate;imgarr[8].src=gallerysamplefoldername+'sampleimg38.jpg';
    imgstr[8]=gallerysamplefoldername+'sampleimg38.jpg';thumbimgstr[8]=gallerysamplefoldername+'sampleimg38t.jpg';
    linkstr[8]='';targetstr[8]="";titarr[8]="";desarr[8]="";thumbtextarr[8]="";

    imgarr[9]=new Image();
    imgarr[9].c=0;imgarr[9].onload = secondcomplate;imgarr[9].src=gallerysamplefoldername+'sampleimg39.jpg';
    imgstr[9]=gallerysamplefoldername+'sampleimg39.jpg';thumbimgstr[9]=gallerysamplefoldername+'sampleimg39t.jpg';
    linkstr[9]='';targetstr[9]="";titarr[9]="";desarr[9]="";thumbtextarr[9]="";

    //imgarr[10]=new Image();
    //imgarr[10].c=0;imgarr[10].onload = secondcomplate;imgarr[10].src=gallerysamplefoldername+'sampleimg40.jpg';
    //imgstr[10]=gallerysamplefoldername+'sampleimg40.jpg';thumbimgstr[10]=gallerysamplefoldername+'sampleimg40t.jpg';
    //linkstr[10]='';targetstr[10]="";titarr[10]="";desarr[10]="";thumbtextarr[10]="";
    //
    //imgarr[11]=new Image();
    //imgarr[11].c=0;imgarr[11].onload = secondcomplate;imgarr[11].src=gallerysamplefoldername+'sampleimg41.jpg';
    //imgstr[11]=gallerysamplefoldername+'sampleimg41.jpg';thumbimgstr[11]=gallerysamplefoldername+'sampleimg41t.jpg';
    //linkstr[11]='';targetstr[11]="";titarr[11]="";desarr[11]="";thumbtextarr[11]="";
    //
    //imgarr[12]=new Image();
    //imgarr[12].c=0;imgarr[12].onload = secondcomplate;imgarr[12].src=gallerysamplefoldername+'sampleimg42.jpg';
    //imgstr[12]=gallerysamplefoldername+'sampleimg42.jpg';thumbimgstr[12]=gallerysamplefoldername+'sampleimg42t.jpg';
    //linkstr[12]='';targetstr[12]="";titarr[12]="";desarr[12]="";thumbtextarr[12]="";
    //
    //imgarr[13]=new Image();
    //imgarr[13].c=0;imgarr[13].onload = secondcomplate;imgarr[13].src=gallerysamplefoldername+'sampleimg43.jpg';
    //imgstr[13]=gallerysamplefoldername+'sampleimg43.jpg';thumbimgstr[13]=gallerysamplefoldername+'sampleimg43t.jpg';
    //linkstr[13]='';targetstr[13]="";titarr[13]="";desarr[13]="";thumbtextarr[13]="";
    //
    //imgarr[14]=new Image();
    //imgarr[14].c=0;imgarr[14].onload = secondcomplate;imgarr[14].src=gallerysamplefoldername+'sampleimg44.jpg';
    //imgstr[14]=gallerysamplefoldername+'sampleimg44.jpg';thumbimgstr[14]=gallerysamplefoldername+'sampleimg44t.jpg';
    //linkstr[14]='';targetstr[14]="";titarr[14]="";desarr[14]="";thumbtextarr[14]="";
    //
    //imgarr[15]=new Image();
    //imgarr[15].c=0;imgarr[15].onload = secondcomplate;imgarr[15].src=gallerysamplefoldername+'sampleimg45.jpg';
    //imgstr[15]=gallerysamplefoldername+'sampleimg45.jpg';thumbimgstr[15]=gallerysamplefoldername+'sampleimg45t.jpg';
    //linkstr[15]='';targetstr[15]="";titarr[15]="";desarr[15]="";thumbtextarr[15]="";
    //
    //imgarr[16]=new Image();
    //imgarr[16].c=0;imgarr[16].onload = secondcomplate;imgarr[16].src=gallerysamplefoldername+'sampleimg46.jpg';
    //imgstr[16]=gallerysamplefoldername+'sampleimg46.jpg';thumbimgstr[16]=gallerysamplefoldername+'sampleimg46t.jpg';
    //linkstr[16]='';targetstr[16]="";titarr[16]="";desarr[16]="";thumbtextarr[16]="";
    //
    //imgarr[17]=new Image();
    //imgarr[17].c=0;imgarr[17].onload = secondcomplate;imgarr[17].src=gallerysamplefoldername+'sampleimg47.jpg';
    //imgstr[17]=gallerysamplefoldername+'sampleimg47.jpg';thumbimgstr[17]=gallerysamplefoldername+'sampleimg47t.jpg';
    //linkstr[17]='';targetstr[17]="";titarr[17]="";desarr[17]="";thumbtextarr[17]="";
    //
    //imgarr[18]=new Image();
    //imgarr[18].c=0;imgarr[18].onload = secondcomplate;imgarr[18].src=gallerysamplefoldername+'sampleimg48.jpg';
    //imgstr[18]=gallerysamplefoldername+'sampleimg48.jpg';thumbimgstr[18]=gallerysamplefoldername+'sampleimg48t.jpg';
    //linkstr[18]='';targetstr[18]="";titarr[18]="";desarr[18]="";thumbtextarr[18]="";
    //
    //imgarr[19]=new Image();
    //imgarr[19].c=0;imgarr[19].onload = secondcomplate;imgarr[19].src=gallerysamplefoldername+'sampleimg49.jpg';
    //imgstr[19]=gallerysamplefoldername+'sampleimg49.jpg';thumbimgstr[19]=gallerysamplefoldername+'sampleimg49t.jpg';
    //linkstr[19]='';targetstr[19]="";titarr[19]="";desarr[19]="";thumbtextarr[19]="";
    
    var spageObj=null;
    var spageIcObj=null;
    var llllllllllllll = new Array();
    var lllllllllllllll = new Array();
    var ThumbContArr = new Array();
    var lll1llArr = new Array();
    var lllllllllllll = new Array();
    var lllllll=0;
    var llllllll=1;
    var descgoster=1;
    var thumbgoster=1;
    var ll1lllllll=0;
    var ActionofLastImage=0;
    var URLtoGo="";
    var moving_obj=null;
    var DisObj=null;
    var lll1llllllllll=null;
    var ll1ll=null;
    var ll=0;
    var lll=0;var llll=0;var Beklemedemi=1;var ReachedTheEnd=0;var llllll=0;var CY=0;var Art=0;var ll1l=null;var Tutyy=0;var Kalan=0;var TutFark=0;
    var ll1llllllllll=0;var ThumbScrollReason=0;var tam=0;var lllll=0;var ll1llllllllllll=null;var l1l=null;var l1ll=null;var l1lll=null;var l1llll=null;var IsManualAction=0;
    var DescCalcWidth=0;var ll1lllllllll=0;var DesAnimTimer=null;var ll1llllllll=2;var vnumbofimages=10;var varrrplc=null;var ll1lll=406;var ll1llll=340;var lllllllll=0;
    var llllllllll=0;var lllllllllll=0;var llllllllllll=0;var MoveIcWidth=0;var MoveIcHeight=0;var TBW=0;var thumbmouseic=0;var stepc=parseInt(10*(1.0));
    var dif=0.00;var op=1.00;dif=(1.00/stepc);var currstep=10;var stepcount=10;var ll1lllll=100;var ll1llllll=1.0;var BottomClip=0;var XStep=0;var YStep=0;
    var stepsay=0;var cwidth=0;var cheight=0;

    if((IEB==true)&&(scompat == "BackCompat" )){
	cwidth=430;
	cheight=360;
    }else{
	cwidth=630-2*(2);
	cheight=360-2*(2);
    }
    var icwidth=630-2*(2);
    var icheight=360-2*(2);
    var bgd=0;

    var trans_func_str="f1ffff";
    this.ff1ff=ff1ff;this.CreateThumbnails=CreateThumbnails;
    this.ff=ff;this.fff=fff;this.ffff=ffff;this.fffff=fffff;this.ff1fff=ff1fff;
    this.ffffffffffffff=ffffffffffffff;this.fffffffffffffff=fffffffffffffff;
    this.ffffffffffffffff=ffffffffffffffff;this.fffffffffffffffff=fffffffffffffffff;
    this.ff1f=ff1f;this.ffffff=ffffff;this.fffffff=fffffff;this.ffffffff=ffffffff;
    this.fffffffff=fffffffff;this.ffffffffff=ffffffffff;this.fffffffffff=fffffffffff;this.f1f=f1f;this.ffffffffffff=ffffffffffff;
    this.fffffffffffff=fffffffffffff;this.f1ff=f1ff;this.f1fff=f1fff;this.f1ffff=f1ffff;this.f1fffff=f1fffff;this.f1ffffff=f1ffffff;
    this.f1fffffff=f1fffffff;this.f1ffffffff=f1ffffffff;this.f1fffffffff=f1fffffffff;this.f1ffffffffff=f1ffffffffff;this.f1fffffffffff=f1fffffffffff;
    this.f1ffffffffffff=f1ffffffffffff;this.f1fffffffffffff=f1fffffffffffff;this.devam=devam;this.f1ffffffffffffff=f1ffffffffffffff;this.Sonraki=Sonraki;
    this.zindx=zindx;this.f1fffffffffffffff=f1fffffffffffffff;this.ff1ffff=ff1ffff;this.ff1fffff=ff1fffff;this.ff1ffffff=ff1ffffff;this.ff1fffffff=ff1fffffff;
    this.Bas=Bas;this.ff1ffffffff=ff1ffffffff;this.ff1fffffffff=ff1fffffffff;this.DoJustSwitch=DoJustSwitch;this.fff1f=fff1f;this.fff1=fff1;
    this.ContinueSlideshow=ContinueSlideshow;this.thumbjustswitch=thumbjustswitch;
}
document.write("<div id=\"gallerysamplesodis\"></div>");

gallerysample=new gallerysampleScSlideShow();gallerysample.Bas();

