// Copyright (c) the partners of MetaClass, 2003, 2004
// Licensed under the Academic Free License version 2.0

function popUp( url, width, height, left, top ) {
      var popupName = popUpIdent( url, width, height, left, top );

}

function popUpIdent( url, width, height, left, top ) {
      var rnum = Math.random()*200; rnum = Math.round(rnum);
      this['win'+rnum] =  window.open(url,
        "pup"+rnum,
        "width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,menubar=no,directories=no,toolbar=no,scrollbars=yes"
      );
      return 'pup'+rnum;
}

function popUpWindow(url, width, height, left, top ) {

      var newWindow;
      newWindow = window.open(url,
        "poppedUpWindow",
        "width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,menubar=yes,directories=no,toolbar=no,scrollbars=yes"
      );
}

function popUpWindowAutoSizePos( anUrl) {
      var newWindow;
      newWindow = window.open(anUrl,
        "poppedUpWindow",
        "resizable=yes,menubar=yes,directories=no,toolbar=no,scrollbars=yes"
      );
}

function popUpNoScroll( url, width, height, left, top ) {

      var newWindow;
      newWindow = window.open(url,
        "newGebruikersnaamWin",
        "width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,menubar=no,directories=no,toolbar=no,scrollbars=no"
      );
}

function popUpFullScreen(url) {
	window.open(url, '', 'fullscreen=yes, scrollbars=no');

}

function popIn(url) {
	//, width, height, left, top
	var pu;
	var img, height, width;
	pu = window.createPopup();
	doc = pu.document;
	doc.open;
	doc.write("<html><link rel=stylesheet href='http://ontwikkeling/www.aurora.nl/site/style/site.css'><body onclick='this.close();' align=center></body></html>");
	doc.close();

	img = doc.createElement('img');
	img.setAttribute('src', 'http://ontwikkeling/www.aurora.nl/uploadedfiles/162-websitestructuur.jpg');
	width  = img.getAttribute('width')+50;
	height = img.getAttribute('height')+50;
	doc.body.appendChild(img);

	pu.show(20,20,width,height);

}