/*	LG standard JavaScript Collection v2.01
 *  last edited 05.08.05 - 11.32
 */

/*	displays statusbar message v1.01
 *	param: message - string
 */
function dsplSM( message ) {
	window.status = message;
}

/* switches class v1.02
 * param: cell - string
 * param: clas - string
 */
function hov( cell, clas) {
	cell.className = clas;
}

/* opens popup windows v1.02
 * param: url - string
 * param: width - int
 * param: height - int
 * param: mode - int (1 = regular, 2 = fullscreen)
 */
function popup( url, width, height, mode ) {
	if (width == null) { width = 700; }
	if (height == null) { height = 600; }
	if (mode == null) { mode = 1; }
	if (mode == 1) {
		splashWin = window.open(url, Math.ceil(Math.random()), 'scrollbars=auto, resizable=yes, width='+width+', height='+height);
	} else {
		splashWin = window.open(url, Math.ceil(Math.random()), 'fullscreen=1, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=no, resizable=0' );
        splashWin.resizeTo(width, height);
	}
	if (parseInt(navigator.appVersion) >= 4) {
		splashWin.moveTo((screen.width/2)-(width/2),(screen.height/2)-(height/2));
	}
	splashWin.focus();
}

/* prints botsafe email v1.01
 * param: name - string
 * param: tld - string
 * param: alt - string
 */
function prntMl(name, tld, alt) {
	if (name == null) { name = 'email'; }
	if (tld == null) { tld = 'leipziggrafik.de'; }
	if (alt == null) { alt = name + "&#64\;" + tld; }
	document.write("<a href=\"mailto:" + name);
	document.write("&#64\;" + tld + "\">");
	document.write(alt + "</a>");
}