
var maxwidth= 615;
var maxheight= 615;
var minheight= 435;

function ResizeImage(image)
{
	
	var w = image.width;
	var h = image.height;
	
	if(h > minheight)
	{
		document.getElementById('imgBkgDiv').className="portrait";
		document.getElementById('imgTable').height= maxheight;
		//trace ("imgTable Height =" + document.getElementById('imgTable').height);	
	}
	else 
	{
		document.getElementById('imgBkgDiv').className="landscape";
		document.getElementById('imgTable').height= minheight;
		//trace ("imgTable Height =" + document.getElementById('imgTable').height);
	}
}


function stopPlaybackTimer()
{
	document.getElementById('slideshowPP').className="playSlideshow";	
//alert("Stopping Timer: \n" + timerId);
	clearInterval(timerId);
//alert("Stopped Timer: \n" + timerId);
	document.getElementById('slideshowPP').title = "Start Slideshow";
}
