
function printit(){
if (window.print) {
    window.print() ;
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box
    WebBrowser1.outerHTML = "";
	}
}


function popup(name,windowname,w,h,scroll) {
window.open(name,windowname,'toolbar=no,status=no,scrollbars='+scroll+',location=no,menubar=no,directories=no,width='+w+',height='+h)
}


function issuemax(name,statuson,scrollon) {

var w = 800, h = 600;

if (document.all || document.layers || document.getElementById) {
   w = ((screen.availWidth)-10);
   h = ((screen.availHeight)-40);
}

window.open(name,'','toolbar=yes,top=0,left=0,screenX=0,screenY=0,toolbar=0,location=0,directories=0,status='+statuson+',resizable=true,scrollbars='+scrollon+',menubar=0,resizable=yes,width='+w+',height='+h);

}


function issueindex(name) {

var w = 800, h = 600;

if (document.all || document.layers || document.getElementById) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var leftPos = ((w-580)/2), topPos = ((h-400)/2);

window.open((name+'/index.htm'),'','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=580,height=400,top='+topPos+',left='+leftPos);
}



function issue(name) {

var w = 800, h = 600;

if (document.all || document.layers || document.getElementById) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var leftPos = ((w-580)/2), topPos = 0;

window.open((name+'.htm'),'','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=580,height='+h+',top='+topPos+',left='+leftPos);
}



function issuesize(name,wid,hei,scrollon) {

var w = 800, h = 600;

if (document.all || document.layers || document.getElementById) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var leftPos = ((w-wid)/2), topPos = ((h-hei)/2);

window.open((name+'.htm'),'','toolbar=no,status=no,scrollbars='+scrollon+',toolbar=0,location=0,directories=0,width='+wid+',height='+hei+',top='+topPos+',left='+leftPos);
}



function issue21() {

var w = 800, h = 600;

if (document.all || document.layers || document.getElementById) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var leftPos = ((w-720)/2), topPos = ((h-540)/2);

window.open('http://www.antitram.com','antitram','toolbar=no,status=no,scrollbars=yes,location=yes,menubar=no,directories=no,resizable=yes,width=720,height=540,top='+topPos+',left='+leftPos);
}



function issue25() {

var w = 480, h = 340;

if (document.all || document.layers || document.getElementById) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var popW = 700, popH = 500;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;

window.open('25/index.htm','binary','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=no,width='+popW+',height='+popH+',top='+topPos+',left='+leftPos);
parent.main.location.href = '25/indexbinary.htm';

}



// Batmosphere Embedded Media Player, version 2006-05-31 
// Written by David Battino, www.batmosphere.com
// OK to use if this notice is included
// This function reads an MP3 URL and title from the referring page and generates embedding code to play back the audio file.
// Windows browsers (except for Internet Explorer) will play back the file with the Windows Media Player *plugin.* Internet Explorer will use Windows Media Player.
// Non-Windows browsers will play back the file with their standard audio handler for the MIME type audio/mpeg. On Macs, that handler will usually be QuickTime.

var audioFolder = ""; 

//function embedPlayer(MP3title,MP3URL) { 
function embedPlayer(MP3URL) { 
   // Get Operating System 
   var isWin = navigator.userAgent.toLowerCase().indexOf("windows") != -1;
   if (isWin) { // Use MIME type application/x-mplayer2
      visitorOS="Windows";
   } else { // Use MIME type audio/mpeg, audio/x-wav, etc.
      visitorOS="Other";
   }

   var audioURL = audioFolder + MP3URL;
   var objTypeTag = "application/x-mplayer2"; // The MIME type to load the WMP plugin in non-IE browsers on Windows
   if (visitorOS != "Windows") { objTypeTag = "audio/mpeg"}; // The MIME type for Macs and Linux 
  
 //  document.writeln("<div>");
 //  document.writeln("<strong style='font-size:1.0em; position:relative; top:0px'>" + MP3title + "&nbsp;</strong></td>");  
 // Adjust font style to taste
   document.writeln("<object width='480' height='80'>"); // Width is the WMP minimum. Height = 45 (WMP controls) + 24 (WMP status bar) 
   document.writeln("<param name='type' value='" + objTypeTag + "'>");
   document.writeln("<param name='src' value='" + audioURL + "'>");
   document.writeln("<param name='autostart' value='0'>");
   document.writeln("<param name='showcontrols' value='1'>");
   document.writeln("<param name='showstatusbar' value='1'>");
   document.writeln("<embed src ='" + audioURL + "' type='" + objTypeTag + "' autoplay='false' autostart='0' width='480' height='80' controller='1' showstatusbar='1' bgcolor='#ffffff'></embed>"); 
   
   // Firefox and Opera Win require both autostart and autoplay
   document.writeln("</object>");
   document.writeln("</div>");
   document.close(); // Finalizes the document
}





  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24509568-1']);
  _gaq.push(['_setDomainName', '.391.org']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


