var isIE = navigator.appName.indexOf("Microsoft") != -1;
var gmap_file;

function GoogleMap()
{
        // Масштаб, долгота, широта, описание точки
	//document.getElementById("map").style.height=480;
	//alert(document.getElementById("pano").style.posTop);
	//OpenGoogleMap(16, 59.966738888888, 30.30761388888, "<b>Компания ПАНОРАМИК</b><br> Малый проспект ПС, 87", "http://www.panoramik.ru/", gmap_file);
}

function Tour()
{
	//document.getElementById("map").style.height=0;
	//document.getElementById("flashcontent").style.height=800;
  	GUnload();
 	reloadPage();
}

function set_title(new_title)
{
        document.title=new_title;
}

function code(path, tamx, tamy, frame_type, back_color, text_color, g_map)
{
        var TextColor=text_color;
        
	if (g_map==undefined)  
		g_map="google.xml";

	if (frame_type==undefined)
		frame_type="";

	gmap_file=path+g_map;

        var str='';

        sizex=parseInt(tamx);
        sizey=parseInt(tamy);

	//str+='<div id="map" style="width: '+tamx+'; height: '+tamy+'">';
	//str+='</div>';

	str+='<div id="flashcontent">Для просмотра виртуального тура требуется установить флеш-проигрыватель <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9</a>.<br />';
	str+='</div>';
	document.write(str);

	//document.getElementById("map").style.height=0;
	
	str='';	
	var so = new SWFObject("/tour/button_panel"+frame_type+"_loc.swf", "pano", tamx, tamy, "8.0.0", back_color); 
	so.useExpressInstall('expressinstall.swf');
	so.addVariable("redirect", window.location);
	so.addVariable("tourPath", path);
	so.addVariable("backColor", back_color);
	so.addVariable("TextColor", text_color);
	so.addParam("allowFullScreen","true");
	so.addParam("allowScriptAccess","sameDomain");
	so.addParam("wmode","transparent");
	so.write("flashcontent");


        //str+='<P><FONT FACE="Verdana", "Arial", "Helvetica" SIZE="2" color='+TextColor+'><B> (C) Студия "ПАНОРАМИК", 2007 </B></FONT></P> ';

	document.write(str);
}