function hor(x, y, l) { jg.drawLine(x, y, x + l, y) }
function ver(x, y, l) { jg.drawLine(x, y, x, y + l) }
function arrowUp(x, y) { jg.fillPolygon(new Array(x, x-5, x+5), new Array(y, 8+y, 8+y)) }
function arrowR(x, y) { jg.fillPolygon(new Array(x, x-8, x-8), new Array(y, y-5, y+5)) }


function huis() 
{
jg.setFont('verdana','11px',Font.BOLD);
jg.setColor('#000000');  
jg.setStroke(1);
links = 80;  breedte = 330; tophor = 90;
midden = links + breedte/2;
kwart = links + breedte/4;
driekwart = links + 3 * breedte/4;

rechts = links + breedte; // 'rechts' slaat op huis ZONDER rechterkolom voor cultuurcursussen
br_cultuur = 60;

y = tophor; jg.drawPolygon(new Array(links - 40, links + (breedte + br_cultuur)/2, rechts + 40 + br_cultuur), new Array(y,y - 70,y));
jg.drawStringRect('HET CURSUSSENHUIS',links,y - 30,breedte + br_cultuur,'center');

x = links; l = 50;
jg.drawStringRect('<a href="lc_overzicht.htm#thema">Thematische<br />cursussen</a>',x,y + 15,165,'center');
x += 165;
ver(x, y, l); 
jg.drawStringRect('<a href="lc_overzicht.htm#literatuur">Literatuur-<br />cursussen</a>',x,y+15,165,'center');
x += 110;
// ver(x, y, l); 
//100420 jg.drawStringRect('Cultuur-<br />cursussen',x, y+15, 110,'center');
y += l; hor(links, y, breedte); 

l = 20;
x = (links + rechts) / 2;
ver(kwart,y,l); arrowUp(kwart, y);
ver(driekwart,y,l); arrowUp(driekwart, y);
//100420ver(x+110,y,l); arrowUp(x+110, y);
y += l; hor(links, y, breedte); 

y += 3; hor(links, y, breedte); 
//100420 jg.drawStringRect('De Hogere Leerjaren: 5, 6, 7',links,y - 20,breedte,'center');

h=165; v = 25; 
y += v; 
hor(links,y,h);
jg.drawStringRect('<a href="jaar567.htm">7e jaar</a>',links,y - 20,h,'center');
y += v; 
hor(links,y,h);
jg.drawStringRect('<a href="jaar567.htm">6e jaar</a>',links,y - 20,h,'center');
y += v; 
hor(links,y,h);
jg.drawStringRect('<a href="jaar567.htm">5e jaar</a>',links,y - 20,h,'center');
ver(links + h, y, - 3 * v); 

hd = 55; hb = h + hd;
jg.drawRect(links + hb,y-60,95,50);
jg.drawStringRect('<a href="jaar567.htm#opfris">Grammatica</a>',links + hb,y-50,95,'center');
hor(links+h,y-15,hd); arrowR(links + hb, y-15);
hor(links+h,y-35,hd); arrowR(links + hb, y-35);
hor(links+h,y-55,hd); arrowR(links + hb, y-55);

/*
v=40; 
 jg.drawRect(links+180,tophor+175,110,30);
 jg.drawStringRect('<!-- > <a href="/cursus/jaar567.htm#intermedio">Intermedio</a> < -->',links+180,tophor+185,110,'center');
 Comment voor uitschakelen voor CREF
ver(links + 120,y+25,15); hor(links + 120, y+25, 60); arrowR(links+180, y+25);
hor(links + 120, y+15, 60);  ver(links + 120,y,15); arrowUp(links+120, y); 
*/
v = 25;
ver(kwart, y, v); arrowUp(kwart, y);
y += v;
hor(links,y,breedte);

y += 3;
hor(links,y,breedte);
//100420 jg.drawStringRect('',links,y - 10,rechts - links,'center');

v = 25; h = breedte / 2;
ver(links + h, y, 4*v);
y += v;
jg.drawStringRect('<a href="jaar1_4.htm#4de">4e jaar</a>',links,y - 20,h,'center');
hor(links,y,h);
y += v;
jg.drawStringRect('<a href="jaar1_4.htm#3de">3e jaar</a>',links,y - 20,h,'center');
jg.drawStringRect('<a href="jaar1_4.htm#3-4">Spoedcursus<br />3e + 4e jaar</a>',links+h,y - 40,h,'center');
hor(links,y,breedte);
y += v;
jg.drawStringRect('<a href="jaar1_4.htm#2de">2e jaar</a>',links,y - 20,x - links,'center');
hor(links,y,h);
y += v;
jg.drawStringRect('<a href="jaar1_4.htm">1e jaar</a>',links,y - 20,x - links,'center');
jg.drawStringRect('<a href="jaar1_4.htm#1-2">Spoedcursus<br />1e + 2e jaar</a>',links+h,y - 40,h,'center');

hor(links-40,y, breedte + 80 + br_cultuur);
ver(links, tophor, y - tophor);
ver(rechts, tophor, y - tophor);
ver(rechts + br_cultuur, tophor, y - tophor);

jg.drawStringRect('<div class="groter" title="Tekenpakket &copy; 2002-2004 Walter Zorn All rights reserved">&copy;</div>', rechts + 10 + br_cultuur,y - 17);

jg.drawStringRect('<a href="lc_overzicht.htm#cultuur">Cul-<br />tuur-<br />cur-<br />sus-<br />sen</a>',rechts,y - 180,br_cultuur,'center');

function bloem(x, y, h){ 
	d = 8;
	jg.drawOval(x - d / 2, y - h, d, d);
	ver(x, y - h + d, h - d);
}

x = links - 35; h = 35;
bloem(x, y, h); 
x += 14;
bloem(x, y, h); 
x += 14;
bloem(x, y, h);
 
x = links - 28; h -= 7;
bloem(x, y, h); 
x += 14;
bloem(x, y, h); 

jg.paint();
}

