// Side Boxes Information

//Current Events

var wholeBlood, seasonalDonors, seasonalHeader, platelets, bloodDrives;

wholeBlood = "<span class=\"blackText\">A-</span> blood types are needed to help patients at the hospitals.";
seasonalHeader = "Winter Donors";
seasonalDonors = "Drive safe and be careful in the great outdoors of Utah. 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 = "Hold a blood drive with us!  We are lining up drives for any dates this year.  We still have openings for April, May and June. 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 = "Who Wants Ice Cream!";
	blogDesc1  = "Each presenting whole blood or platelet donor to ARUP Blood Services donor centers will receive" + "...";
	blogLink1  = "http://blog.utahblood.org/utahblood/2011/05/who-wants-ice-cream.html";
	
	//Blog 2: Title, Description, Link
	blogTitle2 = "Donor Satisfaction Survey";
	blogDesc2  = "Each month we're going to give away four $25 Gastronomy gift cards to donors who fill out our" + "...";
	blogLink2  = "http://blog.utahblood.org/utahblood/2011/05/donor-satisfaction-survey.html";
	
	//Blog 3: Title, Description, Link
	blogTitle3 = "16 Year Olds Can Now Donate Blood in Utah";
	blogDesc3  = "Starting May 10, 2011, 16-year-old Utahns will be allowed to donate blood if they have the written consent" + "...";
	blogLink3  = "http://blog.utahblood.org/utahblood/2011/05/16-year-olds-can-now-donate-blood-in-utah.html";
	
	//Blog 4: Title, Description, Link
	blogTitle4 = "Donate for Life Club is Now Online";
	blogDesc4  = "ARUP Blood Services offers gifts as a thank you to our frequent donors who help us save lives" + "...";
	blogLink4  = "http://blog.utahblood.org/utahblood/2010/11/donate-for-life-club-is-now-online.html";

	//Blog 5: Title, Description, Link
	blogTitle5 = "Make an Appointment Online";
	blogDesc5  = "We're very excited about the new web site www.arupbloodservices.org" + "...";
	blogLink5  = "http://blog.utahblood.org/utahblood/2010/11/make-an-appointment-online.html";		

	//Blog 6: Title, Description, Link
	blogTitle6 = "Sponsor a Blood Drive in 2011";
	blogDesc6  = "The two most difficult times to line up blood drives for us is the summer and winter" + "...";
	blogLink6  = "http://blog.utahblood.org/utahblood/2010/11/sponsor-a-blood-drive-in-2011.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>");
	}
}
