
function zoom(imgID) {
	IMG = document.getElementById(imgID);
	IMG.style.display = 'none';
	lg = imgID+'Large';
	IMGLarge = document.getElementById(lg);
	IMGLarge.style.display = 'inline';
	imgSizer = imgID+'Src';
	initImage(imgSizer);
}

function zoomOut(imgID) {
	IMG = document.getElementById(imgID);
	IMG.style.display = 'inline';
	lg = imgID+'Large';
	IMGLarge = document.getElementById(lg);
	IMGLarge.style.display = 'none';
}


function winSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	//window.alert( 'Width = ' + myWidth );
	//window.alert( 'Height = ' + myHeight );
	var returnArray = new Array(myWidth, myHeight);
	return returnArray[0];
}

function onWinReSize() {
		for (x in imgIDs) {
	 		initImage(imgIDs[x]);
		}
}

function init() {
	idid = imgIDs[0];
	initImage(idid);
}

function initImage(id) {
	IMG = document.getElementById(id);
	winWidth = winSize();
	if (winWidth < 944) {
		if (winWidth < 530) {
			newWidth = 450;
		} else {
			newWidth = winWidth-80;
		}
	} else {
		newWidth = 1000;
	}
	IMG.width = newWidth;
}





function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



