  function loadImg(i) {
                
	img = lg[i];
	// SCREEN DIMENSIONS
	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-8;
		myHeight = document.body.clientHeight-8;
	}
	  
	// CONTENT DIMENSIONS
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
	}
	
	 document.getElementById("largeLoader").style.width = xWithScroll+'px';
	 document.getElementById("largeLoader").style.height = yWithScroll+'px';
	 
	document.getElementById('largeLoader').style.display='block';
	document.getElementById('largeBacker').style.display='block';
	 
	 var theBacker = document.getElementById("largeBacker");
	 var flashContent = document.getElementById("flashContent");
	 
	 var newHeight=myHeight-50;
	 var newWidth=myWidth-50
	 
	 theBacker.style.height=newHeight+'px';
	 theBacker.style.width=newWidth+'px';
	 
	// document.getElementById('imgInfo').style.top = myHeight+'px';
	 
	 flashContent.style.height=newHeight+'px';
	 flashContent.style.width=newWidth+'px';
	 
	 newX = (myWidth/2)-(parseInt(theBacker.style.width)/2);
	 newY = (myHeight/2)-(parseInt(theBacker.style.height)/2);
	 
	 newY = document.documentElement.scrollTop+newY;
	 
		 theBacker.style.top=newY+'px';
	 theBacker.style.left=newX+'px';
	/*
	theBacker.style.top="0px;"
	 theBacker.style.left="0px;"
	 */
	
	// call to the dynamic flash loader!
	
	var flashvars = {
	  imageloc: img
	 };
	 
	 var params = {
	  bgcolor: "#000000"
	 };
					 
	swfobject.embedSWF("http://www.impactfolios.com/singleimageloader.swf", "flashContent", newWidth, newHeight-20, "9.0.0", "expressInstall.swf", flashvars,params);
	document.getElementById("imgtitle").innerHTML = mtitle[i];
	document.getElementById("copyright").innerHTML = cpy[i];
	document.getElementById("imgcaption").innerHTML = mcap[i];
}

function killLarge() {
	
	document.getElementById('largeLoader').style.display='none';
	document.getElementById('largeBacker').style.display='none';
	document.getElementById('flashContent').innerHTML='';
	
}

