var originEng;
var origin;
function changeColor(color) {
                var colorBar1 = document.getElementById('red');
                var colorBar2 = document.getElementById('yellow');
                var colorBar3 = document.getElementById('blue');
                var gradL = document.getElementById('gradientL');
                var gradR = document.getElementById('gradientR');
                var taalkeuze = document.getElementById('splash_language').getElementsByTagName("IMG");
                if(color == 'red') { 
                    colorBar1.className = "colors_active";
                    colorBar2.className = "colors";
                    colorBar3.className = "colors";
                    taalkeuze[0].src = 'if/taalkeuzeR.gif';
                    gradL.style.backgroundImage="url(if/gradientRl.gif)";
                    gradR.style.backgroundImage="url(if/gradientRr.gif)";
                  } else if(color == 'yellow') { 
                    colorBar1.className = "colors";
                    colorBar2.className = "colors_active";
                    colorBar3.className = "colors";
                    taalkeuze[0].src = 'if/taalkeuzeG.gif';
                    gradL.style.backgroundImage="url(if/gradientGl.gif)";
                    gradR.style.backgroundImage="url(if/gradientGr.gif)";
                  } else if(color == 'blue') { 
                    colorBar1.className = "colors";
                    colorBar2.className = "colors";
                    colorBar3.className = "colors_active";
                    taalkeuze[0].src = 'if/taalkeuzeB.gif';
                    gradL.style.backgroundImage="url(if/gradientL.gif)";
                    gradR.style.backgroundImage="url(if/gradientR.gif)";
                }
               	document.getElementById('langChoice_eng').href = originEng + '?color='+color;
			    document.getElementById('langChoice_ned').href = origin +  '?color='+color;
          }
            function randomAnfang() {
				originEng = document.getElementById('langChoice_eng').href;
				origin = document.getElementById('langChoice_ned').href;
				var colorOptions =  new Array('red','yellow','blue');
                var rand = Math.round(Math.random()*2);
                changeColor(colorOptions[rand]);

}