function repositionLoginblock() {
	var browserWidth = getBrowserWidth();

	if (browserWidth > 1141) {
		$('loginblock').style.marginRight = browserWidth - 1157 + 'px';
	} else {
		$('loginblock').style.marginRight = '0px';
	}
}

function getBrowserWidth() {
    if (window.innerWidth) {
        return window.innerWidth;
    } else if (document.documentElement && document.documentElement.clientWidth != 0) {
        return document.documentElement.clientWidth;
    } else if (document.body) {
    	return document.body.clientWidth;
    }      
	
	return 0;
}

function init2() {
	// andere initialisatiefuncties
	init();
	updateTimer();
	
	// initieel een keer doen
	repositionLoginblock();
	
	// en wanneer de grootte van het venster wordt aangepast
	window.onresize = repositionLoginblock;
	
	// ticker initialiseren
	vulTicker();
}

function $()
{
	var elements = new Array();

	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		
		if (typeof element == 'string') {
			if (document.getElementById) {
				element = document.getElementById(element);
			} else if (document.all) {
				element = document.all[element];
			}
		}

		if (arguments.length == 1) {
			return element;
		}

		elements.push(element);
	}

	return elements;
} 
