
w33c = (document.getElementById)? true:false;
if (w33c) {
	nsb4 = false;
	ieb4 = false;
}
else if (!w33c) {
	nsb4 = (document.layers)? true:false;
	ieb4 = (document.all)? true:false;
}


if (w33c || ieb4 || nsb4) 	browserOK = true;

if (navigator.userAgent.indexOf("Firefox")!=-1)
	firefox = 1;
else
	firefox = 0;
	
	

function getWindowSize() {
	var width, height;
    w = window;
    width = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth);
    height = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight);
    
    return [width,height];
}

function con() {
        if(!confirm("Weet u dit zeker ?"))
			return false;
		return true;
}


function swapInfo(content,target) {
	$(target).update($(content).innerHTML);
	Effect.Appear($(target));

}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function doCheck() {

	nodes = document.getElementsByClassName("roundH1");
	if(nodes.length) {
	    Nifty('h1.roundH1','normal');
	    		
	}
	
	Nifty('div.round','normal bl br');
	Nifty('div.roundSmall');
	Nifty('div.pagination');	
	Nifty('div.productRound','normal');
	Nifty('div.row1','normal');
	
}	