$().ready(function(){
    // external urls
    $('a').click(function(){
	    if((this.href.match(/^http/i) && !this.href.match(location.host)) || this.rel=='external'){
		    window.open(this.href,'_');
		    return false;
	    }
	});
	// ie pngs
	/*@cc_on
	if(navigator.appVersion.match(/MSIE [0-6]\./)){
		$('img[@src*=".png"]').addClass('png');
		$('input[@src*=".png"]').addClass('png');
		$('.bgpng').each(function(){fnFixPng(this)});
	}
	function fnFixPng(obj){
		var bg  = obj.currentStyle.backgroundImage;
		var src = bg.substring(5,bg.length-2);
		var sizingMethod = (obj.currentStyle.backgroundRepeat == "no-repeat") ? "crop" : "scale";
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
		obj.style.backgroundImage = "url(/interface/images/blank.gif)";
	}
	@*/
	if($('.flash').length > 0) {
		var flash = '/interface/flash/flashpicstrans.swf';
			swfobject.embedSWF(flash, "home-images", "638", "180", "9.0.0", "interface/flash/expressInstall.swf");
	}
	
});

function mailto(domain, user) {
		document.location.href = "mailto:"+user+"@"+domain;
	}