//Animated Window- By Rizwan Chand (rizwanchand@hotmail.com)
//Modified by DD for NS compatibility
//Visit http://www.dynamicdrive.com for this script
function popupWindow(url) {
var windowprops='width=100,height=100,scrollbars=yes,status=no,resizable=yes'
var heightspeed = 7; // vertical scrolling speed (higher = faster)
var widthspeed = 7;  // horizontal scrolling speed (higher = faster)
var leftdist =  (screen.width) ? (screen.width-500)/2 : 0;    // screen.width muss minus var winwidth genommen werden!
var topdist = (screen.height) ? (screen.height-500)/2 : 0;    // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = 500;//window.screen.availWidth - leftdist;
var winheight = 500;//window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = url;
}
else
window.open(url,'mywindow');
}

