function promo_border(act)
{
	if (act) document.getElementById("ad_borders").style.display="block"; else document.getElementById("ad_borders").style.display="none";
}

function promo_open(fff)
{
if (fff == true) thisMovie("flash").Pause();
  document.getElementById("bar").style.visibility="visible";
  document.getElementById("bar").style.display="block";
  document.getElementById("promo_win").style.display="block";
}

function close_bar(fff) {
if (fff == true) thisMovie("flash").PlayM();
  document.getElementById("bar").style.visibility="hidden";
  document.getElementById("bar").style.display="none";
  document.getElementById("bar_win").style.visibility="hidden";
  document.getElementById("promo_win").style.display="none";
}
function win_open(fff) {
if (fff == true) thisMovie("flash").Pause();
  var scrOfY = GetScrOfY();
  var scrOfX = GetScrOfX();
  var bar_window = document.getElementById("bar_win");
  bar_window.style.top = scrOfY+230+"px";
  bar_window.style.left = Math.round(pageWidth()/2)-30+"px";
  document.getElementById("bar").style.visibility="visible";
  document.getElementById("bar").style.display="block";
  document.getElementById("bar_win").style.visibility="visible";
}
function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}

function GetScrOfY() {
  scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    scrOfY = window.pageYOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    scrOfY = document.body.scrollTop;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrOfY = document.documentElement.scrollTop;
  }
  return scrOfY;
}
function GetScrOfX() {
  scrOfX = 0;
  if( typeof( window.pageXOffset ) == 'number' ) {
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrOfX = document.documentElement.scrollLeft;
  }
  return scrOfX;
}
function pageWidth() {
return window.innerWidth != null? window.innerWidth :
document.documentElement && document.documentElement.clientWidth ?
document.documentElement.clientWidth : document.body != null ?
document.body.clientWidth : null;
}

