if(document.all)
   {GD_ie4_common = true;GD_ns4_common = false;}
else{GD_ie4_common = false;GD_ns4_common = document.getElementById ? true:false;}
   var GD_isIE = GD_ie4_common || GD_ns4_common;
   var GD_locationhost = location.hostname;
   var GD_EnableNS_Patch = true;

  function ShowHidePic3(classname,picname,flag)
   {window.status = flag ? 'showpic3':'';	
    var GD_obj = GD_ns4_common ? document.getElementById(classname) : GD_ie4_common ? (document.getElementById(classname).length ? null:document.getElementById(     classname)) : document.layers[classname];	
	if(GD_obj)
		   {var objstyle = GD_isIE ? GD_obj.style : GD_obj;
		    if(flag)
					 {var divWidth =  0;
					  var divHeight =  0;
					  var imgWidth = 150;  
					  var imgHeight = 150;
                      var oWidth = GD_ie4_common ? 0 : window.outerWidth;
					  var oHeight = GD_ie4_common ? 0 : window.outerHeight;
					  var tWidth = GD_ie4_common ? document.body.clientWidth : window.innerWidth;
					  var tHeight = GD_ie4_common ? document.body.clientHeight : window.innerHeight;
					  var sWidth = GD_ie4_common ? document.body.scrollLeft : window.pageXOffset;
					  var sHeight = GD_ie4_common ? document.body.scrollTop : window.pageYOffset;	
					  var x = 0;			
					  var y = 0;
                      if(GD_ie4_common)
					       {x = event.clientX - event.offsetX + imgWidth + sWidth;y = event.clientY - event.offsetY + sHeight;}else{x = document.images[picname].x +                            imgWidth;y = document.images[picname].y;}   
                      if((x + divWidth - sWidth) > tWidth && (x - divWidth - imgWidth - sWidth) >= 0)
					       {x -= (imgWidth + divWidth);}
					  if((y + divHeight - sHeight) > tHeight && (y - divHeight + imgHeight - sHeight) >= 0)
                           {y += (imgHeight - divHeight);}
					        objstyle.left = x;objstyle.top = y;objstyle.width = 100;objstyle.height = 100;
					 }
		     if(GD_isIE)
			      {objstyle.display = flag ? "inline" : "none";}	
             else
				  {objstyle.visibility = flag ? "show" : "hide";}
		    }
	}
