// Side Boxes Information

//Current Events

var wholeBlood, seasonalDonors, seasonalHeader, platelets, bloodDrives;

wholeBlood = "<span class=\"blackText\">A-</span>, <span class=\"blackText\">O+</span> and <span class=\"blackText\">B+</span> blood types are needed to help patients at the hospitals.";
seasonalHeader = "Spring Donors";
seasonalDonors = "Drive safe! We want you to donate blood instead of needing blood.";
platelets = "We are looking to expand our platelet donor base. If you have donated whole blood, please consider becoming a platelet donor today.";
bloodDrives = "It may not be hot right now but we are lining up blood drives for May - August.  Line up a blood drive today with your school, church, business, or community group.";

//Blood Drives & Events TURNED OFF
//navbar link: <li><a href="../about-ARUP/blood-drive-events.html">Blood Drives &amp; Events</a></li>

var bdTitle1, bdLocation1, bdTitle2, bdLocation2, bdTitle3, bdLocation3;
	
	//Event 1:  Title, Location
	bdTitle1    = "June 3, 2008 (2)";
	bdLocation1 = "U.S. District Court";
	
	//Event 2:  Title, Location
	bdTitle2    = "June 4, 2008 (3)";
	bdLocation2 = "ITT Technical Institute (Murray)";
	
	//Event 3:  Title, Location
	bdTitle3    = "June 5, 2008 (2)";
	bdLocation3 = "BYU - Wilkinson Center";
	
	//Event 4:  Title, Location
	bdTitle4    = "June 6, 2008 (2)";
	bdLocation4 = "Ken Garff Automotive Group (Orem)";
	
	//Event 5:  Title, Location
	bdTitle5    = "June 9, 2008";
	bdLocation5 = "MPRI";	

//Latest Blogs
var blogTitle1, blogDesc1, blogLink1, blogTitle2, blogDesc2, blogLink2, blogTitle3, blogDesc3, blogLink3;
	

	//Blog 1: Title, Description, Link
	blogTitle1 = "Will you hold a blood drive this summer?";
	blogDesc1  = "The summer is such a great time of year, but for collecting blood it is" + "...";
	blogLink1  = "http://blog.utahblood.org/utahblood/2010/02/will-you-hold-a-blood-drive-this-summer.html";
	
	//Blog 2: Title, Description, Link
	blogTitle2 = "Holiday TV Winner!";
	blogDesc2  = "Congrats to platelet donor Teresa O. from Midvale who won a 32\" Sony Bravia TV" + "...";
	blogLink2  = "http://blog.utahblood.org/utahblood/2010/02/holiday-tv-winner.html";
	
	//Blog 3: Title, Description, Link
	blogTitle3 = "Bleed Red Thanks";
	blogDesc3  = "Thanks to the more than 1,000 students who showed up to donate for Bleed Red" + "...";
	blogLink3  = "http://blog.utahblood.org/utahblood/2009/09/bleed-red-thanks.html";
	
	//Blog 4: Title, Description, Link
	blogTitle4 = "New Donor Chairs in Sandy";
	blogDesc4  = "We have new, soft, comfy donor chairs for our whole blood and platelet donors" + "...";
	blogLink4  = "http://blog.utahblood.org/utahblood/2010/01/new-donor-chairs-in-sandy.html";		

	//Blog 5: Title, Description, Link
	blogTitle5 = "Donating blood and flu shots (including H1N1)";
	blogDesc5  = "Every year we get lots of questions about whether or not you can donate after getting a flu shot" + "...";
	blogLink5  = "http://blog.utahblood.org/utahblood/2009/10/donating-blood-and-flu-shots-including-h1n1.html";
	
	//Blog 6: Title, Description, Link
	blogTitle6 = "Murray Donor Center Closing";
	blogDesc6  = "With the opening of our new center in Sandy, we will permanently close our Murray Donor center" + "...";
	blogLink6  = "http://blog.utahblood.org/utahblood/2009/10/murray-donor-center-closing.html";

//Weekly Patient Lists
var patientTitle1, patientUnits1, patientLink1, patientTitle2, patientUnits2, patientLink2, patientTitle3, patientUnits3, patientLink3;

	//Top Week(1): Date Range, # total units of blood, linked page name
	patientTitle1 = "September 20 - 26";
	patientUnits1 = "416";
	patientLink1  = "patient-list.html";
	
	//Middle Week(2): Date Range, # total units of blood, link to page
	patientTitle2 = "September 13 - 19";
	patientUnits2 = "613";
	patientLink2  = "09132008.html";
	
	//Bottom Week(3): Date Range, # total units of blood, link to page
	patientTitle3 = "September 6 - 12";
	patientUnits3 = "604";
	patientLink3  = "09062008.html";



//---------------------------------- DO NOT CHANGE CODE BELOW ----------------------------------//
//----------------------------------------------------------------------------------------------//

//Placement code for boxes

//Blood Drives  TEMPORARILY DISABLED
function writeBloodDrives(){
	/*
	 document.write("<div class=\"tabItemHeader\"><a href=\"../about-ARUP/blood-drive-events.html\">" + bdTitle1 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + bdLocation1 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"../about-ARUP/blood-drive-events.html\">" + bdTitle2 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + bdLocation2 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"../about-ARUP/blood-drive-events.html\">" + bdTitle3 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + bdLocation3 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"../about-ARUP/blood-drive-events.html\">" + bdTitle4 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + bdLocation4 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"../about-ARUP/blood-drive-events.html\">" + bdTitle5 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + bdLocation5 + "</div>");
	 */
	 document.getElementById('upcomingEvents').style.display = "none";
	 //document.write("");
}

//Latest Blogs
function writeBlogs(page){
	 document.write("<div class=\"tabItemHeader\"><a href=\"" + blogLink1 + "\">" + blogTitle1 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + blogDesc1 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"" + blogLink2 + "\">" + blogTitle2 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + blogDesc2 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"" + blogLink3 + "\">" + blogTitle3 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">" + blogDesc3 + "</div>");
	 //Displays 3 extra blogs on the index page of the site
	 if(page == "index"){
		 document.write("<div class=\"tabItemHeader\"><a href=\"" + blogLink4 + "\">" + blogTitle4 + "</a></div>");
		 document.write("<div class=\"tabItemDetails\">" + blogDesc4 + "</div>");
		 document.write("<div class=\"tabItemHeader\"><a href=\"" + blogLink5 + "\">" + blogTitle5 + "</a></div>");
		 document.write("<div class=\"tabItemDetails\">" + blogDesc5 + "</div>");
		 document.write("<div class=\"tabItemHeader\"><a href=\"" + blogLink6 + "\">" + blogTitle6 + "</a></div>");
		 document.write("<div class=\"tabItemDetails\">" + blogDesc6 + "</div>");	
	 }
}

//Weekly Patient Lists
function writePatientLists(){
	document.write("<a href=\"/donor-programs/donate-for-life.html\"><img src=\"/resources/images/donate.jpg\" border=\"0\" /></a>");
	/*
	 document.write("<div class=\"tabItemHeader\"><a href=\"/patients/" + patientLink1 + "\">" + patientTitle1 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">Total units of blood used: " + patientUnits1 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"/patients/" + patientLink2 + "\">" + patientTitle2 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">Total units of blood used: " + patientUnits2 + "</div>");
	 document.write("<div class=\"tabItemHeader\"><a href=\"/patients/" + patientLink3 + "\">" + patientTitle3 + "</a></div>");
	 document.write("<div class=\"tabItemDetails\">Total units of blood used: " + patientUnits3 + "</div>");
	*/
}

//Current Events
function writeCE(category){
	switch(category){
	case "wholeBlood":
	document.write(wholeBlood);
		break;
	case "seasonalDonors":
	document.write(seasonalDonors);
		break;
	case "platelets":
	document.write(platelets);
		break;
	case "bloodDrives":
	document.write(bloodDrives);
		break;
	default:
	document.write("");
	}
}

function seasonalDnr(){
	if(seasonalHeader == "" || seasonalHeader == null){
		document.write("<strong>Seasonal Donors</strong>");
	} else {
		document.write("<strong>" + seasonalHeader + "</strong>");
	}
}