
/* PRELOADING IMAGES FOR NAVIGATION */

if(document.images) {

organisatie_on = new Image();
organisatie_on.src = '/images/pensioenfonds/knop_organisatie_on.gif';
organisatie_off = new Image();
organisatie_off.src = '/images/pensioenfonds/knop_organisatie_off.gif';

pensioenen_on = new Image();
pensioenen_on.src = '/images/pensioenfonds/knop_pensioenen_on.gif';
pensioenen_off = new Image();
pensioenen_off.src = '/images/pensioenfonds/knop_pensioenen_off.gif';

beleggingen_on = new Image();
beleggingen_on.src = '/images/pensioenfonds/knop_beleggingen_on.gif';
beleggingen_off = new Image();
beleggingen_off.src = '/images/pensioenfonds/knop_beleggingen_off.gif';

documentatie_on = new Image();
documentatie_on.src = '/images/pensioenfonds/knop_documentatie_on.gif';
documentatie_off = new Image();
documentatie_off.src = '/images/pensioenfonds/knop_documentatie_off.gif';


pharma_on = new Image();
pharma_on.src = '/images/pensioenfonds/button_pharma_on.gif';
pharma_off = new Image();
pharma_off.src = '/images/pensioenfonds/button_pharma_off.gif';

coatings_on = new Image();
coatings_on.src = '/images/pensioenfonds/button_coatings_on.gif';
coatings_off = new Image();
coatings_off.src = '/images/pensioenfonds/button_coatings_off.gif';

chemicals_on = new Image();
chemicals_on.src = '/images/pensioenfonds/button_chemicals_on.gif';
chemicals_off = new Image();
chemicals_off.src = '/images/pensioenfonds/button_chemicals_off.gif';

}

/* FUNCTIONS BUTTONS ---------------------------------------------- */


		
		function dropdownon(id) {
			if(document.getElementById) {		
				id=document.getElementById(id);
				id.style.backgroundImage='url(/images/pensioenfonds/arrow_on.gif)';
				id.style.color='#006699';
			}
		}
		
		function dropdownoff(id) {
			if(document.getElementById) {		
				id=document.getElementById(id);
				id.style.backgroundImage='url(/images/pensioenfonds/arrow_off.gif)';
				id.style.color='#000000';
			}
		}
		
		function navon(id) {
		imageOn(id);	
		}
		
		function navoff(id) {
		imageOff(id);	
		}
	
		
		//ONMOUSEOVER MENUROOT ITEMS
		function menuroot_on(button) {
			imageOn(button);
		}
		
		function menuroot_off(button) {
			imageOff(button);
		}

		
		//ONMOUSEOVER MENU ITEMS
		function menu_on(button) {
			button.style.backgroundColor='#CDE1EB';
			button.style.color='#006699';
		}
		
		function menu_off(button) {
			button.style.backgroundColor='#ffffff';
			button.style.color='#000000';
			
		}
			// use these two functions when there's a dropdown menu as follow up
			function menu_arrow_on(button) {
				button.style.backgroundImage='url(/images/pensioenfonds/arrow_on.gif)';
				button.style.backgroundColor='#CDE1EB';
				button.style.color='#006699';
			}
			
			function menu_arrow_off(button) {
				button.style.backgroundImage='url(/images/pensioenfonds/arrow_off.gif)';
				button.style.backgroundColor='#FFFFFF';
				button.style.color='#000000';
			}
			
			function menu_bottom_arrow_on(button) {
				button.style.backgroundImage='url(/images/pensioenfonds/arrow_on.gif)';
				button.style.backgroundColor='#CDE1EB';
				button.style.color='#006699';
			}
			
			function menu_bottom_arrow_off(button) {
				button.style.backgroundImage='url(/images/pensioenfonds/arrow_off.gif)';
				button.style.backgroundColor='#FFFFFF';
				button.style.color='#000000';
			}
			

		
		// ONMOUSEOVER FUNCTIONS 			
		function imageOn(image)
		{
		        if (document.images)
		        {
	                imgOn = eval(image + "_on.src");
					document [image].src = imgOn
		        }
		}
		
		
		function imageOff(image)
		{
		        if (document.images)
		        {
	                imgOff = eval(image + "_off.src");
					document [image].src = imgOff
		        }
		}       
		
		
					
	// HISTORY.BACK FUNCTION
	function goback(){
			browser = navigator.appName
			if (browser.indexOf("etscape") > 0 ) explorer = false
			else explorer = true
			
			if (explorer) {
				history.back()
			}	
			else {
				window.back()
			}
		}


/* END BUTTON FUNCTIONS ----------------------------------------------------------------------------------- */	
		
/*	NAVIGATION FUNCTIONS ------------------------------------------------------------  */
		

		var vlag = false
		
		function show(it){
		//CLOSE ALL SUB-LAYERS
		closesecond();	
		//SHOW THE LAYER INTENDED
			if(document.all){
						document.all[it].style.visibility="visible";
				}
		
				else if (document.getElementById){
							document.getElementById(it).style.visibility="visible";
				}
						
		}
		

		function hide(it){
		//HIDE LAYER INTENDED
		
			if(vlag==false){ 
			
				closesecond();
				
				if(document.all){
						document.all[it].style.visibility="hidden";
				}
		
				else if (document.getElementById){
							document.getElementById(it).style.visibility='hidden';
				}
			}
			
		}
		
		
		function closethis(){
		
		// CLOSE ALL FIRST-GENERATION DROPDOWN-LAYERS 
		
			if(document.all){
				document.all['dropdown1'].style.visibility="hidden";
				document.all['dropdown2'].style.visibility="hidden";
				document.all['dropdown3'].style.visibility="hidden";
				document.all['dropdown4'].style.visibility="hidden";
				document.all['dropdown5'].style.visibility="hidden";
			}
			else if (document.getElementById){
				document.getElementById('dropdown1').style.visibility="hidden";
				document.getElementById('dropdown2').style.visibility="hidden";
				document.getElementById('dropdown3').style.visibility="hidden";
				document.getElementById('dropdown4').style.visibility="hidden";
				document.getElementById('dropdown5').style.visibility="hidden";
				}			
				
		}
		
		
		function closesecond(){
		
		// CLOSE ALL SECOND-GENERATION DROPDOWNLAYERS + BLUE ARROWS
		
				if(document.all){
				
					document.all['dropdown1sub1'].style.visibility="hidden";
					document.all['dropdown1sub2'].style.visibility="hidden";
					document.all['dropdown2sub1'].style.visibility="hidden";
					document.all['dropdown2sub3'].style.visibility="hidden";	
					document.all['dropdown2sub4'].style.visibility="hidden";
					document.all['divBP'].style.visibility="hidden";
					document.all['divCorpCov'].style.visibility="hidden";
				}
				else if (document.getElementById){															
					document.getElementById('dropdown1sub1').style.visibility="hidden";
					document.getElementById('dropdown1sub2').style.visibility="hidden";
					document.getElementById('dropdown2sub1').style.visibility="hidden";
					document.getElementById('dropdown2sub3').style.visibility="hidden";		
					document.getElementById('dropdown2sub4').style.visibility="hidden";		
					document.getElementById('divBP').style.visibility="hidden";		
					document.getElementById('divCorpCov').style.visibility="hidden";		
					}
				
		}
		
		
		
		
		
		function checkmaghide(it){
			iets = it 
			setTimeout("hide(iets)",500)		
		}
		
	
		
/* END NAVIGATION -------------------------------------------------------- */
	
/* REST ------------------------------------------------------------------ */


	function openWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ;
		 
	} 
	
		



