 function assembleHeader(){
        
     var defval = ' <img src="/images/img5.jpg" alt="#" /><h1>Bikram Hot Yoga Is Good For You!</h1><p>New Body. New Mind. New Life.</p> '; //default header HTML
     
     //url to match
     var url = [];
     url[0] = "about.html";
     url[1] = "yoga-etiquette.html";
     url[2] = "blog.html";
     url[3] = "contact.html";
     url[4] = "What-is-Hot-Yoga.html";
     url[5] = "first-time-yogi.html";
     url[6] = "schedules.html";
     url[7] = "tuition.html";
     url[8] = "testimonials.html";
     url[9] = "community.html";

     //header image source to use on url
     var headerImages = [];
     headerImages[0] = "/images/img5.jpg";
     headerImages[1] = "/images/header2.jpg";
     headerImages[2] = "/images/header3.jpg";
     headerImages[3] = "/images/header4.jpg";
     headerImages[4] = "/images/header5.jpg";
     headerImages[5] = "/images/header8.jpg";
     headerImages[6] = "/images/header4.jpg";
     headerImages[7] = "/images/header7.jpg";
     headerImages[8] = "/images/header6.jpg";
     headerImages[9] = "/images/header8.jpg";

    //header title to use on url
    var headerTitle = [];
    headerTitle[0] = "Bikram Hot Yoga Is Good For Teamwork!";
    headerTitle[1] = "Yoga Etiquette";
    headerTitle[2] = "Bikram Hot Yoga Houston Blog";
    headerTitle[3] = "Get In Touch With Us...";
    headerTitle[4] = "What is Bikram Hot Yoga?";
    headerTitle[5] = "First Timers";
    headerTitle[6] = "Class Schedules";
    headerTitle[7] = "Tuition";
    headerTitle[8] = "Testimonials";
    headerTitle[9] = "Bikram Hot Yoga Is Good For The World!";

    //header description text to use on url
    var headerDesc = [];
    headerDesc[0] = "None of us is as smart as all of us. ~ <em>Japanese proverb</em>";
    headerDesc[1] = "Please be considerate of your fellow students";
    headerDesc[2] = "Hot Writings About HOT Yoga...";
    headerDesc[3] = "We'd love to hear from you!";
    headerDesc[4] = "Interested in a class? Want to learn more?";
    headerDesc[5] = "What to expect from your first class";
    headerDesc[6] = "We've got something to fit into your day!";
    headerDesc[7] = "Individual class rates & lesson packages";
    headerDesc[8] = "Fellow Yogis & Yoginis share their experiences";
    headerDesc[9] = "You must be the change you wish to see in the world. ~ <em>Mahatma Gandhi</em>";

	//find the full URL of the page we're on
	var loc = window.location.href;
	//split out the URL into usable pieces
	var locarr = loc.split('/');
	//locate the last piece of the URL - the page we're actually on
	var loclen = locarr.length-1;
	//clean it up (removing query string)
	var localmost = locarr[loclen].split("?");
	//clean it up (removing hashes)
	var shortloc = localmost[0].replace(/[^a-zA-Z 0-9 \. \_ \-]+/g,'');

     
     var retval = "";

       for(var i=0; i < url.length; i++){
       
           if(url[i] == shortloc){
           
               retval = '<image src="'+headerImages[i]+'" alt="header image" /> <h1>'+headerTitle[i]+'</h1> <p>'+headerDesc[i]+'</p>';
           
           }
       
       }

       if(retval == ""){return defval;} else {return retval;} //if a return string has not been set, return the default string

   }
