var printLibrary = new Array();
var printCount = 0;

function printSet( title, html_location, print_edition, large_edition, study_edition, text_edition) {
	this.title = title;
	this.url = html_location;
	this.print = print_edition;
	this.large = large_edition;
	this.study = study_edition;
	this.text = text_edition;
}

function makePrintSet( title, html_location, print_edition, large_edition, study_edition, text_edition) {
	printLibrary[printCount++] = new printSet( title, html_location, print_edition, large_edition, study_edition, text_edition);
}


// ************** BEGIN PRINTABLE DOCUMENT LIBRARY **************
// Library: name, url, print, large, study, text

makePrintSet( "The Lutheran Calling in Education: Context and Prospect (Paul Dovre)", "//education/college/dovre.", false, false, false, true );
makePrintSet( "ELCA Social Statement on Abortion", "/abortion/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on Church in Society", "/churchinsociety/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on the Death Penalty", "/deathpenalty/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on Economic Life", "/economiclife/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on the Environment", "/environment/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on Health and Healthcare", "/health/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on For Peace in God\'s World", "/peace/default.", true, true, true, true );
makePrintSet( "ELCA Social Statement on Race, Ethnicity, and Culture", "/freedinchrist/default.", true, true, true, true );
makePrintSet( "ELCA Message on AIDS", "/aids/default.", true, true, true, true );
makePrintSet( "ELCA Message on a Changing Europe", "/europe/default.", true, true, true, true );
makePrintSet( "ELCA Message on Commercial Sexual Exploitation", "/sexualexploitation/default.", true, true, true, true );
makePrintSet( "ELCA Message on Community Violence", "/violence/default.", true, true, true, true );
makePrintSet( "ELCA Message on End of Life Decisions", "/endoflifedecisions/default.", true, true, true, true );
makePrintSet( "ELCA Message on Homelessness", "/homelessness/default.", false, false, false, true );
makePrintSet( "ELCA Message on Immigration", "/immigration/default.", true, true, true, true );
makePrintSet( "ELCA Message on Israeli/Palestinian Conflict", "/israelpalestine/default.", false, false, false, true );
makePrintSet( "ELCA Message on Sexuality", "/sexuality/default.", true, true, true, true );
makePrintSet( "ELCA Message on Suicide Prevention", "/suicide/default.", true, true, true, true );
makePrintSet( "Policies and Procedures of the ELCA for Addressing Social Concerns", "/procedures/default.", false, false, false, true );
makePrintSet( "Sphere 1: Policies and Procedures of the ELCA for Addressing Social Concerns", "/procedures/sphere1.", false, false, false, true );
makePrintSet( "Sphere 2: Policies and Procedures of the ELCA for Addressing Social Concerns", "/procedures/sphere2.", false, false, false, true );
makePrintSet( "Sphere 3: Policies and Procedures of the ELCA for Addressing Social Concerns", "/procedures/sphere3.", false, false, false, true );
makePrintSet( "Sphere 4: Policies and Procedures of the ELCA for Addressing Social Concerns", "/procedures/sphere4.", false, false, false, true );
makePrintSet( "An introduction to Church and State: Lutheran Perspectives (ELCA)", "/churchinsociety/churchstate/default.", false, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Contents) ELCA", "/churchinsociety/livingfaith/livingfaith.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (End notes) ELCA", "/churchinsociety/livingfaith/endnotes.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Group Session) ELCA", "/churchinsociety/livingfaith/groupsession.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Preface) ELCA", "/churchinsociety/livingfaith/preface.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Session 1) ELCA", "/churchinsociety/livingfaith/session1.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Session 2) ELCA", "/churchinsociety/livingfaith/session2.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Session 3) ELCA", "/churchinsociety/livingfaith/session3.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Session 4) ELCA", "/churchinsociety/livingfaith/session4.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Session 5) ELCA", "/churchinsociety/livingfaith/session5.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Session 6) ELCA", "/churchinsociety/livingfaith/session6.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Preface) ELCA", "/churchinsociety/livingfaith/default.", true, false, false, true );
makePrintSet( "Living the Faith: A Lutheran Perspective on Ethics (Leader Guide) ELCA", "/churchinsociety/livingfaith/leaderguide.", true, false, false, true );
makePrintSet( "An Introduction to The Promise of Lutheran Ethics (ELCA)", "/churchinsociety/promise/default.", false, false, false, true );
makePrintSet( "A Study on Gambling (Introduction) ELCA", "/economiclife/gambling/default.", false, false, false, true );
makePrintSet( "A Study on Gambling (Session 1) ELCA", "/economiclife/gambling/session1.", false, false, false, true );
makePrintSet( "A Study on Gambling (Session 2) ELCA", "/economiclife/gambling/session2.", false, false, false, true );
makePrintSet( "A Study on Gambling (Session 3) ELCA", "/economiclife/gambling/session3.", false, false, false, true );
makePrintSet( "A Study on Gambling (Session 4) ELCA", "/economiclife/gambling/session4.", false, false, false, true );
makePrintSet( "A Study on Gambling (Session 5) ELCA", "/economiclife/gambling/session5.", false, false, false, true );
makePrintSet( "A Study on Gambling (Session 6) ELCA", "/economiclife/gambling/session6.", false, false, false, true );
makePrintSet( "Receive with Thanksgiving! An Online Congregational Study of Economic Life (Table of Contents) ELCA", "/economiclife/thanksgiving/default.", false, false, false, true );
makePrintSet( "Working Principles for Welfare Reform (ELCA)", "/economiclife/welfare/default.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Additional Projects)", "/peace/congregationalguide/additionalprojects.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Introduction)", "/peace/congregationalguide/default.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Handout 1)", "/peace/congregationalguide/handout1.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Handout 2)", "/peace/congregationalguide/handout2.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Handout 3)", "/peace/congregationalguide/handout3.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Handout 4)", "/peace/congregationalguide/handout4.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Handoug 5)", "/peace/congregationalguide/handout5.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Session 1)", "/peace/congregationalguide/session1.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Session 2)", "/peace/congregationalguide/session2.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Session 3)", "/peace/congregationalguide/session3.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Session 4)", "/peace/congregationalguide/session4.", false, false, false, true );
makePrintSet( "For Peace in God\'s World: Using the Social Statement in Your Congregation (Session 5)", "/peace/congregationalguide/session5.", false, false, false, true );
makePrintSet( "Studying the ELCA\'s message on Commercial Sexual Exploitation", "/sexualexploitation/studyguide/default.", false, false, false, true );
makePrintSet( "Physician-Assisted Suicide and Lutherans in Oregon", "/endoflifedecisions/oregon/default.", false, false, false, true );
makePrintSet( "On Educational Choice", "/education/choice/default.", false, false, false, true );
makePrintSet( "Constitutional and Legal Aspects of Educational Choice (by Marie Failinger)", "/education/choice/failinger.", false, false, false, true );
makePrintSet( "A Theological Perspective on Educational Choice (by Louis T. Almen)", "/education/choice/almen.", false, false, false, true );
makePrintSet( "An Introduction to the ELCA Task Force on Education", "/education/default.", false, false, false, true );
makePrintSet( "A Call for a Social Statement on Education", "/education/call.", false, false, false, true );
makePrintSet( "An Introduction to Caring for Health: Our Shared Endeavor", "/health/bulletin/default.", true, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/discussion.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/preface.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/public.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/independent.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/values.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/finance.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/constitutional.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/decision.", false, false, false, true );
makePrintSet( "Educational Choice: A Discussion Guide", "/education/choice/furtherreading.", false, false, false, true );
makePrintSet( "Living in a Time of Terrorism", "/terrorism/default.", true, true, true, true );
makePrintSet( "ELCA Education Task Force: How to Get Involved", "/education/involved/informed.", false, false, false, true );
makePrintSet( "ELCA Education Task Force: How to Get Involved", "/education/involved/study.", false, false, false, true );
makePrintSet( "ELCA Education Task Force: Members", "/education/members/default.", false, false, false, true );
makePrintSet( "ELCA Education Task Force: Timeline", "/education/timeline/future.", false, false, false, true );
makePrintSet( "ELCA Education Task Force: History", "/education/timeline/history.", false, false, false, true );
makePrintSet( "ELCA Education Task Force: Meetings", "/education/timeline/meetings.", false, false, false, true );

//makePrintSet( "NAME", "URL", false, false, false, true );

// ************** END PRINTABLE DOCUMENT LIBRARY **************

function getFilename( FileLocation ) {
	var Filename = FileLocation.replace(/^http\W{3}\w*\W?elca\Worg\Wsocialstatements\W/, "/");
	Filename = Filename.replace(/#\w*/, "");
	if (Filename.match(/\w+\W\w{3,4}$/)) {
		Filename = Filename.replace(/asp/, "html");
		Filename = Filename.replace(/\Whtml/, ".");
	} else { Filename += "default."; }
	return Filename;
}

function printDocument( doc ) {
	window.open("/socialstatements/printdialog.asp?doc="+doc+"&url="+getFilename(location.href),"print_win","width=300,height=450,noresize,scrolling=auto");
}


function emailDocument( d, relay ) {
	window.open("/socialstatements/emaildialog.asp?d="+d+"&r="+location.href,"print_win","width=300,height=450,noresize,scrolling=auto");
}


function bookmarkDocument() {
	window.external.AddFavorite(location.href, document.title+" (ELCA)");
}


var nav = (document.layers); 
var iex = (document.all);
var skn = (nav) ? document.topdeck : topdeck.style;
if (nav) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = get_mouse;


function pop(msg) {

var content ="<TABLE WIDTH=350 BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#660066><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT COLOR=#FFFFFF SIZE=2><B>"+type+"</B></FONT></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#CCFFCC><TR><TD><FONT COLOR=#000000 SIZE=2><span class='smalltext'>"+msg+"</span></FONT></TD></TR></TABLE></TD></TR></TABLE>";

  if (nav)   { 
    skn.document.write(content); 
	  skn.document.close();
	  skn.visibility = "visible";
  }
    else if (iex)   {
	  document.all("topdeck").innerHTML = content;
	  skn.visibility = "visible";  
  }
}


function get_mouse(e) {
	var x = (nav) ? e.pageX : event.x+document.body.scrollLeft; 
	var y = (nav) ? e.pageY : event.y+document.body.scrollTop;
	skn.left = x + 50;
  skn.top  = y - 20;
}


function kill() {
  skn.visibility = "hidden";
}


