function post(domain, owner, host) {
	if (host)
		location.href = "mailto:"+owner+"@"+host+"."+domain;
	else
		location.href = "mailto:"+owner+"@webmedia."+domain;
}

PositionX = 0;
PositionY = 100;
defaultWidth  = 100;
defaultHeight = 100;

function getRefToDivMod( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) {
			return oDoc.layers[divID];
		} else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDivNest(divID,oDoc.layers[x].document);
			}
			return y;
		}
	}
	if( document.getElementById ) { return oDoc.getElementById(divID); }
	if( document.all ) { return oDoc.all[divID]; }
	return document[divID];
}
function resizeWinTo() {
	if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }
	if( !document.images[0].height || window.doneAlready ) { return; } //in case images are disabled
	var oH = getRefToDivMod( 'myID' ); if( !oH ) { return false; }
	var oW = oH.clip ? oH.clip.width : oH.offsetWidth;
	var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }
	if( !oH || window.doneAlready ) { return; } //in case images are disabled
	window.doneAlready = true; //for Safari and Opera

	var mH = screen.availHeight-500, mW = screen.availWidth;

	var h = oH > mH ? mH : oH + 100;
	var w = oW > mW ? mW : oW + 100;
	window.resizeTo(w, h);

	if (oTimeClose) { window.setTimeout('window.close()',oTimeClose); }
}

function popImageExtra(imageURL,imageTitle,AutoClose,oTimeClose,extraHTML){
	var imgWin = window.open('','_blank','scrollbars=yes,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">oTimeClose=\''+oTimeClose+'\';<\/script><script type="text\/javascript" src="_scripts.js">'+
		'<\/script>'+
		'<\/head><body onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>'+
		(document.layers?('<layer left="0" top="0" id="myID">'):('<div style="position:absolute;left:0px;top:0px;display:table;" id="myID">'))+
		'<img src='+imageURL+' alt="Loading image ..." title="" onload="resizeWinTo();" galleryimg="no">'+
		(extraHTML?extraHTML:'')+(document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');
	imgWin.document.close();
	if( imgWin.focus ) { imgWin.focus(); }
	return false;
}

var j = jQuery.noConflict();

function tooltip() {
	j("ul.people li").hover(
		function(){
			j(this).children("div.tooltip").show();
			j(this).addClass("type1");
			j("div.tooltip").bgiframe({ src: "javascript:'<html></html>';" });
		},
		function(){
			j(this).children("div.tooltip").hide();
			j(this).removeClass("type1");
		}
	);
}

/* document ready */

j(document).ready(function(){
	tooltip();
});