function Trans(point)
{
	top.document.DevalPlug.Commands('panorama', point);
}

function Fullscreen()
{
	top.document.DevalPlug.fullscreen=1;	
}

function OpenQT()
{
   //window.open('p01.mov', 'Виртуальный тур', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, width=760, height=550');
   window.open('p01.mov', 'popDialog', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, width=760,height=550');
}

function OpenJava()
{
   window.open('p01.mov', 'popDialog', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, width=760,height=550');
	
/*
var str='<applet height="257" archive="http://tasc.ru/ptviewer.jar" width="370" code="ptviewer.class" name="ptviewer" mayscript="true"> ';
	str+='<param name="file" value="p01.jpg"> ';
	str+='<param name="panmin" value="-180"> ';
	str+='<param name="panmax" value="180"> ';
	str+='<param name="pan" value="0">';

	str+='</applet>';
	document.write(str);
*/
}

function code(title, tamx, tamy)
{
        var str='<P><FONT SIZE="4"> <B>'+ title+'</B></FONT></P>';

	str+='<iframe name="iframe" src="frame.html" frameborder="0" scrolling="auto" align="top" height="100" width="640"></iframe> ';
        str+='<BR>';

	str+='<OBJECT id="DevalPlug" style="WIDTH: '+tamx+'; HEIGHT: '+tamy+'" height="'+tamy+'"';
	str+='width="'+tamx+'" classid=clsid:5D2CF9D0-113A-476B-986F-288B54571614 ';
	str+='codeBase="http://www.devalvr.com/instalacion/plugin/devalocx.cab#version=0,4,4,7">';
	str+='<PARAM NAME="src" VALUE="script.dvl">';
        str+='<PARAM NAME="plugincolor" VALUE="#ffffff"> ';
        str+='<PARAM NAME="logo" VALUE="logo.bmp"> ';
        str+='<PARAM NAME="logourl" VALUE="www.impaga.ru"> ';
        str+='<PARAM NAME="language" VALUE="Russian">';
        str+='<PARAM NAME="logoalpha" VALUE="60"> ';
        str+='<PARAM NAME="toolsbar" VALUE="0"> ';
        str+='<PARAM NAME="barstrings" VALUE="Исходный масштаб, Увеличить масштаб, Уменьшить масштаб, Полноэкранный режим, Вывести во внешнее окно, Автоматическое вращение, Ручное вращение, О туре, Спрятать/показать меню"> ';
        str+='<PARAM NAME="zoom" VALUE="0.6"> ';
        str+='<PARAM NAME="minzoom" VALUE="0.6"> ';
        str+='<PARAM NAME="maxzoom" VALUE="2"> ';
        str+='<PARAM NAME="velocity" VALUE="2"> ';
        str+='<PARAM NAME="autoplay" VALUE="3"> ';
        str+='<PARAM NAME="screensaver" VALUE="1"> ';
        str+='<PARAM NAME="abouturl" VALUE="panor_about_demo.html"> ';
	str+='<PARAM NAME="filter" VALUE="0"> ';

	str+='<EMBED src="script.dvl" TYPE="application/x-devalVRX" ';
        str+='WIDTH='+tamx+' HEIGHT='+tamy+' NAME="DevalPlug" ';
	str+='PLUGINSPAGE="http://www.devalvr.com/instalacion/plugin/install.html" ';
        str+='filter="0" toolsbar="0" ';
        str+='plugincolor="#ffffff" logo="logo.bmp" logourl="www.impaga.ru" logoalpha="60" ';
        str+='barstrings="Исходный масштаб, Увеличить масштаб, Уменьшить масштаб, Полноэкранный режим, Вывести во внешнее окно, Автоматическое вращение, Ручное вращение, О туре, Спрятать/показать меню" ';
        str+='zoom="0.6" minzoom="0.6" maxzoom="2" abouturl="panor_about_demo.html"';
        str+='velocity="2" autoplay="3" screensaver="1" ';
	str+='></EMBED></OBJECT>';
	str+='<BR>';
        str+='<IMG SRC="podacha.jpg" ALIGN="Center"> ';
        str+='<a href="http://www.devalvr.com/instalacion/plugin/install.html" title="Установить плагин, необходимый для просмотра панорам"><img src="plugin.jpg" border="0" align="top"></a> ';
        //str+='<a href="javascript:OpenQT()" title="Просмотреть данную панораму с использованием QuickTime Player"><img src="quicktime.jpg" border="0" align="top"></a> ';
        //str+='<a href="javascript:OpenJava()" title="Просмотреть данную панораму с использованием Java Applet"><img src="javascript.jpg" border="0" align="top"></a> ';
        str+='<a href="javascript:Fullscreen();"  target=_blank  title="Развернуть панораму на полный экран"><img src="fullscreen.jpg" border="0" align="top"></a> ';
        
        str+='<P><FONT SIZE="2"><B> imp 2006 </B></FONT></P> ';

	document.write(str);
}





