function setVisuelMatematikLeft(){
	var index; // variabel til at indeholde forskellige indekser
	var pageName=''; // navn paa siden
	var url = document.URL;
	var linkLevel;
	var htmlText;
		
	index = url.lastIndexOf('name=');
	if (index == -1){
		pageName='index.asp';
	}
	else
		pageName = url.substring(index+5);
	
	if (pageName == 'general.asp'){
	  pageName = 'index.asp';
	}
	//alert('pagename: ' + pageName);
	switch(pageName){
		case '':	
		case 'attraktorer.htm':
		case 'attraktorer.asp':
		case 'attraktorer':
		case 'bibliografi.htm':
		case 'bibliografi.asp':
		case 'bibliografi':
		case 'circularIter.htm':
		case 'circularIter.asp':
		case 'circularIter':
		case 'divAttraktorer.asp':
		case 'divAttraktorer':
		case 'feigenbaum.htm':
		case 'feigenbaum.asp':
		case 'feigenbaum':
		case 'fraktaler.htm':
		case 'fraktaler.asp':
		case 'fraktaler':
		case 'ifs.htm':
		case 'ifs.asp':
		case 'ifs':
		case 'index.htm':
		case 'index.asp':
		case 'iteration.htm':
		case 'iteration.asp':
		case 'iteration':
		case 'julia.htm':
		case 'julia.asp':
		case 'julia':
		case 'kaos.htm':
		case 'kaos.asp':
		case 'kaos':
		case 'kleinianGroups.asp':
		case 'kleinianGroups':
		case 'kochkurven.htm':
		case 'kochkurven.asp':
		case 'kochkurven':
		case 'kommendeTing.asp':
		case 'kommendeTing':
		case 'kontakt.asp':
		case 'kontakt':
		case 'kontakt2.asp':
		case 'kontakt2':
		case 'linearIter.htm':
		case 'linearIter.asp':
	    case 'linearIter':
	    case 'links':
		case 'lsystem.htm':
		case 'lsystem.asp':
		case 'lsystem':
		case 'mandelbrot.htm':
		case 'mandelbrot.asp':
		case 'mandelbrot':
		case 'magnetism.htm':
		case 'magnetism.asp':
		case 'magnetism':
		case 'mountains.asp':
		case 'mountains':
		case 'millionPointSculptures.asp':		
		case 'millionPointSculptures':		
		case 'newton.htm':
		case 'newton.asp':
		case 'newton':
		case 'secPolyIter.htm':
		case 'secPolyIter.asp':
		case 'secPolyIter':
		case 'symmetry.htm':
		case 'symmetry.asp':
		case 'symmetry':
		case 'transcendental.asp':
		case 'transcendental':
		{
			var noPing = 1;
			var pageNameIndex, styleIndex;
		  if (pageName=='kontakt2.asp') {
				pageName = 'kontakt.asp';
		  }
		  else if (pageName=='index.asp' || pageName == ''){
				pageName = 'http://www.fllo.dk';
		  }
		  htmlText = document.getElementById("visuelMatematikLeft").innerHTML;				
			pageNameIndex = htmlText.indexOf('\"'+pageName); //-36; //+ '\"')-28;
			if (pageNameIndex < 0) {
			  pageNameIndex = htmlText.indexOf(pageName); //-36; //+ '\"')-28;
			}
			pageNameIndex = pageNameIndex - 28;
			classIndex = htmlText.indexOf('class="',pageNameIndex)+7;
			if (classIndex == 6){
			  classIndex = htmlText.indexOf('class=',pageNameIndex)+6;
			  if (classIndex == 5) {
			    classIndex = htmlText.indexOf('CLASS=\"',pageNameIndex)+7;
			  }
			}
			linkLevel = htmlText.substr(classIndex,11);
			styleIndex = htmlText.indexOf('style=',pageNameIndex)+7;
			if (styleIndex==6) { // -1 + 7
			  noPing = 0;
				styleIndex = htmlText.indexOf('target',pageNameIndex)+9;
				if (styleIndex == 8){
				  styleIndex = htmlText.indexOf('TARGET',pageNameIndex)+9;
				}
				htmlTextend = htmlText.substring(styleIndex);
				htmlText = htmlText.substring(0,styleIndex)+' style="COLOR: black; background-color: #eee;';
			}
			else {
				htmlTextend = htmlText.substring(styleIndex);
				htmlText = htmlText.substring(0,styleIndex)+' COLOR: black; background-color: #eee;';
			}
			if (linkLevel == 'linkLevel00') {
				htmlText = htmlText + 'border-width: 0px 1px 2px 1px; border-color:#09c; border-style:solid;'
			}
			else if (linkLevel == 'linkLevel11') {
					htmlText = htmlText + 'border-width: 0px 1px 2px 1px; border-color:#09c; border-style:solid;'
			}
			else if (linkLevel == 'linkLevel12') {
					htmlText = htmlText + 'border-width: 1px 1px 2px 1px; border-color:#09c; border-style:solid;'
			}
			else if (linkLevel == 'linkLevel21') {
					htmlText = htmlText + 'border-width: 0px 1px 1px 1px; border-color:#09c; border-style:solid;'
			}
			else if (linkLevel == 'linkLevel22') {
					htmlText = htmlText + 'border: 1px solid #09c;';
			}
			else {
				htmlText = htmlText + 'border: 1px solid #09c;';
			}
			if (noPing == 0) {
			  htmlText = htmlText + '" ' + htmlTextend;
			}
			else {
			  htmlText = htmlText + htmlTextend;
			}
			break;
		}
		default:{
			break;
		}
	}
	document.getElementById("visuelMatematikLeft").innerHTML = htmlText;
	return;
}