function pics(img,ref)
{
	document.images[img].src = ref;
}

function openwin(img,w,h,title)
{
 var hWnd;
 if(hWnd!=null) hWnd.close();
 hWnd=window.open(img,"","toolbar=no,location=no,directories=no,resizable=yes,scrollbars=yes,left=100,top=100,width="+w+",height="+h);
 hWnd.document.open();
 hWnd.document.write("<html><head><title>"+title+"</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
 hWnd.document.write("<img src=\""+img+"\" width="+w+" height="+h+">");
 hWnd.document.write("</body></html>");
 hWnd.document.close();
}

function IEPngFix( pngimg, gifimg, width, height, unique_name )
{
//	var code = '<IMG SRC="'+ pngimg +'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER=0 name='+ unique_name +'>';
	var code = '<IMG SRC="'+ gifimg +'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER=0 name='+ unique_name +' STYLE="BACKGROUND:url('+pngimg+') no-repeat 0px 0px;">';
	if( navigator.userAgent.indexOf("Opera") > 1 )
		document.write(code);
	else
		if( navigator.userAgent.indexOf("MSIE 6") > 1 )
			document.write('<IMG SRC="'+gifimg+'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER="0" ALT="" STYLE="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=' + pngimg + ' , sizingMethod=scale );">');
		else
			if(navigator.userAgent.indexOf("MSIE 5") != -1)
				document.write(code);
			else
				document.write(code);
				
}
