/******************************
* Intellinet Beratung & Technologie GmbH *
* http://www.intellinet.de    *
******************************/

function positionBg() {
	h = $("#main").height();
	if (h > 750) {
		$("#bgleft").css({height: h});
		$("#bgright").css({height: h});
	}
}

function fillSubMenu(txt) {
	if(txt) {
		$("#sub_nav").css({height: '20px', fontSize: '12px'});
	} else {
		$("#sub_nav").css({height: '2px', fontSize: '1px'});
	}
	/*
	$("#sub_nav").slideUp(velocity,function(){
		$("#sub_nav").empty();
		$("#sub_nav").append(txt);
		$("#sub_nav").slideDown(velocity);
	});
	*/
	$("#sub_nav").empty();
	$("#sub_nav").append(txt);
}




function popup(page,width,height) {
	var fenster;
	fenster = window.open(page,"Popup","width=" + width + ",height=" + height + ",top=100,left=100,scrollbars=yes,resizable=yes,status=yes");
	fenster.focus();
}

function popup2(page,width,height) {
	fenster = window.open(page,"Popup","width=" + width + ",height=" + height + ",top=100,left=100,scrollbars=yes,resizable=yes,status=yes");
	fenster.focus();
}

function opwin(pdf) {
	wstat=window.open(pdf,"","scrollbars=no,status=no,toolbar=no,location=no,directories=no,resizable=yes,menubar=no,width=500,height=600,top=50,left=50");
}
