intro=new Image();
intro.src='img/gallery/gallery_12.jpg';                               
picsfi=new Array ('img/gallery/gallery_12.jpg','img/gallery/gallery_13.jpg') 
hrefsfi=new Array('img/gallery/gallery_12.jpg','img/gallery/gallery_13.jpg')
speed=2000;                                                   



load=new Array();
for(i=0; i < picsfi.length; i++)
 {
 load[i]=new Image();
 load[i].src=picsfi[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 '+hrefsfi[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_fi(){
 if (chck==1){ 
 count+=move
 if (count >= picsfi.length) count=0;
 document.images.slides.src=picsfi[count];
 document.links[0].href=hrefsfi[count];
 Picnum();
 }
}
function ManualReverse_fi(){
 if (chck==1){
 count-=move
 if (count < 0) count=picsfi.length-1;
 document.images.slides.src=picsfi[count];
 document.links[0].href=hrefsfi[count];
 Picnum();
 }
}
function Pause(){
 chck=1;
 count=count;
 clearTimeout(timer)
 Picnum();
}
function Cycle(){
if (chck==1) AutoCycle();
chck=null;
}