// IMAGE POPUP GOODNESS... TO SIZE!!
function exh_popImage(oContent,oTitle) {
	var x = window.open('','windowName','width=800,height=800,resizable=1');
	if( !x ) { return true; }
	x.document.open();
	x.document.write('<html><head><title>'+oTitle+'<\/title>');
	x.document.write('<sc'+'ript>');
	x.document.writeln('var isNN,isIE;');
	x.document.writeln('function reSizeToImage(){');
	if (navigator.appName.indexOf("Microsoft")==-1)
	{
		x.document.writeln('window.innerWidth=document.images["ex_popimage"].width;');
		x.document.writeln('window.innerHeight=document.images["ex_popimage"].height;');
		x.document.writeln('document.title="'+oTitle+'";');
	}else if(window.opera){
		x.document.writeln('window.resizeTo(100,100);');
		x.document.writeln('width=130-(document.body.clientWidth-document.images[0].width);');
		x.document.writeln('height=100-(document.body.clientHeight-document.images[0].height);');
		x.document.writeln('window.resizeTo(width,height);');
	}else{
		x.document.writeln('window.resizeTo(100,100);');
		x.document.writeln('width=100-(document.body.clientWidth-document.images[0].width);');
		x.document.writeln('height=100-(document.body.clientHeight-document.images[0].height);');
		x.document.writeln('window.resizeTo(width,height);');
	}
	x.document.writeln('}</sc'+'ript>');
	x.document.write('<\/head><body style="margin:0px;" id="ex_popbody" scroll="no" onload="reSizeToImage();self.focus();">');
	x.document.write('<img id="ex_popimage" name="ex_popimage" src="'+oContent+'" alt="'+oTitle+'" onclick="window.close();" \/><\/body><\/html>');
	x.document.close();
	/*x.innerWidth=x.document.images["ex_popimage"].width;
	x.innerHeight=x.document.images["ex_popimage"].height;*/

	if( x.focus ) { x.focus(); }
}
