
var picWin;
function openPicWindow(picUrl, w, h, TAID,ImgRight)
	{
	if (picWin) picWin.close();
	//picWin = window.open(picUrl,"picwindow", "toolbar=no,location=0,directories=0,status=O,menubar=0,scrollbar=0,resizable=0,copyhistory=0,width="+w+",height="+h);
	picWin = window.open('script/show_pic.php?picUrl='+picUrl+'&TArticle_Id='+TAID+'&ImgRight='+ImgRight,"picwindow", "toolbar=no,location=0,directories=0,status=O,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width="+w+",height="+h);
	}

function JS_swapImgRestore() { 
  var i,x,a=document.JS_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function JS_preloadImages() { 
  var d=document; if(d.images){ if(!d.JS_p) d.JS_p=new Array();
    var i,j=d.JS_p.length,a=JS_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.JS_p[j]=new Image; d.JS_p[j++].src=a[i];}}
}

function JS_findObj(n, d) { 
  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=JS_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function fcAnimateLayer1(){		
	document.write(unescape("%3Cspan%20style%3D%27position%3Aabsolute%3Btop%3A900px%3Bleft%3A0px%3Bvisibility%3Ahidden%3B%27%3E"));
}

function fcAnimateLayer2(){		
	document.write(unescape("%3C/span%3E"));
}	

function JS_swapImage() { 
  var i,j=0,x,a=JS_swapImage.arguments; document.JS_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=JS_findObj(a[i]))!=null){document.JS_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


