
var v=parseInt(navigator.appVersion);
isNetscape=navigator.appName.indexOf('Netscape')>=0;
isExplorer=navigator.appName.indexOf('Explorer')>=0;
if (v>=3) self.focus();
function Vacancy(){
	myWin= open("", "displayWindow", 
    "width=400,height=300,status=yes,toolbar=yes,menubar=yes");

  // открыть объект document для последующей печати 
  myWin.document.open();
  
  // генерировать новый документ 
  myWin.document.write("<html><head>");
  myWin.document.write("<title>Треьуются региональные представители.");
  myWin.document.write("</title></head><body style='font: normal 11px verdana, sans-serif; color: #31628C;'>");
  myWin.document.write("<h3>В связи с расширением географии продаж мы приглашаем к сотрудничеству региональных представителей.</h3> ");
 myWin.document.write("<strong>Требования к кандидату:</strong><br />");
 myWin.document.write("профессиональные навыки активных продаж, ведения переговоров на разных уровнях (в т.ч. на уровне представителей власти),<br />");
 myWin.document.write("умение работать на результат, самоорганизованность, ответственность, творческий подход к работе, активная жизненная позиция, готовность к командировкам, знание необходимых норм и правил по ведению документооборота;<br />");
 myWin.document.write("желателен опыт работы в нашей сфере.<br /><br />");
  myWin.document.write("<a href='#' onclick='opener.location.href = \"http://www.ttcspb.ru/vacancy.php\";window.close();return false;'>Вакансии</a>");
  myWin.document.write("</body></html>");

  // закрыть документ - (но не окно!)
  myWin.document.close();  

}

function Link() {
document.location.href = "http://www.ttcspb.ru/vacancy.php";
}

function $(name)
	{
		 return document.getElementById(name);
	}




opened = '';

function Open_div(name){

	if(opened != ''){

	$(opened).style.display='none';
	}
	
	$(name).style.display='block';
	opened = name;
	

}

function preview(event,goLocation,link) {

	document.getElementById("previewImg").src = "img/0.gif";
	goLocation = "img/graph/"+goLocation;
	document.getElementById("previewImg").src = goLocation;
	document.getElementById("previewDiv").style.visibility = "visible";


	/*
	if (link == 1)
	{
		popLocation = "img/graph/"+goLocation.replace(/\.(.+)/, '')+"_b.jpg";
		document.getElementById("previewA").href = popUp(popLocation);
	}else{
		alert("!!!!");
		document.getElementById("previewA").href = null;
	}
	*/


//	document.getElementById("previewDiv").style.top = 142;//event.clientY + document.body.scrollTop;
//	document.getElementById("previewImg").style.width = ww;
//	document.getElementById("previewImg").style.height = wh;

}

function select(name,flag){
	fname = "_img/but_" + name + flag + ".gif";
		document.images[name].src = fname;	
}

function popUp(goLocation,ww,wh,scr) {
		//goLocation = "_img/references/"+goLocation;
		if (scr != 1){scr = 0;}
		positionCode='';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2)-25;
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}

		page = window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars='+scr+','+'resizable=0');
		page.document.open();
		pagecode = '<BODY STYLE="margin: 0px; padding: 0px"><table height="100%" cellpadding=0 cellspacing=0><tr><td height="100%" valign="middle"><A HREF="javascript: window.close();"><img src="' + goLocation + '" alt="закрыть" border=0></A><br></td></tr></table></BODY>';
		page.document.write(pagecode);
		page.document.close();
		if (isNetscape && v>=3) page.focus();
}




/*
function popUp(goLocation,ww,wh) {
	positionCode='';
	if (v>=4) {
		sw=screen.width; sh=screen.height;
		wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2);
		if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
		if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
	}
	newWindow=window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars=0,'+'resizable=0');
	if (isNetscape && v>=3) newWindow.focus();
}
*/

/*function popUp(goLocation,ww,wh,scr,title) {

		goLocation = "/uploads/"+goLocation;

		if (scr != 1){scr = 0;}
		positionCode='';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2);
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}

		page = window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars='+scr+','+'resizable=0');
		page.document.open();
		pagecode = '<TITLE>'+title+'</TITLE><BODY STYLE="margin: 0px; padding: 0px"><table height="100%" cellpadding=0 cellspacing=0><tr><td height="100%" valign="middle"><img src="' + goLocation + '"><br></td></tr></table></BODY>';
		page.document.write(pagecode);
		page.document.close();
		if (isNetscape && v>=3) page.focus();
}

*/

function popUpFlash(goLocation,ww,wh,title) {
		scr = 0;
		//goLocation = "img/flash/"+goLocation;

		if (scr != 1){scr = 0;}
		positionCode='';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2)-25;
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}

		page = window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars='+scr+','+'resizable=0');
		page.document.open();
		pagecode = '<HEAD><TITLE>'+title+'</TITLE><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=windows-1251" /><script language="javascript" src="_javascript/main.js"></script></HEAD><BODY STYLE="margin: 0px; padding: 0px"><table height="100%" cellpadding=0 cellspacing=0><tr><td height="100%" valign="middle"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+ww+'" HEIGHT="'+wh+'" id="flash" ALIGN=""><PARAM NAME=movie VALUE="' + goLocation + '"><param name="menu" value="false"><PARAM NAME=quality VALUE=high><param name="wmode" value="opaque"><PARAM NAME=bgcolor VALUE=#ffffff><EMBED src="' + goLocation + '" quality=high wmode="opaque" bgcolor=#ffffff  WIDTH="'+ww+'" HEIGHT="'+wh+'" NAME="flash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></td></tr></table></BODY>';
		page.document.write(pagecode);
		page.document.close();
		if (isNetscape && v>=3) page.focus();
}
