function popupPic(lang,path,title,fov){
	var winHeight=screen.height-60;
	var winWidth=screen.width-10;
	var panHeight=screen.height-110;
	var panWidth=screen.width-20;
	picWindow=window.open
('','mywin',
'left=0,top=0,titlebar=no,status=yes,toolbar=no,menubar=no,resizable=no,location=no,width='
+winWidth+',height='+winHeight);
	picWindow.document.writeln('<html>');
	picWindow.document.writeln('<head>');
	picWindow.document.writeln('<meta http-equiv="Content-Language" content="sv">');
	picWindow.document.writeln('<meta name="GENERATOR" content="Microsoft FrontPage 5.0">');
	picWindow.document.writeln('<meta name="ProgId" content="FrontPage.Editor.Document">');
	picWindow.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">');
	picWindow.document.writeln('<title>Fotoverkstan panorama</title>');
	picWindow.document.writeln('</head>');
	picWindow.document.writeln('<body bgcolor="#EAEAEA" topmargin="0" leftmargin="0" >');
	picWindow.document.writeln('<div align="left">');

picWindow.document.writeln('<table border="0" cellpadding="0" cellspacing="4" style="border-collapse: collapse"');
picWindow.document.writeln('bordercolor="#111111" width="'+panWidth+'" id="AutoNumber1">');
picWindow.document.writeln('  <tr>');
picWindow.document.writeln('    <td>');
picWindow.document.writeln('    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"');
picWindow.document.writeln('bordercolor="#111111" width="100%" id="AutoNumber2">');
picWindow.document.writeln('      <tr>');
picWindow.document.writeln('        <td width="50%">');

	picWindow.document.writeln('<font face="Verdana" size="2" color="#000000">'+"  "+title+'</font></td>');
picWindow.document.writeln('        <td width="50%" align="right">');

if (lang=='SE')
{
	picWindow.document.writeln('<font face="Verdana" size="2" color="#000000">Vrid dig i bilden med musen - håll vänster knapp nedtryckt</font>');
}
if (lang=='ENG')
{
	picWindow.document.writeln('<font face="Verdana" size="2" color="#000000">Turn around by using the mouse - press the left button</font>');
}


picWindow.document.writeln('        </td>');
picWindow.document.writeln('      </tr>');
picWindow.document.writeln('    </table>');
picWindow.document.writeln('    </td>');
picWindow.document.writeln('  </tr>');
picWindow.document.writeln('  <tr>');
	picWindow.document.writeln('<td valign="top" style="border-bottom-style: solid; border-bottom-width: 1">');
	picWindow.document.writeln('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+panWidth+'" HEIGHT="'+panHeight+'"');
	picWindow.document.writeln('CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
	picWindow.document.writeln('<PARAM name="SRC" VALUE="'+path+'"> <PARAM name="AUTOPLAY" VALUE="false"><PARAM name="CONTROLLER" VALUE="false">'); 
    picWindow.document.writeln('<PARAM name="KIOSKMODE" VALUE="true"> <PARAM name="SCALE" VALUE="ASPECT"> <PARAM name="FOV" VALUE="'+fov+'">');
    picWindow.document.writeln('<PARAM name="BGCOLOR" VALUE="#EAEAEA">');
	picWindow.document.writeln('<EMBED SRC="'+path+'" WIDTH="'+panWidth+'" HEIGHT="'+panHeight+'" KIOSKMODE="TRUE" BGCOLOR="EAEAEA" AUTOPLAY="false" CONTROLLER="false" SCALE="ASPECT"');
	picWindow.document.writeln('FOV="'+fov+'" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT></td>');
picWindow.document.writeln('  </tr>');
picWindow.document.writeln('  <tr>');
picWindow.document.writeln('    <td>');
picWindow.document.writeln('    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"');
picWindow.document.writeln('bordercolor="#111111" width="100%" id="AutoNumber3">');
picWindow.document.writeln('      <tr>');
picWindow.document.writeln('        <td width="50%"></td>');
picWindow.document.writeln('        <td width="50%" align="right">');
	picWindow.document.writeln('<font face="Verdana" size="2" color="#000000">'+"  "+"©Jakob Norstedt-Moberg, Fotoverkstan"+'</font></td>');

picWindow.document.writeln('      </tr>');
picWindow.document.writeln('    </table>');
picWindow.document.writeln('    </td>');
picWindow.document.writeln('  </tr>');
picWindow.document.writeln('</table>');
	picWindow.document.writeln('</div></body></html>');
	picWindow.document.close();
	}
