
function OpenPopupCenter(Link,WinTarget,breite,hoehe,toolbar, menubar, scrollbars, resizable) { 
if( !toolbar) toolbar = 'no';
if( !menubar) menubar = 'no';
if( !scrollbars) scrollbars = 'no';
if( !resizable) resizable = 'no';
if (!!window && Link) { 
var iMyWidth = (window.screen.width/2) - (breite/2 + 10); 
hoehe = Math.min(hoehe,window.screen.height - 200);
var iMyHeight = (window.screen.height/2) - (hoehe/2 + 50); 
var winPopup = window.open(Link ,WinTarget,"toolbar=" + toolbar + ",location=no,directories=no,status=no,menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",favorites=no,width=" + breite + ",height=" + hoehe + ",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight); 
winPopup.focus(); 
	}
}

jQuery(function() {
     jQuery("img[@src$=png],.pngfix").pngfix();

	//jQuery("a[@href^='http://'],a[@href^='https://']").attr({target:"_blank"});
	jQuery("a").each(function() {
		var href = jQuery(this).attr('href');
		if( href.indexOf('http') == 0 ) {
			if( href.indexOf('ryotakomatsu.com') == -1 ) {
				jQuery(this).attr({target:"_blank"});
			}
		}
	});

});

