function print_view(cat) {
	DELIM = "<!-- print -->";
	INTRO = "<html><head><title>Druckansicht</title><link rel=\"stylesheet\" type=\"text/css\" href=\"/css/body_popup.css\"><link rel=\"stylesheet\" type=\"text/css\" href=\"/css/main_"+cat+".css\"></head><body style=\"margin:20px\">";
	INTRO = INTRO + "<table width=\"100%\" cellspacing=\"0\" class=\"header\" style=\"margin-top:20px;margin-bottom:20px;\"><tr><td width=\"60%\" height=\"1\"></td><td width=\"40%\" height=\"1\"></td></tr><tr><td><!--img src=\"/img/b1_logo_new_"+cat+".gif\" alt=\"beautylilli.de\"--></td><td style=\"text-align:right;padding-right:10px;\"><a href=\"#\" onclick=\"parent.close()\" class=\"header\">X</a>&nbsp;&nbsp;<a href=\"#\" onclick=\"parent.close()\" class=\"header\">Fenster&nbsp;schließen</a></td></tr></table>"
	INTRO = INTRO + "<div style=\"color: #000000; font-family: verdana, arial, helvetica; font-size: 9pt; text-decoration: none; background-color:#eeeeee; padding: 5px; border-top: 1px; border-left: 1px;	border-right: 1px; border-bottom: 1px; border-style: solid;	border-color: #000000;\">";
	INTRO = INTRO + "URL: <span style=\"font-family: arial, helvetica; font-size: 8pt;\">" + location.href + "<br>";
	INTRO = INTRO + "&copy; 2007 www.beautylilli.de</span></div><p>";
	EXTRO = "</body></html>";
	src = document.body.innerHTML;
	pos1 = src.indexOf(DELIM) + DELIM.length;
	pos2 = src.indexOf(DELIM, pos1);
	src = src.substring(pos1, pos2);
	popup = window.open('', 'print', 'menubar=yes,toolbar=no,scrollbars=yes,status=no,resizable=no,width=460,height=480');
	popup.document.write(INTRO + src + EXTRO);
	popup.document.close();
	popup.print();
}

function winAtt(theURL,winName,features) {
popup=window.open(theURL,winName,features);
if (popup.opener == null) popup.opener = self;
return false;
}
function chgBg(obj,color){
  	obj.style.backgroundColor = color;
}
/*__________________________________ restyling 2.0 */
function chgBg2( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#8ebae5';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#fff';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#37618d';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#fff';
				}
		}
	}
}
