
window.onload = init;

function init() {
	for (var i=0; i<document.images.length; i++) {
		if (document.images[i].className == 'pop') {
			setupPop(document.images[i]);
		}
	}
}

function setupPop(thisImage) {
	thisImage.popImage = new Image();
	thisImage.popImage.src = thisImage.id ;
	thisImage.onclick = popup;
}

function popup() {
	pWidth = this.popImage.width + 20;
	pHeight = this.popImage.height + 20;
	window.open(this.popImage.src, this.id, 'width='+pWidth+',height='+pHeight+',location=no,toolbar=no,scrollbars,resizable');
}



function currentYear() {
	var d = new Date();
	document.write(d.getFullYear());

}





