/* Format Navi Highlighting */

function NaviHighlight(urls, ids)
{
	var pathname = window.location.pathname;
	if (! pathname.match('/$')) pathname += '/';

	for (var i = 0; i < urls.length; i++) {
		var url = urls[i];
        
		if (! url.match('/$')) url += '/';

		if (url && new RegExp('^' + url).test(pathname)){
			var anchor = document.getElementById('fnimg' + ids[i]);
			if (anchor)
			{
				var imgsrc = anchor.src;
				var ende = imgsrc.lastIndexOf(".");
				var newsrc = imgsrc.substring(0, ende) + '_hl.gif';
				anchor.src = newsrc;
			}
			break;
		}
	}
}

function getSeseChannel()
{
	var pathname = window.location.pathname;
	if (! pathname.match('/$')) pathname += '/';
			
	/*var Suche = /sevensenses\/([a-zA-Z0-9-_]+)\//;*/ 
	var Suche = /([a-zA-Z0-9-_]+)\//; 
	var Ergebnis = Suche.exec(pathname);
	if(Ergebnis) return Ergebnis[1];
	else return false;
}

function SeseFlashWriter(Sprache)
{
	var Channel = getSeseChannel();
	var Breite = 995;
	var Hoehe = 220;
	var Sprache = Sprache;
		
	if(Sprache == '') Sprache = 'de';
	var Verzeichnis = '/images/sese/flashheader/' + Sprache + '/';
		
	
	if(Channel != "") {
		Verzeichnis = Verzeichnis + Channel + '/';
		Hoehe = 134;
	}
   
    
    /*document.write('<img border="0" src="'+  Verzeichnis + 'flashdummy.jpg" \>');*/
	writeFlash(Verzeichnis + 'header.swf', Verzeichnis + 'header.gif', Breite, Hoehe, Channel);

	return true;
}
function setClassElement()
{
	var naviid= 'c' + blockcounter;
	var element = document.getElementById(naviid);
    element.style.borderBottom='2px solid #df0073';
}