function show_block(id) {
	if (document.getElementById(id).style.display == 'block')
		{
		w = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
		//h = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
		h = (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;		
		document.getElementById(id).style.width = w;
		document.getElementById(id).style.height = h+"px";
		document.getElementById(id).style.display = 'none';
		show ='show';
		//alert('!');
		}
	else
		{
		w = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
		//h = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
		h = (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;		
		document.getElementById(id).style.width = w;
		document.getElementById(id).style.height = h+"px";
		document.getElementById(id).style.display = 'block';
		show ='hide';
		//alert(h);
		}
	//alert('!!');
}

function fixPNG(element)
{
  if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
  {
    var src;
    if (element.tagName=='IMG')
    {
      if (/\.png$/.test(element.src))
      {
        src = element.src;
        element.src = "images/px.gif"; 
      }
    }
    else
    {
      src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
      if (src)
      {
        src = src[1];
        element.runtimeStyle.backgroundImage="none";
      }
    }
    if (src) 
	element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
  }
}

/********** min width ************/
if (!popup) var popup=false;
if (!popup)
{
var d = document;
var winIE = (navigator.userAgent.indexOf('Opera')==-1 && (d.getElementById && d.documentElement.behaviorUrns)) ? true : false;
function bodySize(){
if(winIE && d.documentElement.clientWidth) {
sObj = d.getElementsByTagName('body')[0].style;
sObj.width = (d.documentElement.clientWidth<1000) ? '1000px' : '100%';
}
}
function init(){
if(winIE) { bodySize(); }
}
onload = init;
if(winIE) { onresize = bodySize; }
}

/********** Project scripts **********/
function show_vacancy(id) {
	if (document.getElementById('div'+id).style.display == 'block')
		{
		document.getElementById('div'+id).style.display = 'none';
		document.getElementById('link'+id).className = 'link';
		}
	else
		{
		document.getElementById('div'+id).style.display = 'block';
		document.getElementById('link'+id).className = 'linkSel';;
		}
}

var jpg = 1;
var gif = 9;
var f = false;
var b = new Array;
var c = new Array;

function prel(){
	for(i=1;i<=jpg;i++)
	{
		str = 'images/partners/b' + i + '_o.jpg';
		b[i-1] = new Image();
		b[i-1].src = str;
	}
}

function on(im){document.images[im].src="images/partners/"+im+"_o.jpg";}

function off(im){document.images[im].src = "images/partners/"+im+".jpg";}

