<!--
function HideEA( eMail, eMailText, StyleCSS, DomainText )
{
	var Domain;
	if( DomainText=="" || DomainText==undefined )
		Domain="psaier.com";
	else
		Domain=DomainText;
	if( StyleCSS=="" ){
		if( eMailText=="" )
			document.write( '<a href="mailto:'+eMail+'@'+Domain+'">'+eMail+'@'+Domain+'</a>');// -->
		else
			document.write( '<a href="mailto:'+eMail+'@'+Domain+'">'+eMailText+'</a>');// -->
	}
	else {
		if( eMailText=="" )
			document.write( '<a href="mailto:'+eMail+'@'+Domain+'"class="'+StyleCSS+'">'+eMail+'@'+Domain+'</a>');// -->
		else
			document.write( '<a href="mailto:'+eMail+'@'+Domain+'"class="'+StyleCSS+'">'+eMailText+'</a>');// -->
	}
}

function OpenWnd( DestURL, WndTitle, WndData )
{
	if( WndData=="" || WndData==undefined )
		Win=window.open( DestURL, WndTitle );
	else
		Win=window.open( DestURL, WndTitle, WndData );
	Win.focus( );
}

PositionX = 10;
PositionY = 10;
defaultWidth  = 600;
defaultHeight = 400;

var AutoClose = true;

//don't touch
function popImage( imageURL, imageTitle ){
	var imgWin = window.open('','_popImage','scrollbars=no,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);
	if( !imgWin ) { return true; } //popup blockers should not cause errors
	imgWin.document.write('<html><head><title>'+imageTitle+'<\/title><script type="text\/javascript">\r\n'+
		'function resizeWinTo() {\r\n'+
		'if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }'+
		'var oH = document.images[0].height+30, oW = document.images[0].width+30;\r\n'+
		'if( !oH || window.doneAlready ) { return; }\r\n'+ //in case images are disabled
		'window.doneAlready = true;\r\n'+ //for Safari and Opera
		'var x = window; x.resizeTo( oW + 200, oH + 200 );\r\n'+
		'var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\r\n'+
		'if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\r\n'+
		'else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\r\n'+
		'else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\r\n'+
		'if( window.opera && !document.childNodes ) { myW += 16; }\r\n'+
		'x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\r\n'+
		'var scW = screen.availWidth ? screen.availWidth : screen.width;\r\n'+
		'var scH = screen.availHeight ? screen.availHeight : screen.height;\r\n'+
		'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\r\n'+
		'}\r\n'+
		'<\/script>'+
		'<\/head><body style="margin: 0px;" onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>'+
		(document.layers?('<layer left="0" top="0">'):('<div style="position:absolute; margin-top: 15px; margin-left: 15px; margin-right: 15px;">'))+
		'<a href=\"javascript:self.close()\"><img src='+imageURL+' alt="Loading image ..." title="" onload="resizeWinTo();" border="0"></a>'+
		(document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');
	imgWin.document.close();
	if( imgWin.focus ) { imgWin.focus(); }
	return false;
}
//-->
