<!--

var textSuffix='hi'
var ext ='.gif'
var win


var currentImage
var theURL
var winWidth
var winHeight

function setImageVariable(curImage){

currentImage = curImage

getURLOpenWindow()
}

function getURLOpenWindow()  {

	theURL = currentImage + '.html'
	thewin = 'imagewindow'

	if(currentImage == 'Image2') {
		winWidth = '718'
		winHeight = '496'

	} else if(currentImage == 'Image3') {

		winWidth = '718'
		winHeight = '517'

	} else if(currentImage == 'Image4') {

		winWidth = '718'
		winHeight = '554'

	} else if(currentImage == 'Image5') {

		winWidth = '693'
		winHeight = '528'

	} else if(currentImage == 'Image6' || currentImage == 'Image7') {

		winWidth = '693'
		winHeight = '533'

	} else if(currentImage == 'Image8') {

		winWidth = '365'
		winHeight = '538'


	} else if(currentImage == 'Image9') {

		winWidth = '718'
		winHeight = '546'

	} else if(currentImage == 'Image10') {

		winWidth = '718'
		winHeight = '530'

	} else if(currentImage == 'Image11') {

		winWidth = '385'
		winHeight = '545'

	} else if(currentImage == 'Image12') {

		winWidth = '718'
		winHeight = '543'

	} else if(currentImage == 'Image13') {

		winWidth = '382'
		winHeight = '538'

	} else if(currentImage == 'Image14' || currentImage == 'Image16' || currentImage == 'Image18' || currentImage == 'Image25' || currentImage == 'Image26') {

		winWidth = '718'
		winHeight = '550'

	} else if(currentImage == 'Image15') {

		winWidth = '708'
		winHeight = '550'

	} else if(currentImage == 'Image19' || currentImage == 'Image20') {

		winWidth = '708'
		winHeight = '548'

	} else if(currentImage == 'Image17') {

		winWidth = '378'
		winHeight = '538'

	} else if(currentImage == 'Image21') {

		winWidth = '410'
		winHeight = '538'

	} else if(currentImage == 'Image22') {

		winWidth = '693'
		winHeight = '542'

	} else if(currentImage == 'Image23' || currentImage == 'Image24') {

		winWidth = '718'
		winHeight = '546'




	}



createNewPicWin(thewin)

}

function waitOpen(theURL,winName,parameters) {


 win=window.open(myURL, winName, parameters)

}

//opens pic window

function createNewPicWin(winName)  {

	myWidth = winWidth
	myHeight = winHeight
   	myURL=theURL
	myWinName=winName
	parameters = 'width=' + myWidth + ',height=' + myHeight + ',toolbar=no,scrollbars=no,location=0,directories=no,status=no,resizable=no,menubar=0'   
	
   if(win && win.open)  {

    //alert('open')

	win.close()
	timerID=setTimeout('waitOpen(myURL, myWinName, parameters)',1000)

	} else  {

   //alert('closed')

	waitOpen(myURL, myWinName, parameters)
   }
    
	
}

function closeChildWindow()  {
 if(win && win.open)  {
  win.close()  }
}




//-->
