function goTo(url,getIndex){
	if(getIndex==0){
		document.location.href = '/astrapak_ar_2007/html/'+url;
	}
	if(getIndex==1){
		document.location.href = url;
	}
	  
}

function changeColor(menu,check,checkFont){

var onColor  = '#FFFFFF';
var outColor = '#00407A';


	if(check==1){
		menu.style.backgroundColor='#DFDCD7';
  
			if(checkFont==1){
				menu1.style.color= onColor;
				menu1.style.textDecoration ='underline';
				bg_image.style.backgroundImage='url(/sasol_sf_2007/images/topframe/topmenu_side.gif)';

			}
			if(checkFont==2){
				menu2.style.color= onColor;
				menu2.style.textDecoration ='underline';
			}
			if(checkFont==3){
				menu3.style.color= onColor;
				menu3.style.textDecoration ='underline';
			}
			if(checkFont==4){
				menu4.style.color= onColor;
				menu4.style.textDecoration ='underline';
			}
			if(checkFont==5){
				menu5.style.color= onColor;
				menu5.style.textDecoration ='underline';
			}
			if(checkFont==6){
				menu6.style.color= onColor;
				menu6.style.textDecoration ='underline';
			}
			if(checkFont==7){
				menu7.style.color= onColor;
				menu7.style.textDecoration ='underline';
			}
			if(checkFont==8){
				menu8.style.color= onColor;
				menu8.style.textDecoration ='underline';
			}
			
	}
	if(check==0){
	
		menu.style.backgroundColor='#FFFFFF';
	        
			if(checkFont==1){
				menu1.style.color= outColor;
				menu1.style.textDecoration ='none';
				bg_image.style.backgroundImage='url(/sasol_sf_2007/images/topframe/topmenu_side_2.gif)';

			}
			if(checkFont==2){
				menu2.style.color= outColor;
				menu2.style.textDecoration ='none';
			}
			if(checkFont==3){
				menu3.style.color= outColor;
				menu3.style.textDecoration ='none';
			}
			if(checkFont==4){
				menu4.style.color= outColor;
				menu4.style.textDecoration ='none';
			}
			if(checkFont==5){
				menu5.style.color= outColor;
				menu5.style.textDecoration ='none';
			}
			if(checkFont==6){
				menu6.style.color= outColor;
				menu6.style.textDecoration ='none';
			}
			if(checkFont==7){
				menu7.style.color= outColor;
				menu7.style.textDecoration ='none';
			}
			if(checkFont==8){
				menu8.style.color= outColor;
				menu8.style.textDecoration ='none';
			}
	}
}


/*-------------TABLE HIGHLIGHT CODE---------------//
usage : 
<table width="100%" cellpadding="0" cellspacing="0" onMouseover="changeto('#FEEDE6')" onMouseout="changeback('')">

To exclude any cell(s) from the rollover effect,
simply give that cell an id="ignore_[number]"
declaration, inserted inside the <tr> tag. 
For example:  <tr id="ignore_1">
(for validation purposes the "number" should be different for each id.)

*/
function changeto(highlightcolor){
source=event.srcElement

if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName=="TD" || source.tagName=="SPAN" || source.tagName=="EM" || source.tagName=="STRONG" || source.tagName=="SUP" || source.tagName=="A" || source.tagName=="IMG")
source=source.parentElement	
if (source.style.backgroundColor!=highlightcolor&&source.id.replace(/[\d\/]+/g, '')!="ignore_")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id.replace(/[\d\/]+/g, '')=="ignore_")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}
//-------------TABLE HIGHLIGHT CODE---------------//