function show(url, w, h, s, n) {		
	if (!s) s = 0;
	if (!n) n = '_blank';
	attr = 'width=' + w + ',height=' + h + ',location=0,menubar=0,resizable=0,scrollbars=' + s + ',status=0,titlebar=0,toolbar=0,hotkeys=0';
	if (parseInt(navigator.appVersion) >= 4) {
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
		if(x < 0) x = 0;
		if(y < 0) y = 0;
		attr += ',xposition=' + x + ',left=' + x + ',yposition=' + y + ',top=' + y;
	}


 if (navigator.appName.indexOf("Opera") != -1) {
	picwindow = window.open(url, n, attr);
  } else  {
	picwindow = window.open("", n, attr);	
	picwindow.document.write('<html><head><title>ROSSI : иллюстрация</title></head><body bgcolor="#001722" style="padding:0; margin:0;"><img src="' + url +'"</img></body></html>');    
  }	
}

function show_vacancy(name, desc) {		

	s = 0;
	n = '_blank';


	w = 700;
	h = 300;

	if (!s) s = 0;
	if (!n) n = '_blank';
	attr = 'width=' + w + ',height=' + h + ',location=0,menubar=0,resizable=0,scrollbars=' + s + ',status=0,titlebar=0,toolbar=0,hotkeys=0';
	if (parseInt(navigator.appVersion) >= 4) {
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
		if(x < 0) x = 0;
		if(y < 0) y = 0;
		attr += ',xposition=' + x + ',left=' + x + ',yposition=' + y + ',top=' + y;
	}


// if (navigator.appName.indexOf("Opera") != -1) {
//	picwindow = window.open(url, n, attr);
//  } else  {
	picwindow = window.open("", n, attr);	
	picwindow.document.write('<html><head><title>ROSSI : вакансия</title></head><body bgcolor="#001722" style="padding:0;margin:0;color:#fff;"><table border=0 cellpadding=17 width=100% height=100%><tr valign=top><td align=center style="font-family:Arial, Helvetica, sans-serif; color:#fff; font-size: 11px; letter-spacing:0.6pt; text-align:justify;">' + name + '<br><br><font class="desc">' + desc +'</font></td></tr></table></body></html>');    
//  }	
}

/*
var popUpWin=0;
function show(url, w, h, s, n) {
{
	if (!s) s = 0;
	if (!n) n = '_blank';
	attr = 'width=' + w + ',height=' + h + ',location=0,menubar=0,resizable=0,scrollbars=' + s + ',status=0,titlebar=0,toolbar=0,hotkeys=0'
	if (parseInt(navigator.appVersion) >= 4) {
		x = (screen.width - w) / 2
		y = (screen.height - h) / 2
		if(x < 0) x = 0
		if(y < 0) y = 0
		attr += ',xposition=' + x + ',left=' + x + ',yposition=' + y + ',top=' + y
 		left = x;
		top = y;
	}
	width = w;
	height = h;

	
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(url, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
*/
/*
	attr = 'width=' + w + ',height=' + h + ',location=0,menubar=0,resizable=0,scrollbars=' + s + ',status=0,titlebar=0,toolbar=0,hotkeys=0'
function show(url, w, h, s, n) {
  var windowTop = 30;
  var windowLeft = 30;
  var defaultWidth = w;
  var defaultHeight = h;
  var onLoseFocusExit = true;
  var Poster;

  var Options = "width=" + defaultWidth + ",height=" + defaultHeight + ",top=" + windowTop + ",left=" + windowLeft + ""

  var myScript = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n" +
    "<html>\n" +
    "<head>\n" +
    "<title>" + caption + "\</title>\n" +
    "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n" +
    "<meta http-equiv=\"Content-Language\" content=\"en-gb\">\n" +
    "<meta http-equiv=\"imagetoolbar\" content=\"no\">\n" +
    "<script language=\"JavaScript\" type=\"text/javascript\">\n" +
    "function resizewindow () {\n" +
    "  var width = document.myimage.width+20 px;\n" +
    "  var height = document.myimage.height+20 px;\n";

  if (navigator.appName.indexOf("Netscape") != -1) {
    myScript = myScript +  "  window.innerHeight = height;\n  window.innerWidth = width;\n"
  }

  else if (navigator.appName.indexOf("Opera") != -1) {
    myScript = myScript +  "  window.resizeTo (width+12, height+31);\n"
  }

  else if (navigator.appName.indexOf("Microsoft") != -1) {
    myScript = myScript + "  window.resizeTo (width+12, height+31);\n"
  }

  else {
    myScript = myScript + "  window.resizeTo (width+14, height+34);\n"
  }

  myScript = myScript + "}\n" + "window.onload = resizewindow;\n" +
    "</script>\n</head>\n" + "<body ";

 

  myScript = myScript + "style=\"margin: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; margin-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px;\">\n" +
    "<img src=\"" + imageURL + "\" alt=\"" + caption + "\" title=\"" + caption + "\" name=\"myimage\">\n" +
    "</body>\n" +  "</html>\n";

  var imageWindow = window.open (url,"imageWin",Options);
  imageWindow.document.write (myScript)
  imageWindow.document.close (); 
}
*/
