var now=new Date();
var day=now.getDay();
var fixed_day=fixNumber(day);
var year=now.getYear();
if (year < 1000)
{
	year+=1900;
}
var month=(now.getMonth()+1);
var fixed_month = fixNumber(month);
var hour=now.getHours();
var minutes=now.getMinutes();
var fixed_minutes = fixNumber(minutes);
var time = fixed_day + "." + fixed_month + "." + year + " -- " + hour + "u" + minutes;

function fixNumber(the_number)
{
	if (the_number < 10);
	{
		the_number="0" + the_number;
	}
	return the_number;
}

var description = new Array();
	description[0] = " ";
	description[01] = "<ul>Folding voor het goede doel 100% cpu burn</ul>";
	description[02] = "<ul>Funny stuff</ul>";
	description[03] = "<ul>Bouwbegeleider Freddy Pittomvils, zo iemand vind je geen 2 keer.</ul>";
	description[04] = "<ul>Alles rond <b>graffiti</b>.</ul>";
	description[05] = "<ul>Maak een menu voor je windows XP installatie, geschreven door Peter Taes als aanvulling op mijn site.</ul>";
	description[06] = "<ul>Joe Cartoon</ul>";
	description[07] = "<ul>Quicktime movie previews</ul>";
	description[08] = "<ul>duitse modding site. Extreme shit.</ul>";
	description[09] = "<ul>Deze kerel geeft commentaar op tekeningen van kinderen, it's evil and mad funny.</ul>";
	description[10] = "<ul>Doh!</ul>";
	

function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie4  = (this.ie && (this.major >= 4));
}
var is = new Is();

if(is.ns4) {
    doc = "document";
    sty = "";
    htm = ".document"
} else if(is.ie4) {
    doc = "document.all";
    sty = ".style";
    htm = ""
}

var iWidth = screen.availWidth;
var iHeight = screen.availHeight;
var popUpWin;


function popUpWindow (url, wName, nWidth, nHeight, pos, rSize, nScroll) {
//url = pad naar pagina
//wName= window name
//nWidth = window width
//nHeight = window height
//pos = Positie op het scherm (1-9 like tic-tac-toe)
//rSize = Resizeable (1 or 0)
//nScroll = Scrollable (1 or 0)
		if (nWidth >= iWidth){
			nScroll = 1; 
			nWidth = (iWidth - 80);
		}
		if (nHeight >= iHeight){
			nScroll = 1;
			nHeight = (iHeight - 80);
		}
		if (pos == 1) {
			var left = 0;
			var top = 0;
		} else if (pos == 2) {
			var left = (iWidth/2) - (nWidth/2);
			var top = 0;
		} else if (pos == 3) {
			var left = iWidth - nWidth - 10;
			var top = 0;
		} else if (pos == 4) {
			var left = 0;
			var top = (iHeight/2) - (nHeight/2);
		} else if (pos == 5) {
			var left = (iWidth/2) - (nWidth/2);
			var top = (iHeight/2) - (nHeight/2);
		} else if (pos == 6) {
			var left = iWidth - nWidth - 10;
			var top = (iHeight/2) - (nHeight/2);
		} else if (pos == 7) {
			var left = 0;
			var top = iHeight - nHeight - 30;
		} else if (pos == 8) {
			var left = (iWidth/2) - (nWidth/2);
			var top = iHeight - nHeight - 30;
		} else if (pos == 9) {
			var left = iWidth - nWidth -10;
			var top = iHeight - nHeight - 30;
		}
			var cToolBar = "top=" + top + ",left=" + left + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + nScroll + ",resizable=" + rSize + ",width=" + nWidth + ",height=" + nHeight;

			popUpWin = window.open(url, wName, cToolBar);
			popUpWin.focus();
			popUpWin.bgColor = "#FF0000";
			document.close();
}


