// JavaScript Document
function spdf(uindex,ftype,wwidth,wheight)
		{
			
			
			path = document.location.pathname;
			paths = path.substring(1,path.lastIndexOf('.'));
			hpath = document.location.hostname;
			if (ftype==0) {
			 fname = pictures[uindex] +".rm";
			}
			else {
			 fname = pictures[uindex] +".wmv";
			}
			
			if ((hpath!="localhost")&&(hpath!="www.mave4.com")&&(hpath!="psi")) 
			{
			return 0;
			};
				
			if (hpath=="localhost") 
			{
			fpath = "http://localhost/film/"+fname;
			};
			
			if (hpath=="www.mave4.com") 
			{
			fpath = "http://f.mave4.com/"+fname;
			};
			
			if (hpath=="psi") 
			{
			fpath = "http://psi/film/"+fname;
			};
			
			if (wwidth==0) {wwidth=10;};
			if (wheight==0) {wheight=10;};
			NewWindow=window.open('','','width='+wwidth+',height='+wheight+',toolbar=no,directories=no,menubar=no,locations=no,status=no,scrollbars=yes,resizable=yes,fullscreen=no');
			NewWindow.document.open();
			NewWindow.document.location = fpath; 
			NewWindow.document.close();
			NewWindow.setTimeout("self.close();",10000);
					
		}				
