// DEPOSIT FLASH FILE HERE
function embedFlash(f, p, w, h){ // file, parameters, width, height
	m = 6; // min version
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+m+',0,0,0" width="'+w+'" height="'+h+'">');
    document.write('  <param name="movie" value="'+f+'?'+p+'" />');
    document.write('  <param name="quality" value="high" />');
    document.write('  <param name="base" value="." />');
    document.write('  <embed src="'+f+'?'+p+'" quality="high" base="." pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed></object>');
}



function popup(win) { //1.0
	if(win==1){ // MAIL LIST
		theURL 	= 'http://www.patronmail.com/pmailweb/PatronSetup?oid=27';
	 	winName = 'mail_list';
		h 		= 500; 
		w		= 660; 
		wScroll	= "yes"; 
		winl	= 10; 
		wint	= 10;	
		features='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+wScroll+',status=no,toolbar=no,menubar=no,location=no';
	}
	(winName==="")?(winName="New"):null;
	window.open(theURL,winName,features);
	}
	
function popupsized(url, width, height) { //1.0
	var theURL 	= url;
	var winName = '';
	var h 		= height; 
	var w		= width; 
	if(typeof( window.innerWidth ) == 'number' ){
		h 		= height; 
		w		= width; 
	}else{
		h 		= parseInt(height) + 20; 
		w		= parseInt(width) + 7; 
	}
	var wScroll	= "yes"; 
	var winl	= 10; 
	var wint	= 10;	
	var features='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+wScroll+',resizable=no,status=no,toolbar=no,menubar=no,location=no';
	(winName==="")?(winName="New"):null;
	window.open(theURL,winName,features);
}