<!--
$(document).ready(function() {
	$('#Navigation ul li a span').text('');
	$('#Navigation ul li a span').fadeTo(0,0);
    $('#Navigation ul li a').each(function (i){
        $(this).hover(function() {
            $(this).children().stop().fadeTo(200, 1);       
        },
            function() {
                $(this).children().stop().fadeTo(200, 0);                       
        });                                              
    });
})

function RemoveSpecialChars(Buffer){
	var SearchArray=new Array('Ü','ü','Ä','ä','Ö','ö','ß',' ');var ReplaceArray=new Array('Ue','ue','Ae','ae','Oe','oe','ss','-');var KillStringArray=new Array('&','/','\\','!','§','%','(',')','|','?','"','$','=','[',']','@','/\s/','´','`','€');
	for (i=0;i<8;i++) Buffer=ReplaceIt(Buffer,SearchArray[i],ReplaceArray[i]);
	for (i=0;i<20;i++) Buffer=ReplaceIt(Buffer,KillStringArray[i],'');
	return Buffer
}
function ReplaceIt(string,suchen,ersetzen){ausgabe = "" + string;while (ausgabe.indexOf(suchen)>-1){pos= ausgabe.indexOf(suchen);ausgabe = "" + (ausgabe.substring(0, pos) + ersetzen + ausgabe.substring((pos + suchen.length), ausgabe.length));}return ausgabe}
function TextCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}
function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);}
function CheckSelectedCategory(obj)
{
	if(obj.options[obj.selectedIndex].value=='')
		obj.selectedIndex=0;
}
function ToggleVisibility(id){var obj=document.getElementById(id);if(obj.className=="Hidden"){obj.className="Visible";}else{obj.className="Hidden";}
}

function SetClass(ID,ClassName){if(document.getElementById(ID,ClassName)){var Obj=document.getElementById(ID);Obj.className=ClassName;}}
function ToggleCSS(id,Element,First, Second) {
		if(document.getElementById(id))
		{
			var obj = document.getElementById(id);
			if (obj.style[Element]==First) {
	          obj.style[Element]=Second;
	        } else {
	           obj.style[Element]=First;
	        }
		}
}
function confirmation(Message){return confirm(Message);}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function JumpUrl(Target,URL){
  eval(Target+".location='"+URL+"'");
}

function CheckNumber(obj)
{
	if(parseInt(obj.value)<1 || isNaN(obj.value))
	{
		document.forms.ArtikelKaufen.Submit.disabled=true; 
	}
	else
		document.forms.ArtikelKaufen.Submit.disabled=false; 
}
// Start Module Gallery
function GalleryChange(Direction,PlayOrNot,Timer)
{
	Counter=GalleryAr.length;Description='';
	if(typeof(Timer)=='undefined')
		Timer=6000;
	if(is_ie){document.all.Bild.filters.blendTrans.Apply();document.all.Bild.src = GalleryAr[n]['Path'];document.all.Bild.filters.blendTrans.Play();}else{document.all.Bild.src = GalleryAr[n]['Path'];}
	if(Direction<0)
		(n>0) ? n-- : n=GalleryAr.length-1;
	else
		(n<GalleryAr.length-1) ? n++ : n=0;
	(n==0)?ViewCounter=GalleryAr.length:ViewCounter=n;
	document.getElementById("CounterTxt").innerHTML='('+(ViewCounter)+' von '+ Counter + ')';
	if(GalleryAr[n]['Description'].length>0){Description='<div class="Comment">'+GalleryAr[n]['Description']+'</div>'};
	if(GalleryAr[n]['Headline'].length>0){Description='<strong style="margin-top:0">'+GalleryAr[n]['Headline']+Description+'</strong>';
	document.getElementById("GalleryDescription").innerHTML=Description}
	else{	document.getElementById("GalleryDescription").innerHTML='';}
	if(PlayOrNot==true)
	{
		GalleryPlay=window.setTimeout('GalleryChange(1,true)',Timer);
	}
	else if(GalleryPlay)
	{window.clearTimeout(GalleryPlay);}
 }
 function GalleryStop(){window.clearTimeout(GalleryPlay);}
// End Module Gallery
 function GetRadio(feld){var obj=document.getElementsByName(feld);for (i=0;i<obj.length;i++){if (obj[i].checked) return obj[i].value;}return null;}
function Klick(ID,Name){
	var obj = document.getElementById(ID);
	obj.value=Name;
	obj.disabled=true;
    return true;
}
//-->
