function openProductWin(idart,fo,file)
{
	var ProductWin;
	ProductWin = window.open('/cms/front_content.php?client=1&lang=1&idart='+idart+'&productFolder='+fo+'&hs_selImage='+file,'ProductWin','width=659,height=630,dependent=yes,scrollbars=no,toolbar=no,resizable=no');
	ProductWin.focus();
}

function openProductInfoWin(paurl)
{
	var ProductInfoWin;
	ProductInfoWin = window.open(paurl,'ProductInfoWin','width=659,height=630,dependent=yes,scrollbars=yes,toolbar=no,resizable=no');
	ProductInfoWin.focus();
}

function openProductGalerie(idart)
{

}

function showOverImage(img)
{
	alert(img);
}


function hideOverImage(img)
{
	alert(img);
}




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_findObjByName(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_findObjByName(n,d.layers[i].document);

	if(!x && d.getElementsByName) 
		x=d.getElementsByName(n);
		
		return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  if ((obj=MM_findObj(args[0]))!=null) 
  {
  	v=args[2];
    
  	if (obj.style) 
	{
    	obj=obj.style;

		if(v=='show')
		{
			v='visible';
		}
		else if(v=='hide')
		{
			v='hidden';
		}
		else
		{
			v=v;
		}

    }
	
  obj.visibility=v;
  }


	function dummy()
	{
		
	}

  // Border setzen
  s=0;
  v=args[2];

  if ((obj=MM_findObjByName('main_div_cat_' + args[4]))!=null)
  {
  		obj.style.border='';
		obj.style.paddingTop='';
		obj.style.paddingLeft='';
		obj.style.paddingRight='';
		obj.style.paddingBottom='';

	s=(v=='show')?1:0;
	if(s==1)
	{
		obj.style.border='1px solid';
		obj.style.borderColor='#807F84';
		obj.style.paddingTop='2px';
		obj.style.paddingLeft='2px';
		obj.style.paddingRight='8px';
		obj.style.paddingBottom='6px';
	}
  }
}




