// JavaScript Document



function weg(){
document.getElementById("portfolioweb").style.visibility="hidden"

}

function bij(){
document.getElementById("portfolioweb").style.visibility="visible"
}



function timer(){

setTimeout("weg()",1300);
}


function wissel(){
document.getElementById("foto").src="images/foto2nieuw.png"
}

function wissel2(){
document.getElementById("foto").src="images/foto1nieuw.png"
}

function wissel3(){
document.getElementById("web").src="images/site1.png"
}

function wissel4(){
document.getElementById("web").src="images/site2.png"
}



function beweeg(){
document.getElementById("bew1").src="images/linkbullet3b.png"
}

function beweeg2(){
document.getElementById("bew1").src="images/linkbullet3.png"
}

function linu(){
document.getElementById("li").src="images/linkbullet2b.png"
}

function linu2(){
document.getElementById("li").src="images/linkbullet2.png"
}




function wab(){
document.getElementById("wa").src="images/linkbullet3c.png"
}
function wab2(){
document.getElementById("wa").src="images/linkbullet3A.png"
}


function jo1(){
document.getElementById("jong").src="images/linkbullet7b.png"
}
function jo2(){
document.getElementById("jong").src="images/linkbullet7.png"
}

function zw(){
document.getElementById("zwaan").src="images/linkbullet6b.png"
}
function zw2(){
document.getElementById("zwaan").src="images/linkbullet6.png"
}


function sh1(){
document.getElementById("sh").src="images/shakespeare2.png"
}
function sh2(){
document.getElementById("sh").src="images/shakespeare1.png"
}



function el1(){
document.getElementById("el").src="images/eerland2.png"
}
function el2(){
document.getElementById("el").src="images/eerland1.png"
}


function va1(){
document.getElementById("va").src="images/vananna2.png"
}
function va2(){
document.getElementById("va").src="images/vananna1.png"
}


function dia1(){
document.getElementById("dia").src="images/diadans2.png"
}
function dia2(){
document.getElementById("dia").src="images/diadans1.png"
}



function airco1(){
document.getElementById("airco").src="images/linkbulletaircostar2.png"
}
function airco2(){
document.getElementById("airco").src="images/linkbulletaircostar1.png"
}





var M
function lopen(){

M = window.open("http://www.beweegreden.org","",'')
}


var N
function lopen2(){

N = window.open("http://www.linux-it.nl","",'')
}

var O
function lopen3(){

O = window.open("http://www.wegenadviesbureau.nl","",'')
}

var P
function lopen4(){

P = window.open("http://www.jonge-mensen.nl","",'')
}

var Q
function lopen5(){

Q = window.open("http://www.zwaanspreng.nl","",'')
}


var R
function lopen6(){
R = window.open("http://www.shakespearecursus.nl","","")
}


var S
function lopen7(){
S = window.open("http://www.eerland.com","","")
}

var T
function lopen8(){
T = window.open("http://www.vananna.nl/vanannaone","","")
}

var U
function lopen9(){
U = window.open("http://www.diadans.nl","","")
}



var V
function lopen10(){
V = window.open("http://www.aircostar.nl","","")
}




var radians = "global"
var degrees= "global"
var pos_x = "global"
var pos_y = "global"
var radius = "global" 

var radians2 = "global"
var degrees2= "global"
var pos_x2 = "global"
var pos_y2 = "global"
var radius2 = "global" 

var radians3 = "global"
var degrees3= "global"
var pos_x3 = "global"
var pos_y3 = "global"
var radius3 = "global" 

var radians4 = "global"
var degrees4= "global"
var pos_x4 = "global"
var pos_y4 = "global"
var radius4 = "global" 

var radians5 = "global"
var degrees5= "global"
var pos_x5 = "global"
var pos_y5 = "global"
var radius5 = "global" 




var i4=0;
var alpha4;
var beta4;
var sinalpha4;
var sinbeta4;
var b4;
var c4;  
var new_y9
var new_x9; 



var i=0;
var alpha;
var beta;
var sinalpha;
var sinbeta;
var b;
var c;  
var new_y1;
var new_x1







var i2=0;
var alpha2;
var beta2;
var sinalpha2;
var sinbeta2;
var b2;
var c2;  
var new_y7;
var new_x7; 



var i3=0;
var alpha3;
var beta3;
var sinalpha3;
var sinbeta3;
var b3;
var c3;  
var new_y8;
var new_x8; 




var i5=0;
var alpha5;
var beta5;
var sinalpha5;
var sinbeta5;
var b5;
var c5;  
var new_y10;
var new_x10; 


var i6=0;
var alpha6;
var beta6;
var sinalpha6;
var sinbeta6;
var b6;
var c6;  
var new_y6;
var new_x6;
var x6
var y6







var a=0;

function sirkel(){

if(a==0){

degrees = degrees + 0.8; // each time degrees is increased by 5 degrees 
radians = degrees * (Math.PI/ 180); 

new_y = Math.sin(radians) * radius // because sin A = y/r 
new_x = Math.cos(radians) * radius // because cos A = x/r 
x = new_x + pos_x; 
y = new_y + pos_y; 

document.getElementById("plinks").style.left= "" + parseInt(x) + "px"
document.getElementById("plinks").style.top= "" + parseInt(y) + "px"










	
//new_y6 = (cosalpha * sinbeta - sinalpha * cosbeta); 

//new_x6 = (cosalpha * cosbeta + sinalpha * sinbeta);

	
degrees2 = degrees2 - 1; // each time degrees is increased by 5 degrees 
radians2 = degrees2 * (Math.PI/ 180); 

new_y2 = Math.cos(radians2) * radius2 // because sin A = y/r 
new_x2 = Math.sin(radians2) * radius2 // because cos A = x/r 
x2 = new_x2 + pos_x2; 
y2 = new_y2 + pos_y2; 

document.getElementById("plinks2").style.left= "" + parseInt(x2) + "px"
document.getElementById("plinks2").style.top= "" + parseInt(y2) + "px"












//wab



degrees3 = degrees3 + 0.8; // each time degrees is increased by 5 degrees 
radians3 = degrees3 * (Math.PI/ 180); 

new_y3 = Math.cos(radians3) * radius3 // because sin A = y/r 
new_x3 = Math.sin(radians3) * radius3 // because cos A = x/r 
x3 = new_x3 + pos_x3; 
y3 = new_y3 + pos_y3; 

document.getElementById("plinks3").style.left= "" + parseInt(x3) + "px"
document.getElementById("plinks3").style.top= "" + parseInt(y3) + "px"











degrees4 = degrees4 - 0.8; // each time degrees is increased by 5 degrees 
radians4 = degrees4 * (Math.PI/ 180); 


new_y4 = Math.sin(radians4) * radius4 // because sin A = y/r 
new_x4 = Math.cos(radians4) * radius4 // because cos A = x/r 
x4 = new_x4 + pos_x4; 
y4 = new_y4 + pos_y4; 

document.getElementById("plinks4").style.left= "" + parseInt(x4) + "px"
document.getElementById("plinks4").style.top= "" + parseInt(y4) + "px"









/*
//zwaanspreng
function sirkel5(){

degrees5 = degrees5 - 0.8; // each time degrees is increased by 5 degrees 
radians5 = degrees5 * (Math.PI/ 180); 

new_y5 = Math.cos(radians5) * radius5 // because sin A = y/r 
new_x5 = Math.sin(radians5) * radius5 // because cos A = x/r 
x5 = new_x5 + pos_x5; 
y5 = new_y5 + pos_y5; 

document.getElementById("plinks5").style.left= "" + parseInt(x5) + "px"
document.getElementById("plinks5").style.top= "" + parseInt(y5) + "px"

setTimeout("sirkel5()",28)

}
*/







 beta4 = 13 * (Math.PI / 180); 
 sinbeta4 = Math.sin(beta4);
 cosbeta4 = Math.cos(beta4);
 
 //sinbeta4=  0.225
 //cosbeta4=  0.974

  b4=230;
  c4=-110;

  i4= i4 + 0.8;

 alpha4 = i4 * (Math.PI / 180) ;
 sinalpha4 = Math.sin(alpha4);
 cosalpha4 = Math.cos(alpha4);
 
 //sinalpha4=0.0139
 //cosalpha4=1



 // each time degrees is increased by 5 degrees 




new_y9 = (b4 * cosalpha4 * sinbeta4 - c4 * sinalpha4 * cosbeta4); 
new_x9 = (b4 * cosalpha4 * cosbeta4 + c4 * sinalpha4 * sinbeta4);
x9 = new_x9 + pos_x9; 
y9 = new_y9 + pos_y9; 

document.getElementById("plinks5").style.left= "" + parseInt(x9) + "px";
document.getElementById("plinks5").style.top= "" + parseInt(y9) + "px";






















; 



//shake


 beta = 13 * (Math.PI / 180); 
 sinbeta = Math.sin(beta);
 cosbeta = Math.cos(beta);
 
 //sinbeta=0.225
 //cosbeta=0.974

  b=240;
  c=90;

  i = i + 0.8;

 alpha = i * (Math.PI / 180) ;
 sinalpha = Math.sin(alpha);
 cosalpha = Math.cos(alpha);
 
 //sinalpha=0.0139
 //cosalpha=1



 // each time degrees is increased by 5 degrees 




new_y1 = (b * cosalpha * sinbeta - c * sinalpha * cosbeta); 
new_x1 = (b * cosalpha * cosbeta + c * sinalpha * sinbeta);
x1 = new_x1 + pos_x1; 
y1 = new_y1 + pos_y1; 

document.getElementById("plinks6").style.left= "" + parseInt(x1) + "px";
document.getElementById("plinks6").style.top= "" + parseInt(y1) + "px";









  
 

  
  
  




 beta2 = 15 * (Math.PI / 180); 
 sinbeta2 = Math.sin(beta2);
 cosbeta2 = Math.cos(beta2);
 
 //sinbeta2=0.258
 //cosbeta2=0.966

  b2=-210;
  c2=80;

  i2 = i2 + 0.8;

 alpha2 = i2 * (Math.PI / 180) ;
 sinalpha2 = Math.sin(alpha2);
 cosalpha2 = Math.cos(alpha2);
 
 //sinalpha2=0.0139
 //cosalpha2=1





new_y7 = (b2 * cosalpha2 * sinbeta2 - c2 * sinalpha2 * cosbeta2); 
new_x7 = (b2 * cosalpha2 * cosbeta2 + c2 * sinalpha2 * sinbeta2);
x7 = new_x7 + pos_x7; 
y7 = new_y7 + pos_y7; 

document.getElementById("plinks7").style.left= "" + parseInt(x7) + "px";
document.getElementById("plinks7").style.top= "" + parseInt(y7) + "px";









  


  
  
  
//vananna

	
 beta3 = -20 * (Math.PI / 180); 
 sinbeta3 = Math.sin(beta3);
 cosbeta3 = Math.cos(beta3);
 
 //sinbeta3=-0.342
 //cosbeta3=0.934

  b3=-200;
  c3=135;

  i3 = i3 + 0.8;

 alpha3 = i3 * (Math.PI / 180) ;
 sinalpha3 = Math.sin(alpha3);
 cosalpha3 = Math.cos(alpha3);
 
 //sinalpha3=0.0139
 //cosalpha3=1





new_y8 = (b3 * cosalpha3 * sinbeta3 - c3 * sinalpha3 * cosbeta3); 
new_x8 = (b3 * cosalpha3 * cosbeta3 + c3 * sinalpha3 * sinbeta3);
x8 = new_x8 + pos_x8; 
y8 = new_y8 + pos_y8; 

document.getElementById("plinks8").style.left= "" + parseInt(x8) + "px";
document.getElementById("plinks8").style.top= "" + parseInt(y8) + "px";





//diadans

	
 beta5 = -1 * (Math.PI / 180); 
 sinbeta5 = Math.sin(beta5);
 cosbeta5 = Math.cos(beta5);
 
 //sinbeta3=-0.342
 //cosbeta3=0.934

  b5=-140;
  c5=90;

  i5 = i5 + 0.8;

 alpha5 = i5 * (Math.PI / 180) ;
 sinalpha5 = Math.sin(alpha5);
 cosalpha5 = Math.cos(alpha5);
 
 //sinalpha3=0.0139
 //cosalpha3=1





new_y10 = (b5 * cosalpha5 * sinbeta5 - c5 * sinalpha5 * cosbeta5); 
new_x10 = (b5 * cosalpha5 * cosbeta5 + c5 * sinalpha5 * sinbeta5);
x10 = new_x10 + pos_x10; 
y10 = new_y10 + pos_y10; 

document.getElementById("plinks9").style.left= "" + parseInt(x10) + "px";
document.getElementById("plinks9").style.top= "" + parseInt(y10) + "px";





//aircostar



beta6 = -10 * (Math.PI / 180); 
 sinbeta6 = Math.sin(beta6);
 cosbeta6 = Math.cos(beta6);
 
 //sinbeta=0.225
 //cosbeta=0.974

  b6=240;
  c6=90;

  i6 = i6 + 0.8;

 alpha6 = i6 * (Math.PI / 180) ;
 sinalpha6 = Math.sin(alpha6);
 cosalpha6 = Math.cos(alpha6);
 
 //sinalpha=0.0139
 //cosalpha=1



 // each time degrees is increased by 5 degrees 




new_y6 = (b6 * cosalpha6 * sinbeta6 - c6 * sinalpha6 * cosbeta6); 
new_x6 = (b6 * cosalpha6 * cosbeta6 + c6 * sinalpha6 * sinbeta6);
x6 = new_x6 + pos_x11; 
y6 = new_y6 + pos_y11; 

document.getElementById("plinks10").style.left= "" + parseInt(x6) + "px";
document.getElementById("plinks10").style.top= "" + parseInt(y6) + "px";










}
else if(a==1)
{}

setTimeout("sirkel()",28)

}  
 
    






function ga(){

t = 0;

u = -2300;


 radians = 0; 
 degrees= 0; 
 pos_x = 102; // random primary x position 
 pos_y = 58; // random primary y position 
 radius = 140; 

 radians2 = 0; 
 degrees2= 0; 
 pos_x2 = 244; // random primary x position 
 pos_y2 = -40; // random primary y position 
 radius2 = 100; 
 
 
 radians3 = 0; 
 degrees3= 0; 
 pos_x3 =  241; // WAB 
 pos_y3 =  -35; // random primary y position 
 radius3 = 95; 
 
 radians4 = 0; 
 degrees4= 0; 
 pos_x4 = 97; // random primary x position 
 pos_y4 = 62; // random primary y position 
 radius4 = 145; 
 
 
 radians5 = 0; 
 degrees5= 0; 
 pos_x5 = 244; // 
 pos_y5 = -90; // zwaanspreng
 radius5 = 150; 
 
 radians1 = 0; 
 degrees1= 0; 
 pos_x1 = 8; // ellipse1 shake 
 pos_y1 = 7; //  
 radius1 = 11; 
 
 radians7 = 0; 
 degrees7= 0; 
 pos_x7 = 445; // random primary x position 
 pos_y7 = 115; // random primary y position 
 radius7 = 141; 
 
 radians8 = 0; 
 degrees8= 0; 
 pos_x8 = 429; // vananna 
 pos_y8 = -7;  
 radius8 = 59; 
 
 radians9 = 0; 
 degrees9= 0; 
 pos_x9 = 18; // ellipse zwaanspreng 
 pos_y9 = 7; //  
 radius9 = 11; 
 
 
 radians10 = 0; 
 degrees10= 0; 
 pos_x10 = 385; // diadans 
 pos_y10 = 62;  
 radius10 = 59; 
 
 
 radians11 = 0; 
 degrees11= 0; 
 pos_x11 = 14; // 
 pos_y11 = 110; // aircostar
 radius11 = 150; 
 
 
 
 
 
 
 
setTimeout("sirkel()",800);

//setTimeout("sirkel2()",250);

//setTimeout("sirkel3()",1250);

//setTimeout("sirkel4()",1800);

//setTimeout("ellips4()",2400);

//setTimeout("ellips1()",3000);

//setTimeout("ellips2()",3700);

//setTimeout("ellips3()",4480);
}



