// JavaScript Document
var newwin;
function showimg_landscape(url){
	if(newwin)
		newwin.close();
	var width = 531;
	var height = 355;
	var left = (screen.width - width)/2;
	var top = (screen.height - height)/2;
	var params = 'width='+width+', height='+height;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=no';
	params += ', scrollbars=no';
	params += ', status=no';
	params += ', toolbar=no';
	newwin=window.open('','Cha1', params);
	var content = '';
	content += '<html>';
	content += '<head>';
	content += '<title>Coiffeur Carolin Hofer - popup</title>';
	content += '</head>';
	content += '<body style="margin:0px;padding:0px;">';
	content += '<table width="100%" border="0">';
  	content += '	<tr>';
    content += '		<td valign="middle" align="center" height="355" width="531">';
	content += '			<img src="'+url+'"/>';
	content += '		</td>';
    content += '	</tr>';
	content += '</table>';
	content += '</body>';
	newwin.document.write(content);
	if (window.focus) {newwin.focus()}
	return false;
}
function showimg_vertical(path){
	if(newwin)
		newwin.close();
	var width = 334;
	var height = 450;
	var left = (screen.width - width)/2;
	var top = (screen.height - height)/2;
	var params = 'width='+width+', height='+height;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=no';
	params += ', scrollbars=no';
	params += ', status=no';
	params += ', toolbar=no';
	newwin=window.open('','Cha', params);
	var content = '';
	content += '<html>';
	content += '<head>';
	content += '<title>Coiffeur Carolin Hofer - popup</title>';
	content += '</head>';
	content += '<body style="margin:0px">';
	content += '<table width="100%" border="0">';
  	content += '	<tr>';
    content += '		<td valign="middle" align="center" height="450" width="334">';
	content += '			<img src="'+path+'"/>';
	content += '		</td>';
    content += '	</tr>';
	content += '</table>';
	content += '</body>';
	newwin.document.write(content);
	if (window.focus) {newwin.focus()}
	return false;
}

function openPopup(path,w,h){
	if(newwin)
		newwin.close();
	var width = parseInt(w)+15;
	var height = parseInt(h)+15;
	var left = (screen.width - width)/2;
	var top = (screen.height - height)/2;
	var params = 'width='+width+', height='+height;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=no';
	params += ', scrollbars=no';
	params += ', status=no';
	params += ', toolbar=no';
	newwin=window.open('','Cha', params);
	var content = '';
	content += '<html>';
	content += '<head>';
	content += '<title>Coiffeur Carolin Hofer - popup</title>';
	content += '</head>';
	content += '<body style="margin:0px">';
	content += '<table width="100%" border="0">';
  	content += '	<tr>';
    content += '		<td valign="middle" align="center">';
	content += '			<img src="'+path+'"/ style="padding-top:5px;">';
	content += '		</td>';
    content += '	</tr>';
	content += '</table>';
	content += '</body>';
	newwin.document.write(content);
	if (window.focus) {newwin.focus()}
	return false;
}




function showimg_vertical_1(path){
	if(newwin)
		newwin.close();
	var width = 350;
	var height = 350;
	var left = (screen.width - width)/2;
	var top = (screen.height - height)/2;
	var params = 'width='+width+', height='+height;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=no';
	params += ', scrollbars=no';
	params += ', status=no';
	params += ', toolbar=no';
	newwin=window.open('','Cha', params);
	var content = '';
	content += '<html>';
	content += '<head>';
	content += '<title>Coiffeur Carolin Hofer - popup</title>';
	content += '</head>';
	content += '<body style="margin:0px">';
	content += '<table width="100%" border="0">';
  	content += '	<tr>';
    content += '		<td valign="middle" align="center" height="330" width="330" style="padding:7px 10px 10px 8px;">';
	content += '			<img src="'+path+'"/>';
	content += '		</td>';
    content += '	</tr>';
	content += '</table>';
	content += '</body>';
	newwin.document.write(content);
	if (window.focus) {newwin.focus()}
	return false;
}
