// JavaScript Document
function show_heading1(){
	document.getElementById("heading1").style.visibility = "visible";
}

function hide_heading1(){
	document.getElementById("heading1").style.visibility = "hidden";
}


function show_heading2(){
	document.getElementById("heading2").style.visibility = "visible";
}

function hide_heading2(){
	document.getElementById("heading2").style.visibility = "hidden";
}

function show_heading3(){
	document.getElementById("heading3").style.visibility = "visible";
}

function hide_heading3(){
	document.getElementById("heading3").style.visibility = "hidden";
}

function show_heading4(){
	document.getElementById("heading4").style.visibility = "visible";
}

function hide_heading4(){
	document.getElementById("heading4").style.visibility = "hidden";
}


function show_heading5(){
	document.getElementById("heading5").style.visibility = "visible";
}

function hide_heading5(){
	document.getElementById("heading5").style.visibility = "hidden";
}

function show_heading6(){
	document.getElementById("heading6").style.visibility = "visible";
}

function hide_heading6(){
	document.getElementById("heading6").style.visibility = "hidden";
}

//Preparing Websites with Active Content for Announced Browser Changes
//Workaround for IE when you hover over a Flash movie you get the message "Click to Activate & Use This Control"
function left_nav()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="155" height="415">\n');
    document.write('<param name="movie" value="http://www.cornerstone4u.org/ssl/navigation/youth_left_nav.swf">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('<embed src="http://www.cornerstone4u.org/ssl/navigation/youth_left_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="155" height="415"></embed>\n');
	document.write('</object>\n');
}

//Preparing Websites with Active Content for Announced Browser Changes
//Workaround for IE when you hover over a Flash movie you get the message "Click to Activate & Use This Control"
//Code to display a Flash movie on the home page of the youth site.
function youth_home_slide_show()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="190" height="142">\n');
    document.write('<param name="movie" value="../ssl/resources/youth_home_page/youth_home_slide_show.swf">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('<embed src="../ssl/resources/youth_home_page/youth_home_slide_show.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="190" height="142"></embed>\n');
	document.write('</object>\n');
}