<!-- Hide from old browsers
if (document.images) {
  var playbutton1 = new Image(); 
  playbutton1.src = "images/playbutton1.png";
  var playbutton2 = new Image(); 
  playbutton2.src = "images/playbutton2.png";
}

function videomouseover(imgName) {
  if (document.images)
    document.images[imgName].src = eval("playbutton2.src");   
}

function videomouseout(imgName) {
  if (document.images)
    document.images[imgName].src = eval("playbutton1.src");
}

function MainVideo() {
	//Gets the video out of the querystring
	var querystring = window.location.search.substring(1);
	var video = querystring.substring(6);
	
	//Selects a main video and writes the embedded code for it
	//Everything inside the document.write must be single quote
	
	//To change the FEATURE VIDEO, REPLACE all of this (to the next comment)
	if (querystring == "") {
		document.write("<center><p style='font-size: 19px; font-weight: bold;'>Inside Edition: Campus Fire Safety</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/efm8CN_bSJE&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/efm8CN_bSJE&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><p style='width: 650px;'>An in-depth special on the often overlooked dangers that plague the typical college household.  This video includes a controlled demonstration of a dorm room fire,  risk analysis of student houses (both male & female), as well as the tragic story of a fire at an off campus party that left three dead at Miami University in 2005.</p></center>");
	}
	//To change the feature video, REPLACE all of this above until the previous comment, everything inside 
	
	if (video == "firepreventionexitstrategy") {
		document.write("<center><p style='font-size: 19px; font-weight: bold;'>2008 Fire Prevention Week - Exit Strategy</p><object width='480' height='385'><param name='movie'      value='http://www.youtube.com/v/C8FvVt9Gq14&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/C8FvVt9Gq14&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='false' width='500' height='405' ></embed></object><p style='width: 650px;'>'Fired Up for Fire Safety' was created by NFPA specifically for this year's Fire Prevention Week campaign (October 5-11). It includes three two-minute animated videos starring cartoon character Dan Doofus. Dan has to learn the hard way how to prevent home fires the correct way. Topics of the videos include home fire safety checklist, home fire escape planning, and proper use of smoke alarms and residential fire sprinklers. </p></center>");
	}
	
	if (video == "umstudentresearch") {
		document.write("<center><p style='font-size: 19px; font-weight: bold;'>UM Student Research: Examining Fire Safety of On-Campus Housing</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/ihkGqRz_7ik&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/ihkGqRz_7ik&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><br /><br /><p style='width: 650px;'>A short video composed by students explaining the dangers of an overcrowded dorm room, as well as some quick statistics on campus housing fires.  The students even run a simulation on a program called FDS that calibrates what objects in a dorm room will ignite first.</p></center>");
	}
	
	if (video == "nbccampusfiresafety") {
		document.write("<center><p style='font-size: 19px; font-weight: bold;'>NBC Nightly News - Campus Fire Safety</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/AOibyNiruaA&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/AOibyNiruaA&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><p style='width: 650px;'>NBC special pertaining to off campus incidents, this video offers some harrowing statistics.  For example, NBC contacted almost one-hundred university towns across the country to find that 30% do not have fire inspection.  They also addresses the often overlooked aspect of irresponsible landlords.</p></center>");
	}
	
	if (video == "insideeditioncampusfiresafety") {
		document.write("<center><p style='font-size: 19px; font-weight: bold;'>Inside Edition: Campus Fire Safety</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/efm8CN_bSJE&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/efm8CN_bSJE&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><p style='width: 650px;'>An in-depth special on the often overlooked dangers that plague the typical college household.  This video includes a controlled demonstration of a dorm room fire,  risk analysis of student houses (both male & female), as well as the tragic story of a fire at an off campus party that left three dead at Miami University in 2005.</p></center>");
	}
	
	    if (video == "candleswwuvideo") {
    document.write("<center><p style='font-size: 19px; font-weight: bold;'>WWU Fire Safety - Candles</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/UptOtnMAULc&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/UptOtnMAULc&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><p style='width: 650px;'>Candles can be a major fire hazard. They should not be left unattended, and placed on a solid, non-combustible surface, well away from curtains, open window and combustible decorations.</p></center>");
}

    if (video == "kitchenwwuvideo") {
    document.write("<center><p style='font-size: 19px; font-weight: bold;'>WWU Fire Safety - Kitchen and Cooking</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/fWHPRv3Nwnw&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/fWHPRv3Nwnw&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><p style='width: 650px;'>A fire erupts in the kitchen.</p></center>");
}

    if (video == "offcampuswwuvideo") {
    document.write("<center><p style='font-size: 19px; font-weight: bold;'>WWU Fire Safety - Off-Campus</p><object width='500' height='405'><param name='movie' value='http://www.youtube.com/v/Cd5kYEMywBA&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/Cd5kYEMywBA&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b&border=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='500' height='405'></embed></object><p style='width: 650px;'>Highlights the added responsibility of living off-campus.</p></center>");
}

	//Copy and paste any more right here!
		
}

// Stop hiding from old browsers -->