var ol_fgclass			=	'co_overlib_fgclass';
var ol_bgclass			=	'co_overlib_bgclass';
var ol_textfontclass	=	"co_overlib_textfontclass";

function CO_wclick(url)
	{//{{{
		document.getElementById('co_ifrmihtmldiv').innerHTML	=	'<iframe width="0" height="0" src="'+url+'"></iframe>';
	}//}}}

function CO_wclick_sw()
	{//{{{
		parent.document.getElementById('co_content_headline').innerHTML=document.getElementById('co_content_headline').innerHTML;
		parent.document.getElementById('co_divinnc').innerHTML=document.getElementById('co_divinnc').innerHTML;
	}//}}}

function CO_installflash()
	{//{{{
		document.write('<div title="Adobe Flash Plugin jetzt installieren" onclick="window.open(\'http://www.macromedia.com/go/getflashplayer\',\'_blank\');" class="co_flashnotice" ><div style="padding:0px 0px 4px 0px;"><img src="/gfx/get_flash_player.gif" border="0" alt="Flash" title="" /></div>Aktivieren oder Installieren Sie bitte das aktuelle <a href="http://www.macromedia.com/go/getflashplayer" target="_blank" onclick="return false;">Adobe Flash Plugin</a> f&uuml;r Ihren Browser um den Inhalt dieses Blocks zu sehen.</div>');
	}//}}}

function CO_setIframeHeight() 
	{/*{{{*/
		if (window.parent && window.parent.document && window.parent.document.getElementById && window.parent.document.getElementById("co_shop_frm")) {
			
			if (window.parent.document.getElementById("co_shop_frm")) {
				divheight = document.getElementById("co_shop_iframediv").offsetHeight;
				//alert(divheight);
				if (divheight < 400) divheight = 400;
				
				window.parent.document.getElementById("co_shop_frm").style.height = divheight + 12+20 + "px";
				//window.parent.document.getElementById("body").style.height = divheight + 300+20 + "px";
				
			}
		}
	}/*}}}*/

function CO_checkIframe() 
	{//{{{
		if(!parent || !parent.frames || !parent.frames.length)
			{
				if(window.encodeURIComponent)
					{
						location.href='/bestellen.php?fsrc='+encodeURIComponent(location.href);
					}
				else
					{
						location.href='/bestellen.php?fsrc='+location.href;
					}
				
			}
	}//}}}

function CO_checkCookie(domain)
	{//{{{
		domain	=	domain.toLowerCase();
		if(document.location.href.toLowerCase().indexOf(domain) == -1) return;//wir sind nicht auf den Orginal Server
		
		if(!document.cookie || document.cookie.indexOf('CO_chkc') == -1)
			{
				document.write('<div class="co_noscript">Diese Seite ben&ouml;tigt Cookie Funktionalit&auml;t. Bitte aktivieren Sie Cookies in Ihren Browser.</div>');
			}
	}//}}}

function CO_overlib(t)
	{//{{{
		overlib(t,RIGHT,BELOW,WIDTH);
	}//}}}

function CO_nd()
	{//{{{
		nd();
	}//}}}

function CO_6kover(isrc,_this)
	{//{{{
		var c1	=	document.getElementById('co_kasten6_container_1');
		var c2	=	document.getElementById('co_kasten6_container_2');
		
		c1.style.backgroundImage='url('+isrc+')';
		c1.onclick	=	_this.onclick;
		c1.title	=	_this.title;
		if(!_this.onclick)
			{
				c1.style.cursor='default';
			}
		else
			{
				c1.style.cursor='pointer';
			}
		c2.style.display='none';
		c1.style.display='block';
	}//}}}

function CO_6kout()
	{//{{{
		document.getElementById('co_kasten6_container_1').style.display='none';
		document.getElementById('co_kasten6_container_2').style.display='block';
	}//}}}

function C_K_over(t,bg)
	{/*{{{*/
		document.ISOVER	=	1;
		var i;
		document.getElementById('bg').style.backgroundImage='url('+bg+')';
		for(i=1;i<=6;i++)
			{
				if('t_'+i == t) continue;
				document.getElementById('t_'+i).style.visibility='hidden';
			}
		document.getElementById(t).style.visibility='visible';
		
	}/*}}}*/

function C_K_out()
	{/*{{{*/
		document.ISOVER	=	0;
		window.setTimeout('_C_K_out()',200);
	}/*}}}*/

function _C_K_out()
	{/*{{{*/
		if(document.ISOVER) return;
		var i;
		for(i=1;i<=6;i++)
			{
				document.getElementById('t_'+i).style.visibility='visible';
			}
		document.getElementById('bg').style.backgroundImage='none';
		
	}/*}}}*/


