var W3CDOM = (document.createElement && document.getElementsByTagName);
var mouseOvers = new Array();
var mouseOuts = new Array();
var imgSize = 0;

var date1 = new Date();
var milliseconds1 = date1.getTime();

window.onload = function ()
{
    if (!W3CDOM) return;

    var lnks	=	document.getElementsByTagName('a');

    var selectorlinks	=	document.getElementsByTagName('img');

    for (var i=0;i<selectorlinks.length;i++) {

        if (selectorlinks[i].className == "mouser")
        {

            selectorlinks[i].onmouseover = mouseGoesOver;
            selectorlinks[i].onmouseout = mouseGoesOut;

            var suffix = selectorlinks[i].src.substring(selectorlinks[i].src.lastIndexOf('.'));

            mouseOuts[i] = new Image();
            mouseOuts[i].src = selectorlinks[i].src;

            mouseOvers[i] = new Image();
            mouseOvers[i].src = selectorlinks[i].src.substring(0,selectorlinks[i].src.lastIndexOf('.')) + "-over" + suffix;

            selectorlinks[i].number = i;
        }
    }
}

function mouseGoesOver() {
    this.src = mouseOvers[this.number].src;
}

function mouseGoesOut() {
    this.src = mouseOuts[this.number].src;
}


function FullScreenUrl(url) {
	var window_height = screen.availHeight - 30;
	var window_width = screen.availWidth - 6;
 	var window_top = (screen.availHeight-window_height)/2-10;
 	var window_left = (screen.availWidth-window_width)/2-5;
 	nw = window.open('','newwindoes','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,maximize=no,minimize=no');
 	if(!nw) nw = top;
 	nw.location.href = url;
 	return false;
}


$(document).ready(function(){

    $("input[name='qUsername']").click(function () {
		
        $("input[name='qUsername']").val("");
        $("input[name='qPassword']").val("");

    });


    $("input[name='qSignup']").click(function () {

        window.location.href 	= 'http://www.weetwiejedate.nl/inschrijven'

    });


});




