<!--
/**
 * Functions
 * @package CoMa
 * @subpackage inc
 * @author Stefan Lingler <sl@pixelwings.com>
 */

function op(e) {
	var w,u;
	u=window.location.href;
	w=window.open(u+(u.indexOf('?')!=-1?'&':'?')+'style=popup'+(e.c?'&popup='+e.c:'')+(e.x?'&x='+e.x:'')+(e.y?'&y='+e.y:''),'POPUP','width='+(e.x?e.x:'')+'px,height='+(e.y?e.y:'')+'px,scrollbars=1,resizable=1,menubar=0,location=0');
	w.focus();
	return true;
}

var lock_setBottomLeft=false;
function setBottomLeft(r,_h) {
	var t,h,i;
	i=document.getElementById('icons');
	t=document.getElementById('bottom');
	if (!t || !i) return false;
	
	h=window.innerHeight!=null?window.innerHeight:document.documentElement && document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;
	
	if (_h && _h!=h) return false;
	
	if (!r) {
		//t.style.left='-50px';
		cc(t,'prepare');
		setTimeout('setBottomLeft('+true+','+h+')',500);
		return true;
	}
	else {
		cc(t,'visible');
		t.style.top=h-((i.height?i.height:100)+20)+'px';
		//t.style.left='20px';
		return true;
	}
}

//-->
