
// Instellingen
var movieUrl="http://online.sitefabriek.com/glasgarage/screenad/glasgarage_screenad";
var width=715;
var height=551;


// Einde instellingen
var viewportwidth;
var viewportheight;

 
//Positie Berekenen 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }

var posTop=(viewportheight/2)-height/2;
var posLeft=(viewportwidth/2)-width/2;
 
document.write('<scri' + 'pt>function hideBanner()  { var div = document.getElementById("screenAdDivPopup"); var frame = document.getElementById("screenAdFramePopup"); if (div) {  div.style.display = "none";  } if ( frame) {frame.style.display = "none";} }</sc' + 'ript>');
document.write('<scri' + 'pt>function Popupaktie_DoFSCommand(command, args) { hideBanner(); }</SC' + 'RIPT>');
document.write('<scr' + 'ipt language="VBScript">Sub Popupaktie_FSCommand(ByVal command, ByVal args)');
document.write('call Popupaktie_DoFSCommand(command, args) ');
document.write('end sub </scr' + 'ipt>');
document.write('<div id="screenAdDivPopup" style="position:absolute; top: '+posTop+'px; left: '+posLeft+'px; width: '+width+'; height:'+height+'; z-index: 900;" >');
document.write("<table width='"+width+"' height='"+height+"'><tr><td align='left' valign='top' style='padding-left: 20px; top: 40px;'>");
document.write("<scr" + "ipt language='javascript'>if (AC_FL_RunContent == 0) { alert('This page requires AC_RunActiveContent.js.'); } else { AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width', '"+width+"','height', '"+height+"','src', '"+movieUrl+"','quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', 'transparent','devicefont', 'false','id', 'Popupaktie','bgcolor', '#ffffff','name', 'Popupaktie','menu', 'true','allowFullScreen', 'false','allowScriptAccess','always','movie', '"+movieUrl+"','salign', '','swLiveConnect','true'); }</scr" + "ipt>");
document.write("<nosc" + "ript><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"' id='Popupaktie' align='middle'><param name='swLiveConnect' value='true' /><param name='allowScriptAccess' value='always' /><param name='allowFullScreen' value='false' /><param name='movie' value='"+movieUrl+"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='bgcolor' value='#ffffff' /><embed src='"+movieUrl+"' quality='high' wmode='transparent' swLiveConnect='true' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='Popupaktie' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></nosc" + "ript>");
document.write("</td></tr></table>");
document.write('</div>');


