
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; }
}



if ((navigator.appName.indexOf("Internet Explorer") != -1) && (navigator.userAgent.indexOf("Opera") == -1)){
	bw_type = "ie";
}else if (navigator.appName.indexOf("Netscape") != -1){
	bw_type = "nn";
	if (parseInt(navigator.appVersion) >= 5){
		bw_type += "6";
	}
}else if (navigator.userAgent.indexOf("Opera") != -1){
	bw_type = "op";
}else{
	bw_type="other";
}


function printw(){
	//alert("TODO: put> "+window.location);
	PW1=wopen("print.php?url="+window.location,"PrnWind",630,440,1);
}

function imgw(iurl,ix,iy){
	PW2=wopen("img.html?i="+iurl,"ImgWind",ix,iy,0);
}

showPicture = function ( img, id, src, prodID ) {
	try {
		var tmpNode = document.getElementById( id );
		tmpNode.src = src;

		if ( tmpNode.activeNode ) {
			applyClassName( tmpNode.activeNode, "active", false );
		}
			
		tmpNode.activeNode = img;
		applyClassName( img, "active", true );

		if ( prodID ) {
			tmpNode.prodID = prodID;
			document.forms.orderForm.order.value = prodID;
		}

	} catch ( e ) {}
}

function wopen(_wurl,_wn,_ww,_wh,_wscrl){
 if(screen.width){
  wpos_x = (screen.width-_ww)/2;
  if (wpos_x < 0){ wpos_x = 0;}
  wpos_y = (screen.height-_wh)/2;
  if (wpos_y < 0){ wpos_y = 0;}
 }else{
  wpos_x = 0;
  wpos_y = 0;
 }
 if(_wn==""){ _wn = "w_test";}
 wind_desc = window.open(_wurl,_wn,"alwaysRaised=0,top="+wpos_y+",left="+wpos_x+",height="+_wh+",width="+_ww+",menubar=0,resizable=0,scrollbars="+_wscrl+",status=0");
 wind_desc.focus();
 return wind_desc;
}

