﻿function init(contentFrame)
{
	if((navigator.userAgent.indexOf('Firefox')!=-1) && contentFrame==1) {
		document.getElementById('contentFrameID').style.height='70%';
		document.getElementById('contentFrameID').style.width='480px'; }
}

function photoInit(photoNumber)
{
	photoObject = new Image();
	photoObject.src = '../img/photo_' + String(photoNumber) + '.jpg';
	document.images['photoName'].src = photoObject.src;
	interval_4 = window.setInterval('photoShow()',100);
}

function photoShow()
{
	if(photoObject.complete) {
		window.clearInterval(interval_4);
		document.getElementById('prePhotoID').style.visibility = 'hidden';
		resizeHeight = photoObject.height + 100;
		resizeWidth = photoObject.width + 80;
		screenWidth = screen.width;
		screenHeight = screen.height; 
		if(resizeWidth >= screenWidth) {
			resizeWidth = (screenWidth-150); }
		if(resizeHeight >= screenHeight) {
			resizeHeight = (screenHeight-150); }
		window.moveTo(20,5);
		window.resizeTo(resizeWidth,resizeHeight);
		document.getElementById('photoID').style.visibility = 'visible';
	}
}