var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var debug = false;

var searchButtonTimer;
var searchInFocus = 0;
var balloonTimer = [];
var balloonsTimer = [];
var feedbackTimer;
var searchForm;
var prints;
var bindings;
var valForm;
var compassIco;
var feedbackIco;
var closecompassIco;
var closefeedbackIco;
var panels;
var formelements = [];
var years = [];
var mons = [];
var iconz, form1, form2, anketa, resumeBt, anketaBt;
var form1Timer, form2Timer, anketaTimer;
var upload = [];
var uploadCount;
var planz;
var valid;
var Outz = [];
var Outs = [];
var balloonz = [];
var balloons = [];
var crossover = [];

/*--init--*/

var menuImages = [];

function loadImages () {
	for (i=0; i<arguments.length; i++) {
		menuImages[i] = new Image;
		menuImages[i].src= arguments[i];
	}
}

function init () {
	loadImages(
	"/imgs/listactive.gif",
	"/imgs/listactiveleft.gif",
	"/imgs/listactiveleftwsb.gif",
	"/imgs/listactiveright.gif",
	"/imgs/listcurrent.gif",
	"/imgs/listcurrentactiveleft.gif",
	"/imgs/listcurrentactiveleftwsb.gif",
	"/imgs/listcurrentactiveright.gif",
	"/imgs/contacts/feedbackback.gif",
	"/imgs/contacts/feedbackbottom.gif",
	"/imgs/contacts/feedbacktop.gif",
	"/imgs/contacts/compassback.gif",
	"/imgs/contacts/compasstop.gif",
	"/imgs/contacts/panel.gif",
	"/imgs/contacts/compassbottom.gif",
	"/imgs/contacts/close.gif"
	);
	/*--search--*/
/*	Buttons = getElementsByClassName("button");
	for (i=0; i<Buttons.length; i++) {
		disableSelection(Buttons[i]);
	}*/
	/*Prints = getElementsByClassName("print");
	for (i=0; i<Prints.length; i++) {
		disableSelection(Prints[i]);
	}*/

	try {
		bindings = getElementsByClassName("binding");
		stars = getElementsByClassName("star");
		for (i=0; i<bindings.length; i++) {
			bindings[i].count = i;
			bindings[i].onkeyup = function () {
				if (this.value.length==0 || this.value.indexOf("- -")>=0) {
					stars[this.count].className="star";
				}
				else {
					stars[this.count].className="nostar";
				}
				$("sendbt").innerHTML = "<a href='javascript:validForm()'>Отправить</a>";
				for (j=0; j<bindings.length; j++) {
					if (bindings[j].value.length==0 || bindings[j].value.indexOf("- -")>=0) {
						$("sendbt").innerHTML = '<a href="javascript://" style="color: #aaa" title="Заполните обязательные поля!">Отправить</a>';
					}
				}
			}
			bindings[i].onchange = function () {
				stars[3].className="nostar";
				for (ii=3; ii<6; ii++) {
					if (bindings[ii].value.length==0 || bindings[ii].value.indexOf("- -")>=0) {
						stars[3].className="star";
					}
				}
				$("sendbt").innerHTML = "<a href='javascript:validForm()'>Отправить</a>";
				for (j=0; j<bindings.length; j++) {
					if (bindings[j].value.length==0 || bindings[j].value.indexOf("- -")>=0) {
						$("sendbt").innerHTML = '<a href="javascript://" style="color: #aaa" title="Заполните обязательные поля!">Отправить</a>';
					}
				}
			}
		}
	}
	catch (error) {alert(error)}


	try {
		searchButton = document.getElementById('search').getElementsByTagName('a')[0];
		searchForm = document.getElementById('search').getElementsByTagName('form')[0];
		
		searchButton.onclick = function () {
			return false;
		}
		
		searchButton.onmouseover = function () {
			if (searchInFocus==0) {
				clearTimeout (searchButtonTimer);
				document.getElementById('search').getElementsByTagName('form')[0].className = "active";
				searchButtonTimer = setTimeout ("hideSearch()", 4000);
				return false;
			}
		}
		searchForm.query.onfocus = function () {
			searchInFocus = 1;
			clearTimeout (searchButtonTimer);
		}
		searchForm.query.onblur = function () {
			searchInFocus = 0;
			clearTimeout (searchButtonTimer);
			searchButtonTimer = setTimeout ("hideSearch()", 4000);
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/search--*/
	/*--print--*/
	try {
		prints = getElementsByClassName('print');
		if (prints.length>0) {
			for (i=0; i<prints.length; i++) {
				prints[i].count = i;
				prints[i].balloon = prints[i].getElementsByTagName('div')[0];
				prints[i].getElementsByTagName('a')[0].onmouseover = function () {
					clearTimeout (balloonTimer[this.count]);
					this.parentNode.balloon.className="active";
					balloonTimer[this.count] = setTimeout ("hideBalloon("+this.parentNode.count+")",3000);
					return false;
				}
				prints[i].onclick = function () {
					clearTimeout (balloonTimer[this.count]);
					//this.parentNode.balloon.className="active";
					hideBalloon(this.count);
				}
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/print--*/
	/*--contacts--*/
	try {
		compassIco = document.getElementById("compass");
		feedbackIco = document.getElementById("feedback");
		closecompassIco = document.getElementById("closecompass");
		closefeedbackIco = document.getElementById("closefeedback");
		panels = document.getElementById("panels");
		formel = document.getElementById("panels").getElementsByTagName('form')[0];
		formelements[0] = formel.name;
		formelements[1] = formel.contacts;
		formelements[2] = formel.question;
		
		for (i=0; i<formelements.length; i++) {
			formelements[i].condition = false;
			formelements[i].onclick = function () {
//				clearTimeout (feedbackTimer);
			}
			formelements[i].onkeypress = function () {
//				clearTimeout (feedbackTimer);
			}
		}
		
		closecompassIco.onclick = function () {
			compassIco.className="close";
			panels.style.height = "265px";
				getElementsByClassName("ico",feedbackIco)[0].style.height = "60px";
		}
		closefeedbackIco.onclick = function () {
			$("feedbackform").style.display = "block";
			$("alert").style.display="none";
			$("alert").innerHTML="";
			feedbackIco.className="close";
		}
		compassIco.onmouseover = function () {
			if ( (this.className!="active") && (feedbackIco.className!="active") ) {
				this.className = "hover";
				feedbackIco.className= "" ;
			}
		}
		compassIco.onmouseout = function () {
			if (this.className!="active") {
				this.className = "";
			}
		}
		compassIco.onclick = function () {
//			if ( (this.className.indexOf("close")<0) && (feedbackIco.className!="active") ) {
			if ( this.className.indexOf("close")<0 ) {
				this.className = "active";
				$("feedbackform").style.display = "block";
				$("alert").style.display="none";
				$("alert").innerHTML="";
				feedbackIco.className="";
				getElementsByClassName("ico",feedbackIco)[0].style.height = "50px";
				panels.style.height = "645px";
			}
		}
		feedbackIco.onmouseover = function () {
			if ( (this.className!="active") && (compassIco.className=="") ) {
				this.className = "hover";
			}
		}
		feedbackIco.onmouseout = function () {
			if (this.className!="active") {
				this.className = "";
			}
		}
		feedbackIco.onclick = function () {
//			if ( (this.className.indexOf("close")<0) && (compassIco.className=="") ) {
			if ( this.className.indexOf("close")<0 ) {
				compassIco.className="";
				panels.style.height = "265px";
				getElementsByClassName("ico",this)[0].style.height = "60px";
				this.className = "active";
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/contacts--*/
	/*--news--*/
	try {
		newz = document.getElementById('news').getElementsByTagName('a');
		
		yearCount=0;
		monCount=0;
		
		for (i=0; i<newz.length; i++) {
			if (newz[i].parentNode.parentNode.parentNode.className=="newslist") {
				years[yearCount] = newz[i];
				yearCount++;
			}
			if (newz[i].parentNode.parentNode.parentNode.parentNode.parentNode.className=="newslist") {
				mons[monCount] = newz[i];
				monCount++;
			}
		}
		for (i=0; i<years.length; i++) {
			years[i].onclick = function () {
				temp = "" + this.parentNode.className;
				for (j=0; j<years.length; j++) {
					years[j].parentNode.className="";
				}
				(temp == "" ? this.parentNode.className = "active" : this.parentNode.className = "");
				return false;
			}
		}
		for (i=0; i<mons.length; i++) {
			mons[i].onclick = function () {
				temp = "" + this.parentNode.className;
				for (j=0; j<mons.length; j++) {
					mons[j].parentNode.className="";
				}
				(temp == "" ? this.parentNode.className = "active" : this.parentNode.className = "");
				return false;
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--news--*/
	/*--vacancy--*/
	try {
		vacancysButtons = document.getElementById("vacancylist").getElementsByTagName("a");
		vacancys = getElementsByClassName("vacancy");
		iconz = getElementsByClassName('icons')[0];
		form1 = getElementsByClassName('form',iconz)[0];
		form2 = getElementsByClassName('form',iconz)[1];
		anketa = getElementsByClassName('anketa')[0].getElementsByTagName('div')[0];
		resumeBt = getElementsByClassName('resume')[0].getElementsByTagName('a')[0];
		loadBt = getElementsByClassName('resume')[0].getElementsByTagName('a')[1];
		anketaBt = getElementsByClassName('anketa')[0].getElementsByTagName('a')[0];

		resumeBt.onclick = function () {
			return false;
		}
		anketaBt.onclick = function () {
/*			clearTimeout (anketaTimer);
			hideanketa();*/
			return false;
		}

/*		loadBt.onclick = function () {
			sendResume();
			upload[uploadCount] = true;
			clearTimeout (form1Timer);
			hideform1();
			form2.style.display = "block";
			clearTimeout (form2Timer);
			form2Timer = setTimeout("hideform2()", 6000);
			return false;
		}*/
		resumeBt.onmouseover = function () {
			clearTimeout (anketaTimer);
			hideanketa();
/*			if (upload[uploadCount]) {
				form2.style.display = "block";
				clearTimeout (form2Timer);
				form2Timer = setTimeout("hideform1()",6000);
			}
			else {
				form1.style.display = "block";
				clearTimeout (form1Timer);
				form1Timer = setTimeout("hideform1()",6000);
			}*/
			form1.style.display = "block";
			clearTimeout (form1Timer);
			form1Timer = setTimeout("hideform1()",6000);
		}
		anketaBt.onmouseover = function () {
			clearTimeout(form1Timer);
			hideform1();
			clearTimeout(form2Timer);
			hideform2();
			anketa.style.display = "block";
			clearTimeout (anketaTimer);
			anketaTimer = setTimeout("hideanketa()",6000);
		}
		form1.onmouseover = function () {
			clearTimeout (form1Timer);
		}
		form2.onmouseover = function () {
			clearTimeout (form2Timer);
		}
		for (i=0; i<vacancysButtons.length; i++) {
			upload[i] = false;
			vacancysButtons[i].count = i;
			vacancysButtons[i].onclick = function () {
				$('currentjob').value = this.id;
				uploadCount = this.count;
				document.getElementById("about").style.display = "none";
				iconz.style.display = "block";
				hideform1();
				hideform2();
				hideanketa();
				for (j=0; j<vacancysButtons.length; j++) {
					vacancysButtons[j].className="";
				}
				this.className = "active";
				for (j=0; j<vacancys.length; j++) {
					vacancys[j].className="vacancy";
				}
				vacancys[this.count].className = "activevacancy";
				return false;
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/vacancy--*/
	/*--objects--*/
	try {
		objectz = getElementsByClassName("object");
		objclose = document.getElementById("close");
		bigPhoto = getElementsByClassName("bigphoto");
		
		for (i=0; i<bigPhoto.length; i++) {
			bigPhoto[i].style.left = (-i*81-4)+"px";
		}
		
		for (i=0; i<objectz.length; i++) {
			objectz[i].count = i;
			objectz[i].onmouseover = function () {
				this.getElementsByTagName("p")[0].style.display = "block";
			}
			objectz[i].onmouseout = function () {
				this.getElementsByTagName("p")[0].style.display = "none";
			}
			objectz[i].onclick = function () {
				for (j=0; j<bigPhoto.length; j++) {
					bigPhoto[j].style.display = "none";
				}
				bigPhoto[this.count].style.display = "block";
				objclose.style.display = "block";
				objclose.style.left = (this.count*81-4)+"px";
			}
			objclose.onclick = function () {
				for (j=0; j<bigPhoto.length; j++) {
					bigPhoto[j].style.display = "none";
				}
				objclose.style.display = "none";
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/objects--*/
	/*--air--*/
	try {
		mapObjects = getElementsByClassName("mapObject");
		Outz = getElementsByClassName("outline");
		balloonz = getElementsByClassName("balloon");

		for (i=0; i<Outz.length; i++) {
			if (getElementsByClassName("outObject",Outz[i]).length>0) {
				Outs.push(getElementsByClassName("outObject",Outz[i])[0]);
			}
			else {
				Outs[i] = 0;
			}
		}

		for (i=0; i<balloonz.length; i++) {
			if (balloonz[i].getElementsByTagName("div").length>0) {
				balloons.push(balloonz[i].getElementsByTagName("div")[0]);
			}
			else {
				balloons[i] = 0;
			}
		}

		for (i=0; i<balloonz.length; i++) {
			if (getElementsByClassName("balloonObject",balloonz[i]).length>0) {
				crossover.push(getElementsByClassName("balloonObject",balloonz[i])[0]);
			}
			else {
				crossover[i] = 0;
			}
		}

		for (i=0; i<mapObjects.length; i++) {

			mapObjects[i].count = i;

			if ( balloons[i] != 0 ) {
				balloons[i].count = i;
			}

			if ( crossover[i] != 0 ) {
				crossover[i].count = i;
			}

			if ( Outs[i] != 0 ) {
				Outs[i].count = i;
			}

			mapObjects[i].onmouseover = function () {

				for (j=0; j<mapObjects.length; j++) {
					clearTimeout (balloonsTimer[j]);
					hideBalloons(j);
				}

				clearTimeout (balloonsTimer[this.count]);
				if ( balloons[this.count] != 0 ) {
					balloonz[this.count].style.display = "block";
				}
				if ( Outs[this.count] != 0 ) {
					Outz[this.count].style.display = "block";
				}
			}
			balloons[i].onmouseover = function () {
				clearTimeout (balloonsTimer[this.count]);
				if ( balloons[this.count] != 0 ) {
					balloonz[this.count].style.display = "block";
				}
				if ( Outs[this.count] != 0 ) {
					Outz[this.count].style.display = "block";
				}
			}
			crossover[i].onmouseover = function () {
				clearTimeout (balloonsTimer[this.count]);
				if ( crossover[this.count] != 0 ) {
					balloonz[this.count].style.display = "block";
				}
				if ( Outs[this.count] != 0 ) {
					Outz[this.count].style.display = "block";
				}
			}
			Outs[i].onmouseover = function () {
				clearTimeout (balloonsTimer[this.count]);
				if ( balloons[this.count] != 0 ) {
					balloonz[this.count].style.display = "block";
				}
				if ( Outs[this.count] != 0 ) {
					Outz[this.count].style.display = "block";
				}
			}

			mapObjects[i].onmouseout = function () {
				clearTimeout (balloonsTimer[this.count]);
				balloonsTimer[this.count] = setTimeout("hideBalloons("+this.count+")",500);
			}
			balloons[i].onmouseout = function () {
				clearTimeout (balloonsTimer[this.count]);
				balloonsTimer[this.count] = setTimeout("hideBalloons("+this.count+")",500);
			}
			crossover[i].onmouseout = function () {
				clearTimeout (balloonsTimer[this.count]);
				balloonsTimer[this.count] = setTimeout("hideBalloons("+this.count+")",500);
			}
			Outs[i].onmouseout = function () {
				clearTimeout (balloonsTimer[this.count]);
				balloonsTimer[this.count] = setTimeout("hideBalloons("+this.count+")",500);
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/air--*/
	/*--plans--*/
	try {
		planz = getElementsByClassName("plans")[0].getElementsByTagName("a");
		plansImgz = getElementsByClassName("plans")[1].getElementsByTagName("img");

		screens = getElementsByClassName("screen");

		linkz = getElementsByClassName("links")[0];

		try {
			planh = getElementsByClassName("plans")[0].getElementsByTagName("span");
			if (planh.length>1) {
				for (i=0; i<planh.length; i++) {
					planh[i].count = i;
					planh[i].onclick = function() {
						if (this.className=='off') {
							for (j=0; j<planh.length; j++) {
								if (this.count!=j) {
									planh[j].className = 'off';
									screens[j].style.display = 'none';
								}
							}
							this.className = '';
							screens[this.count].style.display = 'block';
							if (this.count==0) {
								linkz.style.display = 'block';
							}
							else {
								linkz.style.display = 'none';
							}
						}
					}
				}
			}
		}
		catch(err) {}

		try {
			bigphotoz = getElementsByClassName("bigphotos")[0].getElementsByTagName("img");
			mphotoz = getElementsByClassName("mphotos")[0].getElementsByTagName("img");
			namez = getElementsByClassName("names")[0].getElementsByTagName("h4");
			for (i=0; i<mphotoz.length; i++) {
				mphotoz[i].count = i;
				mphotoz[i].onclick = function() {
					for (j=0; j<mphotoz.length; j++) {
						if (j!=this.count) {
							bigphotoz[j].style.zIndex = '1';
							namez[j].style.display = 'none';
						}
					}
					bigphotoz[this.count].style.zIndex = '10';
					namez[this.count].style.display = 'block';
				}
			}
		}
		catch(err) {}

		var plansImgs = new Array;

		for (i=0; i<plansImgz.length; i++) {
			if (plansImgz[i].className!="png") {
				plansImgs.push(plansImgz[i]);
			}
		}

		for (i=0; i<planz.length; i++) {
			planz[i].count = i;
			planz[i].onclick = function () {
				for (j=0; j<planz.length; j++) {
					planz[j].className = "";
					plansImgs[j].className="";
				}
				this.className = "active";
				plansImgs[this.count].className="active";
				return false;
			}
		}
	}
	catch (err) {
		if (debug) alert(err);
	}
	/*--/plans--*/
}

/*--/init--*/

function hideSearch () {
	try {
		clearTimeout (searchButtonTimer);
		searchForm.className = "";
	}
	catch (err) {}
}
/*function hideSearch2 (e) {
	try {
		if (_event(e).parentNode.parentNode.parentNode.id!="search" && _event(e).className!="button") {
			hideSearch();
		}
	}
	catch (err) {
		hideSearch();
	}
}*/

function hideAll2 (e) {
	try {
		if (_event(e).className!="wordsmith" && _event(e).parentNode.parentNode.parentNode.id!="search" && _event(e).className!="button" && _event(e).parentNode.className!="resume" && _event(e).parentNode.className!="anketa") {
			hideSearch();
			hideanketa();
			hideform1();
			hideform2();
		}
	}
	catch (err) {
		try {
			if (_event(e).parentNode.parentNode.parentNode.id!="search" && _event(e).className!="button") {
				hideSearch();
			}
		}
		catch (err) {
			hideSearch();
			hideanketa();
			hideform1();
			hideform2();
		}
	}
}


function hideBalloon (item) {
	clearTimeout (balloonTimer[item]);
	prints[item].balloon.className = "";
}
function hideBalloons (item) {
	clearTimeout (balloonsTimer[item]);
	if ( balloons[item] != 0) {
		balloonz[item].style.display = "none";
	}
	if ( Outs[item] != 0) {
		Outz[item].style.display = "none";
	}
}
function hidefeedback () {
	feedbackIco.className = "";
}
function hideform1() {
	document.getElementById("errors").innerHTML = "";
	form1.style.display = "none";
}
function hideform2() {
	$("photo").value = "";
	$("resume").value = "";
	form2.style.display = "none";
}
function hideanketa() {
	anketa.style.display = "none";
}
function getElementsByClassName(classname, node) {
	if(!node) node = document.getElementsByTagName("body")[0];
	var a = [];
	var re = new RegExp('\\b' + classname + '\\b');
	var els = node.getElementsByTagName("*");
	for(var i=0,j=els.length; i<j; i++)
	if(re.test(els[i].className)) a.push(els[i]);
	return a;
}
function _event (evt) {
	if (!evt) {
		evt = event;
	}
	var ev = (evt.srcElement) ? evt.srcElement : evt.target;
	return ev;
}

function validForm () {
//	bindings = getElementsByClassName("binding");
	valForm = document.getElementsByTagName("form")[0];

//	valid = true;

/*	for (i=0; i<bindings.length; i++) {
		bindings[i].count = i;
		if (bindings[i].value.length==0 || bindings[i].value.indexOf("- -")>=0) {
			alert ("Заполните обязательные поля!");
			bindings[i].focus();
			valid = false;
			break;
		}
		bindings[i].onblur = function () {
			$("sendbt").innerHTML = '<a href="javascript:validForm()">Отправить</a>';
			for (j=0; j<bindings.length; j++) {
				if (bindings[j].value.length==0 || bindings[j].value.indexOf("- -")>=0) {
					$("sendbt").innerHTML = '<a href="javascript://" style="color: #aaa" title="Заполните обязательные поля!">Отправить</a>';
				}
			}
		}
	}*/
	/*if (valid==true) {
		valForm.submit();
	}*/
		valForm.submit();
}

function popupItem(item) {
	window.open(
		item,
		'_blank',
		'toolbar=0,location=0,statusbar=0,menubar=0,width=600,left=20,top=20,scrollbars=yes'
	);
}
function printItem(item) {
	window.print(
		item,
		'_blank',
		'toolbar=0,location=0,statusbar=0,menubar=0,width=600,left=20,top=20,scrollbars=yes'
	);
}

function nohref () {
	return false;
}

window.onload = init;
document.onclick = hideAll2;


function sendResume() {
	if (document.fileform.fileresume.value.length<1) {
		document.getElementById("errors").style.display="block";
		document.getElementById("errors").innerHTML = "Укажите файл резюме!";
		return false;
	}
	else {
		upload[uploadCount] = true;
		clearTimeout (form1Timer);
		hideform1();
		form2.style.display = "block";
		clearTimeout (form2Timer);
		form2Timer = setTimeout("hideform2()", 6000);

		document.getElementById("errors").style.display="none";
		document.getElementById("errors").innerHTML = "";
		$('fileform').submit();
	}
}

function options(from, to) {
	for (i = from; i <= to; i++) {
		document.write('<option>' + i + '</option>');
	}
}

function main_DoFSCommand(command, args) {
	//alert (window.location.href);
	var mainObj = isInternetExplorer ? document.all.main : document.main;
	if (command.indexOf("object")!=-1) {
		window.location.href=command;
	}
}
if ( navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language="VBScript">\n');
	document.write('On Error Resume Next\n');
	document.write('Sub main_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call main_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function subpage_DoFSCommand(command, args) {
	//alert (window.location.href);
	var subpageObj = isInternetExplorer ? document.all.subpage : document.subpage;
	if (command.indexOf("object")!=-1) {
		window.location.href=command;
	}
}
if ( navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language="VBScript">\n');
	document.write('On Error Resume Next\n');
	document.write('Sub subpage_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call subpage_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function disableSelection(element) {
	element.onselectstart = function() {
	return false;
};
	element.unselectable = "on";
	element.style.MozUserSelect = "none";
	element.style.cursor = "default";
}

function popupVideo() {
	window.open(
		'/files/video.html?',
		'_blank',
		 'toolbar=0,location=0,statusbar=0,menubar=0,width=740, height=660,left=20,top=20,scrollbars=no'
	);
}
