intro=new Image();
intro.src='img/gallery/gallery_16.jpg';                               
picsho=new Array ('img/gallery/gallery_16.jpg') 
hrefsho=new Array('img/gallery/gallery_16.jpg')
speed=2000;                                                   



load=new Array();
for(i=0; i < picsho.length; i++)
 {
 load[i]=new Image();
 load[i].src=picsho[i];
 }
ns=(document.layers);
n6=(document.getElementById&&!document.all);
ie=(document.all);
count=-1;
move=1;
chck=null;
timer=null;
vvv='0';
function Picnum(){
var d=(ns||ie)?'document.':'document.getElementById("';
var a=(ns||n6)?'':'all.';
var n6r=(n6)?'")':'';
var p=eval(d+a+'Nums'+n6r);
if (ie||n6)
p.innerHTML='Picture '+hrefsho[count];
if (ns){
 p.document.write("<div style='position:absolute;top:0px;left:0px;font-family:Verdana;font-size:18px;color:#fffff0;text-align:center'>Picture "+count+"</div>");
 p.document.close();
 }
}
function ManualForward_ho(){
 if (chck==1){ 
 count+=move
 if (count >= picsho.length) count=0;
 document.images.slides.src=picsho[count];
 document.links[0].href=hrefsho[count];
 Picnum();
 }
}
function ManualReverse_ho(){
 if (chck==1){
 count-=move
 if (count < 0) count=picsho.length-1;
 document.images.slides.src=picsho[count];
 document.links[0].href=hrefsho[count];
 Picnum();
 }
}
function Pause(){
 chck=1;
 count=count;
 clearTimeout(timer)
 Picnum();
}
function Cycle(){
if (chck==1) AutoCycle();
chck=null;
}