// JavaScript Document

  function GetWidth() {
      var x = 0;
      if (self.innerWidth)
      {
          x = self.innerWidth;
      }
      else if (document.documentElement && document.documentElement.clientWidth)
      {
          x = document.documentElement.clientWidth;
      }
      else if (document.body)
      {
          x = document.body.clientWidth;
      }
          return x;
  }
    
  function GetHeight() {
      var y = 0;
      if (self.innerHeight)
      {
          y = self.innerHeight;
      }
      else if (document.documentElement && document.documentElement.clientHeight)
      {
          y = document.documentElement.clientHeight;
      }
      else if (document.body)
      {
          y = document.body.clientHeight;
      }
          return y;
  }
  
  function setCSS_slideshow () {      
      w = GetWidth();
  	  h = Math.round((w * 600)/2000);
  	  var w_string = w + "px";
  	  var h_string = h + "px";
      document.getElementById("slideshow").style.width = w_string;
      document.getElementById("slideshow").style.height = h_string;
      //alert(h_string); 
    
  }
  
  var params = {
    scale: "exactfit"
  };
  var attributes = {};     
  var flashvars = {};
  var w = GetWidth();
  var h = Math.round((w * 600)/2000);
          
  swfobject.embedSWF("fileadmin/templates/_lib/swf/bks_intro.swf", "slideshow", w, h, "9.0.0", "", flashvars, params, attributes);
  

