<!--
	// -------------------------------------------------
	// Macromedia functions 
	// -------------------------------------------------

	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_findObj(n, d) { //v4.01
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function MM_openBrWindow(url,name,features) { //v2.0
		window.open(url,name,features);
	}

	// -------------------------------------------------
	// popups 
	// -------------------------------------------------

	function CL_popupPic(url,fitPic,localized) { 
		var s_url="/pages/popup.aspx?image="+url;
		if (fitPic!=null) 
		    s_url+="&fitpic="+fitPic;
		else
		    s_url+="&fitpic=true";		

		if (__language!=null && (localized==null || localized)) 
		    s_url+="&__language="+__language;		
		
		window.open(s_url, "popup", "resizable=0"); 
	} 
	
	function CL_popupContent(page,width,height,localized) { 
		
		var s_url="/pages/popup.aspx?__page="+page;
		if (localized==null || localized) 
		    s_url+="&__language="+__language;		
		
		window.open(s_url,"popup","resizable=1,scrolling=1,scrollbars,height="+height+",width="+width);
	} 
	
	function CL_popupPrint(width,height,localized){
		var s_url="/pages/print.aspx";
		if (width==null) width=780;
		if (height==null) height=500;
		if (localized==null || localized) 
		    s_url+="?__language="+__language;		
		
		window.open(s_url,"popup","location=no,resizable=0,status=no,scrollbars=1,scrolling=0,height="+height+",width="+width);
	}
	
	function CL_popupRecommend(width,height,localized){
		var s_url="/pages/recommend.aspx";
		if (width==null) width=500;
		if (height==null) height=400;
		if (localized==null || localized) 
		    s_url+="?__language="+__language;		
		
		window.open(s_url,"popup","location=no,resizable=0,status=no,scrollbars=no,scrolling=0,height="+height+",width="+width);
	}
	
	function CL_popupWindow(s_url,title,width,height) { 
	    var param;

        if (width!=null || height!=null)	    
            param+="scrollbars=1,location=no,resizable=0,status=no,scrolling=0";
        
	    if (width!=null) param+=',width='+width;
	    if (height!=null) param+=',height='+height;
		
		if (param==null)
		    window.open(s_url,title);
		else 
		    window.open(s_url,title,param);
	} 
	
	// -------------------------------------------------
	// window functions 
	// -------------------------------------------------

	function CL_printWindow() {
	    window.print();
	}

	function CL_closeWindow() {
	    window.close();
	}

    function CL_refreshPage(url)
    {
        document.location = url;
    }
    
    function CL_status(value)
    {
        window.status=value;
    }
		
	// -------------------------------------------------
	// utils 
	// -------------------------------------------------

	function CL_fitPic() { 
		var NS = (navigator.appName=="Netscape")?true:false; 
		var iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
		var iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
		
		iWidth = document.images[0].width - iWidth; 
		iHeight = document.images[0].height - iHeight; 
		
		window.resizeBy(iWidth, iHeight); 
		self.focus(); 
	}
	
	function CL_addBookmark(url,title){
		if (document.all)
		{
		    if (url==null) url=window.location;
		    if (title==null) title=document.title;
		    
		    window.external.AddFavorite(url,title);
		}
	}
	
	function CL_swapImage(img, src) 
	{ 
		var o_img = MM_findObj(img);
		if (o_img!=null)
		    o_img.src = src;
	}
	
	// -------------------------------------------------
	// links
	// -------------------------------------------------

	function CL_externLink(url){
		window.open(url);
	}
	
    function CL_action(action,value)
    {
        location = '?__'+action+'='+value;
    }

    function CL_language(value)
    {
        CL_action('language',value+'&__page='+__page);
    }

    function CL_page(value)
    {
        var link = value.toLowerCase();
        
        if (link.indexOf('http://')>=0)
            CL_externLink(link);
        else
            CL_action('page',value+'&__language='+__language);
    }

	// -------------------------------------------------
	// browser check
	// -------------------------------------------------

    function CL_isIE()
    {
        return (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    	// TRUE wenn IE
    }
    
    function CL_isWindow()
    {
        return (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // TRUE wenn auf Windows
    }
    
    function CL_isNetscape()
    {
		return (navigator.appName=="Netscape")?true:false; 
    }

	// -------------------------------------------------
	// flash check
	// -------------------------------------------------

    var CL_flashVersion = 0;
    var MAX_FLASH_VERSION = 9;

    if (CL_isIE()==true && CL_isWindow()==true)
    {
	    document.write('<scr' + 'ipt language="VBScript" type="text/VBScript"> \n');
	    document.write('on error resume next\n');
	    document.write('dim i,f\n');
	    document.write('i = MAX_FLASH_VERSION\n');
	    document.write('Do While i >= 2 \n');
	    document.write('	Set f = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)\n');
	    document.write('	If Err.Number = 0 Then\n');
	    document.write('		CL_flashVersion = i\n');
	    document.write('		Set f = Nothing\n');
	    document.write('		Exit Do\n');
	    document.write('  Else\n');
	    document.write('    Err.Clear\n');
	    document.write('	End If\n');
	    document.write('	Set f = Nothing\n');
	    document.write('	i = i - 1\n');
	    document.write('Loop\n');
	    document.write('<\/scr' + 'ipt> \n'); // break up end tag so it doesn't end our script
    }
    
    function CL_detectFlash() {  
	    // existiert navigator.plugins
        if (navigator.plugins) {
            // check für flash 2 oder flash 3+
            if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
	            var isVersion2 			= navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
	            var flashDescription 	= navigator.plugins["Shockwave Flash" + isVersion2].description;

	            CL_flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
            }
        }
        
        return CL_flashVersion;
    }
    
	// -------------------------------------------------
	// formular
	// -------------------------------------------------

	function CL_submitForm(name) {
	    var o_form = document.forms[name];
		if (o_form!=null) o_form.submit();
	}

    function CL_clearForm()
    {
        location = __pageUrl;
    }

    function CL_setCheckBox(name, state)
    {
        var o = MM_findObj(name);        
        if (o!=null) o.checked=state;
    }

    function CL_setTextField(name, defaultValue, bExit)
	{
	    var o = MM_findObj(name);
	    
	    if(o!=null)
	    {
	        if (o.value == defaultValue) 
	            o.value = "";
	        else
    	        if (o.value == '' && bExit)
    	            o.value = defaultValue;
        }
	}
	
    function CL_onFocus(o, defaultValue)
	{
	    if(o!=null)
	    {
	        if (o.value == defaultValue)
	           o.value="";
	        else
	           o.focus();
        }
	}	
	
    function CL_onBlur(o, defaultValue)
	{
	    if(o!=null)
	    {
	        if (o.value == "")
	           o.value=defaultValue;
        }
	}	
	
	function checkKey(oEvent)
	{
		if (!oEvent)
			oEvent = window.event;

		if (oEvent.which)
		{
			keyCode = oEvent.which;
		}
		else if (oEvent.keyCode)
		{
			keyCode = oEvent.keyCode;
		}
		
		if (keyCode == 13)
			return false;
	}
	
	//Register key handler
	//document.onkeydown = checkKey;
//-->
