Browser_Name = navigator.appName;
Browser_Ver  = parseInt(navigator.appVersion);

var maxcnt=14;
var arraycnt;
start_slide=1;
maxcnt=14;
arraycnt=14;
var pictures = new Array();
pictures[1]= new Image(246,149); pictures[1].scr="images/Page1.jpg";
pictures[2]= new Image(246,149); pictures[2].scr="images/Page2.jpg";
pictures[3]= new Image(246,149); pictures[3].scr="images/Page3.jpg";
pictures[4]= new Image(246,149); pictures[4].scr="images/Page4.jpg";
pictures[5]= new Image(246,149); pictures[5].scr="images/Page5.jpg";
pictures[6]= new Image(246,149); pictures[6].scr="images/Page6.jpg";
pictures[7]= new Image(246,149); pictures[7].scr="images/Page7.jpg";
pictures[8]= new Image(246,149); pictures[8].scr="images/Page8.jpg";
pictures[9]= new Image(246,149); pictures[9].scr="images/Page9.jpg";
pictures[10]= new Image(246,149); pictures[10].scr="images/Page9bc.jpg";
pictures[11]= new Image(246,149); pictures[11].scr="images/Page9d.jpg";
pictures[12]= new Image(246,149); pictures[12].scr="images/Page10bc.jpg";
pictures[13]= new Image(246,149); pictures[13].scr="images/Page10.jpg";
pictures[14]= new Image(246,149); pictures[14].scr="images/Page9f.jpg";

if((Browser_Name == "Netscape" && Browser_Ver >= 3) || (Browser_Name == "Microsoft Internet Explorer" && Browser_Ver >= 4)) Browser_Gen = ">=3rd";
else Browser_Gen = "<3rd";
// Variables
if (Browser_Gen == '>=3rd'){
	var num_of_slides = maxcnt;  	// Declare the number of slides in your show
	var slide_num = start_slide;			// Which slide loads ups first

}
// Previous Slide
function slidePrev(){
    slide_num = slide_num - 1;
	if(slide_num < 1){
		slide_num = num_of_slides;
	}
    changeslide();
}
//Next Slide
function slideNext(){
	slide_num = slide_num + 1;
	if(slide_num > num_of_slides){
		slide_num = 1;
	}
	changeslide();
}
//  This function changes the slide and the description box according to the slide_num
function changeslide(){
	if (slide_num==1){
		changeLinkHref('picurl','javascript:NewWindow("images/lgpage1.jpg","",700,500,0,"center")')	
	}else
		changeLinkHref('picurl','javascript:NewWindow("'+pictures[slide_num].scr+'","",800,600,0,"center")')
		eval('document.picframe.src = "' +pictures[slide_num].scr + '"');	
}

function findLinkByHref(href) {
  for (var i=0; i<document.links.length; i++) {
    if (document.links[i].href == href) return i;
  }
  return -1;
}
function changeLinkHref(id,newHref) {
  if (document.links.length > 0) {
    if (document.getElementById) {
      document.getElementById(id).href = newHref;
    }
    else if (document.all) {
      document.all[id].href = newHref;
    }
  }
}
// throws popup window
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}