function setCookie(name, value)
{
  document.cookie = name+"="+value;
}

function swfHeader( _url ){



	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	if(hasRightVersion) {
    		swf( _url, arguments[1] );
		hasRightVersion=true;
  	} else {
        	var alternateContent = '<a href="http://www.adobe.com/de/products/flashplayer/" target="_blank"><img src="fileadmin/template/img/noflash.jpg" width="1060" alt="" border="0" /></a>';
       	 	document.write(alternateContent);
  	}    
}


function insertHeader( _url ){
	if( _url.indexOf(".swf") != -1 ){
		swfHeader( _url, arguments[1] );
	} else {
		document.write('<img src="' + _url + '" width="1060" height="408" border="0" style="margin:0;padding:0;" alt="" />');
	}
}

function swf( _mov, _mov2 ){
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'width="1060" height="408"'
        + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">'
        + '<param name="movie" value="' + _mov + '?soundstatus=1" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain">'
        + '<embed src="' + _mov + '?soundstatus=1" quality="high" '
        + 'width="1060" height="408" '
        + 'play="true" '
        + 'wmode="transparent" '        
        + 'loop="false" '
        + 'quality="high" '
        + 'allowScriptAccess="sameDomain" '
        + 'type="application/x-shockwave-flash" '
        + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
        + '<\/embed>'
        + '<\/object>';
        document.write(oeTags);   // embed the Flash Content SWF when all tests are passed	
}

function swfHomeHeader( _url ){
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	if(hasRightVersion) {
    		swfHome( _url );
		hasRightVersion=true;
  	} else {
        	var alternateContent = '<a href="http://www.adobe.com/de/products/flashplayer/" target="_blank"><img src="fileadmin/template/img/noflash_start.jpg" width="808" alt="" border="0" /></a>';
       	 	document.write(alternateContent);
  	}    
}

function insertHomeHeader( _url ){
	if( _url.indexOf(".swf") != -1 ){
		swfHomeHeader( _url );
	} else {
		document.write('<img src="' + _url + '" width="808" height="103" border="0" style="margin:0;padding:0;" alt="" />');
	}
}

function swfHome( _mov ){
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'width="808" height="103"'
        + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
        + '<param name="movie" value="' + _mov + '" /><param name="quality" value="high" /><param name="wmode" value="transparent" />'
        + '<embed src="' + _mov + '" quality="high" '
        + 'width="808" height="103" '
        + 'play="true" '
        + 'wmode="transparent" '        
        + 'loop="false" '
        + 'quality="high" '
        + 'allowScriptAccess="sameDomain" '
        + 'type="application/x-shockwave-flash" '
        + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
        + '<\/embed>'
        + '<\/object>';
        document.write(oeTags);   // embed the Flash Content SWF when all tests are passed	
}


function flipbook(){
	var x = parseInt(screen.width/2-478);
	var y = parseInt(screen.height/2-300);
	dW = window.open("/filedamin/media/flipbook/index.htm","dWin","width=955, height=600,top=" + y + ",left=" + x + ",menubar=no,location=no,scrollbars=no,resizable=no,status=no");
	dW.focus();	
}

function construction(){
	var x = parseInt(screen.width/2-280);
	var y = parseInt(screen.height/2-158);
	cW = window.open("/filedamin/template/img/construction.htm","cWin","width=560, height=315,top=" + y + ",left=" + x + ",menubar=no,location=no,scrollbars=no,resizable=no,status=no");
	cW.focus();	
}

function fCLF(){
	var allElems = document.getElementsByTagName('div');
	for (var i = 0; i < allElems.length; i++) {
		var thisElem = allElems[i];
		if (thisElem.className && thisElem.className == 'clfx') {


			var element2 = thisElem.nextSibling;
			while (element2.nodeType !=1) {
		     	     element2 = element2.nextSibling;
			} 

			element2.style.display = 'none';
			
			element2 = element2.nextSibling;
			while (element2.nodeType !=1) {
		     	     element2 = element2.nextSibling;
			} 

			element2.style.display = 'none';			

		}
	}
	
}

window.onload = fCLF;