<!--	
	function hideLoadingMessage(){
         if(document.getElementById('spnLoading'))
		 	document.getElementById('spnLoading').style.display =
"none";
    }
	
	function getQueryVariable(variable) { 
		var query = window.location.search.substring(1); 
		var vars = query.split("&"); 
		for (var i=0;i<vars.length;i++) { 
			var pair = vars[i].split("="); 
			if (pair[0] == variable) { 
				return pair[1]; 
			} 
		} 
		//alert('Query Variable ' + variable + ' not found'); 
		return false;
	} 
	
	function checkemail(me){
		var str=me.value;
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
			return true;
		else{
			alert("Please input a valid email address!");
			me.focus();
			return false;
		}
	}
	
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	
	function expandCollapse(imgName, id) {
           if (foundTxt(document[imgName].src,"collapse"))
                 changeImg(imgName,"images/icon_expand.gif");
           else
                 changeImg(imgName,"images/icon_collapse.gif");

           showHide(id);
           return;
      }

/******************************************************************************
      Use:  hideDiv('id_sc_group');
           showDiv('id_sc_group');
           // to toggle expand or collapse
           showHide('id_sc_group';

           <a href="javascript:void(0);"
                 onclick="expandCollapse('img_extraInfo','id_extraInfo');"
style="text-decoration:none;"><img
                 name="img_extraInfo" src="./images/icon_expand.gif"
border="0" /> Extra Info</a>:
           <div id="id_extraInfo">Extra Info to hide or show here</div>
******************************************************************************/
	  
	  function showHide(id){
           if (document.getElementById){
                 obj = document.getElementById(id);
                 if (obj.style.display == "none"){
                       showDiv(id);
                 } else {
                       hideDiv(id);
                 }
           } else {
                 if (document.layers) { // Netscape 4
                       if (eval('document.'+ id+'.visibility = "hidden"')){
                             showDiv(id);
                       } else {
                             hideDiv(id);
                       }
                 } else { // IE 4
                       if (eval('document.all.'+ id+'.style.visibility ="hidden"')) {
                             showDiv(id);
                       } else {
                             hideDiv(id);
                       }
                 }
           }

     }

     function hideDiv(id) {
           if (document.getElementById) { // DOM3 = IE5, NS6
                 document.getElementById(id).style.display = 'none';
           }
           else {
                 if (document.layers) { // Netscape 4
                       eval('document.'+ id+'.visibility = "hidden"');
                 }
                 else { // IE 4
                       eval('document.all.'+ id+'.style.visibility = "hidden"');
                 }
           }
     }

     function showDiv(id) {
           if (document.getElementById) { // DOM3 = IE5, NS6
                 document.getElementById(id).style.display = 'block';
           } else {
                 if (document.layers) { // Netscape 4
                       eval('document.'+ id+'.visibility = "visible"');
                 } else { // IE 4
                       eval('document.all.'+ id+'.style.visibility ="visible"');
                 }
           }
     }
	 
	function checkrequired(which)
	 {
		//alert("In checkrequired");
		var num = 0;
		var message = "";
		var pass=true;

		if (document.images)
		 {
			for (i=0;i<which.length;i++)
			 {
				var tempobj=which.elements[i];

				 var name = tempobj.name;
				 var longname = '';
				 if (name =='CUname')
					longname = 'Name';
				 else if (name =='CUemail')
					longname = 'Email Address';
				 else if (name =='CUphone')
					longname = 'Phone Number';
				 else if (name =='CUcontact')
					longname = 'Wish to Contact';
				 else if (name =='CUdescription')
					longname = 'Message';
				 else if (name =='CUministries')
					longname = 'Ministries';
				 else if (name =='CUdaterequested')
					longname = 'Date of Service/Event Requested';
				 else if (name =='CUservice')
					longname = 'Description of Service/Event';
				 else if (name =='CUformat')
					longname = 'Media Format';

				if (tempobj.className=='formReq')
 				{
					 // Check each required field for no value and
					 // decide whether or not to submit the form.
					 if (((tempobj.type.toLowerCase()=='text'||tempobj.type.toLowerCase()=='textarea')&&
						tempobj.value=='')||(tempobj.type.toString().charAt(0).toLowerCase()=='s' && tempobj.selectedIndex==0))
					 {
						pass=false;
						if ((longname != "") || (longname == undefined)) 
							message="Fill in " + longname + ".";
						else
							message="Fill in " + name + ".";
						break;
					 } else if ((name=="questiontype") && (tempobj.selectedIndex==tempobj.options.length-1)) {
						if (which.other_contact.value=="") {
							pass=false;
							name = "other_contact";
							longname = "Wants to Contact: 'Other'";
							message="Since you selected "+longname+", please fill in the 'Other' field.";
							break;
						}
					 }
				 }

			 }
		 }
		if (!pass)
		 {
			alert(message);
			which.elements[name].focus();
			return false;
		 }
		else
		 {	
		 	return true;
		 }
	   } //End checkrequired
	   


		var UniqueID = 314; // Make each link open in a new window
		var newWinOffset = 100; // Position of first pop-up
		
		function PlayerOpen(soundfiledesc,soundfilepath) {
			PlayWin = window.open('',UniqueID,'width=320,height=190,top=' + newWinOffset +',left=' + newWinOffset +',resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
			PlayWin.focus();
			
			var winContent = "<HTML><HEAD><TITLE>" + soundfiledesc + "</TITLE></HEAD><BODY bgcolor='#D6D6D6'>";
			winContent += "<B style='font-size:18px;font-family:Verdana,sans-serif;line-height:1.5'>" + soundfiledesc + "</B><br />";
			
			winContent += showPlayer(soundfilepath);
			
			winContent += "<p>&nbsp;</p>";
			//winContent += "<p style='font-size:12px;font-family:Verdana,sans-serif;text-align:center'><a href='" + soundfilepath +"'>Download this file</a> <SPAN style='font-size:10px'>(right-click or Option-click)</SPAN></p>";
			winContent += "<FORM><DIV align='left'><INPUT type='button' value='Close this window' onclick='javascript:window.close();'></DIV></FORM>";
			winContent += "</BODY></HTML>";
			
			PlayWin.document.write(winContent);
			PlayWin.document.close(); // "Finalizes" new window
			UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower
		}
		function showPlayer(soundfilepath,autoPlay) {
			
			var winContent = "<OBJECT width='300' height='42' id=MediaPlayer codeBase='HTTP://ACTIVEX.MICROSOFT.COM/ACTIVEX/CONTROLS/MPLAYER/EN/NSMP2INF.CAB#VERSION=6,4,7,1112' type='application/x-oleobject' standby='Loading Windows Media Player components...' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>";
			winContent += "<param name='SRC' value='" + soundfilepath + "'>";
			winContent += "<param name='AUTOPLAY' VALUE='";
			if (autoPlay!=0)
				winContent += "true";
			else
				winContent += "false";
			winContent += "'>";
			winContent += "<param name='CONTROLLER' VALUE='true'>";
			winContent += "<param name='BGCOLOR' VALUE='#FF9900'>";
			winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='";
			if (autoPlay!=0)
				winContent += "true";
			else
				winContent += "false";
			winContent += "' LOOP='false' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#FF9900'></EMBED>";
			winContent += "</OBJECT>";
			
			return winContent;
		}

	function noRightClick(){
		if(event.button > 1){
			document.oncontextmenu=new Function ("return false") ;
			//if NS6
			if (window.sidebar){
				document.oncontextmenu=disableselect;
			}
		}
	}
/****************************************
//START DISABLE RIGHT CLICK ON WHOLE PAGE			
		//Disable right mouse click Script
		//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
		//For full source code, visit http://www.dynamicdrive.com
		
		var message="Function Disabled!";
		
		///////////////////////////////////
		function clickIE4(){
			if (event.button==2){
				alert(message);
				return false;
			}
		}
		
		function clickNS4(e){
			if (document.layers||document.getElementById&&!document.all){
				if (e.which==2||e.which==3){
					alert(message);
					return false;
				}
			}
		}
		
		if (document.layers){
			document.captureEvents(Event.MOUSEDOWN);
			document.onmousedown=clickNS4;
		}
		else if (document.all&&!document.getElementById){
			document.onmousedown=clickIE4;
		}
		
		document.oncontextmenu=new Function("alert(message);return false")
		
//END DISABLE RIGHT CLICK ON WHOLE PAGE			
********************************/	  

/****************************************
//START DISABLE RIGHT CLICK ON IMAGES			
		//
		//Disable right click script II (on images)- By Dynamicdrive.com
		//For full source, Terms of service, and 100s DTHML scripts
		//Visit http://www.dynamicdrive.com
		//
		var clickmessage="Right click disabled on images!"
		
		function disableclick(e) {
			if (document.all) {
				if (event.button==2||event.button==3) {
					if (event.srcElement.tagName=="IMG"){
						alert(clickmessage);
						return false;
					}
				}
			}
			else if (document.layers) {
				if (e.which == 3) {
					alert(clickmessage);
					return false;
				}
			}
			else if (document.getElementById){
				if (e.which==3&&e.target.tagName=="IMG"){
					alert(clickmessage)
					return false
				}
			}
		}
		
		function associateimages(){
			for(i=0;i<document.images.length;i++)
				document.images[i].onmousedown=disableclick;
		}
		
		if (document.all)
			document.onmousedown=disableclick
		else if (document.getElementById)
			document.onmouseup=disableclick
		else if (document.layers)
			associateimages()
//END DISABLE RIGHT CLICK ON IMAGES			
********************************/	  

 //-->