$(document).ready(function(){

	$('.whitebox, .subnav, .rechte-spalte .box, .box-one, .box-border').corner("round 8px");
	$('.faqanswerhilite').corner("round 4px");

	$("img").hover(
		function () {
			var name = $(this).attr("name");
			var checkpath = name.search(/\/(.*)/);
			if (checkpath != -1){
				$(this).css({'cursor' : 'pointer'});
			}
		}, 
		function () {
			name = '';
		}
	);

	$("img").click( function (){
		var name = $(this).attr("name");
		var checkpath = name.search(/\/(.*)/);
		if (checkpath != -1){
			//alert(name);
			px_openWin(name,"grafikgross","scrollbars=yes,resizable=yes,width=500,height=600")
		}
	})

	$("div#printlink").click(function(){
		$("td.linke-spalte").printArea();
	});

});

function px_openWin(theURL,winName,features) {
	fenster = window.open(theURL,winName,features);
	fenster.focus();
}
