//=== Voor browsers die getElementById niet snappen:
if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
}}
var g_temp
var g_Egg

function GlowLeft   (p_this){  p_this.className="GlowLeft"       }
function UnGlowLeft (p_this){  p_this.className="VerkLeft"       }
function GlowRight  (p_this){  p_this.className="GlowRight"      }
function UnGlowRight(p_this){  p_this.className="VerkRight"      }
function FakeLink   (p_this){  p_this.className="FakeLink_sel"   }
function UnFakeLink (p_this){  p_this.className="FakeLink_unsel" }

//---------------
  function Pop_Up(p_ImgFile, p_Tekst){
//---------------
  var PopWindow

    if( PopWindow != null ){
        try { PopWindow.close() }
        catch(e){}
    }
    var Links =(window.screen.width /2)-(document.body.clientWidth /2)
    var Rechts=(window.screen.height/2)-(document.body.clientHeight/2)

    PopWindow = open( ""
                    , "test"
                    , "toolbar=no"
                    + ",menubar=no"
                    + ",width=580"
                    + ",height=580"
                    + ",resizable=yes"
                    + ",scrollbars=no"
                    + ",status=no"
                    + ",location=no"
                    + ",left = " + Links
                    + ",top = "  + Rechts
                    )
    PopWindow.document.write( '<HTML><head>');
    PopWindow.document.write( '<title>.:. Pyrofoor de Amsterdam .:. Verhuur / Verkoop</title>');
    PopWindow.document.write( '<link rel="stylesheet" type="text/css" href="Pyro4.css">'   );
    PopWindow.document.write( '<link rel="stylesheet" type="text/css" href="Verhuur.css">' );
//  PopWindow.document.write( '<script language=JavaScript src=Verhuur.js><\/script>');
//  PopWindow.document.write( '</head><body class=Pop onload="SizeImg()" onblur=close()>');
    PopWindow.document.write( '</head><body class=Pop onblur="window.close()">');
//  PopWindow.document.write( '<span class=pyro4_kop>Pyrofoor de Amsterdam</span>');
    PopWindow.document.write( '<center><img class=Slide src="Plaatjes/Ver/' + p_ImgFile +  '" title="Click to close" onClick="javascript:window.close();"'
                            + ' width=550 height=450>');
    if(p_Tekst!='undefined'){ PopWindow.document.write('<div id=tekst><br>' + p_Tekst + '</div>') }
    PopWindow.document.write( '<a href=#close class=close onclick="window.close()">close</a>')
    PopWindow.document.close()
}

function SizeImg(){
  window.resizeBy(0,document.body.scrollHeight - document.body.clientHeight)
}

