var fxDIV='buttonleft';var fxWith='MAIN';
fixHeight=function(idSrc, idTgt){var src=document.getElementById(idSrc);var tgt=document.getElementById(idTgt);var ss=src.style;
var maxH = Math.max((parseInt(src.currentStyle.height.toString())|0), (src.offsetHeight|0),(ss.pixelHeight|0),(ss.minHeight|0));
maxH=maxH-(tgt.offsetTop-src.offsetTop);ss.height=maxH;tgt.style.height=maxH;}
menufix=function(){fixHeight(fxWith,fxDIV);}
window.attachEvent('onload',menufix);

/*panorama popup*/
function poppanof(f,id,t,w,h,fs) {
	function getClientWH(){
	var p={};
	if(typeof(window.innerWidth)=='number') {
		//Non-IE
		p.w = window.innerWidth;
		p.h = window.innerHeight;
	} else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight) ) {
		//IE 6+ in 'standards compliant mode'
		p.w = document.documentElement.clientWidth;
		p.h = document.documentElement.clientHeight;
	} else if( document.body && (document.body.clientWidth || document.body.clientHeight) ) {
		//IE 4 compatible
		p.w = document.body.clientWidth;
		p.h = document.body.clientHeight;
	}
	return p;
};
w=w?w:640;
h=h?h:480;
t=t?t.replace(/\s/ig,'_'):'';
fs=fs?true:false;
var ff=f+'?ivp='+id+(fs?'&fs=1':'');
if (fs===true) nw=window.open(ff,t,'toolbar=no,location=no,resizable=no,scrollbars=no,fullscreen=yes');
else nw=window.open(ff,t,'toolbar=no,location=no,resizable=no,scrollbars=no,width='+w+',height='+h);
}
function mashmail(name,domain,txt,cls){
txt=(typeof(txt)=="undefined" || txt==null)?name+"@"+domain:txt;
cls=(typeof(cls)=="undefined" || cls==null)?'mail':cls;
document.write("<a href=\"mailto:"+name+"@"+domain+"\" class=\""+cls+"\">"+txt+"</a>");
}
