createBoxes=function(){
			//Box One
            showBox1=function(){
            var box1=document.getElementById('box1');
            box1.style.visibility='visible';
            }

            hideBox1=function(){
            var box1=document.getElementById('box1');
            box1.style.visibility='hidden';
            }
			
            var a1=document.getElementById('a1');
            a1.onmousedown=showBox1;
			
			var a1b=document.getElementById('a1b');
            a1b.onmousedown=hideBox1;
			
			//Box Two
			showBox2=function(){
            var box2=document.getElementById('box2');
            box2.style.visibility='visible';
            }

            hideBox2=function(){
            var box2=document.getElementById('box2');
            box2.style.visibility='hidden';
            }
			
            var a2=document.getElementById('a2');
            a2.onmousedown=showBox2;
			
			var a2b=document.getElementById('a2b');
            a2b.onmousedown=hideBox2;
			
			//Box Three
			showBox3=function(){
            var box3=document.getElementById('box3');
            box3.style.visibility='visible';
            }

            hideBox3=function(){
            var box3=document.getElementById('box3');
            box3.style.visibility='hidden';
            }
			
            var a3=document.getElementById('a3');
            a3.onmousedown=showBox3;
			
			var a3b=document.getElementById('a3b');
            a3b.onmousedown=hideBox3;
			
			//Box Four
			showBox4=function(){
            var box4=document.getElementById('box4');
            box4.style.visibility='visible';
            }

            hideBox4=function(){
            var box4=document.getElementById('box4');
            box4.style.visibility='hidden';
            }
			
            var a4=document.getElementById('a4');
            a4.onmousedown=showBox4;
			
			var a4b=document.getElementById('a4b');
            a4b.onmousedown=hideBox4;
			
			//Box Five
			showBox5=function(){
            var box5=document.getElementById('box5');
            box5.style.visibility='visible';
            }

            hideBox5=function(){
            var box5=document.getElementById('box5');
            box5.style.visibility='hidden';
            }
			
            var a5=document.getElementById('a5');
            a5.onmousedown=showBox5;
			
			var a5b=document.getElementById('a5b');
            a5b.onmousedown=hideBox5;
			
			//Box Six
			showBox6=function(){
            var box6=document.getElementById('box6');
            box6.style.visibility='visible';
            }

            hideBox6=function(){
            var box6=document.getElementById('box6');
            box6.style.visibility='hidden';
            }
			
            var a6=document.getElementById('a6');
            a6.onmousedown=showBox6;
			
			var a6b=document.getElementById('a6b');
            a6b.onmousedown=hideBox6;
			
}
// execute code once page is loaded
window.onload=createBoxes;
