typeL=0;
function searchObj() {
	var ttt=window.location.toString();
	if(ttt.indexOf("notfind")!=-1) window.location='objects/'+document.getElementById('obj').value+'/index.html';
	else {window.open('objects/'+document.getElementById('obj').value+'/index.html', '', '');}
	};
function insimg(name, w, h, pod, url, dop) {
	if(!navigator.appMinorVersion) {
		document.write("<img src='pic/"+name+".png' width='"+w+"' height='"+h+"' alt='"+pod+"' style='"+dop+"' "+url+">");
		}
	else {
		document.write("<img src='pic/transparent.gif' style=\"filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='pic/"+name+".png');"+dop+"\" width='"+w+"' height='"+h+"' alt='"+pod+"' "+url+">");
		}
	};
	
function insimg2(name, w, h, pod, url, dop) {

	if(!navigator.appMinorVersion) {
		document.write("<img src='../../pic/"+name+".png' width='"+w+"' height='"+h+"' alt='"+pod+"' style='"+dop+"' "+url+">");
		}
	else {
		document.write("<img src='../../pic/transparent.gif' style=\"filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='../../pic/"+name+".png');"+dop+"\" width='"+w+"' height='"+h+"' alt='"+pod+"' "+url+">");
		}
	};
function ppoo() {
/*	document.write('<div id="botsite"></div>');
	};
window.onload = function() 
{
	if(typeof(loader)!='undefined' && typeof(loader)!=null && typeof(botsite)!='undefined' && typeof(botsite)!=null && botsite.innerHTML!='') {
		}
	else document.body.innerHTML='';*/
};
function openClose(name) {
	if(name.nextSibling.nextSibling.style.display=="none") {
		name.nextSibling.nextSibling.style.display="block";
			name.previousSibling.previousSibling.src="pic/minus.png";
			name.previousSibling.previousSibling.alt="Свернуть";
		}
	else {
		name.nextSibling.nextSibling.style.display="none";
		name.previousSibling.previousSibling.src="pic/plus.png";
		name.previousSibling.previousSibling.alt="Развернуть";
		}
	};
function func1() {
	if(!navigator.appMinorVersion) {
		document.write('<td width="1" style="background-image:url(pic/ten.png); background-repeat:repeat-y"><img src="pic/transparent.gif" height="1" width="1"></td>');
		}
	else {
		document.write('<td width="1" style="background-image:url(pic/transparent.gif); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\'pic/ten.png\', SizingMethod=\'scale\')"><img src="pic/transparent.gif" height="1" width="1"></td>');
		}
	}
function func2() {
						if(!navigator.appMinorVersion) {
							document.write('<td width="1" style="background-image:url(pic/ten.png); background-repeat:repeat-y"><img src="pic/transparent.gif" height="1" width="1"></td>');
							}
						else {
							document.write('<td width="1" style="background-image:url(pic/transparent.gif); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\'pic/ten.png\', SizingMethod=\'scale\')"><img src="pic/transparent.gif" height="1" width="1"></td>');
							}
	}
function func3() {
						if(!navigator.appMinorVersion) {
							document.write('<td width="1" style="background-image:url(pic/ten.png); background-repeat:repeat-y"><img src="pic/transparent.gif" height="1" width="1"></td>');
							}
						else {
							document.write('<td width="1" style="background-image:url(pic/transparent.gif); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\'pic/ten.png\', SizingMethod=\'scale\')"><img src="pic/transparent.gif" height="1" width="1"></td>');
							}
	}
function func4() {
						if(!navigator.appMinorVersion) {
							document.write('<td width="1" style="background-image:url(pic/ten.png); background-repeat:repeat-y"><img src="pic/transparent.gif" height="1" width="1"></td>');
							}
						else {
							document.write('<td width="1" style="background-image:url(pic/transparent.gif); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\'pic/ten.png\', SizingMethod=\'scale\')"><img src="pic/transparent.gif" height="1" width="1"></td>');
							}
	}
function func5() {
						if(!navigator.appMinorVersion) {
							document.write('<td height="20" width="100%" style="background-image:url(pic/downtex3.png); background-repeat:repeat-x"></td>');
							}
						else {
							document.write('<td height="20" width="100%" style="background-image:url(pic/transparent.gif); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\'pic/downtex3.png\', SizingMethod=\'scale\')"></td>');
							}
	}
	function func6() {
						if(!navigator.appMinorVersion) {
							document.write('<td height="20" width="100%" style="background-image:url(pic/downtex3.png); background-repeat:repeat-x" valign=top><img src="pic/20px.gif" hspace="23"></td>');
							}
						else {
							document.write('<td height="20" width="100%" style="background-image:url(pic/transparent.gif); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\'pic/downtex3.png\', SizingMethod=\'scale\')" valign=top><img src="pic/20px.gif" hspace="23"></td>');
							}
	}
function start() {
		document.write('<table align="center" cellpadding="0" cellspacing="0" width="945" border="0"><tr><td align="right"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="106"><tr><td width="300" style="background-image:url(pic/logo.png); background-repeat:no-repeat; background-position:57 36"><img src="pic/transparent.gif" alt="На главную" width="300" height="103" border="0" usemap="#Map"></td><td width="100%" align="right" style="background-image:url(pic/search.png); background-repeat: no-repeat;background-position:right 42; padding-bottom:30px; padding-right:20px" valign="bottom"><form style="display:inline" onsubmit="searchObj();return false;"><input type="text" id="obj" style="width:120px"> <input type="submit" value="Найти" align="right"></form></td></tr></table></td></tr><tr><td align="left" style="padding-left:300px"><table cellpadding="0" cellspacing="0" border="0" height="38"><tr><map name="Map"><area shape="rect" coords="57,36,189,96" href="index.html" alt="На главную"></map>');

	}
function creator() {
	locationVar = code.innerHTML;
	data = getCookie("panorama_name"+locationVar);
	if(data=='null' || data==null) {data = defaultImage;setCookie("panorama_name"+locationVar, data);}
	typePl = getCookie("panorama_viewer");
	if(typePl=='null' || typePl==null) favoriteViewer="FLASH";
	else favoriteViewer=typePl;
	}
function insertPanorama(wid, heig, type) {
	var ttt=window.location.toString();
	if(("sadasdad"+ttt).indexOf("3dsfera.ru")!="-1") {
		if(type==1) {
			setCookie("typeFlash"+locationVar, "3");
			writecode("mov/"+data+".mov","script.dvl","","../../pic/containeras308.swf","",wid,heig);
			typeL=0;
			}
		else {
			setCookie("typeFlash"+locationVar, "2");
			writecode("mov/"+data+".mov","script.dvl","","../../pic/containernew13.swf","",wid,heig);
			typeL=0;			
			}
		}												
	else {
		name77 = getCookie("panorama_name"+locationVar);
		if(name77=='null' || name77==null) {
			name77 = defaultImage;
			}
		ttt2=ttt.indexOf("objects");
		if(ttt2!=-1) {
			locVar=ttt.slice(0,ttt2+7);
			}
		writecode("mov/"+data+".mov","script.dvl","",locVar+"/"+locationVar+"/swf/"+name77+".swf","",wid,heig);
		
		typeL=1;
		}	
	}
function winOpenObj(url) {
	if(navigator.appName.indexOf("Opera")!= -1) window.open('objects/'+url+'/index.html','','resizable, location, menubar, resizable, scrollbars, status, toolbar');
	else window.open('objects/'+url+'/index.html','','width='+(self.screen.width-100)+', height='+(self.screen.height-250)+', resizable, location, menubar, resizable, scrollbars, status, toolbar, left=0, top=0');
	}