function AktivNav(p,i,status,allhide)
{
		
		if (status=='over'){
			for  (k=1;k<=5;k++)
			{
				ts= "ts"+k+p+i;
				//document.getElementById(ts).style.backgroundColor='#FFFFFF';	
				//document.getElementById(ts).style.color='#778087';
				//alert(ts);
			}
		}
		if (status=='out'  ){
			for  (k=1;k<=5;k++)
			{
				ts = "ts"+k+p+i;
				//document.getElementById(ts).style.backgroundColor='#778087';	
				//document.getElementById(ts).style.color='#FFFFFF';
				//alert(ts);
			}
		}
		if (status=='click'){
			
			for ( j=0; j<allhide;j++)
			{
				for  (k=1;k<=5;k++)
				{
					clicked = true;
					ts = "ts"+k+p+j;
					document.getElementById(ts).style.backgroundColor='#778087';	
					document.getElementById(ts).style.color='#FFFFFF';
				//alert(ts);
				}
				
			}
	
			for  (k=1;k<=5;k++)
			{
				clicked = true;
				ts = "ts"+k+p+i;
				document.getElementById(ts).style.backgroundColor='#FFFFFF';	
				document.getElementById(ts).style.color='#778087';
			//alert(ts);
			}
		}
}


function showKShopLayer(toshow,p,ii,allhide)
{

for (var i=0; i < allhide; i++) 
	{
	tohide = "p"+p+"i"+i;	
	document.getElementById(tohide).style.visibility = 'hidden';	
	}
	//Layer
	toshow="p"+p+"i"+ii;
	document.getElementById(toshow).style.visibility = 'visible';
}


function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
return  tempY;
}

var IE = document.all?true:false;
var tempX = 0;
var tempY = 0;

function TESTshowBigImage(status,prodcount)
{
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousedown = getMouseXY;
if (status=='show')
	{
	document.getElementById('bigimage').style.top =  tempY-320+ "px";
	document.getElementById('bigimage').style.visibility = 'visible';
	}
if (status=='hide')
	{
	document.getElementById('bigimage').style.visibility = 'hidden';	
	}
}












function rollover(bild_org,bild_change)
{
    document.getElementById(bild_org).src =bild_change;        
}

/*function rollover(bild_org,bild_change)
{
     imgChange    = new Image();
     imgChange.src = bild_change;
     if(navigator.appName == "Netscape")
     {
         document.linie.document.images[bild_org].src = imgChange.src;
     }
     else
     {
       window.document.images[bild_org].src = imgChange.src;
     }
}*/

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function Go(x)
{
 if(x == "nothing")
 {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   focus();
   return;
 }
  else
  {
   location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   focus();
  }
}
function popup(PopURL,FName,x,y,posx,posy)
{
try
{
	
	if (!(posx)) posx=20;
	if (!(posy)) posy=20;
	ie=(document.all)?true:false;
	ie4 = navigator.appVersion.indexOf("MSIE 4");
	if (! window.cc_child) 
	{
		cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
		if (posx) cc_child.moveTo(posx,posy);
		window.cc_child.focus();
		return;
	}
	
	if (ie && ie4 < 0)
	{	
		if (window.cc_child.closed)
		{	
			cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
			if (posx) cc_child.moveTo(posx,posy);
			window.cc_child.focus();
			return;
		}
	}
	
	if (window.cc_child) 
	{
		if (ie && ie4 < 0)
			{  window.cc_child.close(); }
		cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
		if (posx) cc_child.moveTo(posx,posy);
		window.cc_child.focus();
	}
}
catch(e)
{}
}
function popupPrint(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        	{
                cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        	}

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                		//if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        	{
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
               cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        	}
}

		function alertBox(msg)
		{
			
			//$('.flashcontainer').hide();
			$('#alertContent').remove();
			//msgContent = "<div id=\"alertContent\" style=\"height:150px;width:200px\"><center><img src=\"../../images/imgTemplates/dialog-error.png\" border=\"0\">"+msg+"<p><input id=\"Login\" type=\"submit\" onclick=\"hideAlert();tb_remove()\" value=\"  Ok  \"/></p></center></div>";
			msgContent = "<div id=\"alertContent\" style=\"border:0px solid green\"><center><img src=\"../../images/imgTemplates/dialog-error.png\" border=\"0\"><br><br>"+msg+"</br><br><div style=\"border:1px solid black;cursor:pointer;width:25px;background-color:#fff\" onclick=\"hideAlert();tb_remove()\"><strong>OK</strong></div></center></div>";
			$(document.body).append(msgContent);
			tb_show("", "#TB_inline?height=215&width=230&mod=1&inlineId=alertContent&modal=true", false);
			
		}

		function confirmBox(msg)
		{
			//$('.flashcontainer').hide();
			$('#alertContent').remove();
			//msgContent = "<div id=\"alertContent\" style=\"height:150px;width:200px\"><center><img src=\"../../images/imgTemplates/dialog-error.png\" border=\"0\">"+msg+"<p><input id=\"Login\" type=\"submit\" onclick=\"hideAlert();tb_remove()\" value=\"  Ok  \"/></p></center></div>";
			msgContent = "<div id=\"alertContent\" style=\"\"><center><img src=\"../../images/imgTemplates/dialog-information.png\" border=\"0\"><p>"+msg+"<p><div style=\"border:1px solid black;cursor:pointer;width:25px;background-color:#fff\" id=\"Login\" onclick=\"hideAlert();tb_remove()\"><strong>OK</strong></div></p></center></div>";
			$('body').append(msgContent);
			tb_show("", "#TB_inline?height=215&width=230&mod=1&inlineId=alertContent&modal=true", false);
		}
		
		
		function hideAlert()
		{
		
		$('#alertContent').remove();
		//$('.flashcontainer').show();
		}

		
		




