// Side Boxes Information

//Current Events

var wholeBlood, seasonalDonors, seasonalHeader, platelets, bloodDrives;

wholeBlood = "<span class=\"blackText\">O+</span> and <span class=\"blackText\">A-</span> blood types are needed to help patients at the hospitals.";
seasonalHeader = "Fall 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 = "It may not be hot right now but we are lining up blood drives for November, December, and January.  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 = "Research Park Temporary Donor Center";
	blogDesc1  = "The donor center in Research Park is being remodeled over the next few weeks" + "...";
	blogLink1  = "http://blog.utahblood.org/utahblood/2010/08/research-park-temporary-donor-center.html";
	
	//Blog 2: Title, Description, Link
	blogTitle2 = "New Hours for Sandy Donor Center Starting June";
	blogDesc2  = "Collection hours at the Sandy donor center will be modified effective June 1, 2010" + "...";
	blogLink2  = "http://blog.utahblood.org/utahblood/2010/05/new-hours-for-sandy-donor-center-starting-june.html";
	
	//Blog 3: Title, Description, Link
	blogTitle3 = "April Patient List";
	blogDesc3  = "Thanks to everyone who donated during the month of April.  We had a lot of great blood drives" + "...";
	blogLink3  = "http://blog.utahblood.org/utahblood/2010/05/april-patient-list.html";
	
	//Blog 4: Title, Description, Link
	blogTitle4 = "iPad Winner!";
	blogDesc4  = "Congratulations to Pam W., the big winner of the iPad giveaway" + "...";
	blogLink4  = "http://blog.utahblood.org/utahblood/2010/05/ipad-winner.html";

	//Blog 5: Title, Description, Link
	blogTitle5 = "Will you share your story";
	blogDesc5  = "Have you or one of your children received life saving blood at University Hospital" + "...";
	blogLink5  = "http://blog.utahblood.org/utahblood/2010/04/will-you-share-your-story.html";		

	//Blog 6: Title, Description, Link
	blogTitle6 = "iPad Giveaway!";
	blogDesc6  = "Each presenting whole blood or platelet donor to ARUP Blood Services donor centers will be entered to win an iPad.*" + "...";
	blogLink6  = "http://blog.utahblood.org/utahblood/2010/04/ipad-giveaway.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>");
	}
}