/*
		NOTES: 
		1.	This script must be put at the END of the HTML page!!! Otherwise, clicking on 
			the big image (on portfolio pages) won't work.
		2.	Portfolio images must be named 
			xxxa.jpg	- big image
			xxxb.jpg - normal image
			xxxc.jpg - thumbnail
			
		
*/

var currentPortfolioIMG = ""


// changinge portfolio images:	begin
function changePortfolio(whichImage) {
	var newImg = portImgSRC[whichImage].src
	document.images['portbig'].src = newImg
	
	var imgNameLength = newImg.length - 5
	var firstPart = newImg.substring(0, imgNameLength)
	var newImgBig = firstPart + "a.jpg"
	currentPortfolioIMG = newImgBig
}

function portfolioFullSize() {
	var theWindow = window.open(currentPortfolioIMG,"bigport","width=400,height=300,resizable=yes,scrollbars=yes,toolbar=no,status=yes,menubar=no,location=no")
	theWindow.focus() // this line just brings the window to the front if it's already been opened
}

changePortfolio('0')

// changinge portfolio images:	end


