sIFR.isEnabled = true;
sIFR.fromLocal = true;
sIFR.debugMode = false;
sIFR.delayCSS = false;
sIFR.fitExactly = true;
sIFR.forceClear = true;
sIFR.preserveSingleWhitespace = true;
sIFR.domains = ['*.hamburger-sportbund.de', 'hamburger-sportbund.de' , '*hk-entwicklung.de'];
sIFR.bHideBrowserText = true;

var frutiger55r = {
    src: '/lib/flash/frutiger55r.swf'
    ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
  };

var frutiger55r_green0 = {
    src: '/lib/flash/frutiger55r_green0.swf'
    ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
  };

var myTimeOut=0;


 sIFR.activate(frutiger55r);
 sIFR.activate(frutiger55r_green0);
 
  // headlines
  sIFR.replace(frutiger55r, {
    selector: '#ct #ct_main_content h1'
	,css:  [
	'.sIFR-active {kerning:false;font-weight:bold;color:#202020; }'		
	]
  	,wmode: 'transparent'
	,fitExactly : true
  });
  
  sIFR.replace(frutiger55r, {
    selector: '#ct #ct_main_content h3'
	,css:  [
	'.sIFR-active {kerning:false;font-weight:bold;color:#202020; }'		
	]
  	,wmode: 'transparent'
	,fitExactly : true
  });
  
 /*sIFR.replace(frutiger55r, {
    selector: '#mainnav h3.sub'
	,css:  [
	'.sIFR-active {kerning:false;font-weight:bold;color:#202020;line-height:10px; font-size:10px;}'	
	,'a {kerning:false;color:#FFFFFF;text-decoration:none; }'
	,'a:hover {kerning:false;color:#FFFFFF; }'
	]
  	,wmode: 'transparent'
	,fitExactly : true
  });
  */
    sIFR.replace(frutiger55r, {
    selector: '#ct #ct_main_content h4.green'
	,css:  [
	'.sIFR-root {kerning:false;color:#19594B;padding-top:2px; }'
	,'a { text-decoration: none; cursor:hand;color:#19594B;}'
    ,'a:link { color: #2d7565;color:#19594B;}'
    ,'a:hover { color: #2d7565;color:#19594B;}'
	,'em { color:#E2007A;}'
	]
	,selectable: true
  	,wmode: 'transparent'
	,fitExactly : true
  });
  
  sIFR.replace(frutiger55r, {
    selector: '#ct #ct_main_content h4.black'
	,css:  [
	'.sIFR-root {kerning:true;color:#202020;padding-top:2px;cursor:hand;}'
	,'a { text-decoration: none; color:#202020;}'
    ,'a:link { color: #2d7565;color:#202020;}'
    ,'a:hover { color: #2d7565;color:#202020;}'
	]
  	,wmode: 'transparent'
	,fitExactly : true
	,tuneWidth: '7'
  });
  
     sIFR.replace(frutiger55r, {
    selector: '#ct_lt h1'
	,css:  [
	'.sIFR-active {kerning:false;font-weight:bold;color:#202020; }'		
	]
  	,wmode: 'transparent'
	,fitExactly : true
  });
	
  /*
    sIFR.replace(frutiger55r_green0, {
    selector: '#ct #teaser .teaser h1.black'
	,css:  [
	'.sIFR-root {kerning:false;font-weight:bold;color:#202020; }'
	]
  	,wmode: 'transparent'
	,fitExactly : false
  });
	*/
   // navigation
 
 /*sIFR.replace(frutiger55r, {
    selector: '.s_subnav h5'
	,css: [
      '.sIFR-root { color: #FFFFFF;line-height:10px;font-size:10px;kerning:true;cursor:pointer;display:block;}'
      ,'a { text-decoration: none; cursor:hand;display:block;}'
      ,'a:link { color: #FFFFFF; }'
      ,'a:hover { color: #FFFFFF;}'
    ]
	,selectable: false
	,wmode: 'transparent'
	,fitExactly : true
	,tuneWidth: '2'
  });
 */
  
  function hide(menu) {
	  document.getElementById(menu).style.display = 'none';
  }
  
  function stay(menu) {
	  document.getElementById(menu).style.display = '';
  }
  
   function closeall(showme) {
	  var j =3;
	  for (var i=0;i<=4;i++) {
	  	eval('document.getElementById("mainsubnav_' + j + '").style.display = "none"');
		 j++;
	  }
	  eval('document.getElementById("mainsubnav_' + showme + '").style.display = ""');
  }
  
  function closeonload () {
	  var j =3;
	  for (var i=0;i<=4;i++) {
	  	eval("document.getElementById('mainsubnav_" + j + "').style.display = 'none'");
		 j++;
	  }
	  }
  
 	sIFR.replace(frutiger55r, {
    selector: 'ul li.s_topnav h2.btn_topnav_1'
	,css: [
      '.sIFR-root { color: #2d7565; background-color: #00FFFF;font-size:12px;}'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #2d7565; }'
      ,'a:hover { color: #2d7565; }'
    ]
	,onRollOver: function() {closeall(3);}
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });
	
	sIFR.replace(frutiger55r, {
    selector: 'ul li.s_topnav h2.btn_topnav_2'
	,css: [
      '.sIFR-root { color: #2d7565; background-color: #00FFFF;font-size:12px;}'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #2d7565; }'
      ,'a:hover { color: #2d7565; }'
    ]
	,onRollOver: function() {closeall(4); }
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });
		
	sIFR.replace(frutiger55r, {
    selector: 'ul li.s_topnav h2.btn_topnav_3'
	,css: [
      '.sIFR-root { color: #2d7565; background-color: #00FFFF;font-size:12px;}'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #2d7565; }'
      ,'a:hover { color: #2d7565; }'
    ]
	,onRollOver: function() {closeall(5); }
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });
			
	sIFR.replace(frutiger55r, {
    selector: 'ul li.s_topnav h2.btn_topnav_4'
	,css: [
      '.sIFR-root { color: #2d7565; background-color: #00FFFF;font-size:12px;}'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #2d7565; }'
      ,'a:hover { color: #2d7565; }'
    ]
	,onRollOver: function() {closeall(6); }
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });
		
sIFR.replace(frutiger55r, {
    selector: 'ul li.s_topnav h2.btn_topnav_6'
	,css: [
      '.sIFR-root { color: #2d7565; background-color: #00FFFF;font-size:12px;}'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #2d7565; }'
      ,'a:hover { color: #2d7565; }'
    ]
	,onRollOver: function() {closeall(16); }
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });
	
	sIFR.replace(frutiger55r, {
    selector: 'ul li.s_topnav h2.btn_topnav_5'
	,css: [
      '.sIFR-root { color: #2d7565; background-color: #00FFFF;font-size:12px;}'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #2d7565; }'
      ,'a:hover { color: #2d7565; }'
    ]
	,onRollOver: function() {closeall(7); }
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });
	
	

  	sIFR.replace(frutiger55r, {
    selector: '.s_login'
	,css: [
	  '.sIFR-root { color: #2d7565; background-color: #FFFFFF;margin-top:10px;}'
      ,'a {text-decoration: none; color: #FFFFFF;margin:0px 0px 0px 10px;margin-left:95px;padding-top:50px;  }'
      ,'a:link { color: #FFFFFF; }'
      ,'a:hover { color: #FFFFFF; }'
    ]
	,selectable: false
	,wmode: 'transparent'
	,fitExactly :false
  });


	/*restelemente
    sIFR.replace(frutiger55r, {
    selector: '#ct p'
	,css: [
      '.sIFR-active { color: #202020; kerning:true; }'
	  ,'#txtlink {text-decoration: none; color: #E2007A; }'
	  ,'#txtlink:hover {text-decoration: none; color: #E2007A; }'
	  ,'a {text-decoration: none; color: #202020; }'
	  ,'a:hover {text-decoration: underline; color: #202020; }'
	  ,'em {color: #E2007A;}'
	  
	]
    ,selectable: true
	,wmode: 'transparent'
  });
	

	sIFR.replace(frutiger55r, {
    selector: '#ct_main_content ul li h4'
	,css: [
      '.sIFR-root{ color: #202020; kerning:true;display:block;  }'
	  ,'a {text-decoration: none; color: #E2007A;  }'
	]
    ,selectable: true
	,wmode: 'transparent'
	,fitExactly :true
  });
*/
/*	sIFR.replace(frutiger55r, {
    selector: '#ct_main_content ul li'
	,css: [
      '.sIFR-root { color: #202020; kerning:true;  }'
	 ,'a {text-decoration: none; color: #2D7565; }'
	 ,'a:hover {text-decoration: underline; color: #2D7565; }'
	]
    ,selectable: true
	,wmode: 'transparent'
	,fitExactly :true
  });
*/	
	
//////////////////////////////////////////////////////////	
	
var layer_aktiv = "";
var myTimeOut=0;

function getLayerRef(id, document) {
	if (!document)
		{ document = window.document; }
		
	if (document.layers) {
		for (var l = 0; l < document.layers.lenght; l++) {
			if (document.layers[l].id == id)
				{ return document.layers[l]; }
			for (var l = 0; l < document.layers.lenght; l++) {
				var result = getLayerRef(id, document.layers[l].document);
				if (result)
					{ return result; }
			}
			return null;
		}
	}
	else if (document.all)
		{ return document.all[id]; }
	else if (document.getElementById)
		{ return document.getElementById(id); }
}


function activeLayer(layerName) {
	if(layer_aktiv != layerName) {
		if (layer_aktiv) hideLayer(layer_aktiv);
	}
	showLayer(layerName);
	layer_aktiv = layerName;	
}


function showLayer(layerName) {
	var objLayer = getLayerRef(layerName);
	
	if (document.layers) {
		eval('document["' + layerName + '"].display = "";');
	}
	else if (document.all) {
		objLayer.style.display= "";
	}
	else if (window.opera) {
		objLayer.style.display = "";
	}
	// Firefox 
	else if (document.getElementById) {
		objLayer.style.display = "";
	}
}


function hideLayer(layerName) {
	objLayer = getLayerRef(layerName);
	
	if (document.layers) {
		eval('document["' + layerName + '"].display = ""');
	}
	else if (document.all) {
		objLayer.style.display = "none";
	}
	else if (window.opera) {
		objLayer.style.display = "none";
	}
	else if (document.getElementById) {
		objLayer.style.display = "none";
	}
}

function alleaus() {
	if (layer_aktiv != "") {
		hideLayer(layer_aktiv);
		layer_aktiv = "";
	}
}

function init() {
	document.onmouseup = alleaus;
}

