// TODO: Need to modify the bit.ly URLS so they point to the correct URLs for each page.
// Do not use URLs that have hashtags.

/**
 * indexOf
 *
 * indexOf is a recent addition to the ECMA-262 standard; as such it may not be present
 * in all browsers. You can work around this by inserting the following code at the beginning
 * of your scripts, allowing use of indexOf in implementations which do not natively support it.
 * This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object, TypeError,
 * Number, Math.floor, Math.abs, and Math.max have their original value. 
 *
 * @link https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
 */
if (!Array.prototype.indexOf) {
	Array.prototype.indexOf = function(searchElement /*, fromIndex */)
  {
    "use strict";

    if (this === void 0 || this === null)
      throw new TypeError();

    var t = Object(this);
    var len = t.length >>> 0;
    if (len === 0)
      return -1;

    var n = 0;
    if (arguments.length > 0)
    {
      n = Number(arguments[1]);
      if (n !== n) // shortcut for verifying if it's NaN
        n = 0;
      else if (n !== 0 && n !== (1 / 0) && n !== -(1 / 0))
        n = (n > 0 || -1) * Math.floor(Math.abs(n));
    }

    if (n >= len)
      return -1;

    var k = n >= 0
          ? n
          : Math.max(len - Math.abs(n), 0);

    for (; k < len; k++)
    {
      if (k in t && t[k] === searchElement)
        return k;
    }
		return -1;
	};
}

// Easing equation, borrowed from jQuery easing plugin
// http://gsgd.co.uk/sandbox/jquery/easing/
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(document).ready(function($) {

	// clicks for index page modules
	$('#whatispertussis-link').click(function()	{
		window.location.href="what-is-pertussis.cfm";	
	});
	$('#whatispertussis-link').hover(function () {
		$(this).css("cursor","hand")}, function()	{
		$(this).css("cursor","pointer")
	});
	
	$('#whygetvaccines-link').click(function()	{
		window.location.href="why-get-vaccinated.cfm";
	});
	$('#whygetvaccines-link').hover(function () {
		$(this).css("cursor","hand")}, function()	{
		$(this).css("cursor","pointer")
	});


	/*  CSS modifications, based on browser. */
	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
		var height = '160px';
	} else if ((jQuery.browser.msie) && (jQuery.browser.version == '7.0')) {
		var height = '155px';
	} else if ((jQuery.browser.msie) && (jQuery.browser.version == '8.0')) {
		var height = '155px';
	} else {
		var height = '159px';
	}
    		
	$('#follow-the-infant-immunization-schedule').animate({
		height: height
	}, 300);

	var url_directory = $.url().attr('directory');
	
	$('#fb-link').attr('href',"http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.soundsofpertussis.com&t='Pertussis (whooping cough) is a highly contagious disease, potentially fatal to any baby younger than 12 months of age. Visit this site to learn more and watch an important video.'");
	
/* navigation bar - url code block  */			
	if ($(location).attr('href').indexOf('what-is-pertussis.cfm') != -1) {
		History.pushState(null, "What is Pertussis? "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"what-is-pertussis.cfm");
		// url - what-is-pertussis.cfm
		/* Set meta */
		$('meta[name="description"]').attr('content', 'Find out what pertussis (whooping cough) is and why it\'s so dangerous for babies. Research pertussis information, vaccination, view videos and testimonials.'); 
		$('meta[property="og:description"]').attr('content', 'Pertussis (whooping cough) is a highly contagious disease, potentially fatal to any baby younger than 12 months of age. Visit this site to learn more and watch an important video. '); 
		$('meta[property="og:image"]').attr('content', 'http://www.soundsofpertussis.com/img/section-1/a_mothers_story_about_pertussis-trans.png'); 
		$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, pertussis in infants, pertussis in babies, pertussis symptom, whooping cough symptom, pertussis information, whooping cough information'); 
		$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more and watch videos here: http://bit.ly/p1FW5h');
	
		/* video - transcrpits */
		//$('div#section-1-video iframe').attr('src','section-1-video.html');
		$('div.transcript-content').html('<h2>A mother\'s personal story about pertussis</h2><h3>VIDEO TRANSCRIPT</h3><p>"Gavin started coughing, just occasionally, one cough here, one cough there. A few nights into that we got a little bit more concerned than we had been before, and we decided to take him into the Emergency Room just to be checked. But when they decided to admit him, I was... I was very surprised. It was just a few days after that, that he still was not improving, and they transferred him down to the Pediatric Intensive Care Unit, or the PICU. They had gotten a positive test result which... which indicated pertussis.</p><p>And from there it was, um, a very quick decline. He was very ill, and it was um... it was fast. And it was terrible. We watched him die from pertussis. We um, sang to him, and we spent as much time right at his side as we possibly could. And my husband put his hand on his chest, and was just feeling for those last beats of his heart. And within moments, he was gone. We um, we left the hospital with empty arms. And um, it was a really terrible thing."</p>');
		
		var next = 'next';
		var start = 1;

		$('img.start').hide()
		$('img.previous').show();
		$('img.restart').hide();
		$('img.continue').show()
		$('#navigation').hide('slow', function() {
			$('#navigation-section-1').addClass('active');
			$('#navigation-section-0, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
		});
		
		$('#navigation').show('slow');
		//doubleclick tracking
		var swad = Math.random() + "";
		var b = swad * 10000000000000;		
		$('body').append('<iframe src="http://fls.doubleclick.net/activityi;src=3012733;type=2011sop;cat=whati091;ord=1;num=' + b + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');	
		//doubleclick tracking		

	} else if ($(location).attr('href').indexOf('why-get-vaccinated.cfm') != -1) {
		History.pushState(null, "Why Get a Pertussis, Whooping Cough, Tdap Vaccination "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"why-get-vaccinated.cfm");
		//landing on url above why-get-vaccinated.cfm
		/* set meta */
		$('meta[name="description"]').attr('content', 'Find information regarding the importance of pertussis vaccination (whooping cough vaccination). Stop the spread of pertussis by getting a Tdap vaccine.'); 
		$('meta[property="og:description"]').attr('content', 'Pertussis (whooping cough) is a highly contagious disease, potentially fatal to any baby younger than 12 months of age. Visit this site to learn more and watch an important video. '); 
		$('meta[property="og:image"]').attr('content', 'http://www.soundsofpertussis.com/img/section-2/a_family_protects_their_newborn_from_pertussis-trans.png'); 
		$('meta[name="keywords"]').attr('content', 'pertussis vaccination, whooping cough vaccination, pertussis vaccine, whooping cough vaccine, tdap, tdap vaccination, tdap vaccine'); 
		$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/pPC9oy');
		/* video + transcript */
		//$('div#section-2-video iframe').attr('src','section-2-video.html');
		$('div.transcript-content').html('<h2>A family helps protect their newborn from pertussis </h2><h3>VIDEO TRANSCRIPT</h3><p>Suzy: I found out that infants like Charlie, may not be fully protected against pertussis, also known as whooping cough, until they have had at least 3 doses of the vaccine.</p><p>I want to get close and not think twice about giving her pertussis.  So I asked my doctor about the adult pertussis vaccine. And I got vaccinated right away.</p><p>Brian: I did too. So we also asked our closest friends and relatives to get the adult pertussis booster.</p><p>Suzy: It could save your baby\'s life.</p>');

		var next = 'next';
		var start = 2;
		$('img.start').hide()
		$('img.previous').show();
		$('img.restart').hide();
		$('img.continue').show()
		$('#navigation').hide('slow', function() {
			$('#navigation-section-2').addClass('active');
			$('#navigation-section-0, #navigation-section-1, #navigation-section-3, #navigation-section-4').removeClass('active');
		});
		
		$('#navigation').show('slow');
		//doubleclick tracking
		var swad = Math.random() + "";
		var b = swad * 10000000000000;		
		$('body').append('<iframe src="http://fls.doubleclick.net/activityi;src=3012733;type=2011sop;cat=whyge515;ord=1;num=' + b + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');	
		//doubleclick tracking		
	} else if ($(location).attr('href').indexOf('talk-to-your-doctor-today.cfm') != -1) {
		History.pushState(null, "Talk to Your Doctor Today About Preventing Pertussis "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"talk-to-your-doctor-today.cfm");
		// url - talk-to-your-doctor-today.cfm
		/* set meta */
		$('meta[name="description"]').attr('content', 'Pertussis is preventable. Vaccinate your family today against pertussis. Talk to your doctor today.'); 
		$('meta[property="og:description"]').attr('content', 'Pertussis (whooping cough) is a highly contagious disease, potentially fatal to any baby younger than 12 months of age. Visit this site to learn more and watch an important video.'); 
		$('meta[property="og:image"]').attr('content', 'http://www.soundsofpertussis.com/img/section-3/a-doctors-perspective-on-pertussis-trans.png'); 
		$('meta[name="keywords"]').attr('content', 'pertussis vaccine, whooping cough vaccine, vaccination, symptoms, information, pertussis booster, booster shot pertussis, whooping cough booster, whooping cough booster shot, tdap booster, tdap booster shot'); 
		$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/pMsb7e');
		/* set video - transcript */
		//$('div#section-3-video iframe').attr('src','section-3-video.html');
		$('div.transcript-content').html('<h2>A doctor\'s perspective on pertussis</h2><h3>VIDEO TRANSCRIPT</h3><p>"In the past 15 years, I\'ve witnessed more and more infants admitted to the ER with severe pertussis.</p><p>As a matter of fact, even when you get your baby vaccinated against pertussis, he or she may not be fully protected until they\'ve had at least 3 doses. The problem is that parents and other caregivers of infants, like you, are the ones who most often spread pertussis to babies. In adults, this disease is often mild and mistaken as a common cold or bronchitis. So you could easily pass it on to your baby and not even know you have it.</p><p>So call your doctor now. Ask about the adult pertussis vaccine and make an appointment to get your booster today. The CDC and over 20 medical societies recommend it."</p>');

		var next = 'next';
		var start = 3;
		$('img.start').hide()
		$('img.previous').show();
		$('img.restart').hide();
		$('img.continue').show()

		$('#navigation').hide('slow', function() {
			$('#navigation-section-3').addClass('active');
			$('#navigation-section-0, #navigation-section-1, #navigation-section-2, #navigation-section-4').removeClass('active');
		});
		
		$('#navigation').show('slow');
		//doubleclick tracking
		var swad = Math.random() + "";
		var b = swad * 10000000000000;		
		$('body').append('<iframe src="http://fls.doubleclick.net/activityi;src=3012733;type=2011sop;cat=talkt102;ord=1;num=' + b + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');	
		//doubleclick tracking
				
	} else if ($(location).attr('href').indexOf('babies-need-protection-too.cfm') != -1) {
		History.pushState(null, "Protect Your Family from Pertussis "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"babies-need-protection-too.cfm");
		// url -  babies-need-protection-too.cfm
		/* set meta */
		$('meta[name="description"]').attr('content', 'Protect your baby from pertussis. Make sure they complete their series of DTaP vaccinations. And get your own Tdap vaccine.'); 
		$('meta[property="og:description"]').attr('content', 'Pertussis (whooping cough) is a highly contagious disease, potentially fatal to any baby younger than 12 months of age.  Visit this site to learn more and watch important videos.'); 
		$('meta[property="og:image"]').attr('content', 'http://www.soundsofpertussis.com/img/section-4/babies_need_to_be_protected-trans.png'); 
		$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, dtap'); 
		$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/pmZNzz');
		$('div#graphic-reference img#sbhdr').css({display:'block'});
		var next = 'next';
		var start = 4;

		$('img.start').hide()
		$('img.previous').show();
		$('img.restart').show();
		$('img.continue').hide()
		$('#navigation').hide('slow', function() {
			$('#navigation-section-4').addClass('active');
			$('#navigation-section-0, #navigation-section-1, #navigation-section-2, #navigation-section-3').removeClass('active');
		});
		//doubleclick tracking
		var swad = Math.random() + "";
		var b = swad * 10000000000000;		
		$('body').append('<iframe src="http://fls.doubleclick.net/activityi;src=3012733;type=2011sop;cat=babie807;ord=1;num=' + b + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');	
		//doubleclick tracking
		
		$('#navigation').show('slow');
		
	} else if ($(location).attr('href').indexOf('press.cfm') != -1) {
		$('img.restart').hide();
		sopSetMetaData('press', true);
	} else if ($(location).attr('href').indexOf('legal-notices.cfm') != -1) {
		$('img.restart').hide();
		sopSetMetaData('legal-notices', true);
	} else if ($(location).attr('href').indexOf('privacy-policy.cfm') != -1) {
		$('img.restart').hide();
		sopSetMetaData('privacy-policy', true);
	} else if ($(location).attr('href').indexOf('references.cfm') != -1) {
		$('img.restart').hide();
		sopSetMetaData('references', true);
	} else {
		History.pushState(null, "Help Silence the Sounds of Pertussis "+$.unescape('&mdash;')+" Pertussis (Whooping Cough), Vaccine "+$.unescape('&amp;')+" Symptom Information", url_directory);
		//index.cfm - content
		/* set meta */
		$('meta[name="description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
		$('meta[property="og:description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
		$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, jeff gordon'); 
		$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/8S40hU');
		$('div#section-0b-video').html('<iframe src="section-0b-video.html" id="video0b" name="video0b" frameborder="0" scrolling="no"></iframe>');
		//doubleclick tracking
		var swad = Math.random() + "";
		var b = swad * 10000000000000;		
		$('body').append('<iframe src="http://fls.doubleclick.net/activityi;src=3012733;type=2011sop;cat=sopho091;ord=1;num=' + b + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');	
		//doubleclick tracking	

		/* video + transcripts */
		$('div.transcript-content').html('<h2>Jeff Gordon and wife, Ingrid fight to raise awareness</h2><h3>VIDEO TRANSCRIPT</h3><p>Jeff: I\'m Jeff Gordon, and this is my wife, Ingrid.</p><p>Ingrid: Like all parents, we want to do the very best for our children.</p><p>Jeff: That means getting ourselves and others better informed about diseases like pertussis, or whooping cough.</p><p>Ingrid: Here on <a href="http://www.soundsofpertussis.com">SoundsOfPertussis.com</a>, you can learn about the risk pertussis poses to infants and what you can do to help protect the babies in your life.</p><p>Jeff: So check out these videos. They contain important facts about pertussis with information on what you can do to help protect your baby.</p>');

		var next = 'start';
		var start = 0;

		$('img.previous').hide();
		$('img.restart').hide();
		$('img.continue').hide();
		setTimeout("$('img.start').show();",2000);
		$('#navigation-section-1, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
		$('#navigation').hide();

	}

/* navigation bar - url code block  */

	/*  Initial load of sections have an opacity of "0.5".  */
	//$('#sections ul li').css({ opacity: 0.5 });
	$('#sections ul li').animate({ 
		opacity: "0.5"
	});

/*
Uncomment to use touchSwipe for iPad.
//Assign handlers to the simple direction handlers.
			var swipeOptions=
			{
				swipeStatus:swipeStatus,
				threshold:200
			}
			
		
				//Enable swiping...
				$('#main').swipe( swipeOptions );

		
			//Swipe handlers.
			//The only arg passed is the original touch event object			
				
				
			function swipeStatus(event, phase, direction, distance)
			{
				var str = "Swipe Phase : " + phase + "<br/>";
				str += "Direction from inital touch: " + direction + "<br/>";
				str += "Distance from inital touch:: " + distance + "<br/>";
				
				if (distance<200)
					str +="<br/>Not yet reached threshold. <br/>Swipe will be canceled if you release at this point."
				else
					str +="<br/>Threshold reached<br/>Swipe handler will be triggered if you release at this point."
				
				if (phase=="cancel")
					str +="<br/>Handler not triggered."
				if (phase=="end")
					str +="<br/>Handler was triggered."	
				
				//$('#main').html(str);
			}
			*/
	
	/**
	 * Most jQuery.serialScroll's settings, actually belong to jQuery.ScrollTo, check
	 * its demo for an example of each option. You can use every single setting
	 * of jQuery.ScrollTo, in the settings hash you send to jQuery.serialScroll.
	 *
	 * The plugin binds 6 events to the container to allow external manipulation ("prev",
	 * "next", 'goto", "start", "stop" and "notify"). You use them like this:
	 * $(your_container).trigger('next'), $(your_container).trigger('goto', [5]) (0-based index).
	 * If for some odd reason, the element already has any of these events bound, trigger
	 * it with the namespace.
	 *
	 * Important: this call to the plug-in specifies all the settings (plus some of jQuery.ScrollTo)
	 * This is done so you can see them. You don't need to specify the commented ones.
	 * A "target" is specified, that means "#main" is the context for "target", "prev", "next" and "navigation".
	 *
	 * @link http://flesler.demos.com/jquery/scrollTo/
	 */
	$('#main').serialScroll({
		axis: 'xy',// The default is 'y' scroll on both ways
		constant: true, // constant speed
		cycle: true, // Cycle endlessly ( constant velocity, true is the default )
		duration: 500,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		// easing: 'easeOutBounce', // Takes an ease method.
		event: 'click',// On which event to react (click is the default, you probably won't need to specify it)
		force: true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
		// interval: 1000, // It's the number of milliseconds to automatically go to the next
		items: 'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
		jump: false, // If true, items become clickable (or w/e 'event' is, and when activated, the pane scrolls to them)
		lazy: false, // (default) if true, the plugin looks for the items on each event(allows AJAX or JS content, or reordering)
		lock: true, // Ignore events if already animating (true by default)	
		next: 'img.next', // Selector to the 'next' button (absolute too)
		prev: 'img.previous', // Selector to the 'previous' button (absolute!, meaning it's relative to the document)
		offset: -43,
		queue: false, // We scroll on both axes, scroll both at the same time.
		start: start, // On which element (index) to begin ( 0 is the default, redundant in this case )	
		step: 1, // How many items to scroll each time ( 1 is the default, no need to specify )
		stop: false, // Each click will stop any previous animations of the target. (false by default)
		target: '#sections',	
		onBefore: function (e, elem, $pane, $items, pos) {
			/**
			 * 'this' is the triggered element 
			 * e is the event object
			 * elem is the element we'll be scrolling to
			 * $pane is the element being scrolled
			 * $items is the items collection at this moment
			 * pos is the position of elem in the collection
			 * 
			 * If it returns FALSE, the event will be ignored.
			 * Those arguments with a $ are jqueryfied; elem isn't.
			 */
			e.preventDefault();

			if (this.blur) {
				this.blur();
			}
			
			var start = pos;
			var url_directory = $.url().attr('directory');
			
			/**
			 * Refer to bug "Problem with 'suid' and Safari 5" at https://github.com/balupton/history.js/issues/78.
			 */
			if (start == 1) {
				History.pushState(null, "What is Pertussis? "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"what-is-pertussis.cfm");				
				/* Set meta */
				$('meta[name="description"]').attr('content', 'Find out what pertussis (whooping cough) is and why it\'s so dangerous for babies. Research pertussis information, vaccination, view videos and testimonials.');
				$('meta[property="og:description"]').attr('content', 'Find out what pertussis (whooping cough) is and why it\'s so dangerous for babies. Research pertussis information, vaccination, view videos and testimonials.'); 
				$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, pertussis in infants, pertussis in babies, pertussis symptom, whooping cough symptom, pertussis information, whooping cough information'); 
				$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more and watch videos here: http://bit.ly/p1FW5h');
		
   				$('img.previous').show();
				
				
			} else if (start == 2) {
				History.pushState(null, "Why Get a Pertussis, Whooping Cough, Tdap Vaccination "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"why-get-vaccinated.cfm");		
				/* Set meta */
				$('meta[name="description"]').attr('content', 'Find information regarding the importance of pertussis vaccination (whooping cough vaccination). Stop the spread of pertussis by getting a Tdap vaccine.');
				$('meta[property="og:description"]').attr('content', 'Find information regarding the importance of pertussis vaccination (whooping cough vaccination). Stop the spread of pertussis by getting a Tdap vaccine.'); 
				$('meta[name="keywords"]').attr('content', 'pertussis vaccination, whooping cough vaccination, pertussis vaccine, whooping cough vaccine, tdap, tdap vaccination, tdap vaccine');
				$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/pPC9oy');
				
   				$('img.previous').show();
			} else if (start == 3) {
				History.pushState(null, "Talk to Your Doctor Today About Preventing Pertussis "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"talk-to-your-doctor-today.cfm");		
				/* Set meta */
				$('meta[name="description"]').attr('content', 'Pertussis is preventable. Vaccinate your family today against pertussis. Talk to your doctor today.');
				$('meta[property="og:description"]').attr('content', 'Pertussis is preventable. Vaccinate your family today against pertussis. Talk to your doctor today.'); 
				$('meta[name="keywords"]').attr('content', 'pertussis vaccine, whooping cough vaccine, vaccination, symptoms, information, pertussis booster, booster shot pertussis, whooping cough booster, whooping cough booster shot, tdap booster, tdap booster shot'); 
				$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/pMsb7e');
				
    				$('img.previous').show();
			} else if (start == 4) {
				History.pushState(null, "Protect Your Family From Pertussis "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"babies-need-protection-too.cfm");		
				/* Set meta */
				$('meta[name="description"]').attr('content', 'Protect your baby from pertussis. Make sure they complete their series of DTaP vaccinations. And get your own Tdap vaccine.');
				$('meta[property="og:description"]').attr('content', 'Protect your baby from pertussis. Make sure they complete their series of DTaP vaccinations. And get your own Tdap vaccine.'); 
				$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, dtap'); 
				$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/pmZNzz');	
				
   				$('img.previous').show();	
			} else {				
				History.pushState(null, "Help Silence the Sounds of Pertussis "+$.unescape('&mdash;')+" Pertussis (Whooping Cough), Vaccine "+$.unescape('&amp;')+" Symptom Information", url_directory);
				/* Set meta */
				$('meta[name="description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
				$('meta[property="og:description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
				$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, jeff gordon'); 
				$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/8S40hU');
		
				$('img.previous').hide();
				$('div#ienav-bkg').hide();
				$('#navigation').hide();
				
			}

			if (start == 0) {
			/* this block controls the slide navigation  */				
				if ($(location).attr('href').indexOf('index.cfm') != -1) {
					$('#navigation').hide('slow', function() {
						$('#navigation-section-1, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
						$('#navigation-section-0').addClass('active');
					});
				} else if (($('#section-0a').length == 0) && ($('#section-0b').length == 1)) {
					$('#navigation').hide('slow', function() {
						$('#navigation-section-1, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
						$('#navigation-section-0').addClass('active');
					});
				} else {
					$('#navigation').show('slow', function() {
						$('#navigation-section-1, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
						$('#navigation-section-0').addClass('active');
					});			
				}
				$('#navigation').hide('slow', function() {
					$('#navigation-section-1, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
					$('#navigation-section-0').addClass('active');
				});
				$('img.restart').hide();
				$('img.continue').hide();
				setTimeout("$('img.start').show();",2000);
      		} else {
			/* navigation active states */	
				$('#navigation').hide();
      			if (start == 1) {
					/* navigation-section-1 */				
					$('#navigation-section-1').addClass('active');
					$('#navigation-section-0, #navigation-section-2, #navigation-section-3, #navigation-section-4').removeClass('active');
				} else if (start == 2) {
					/* navigation-section-2 */					
					$('#navigation-section-2').addClass('active');
					$('#navigation-section-0, #navigation-section-1, #navigation-section-3, #navigation-section-4').removeClass('active');
				} else if (start == 3) {
					/* navigation-section-3 */					
					$('#navigation-section-3').addClass('active');
					$('#navigation-section-0, #navigation-section-1, #navigation-section-2, #navigation-section-4').removeClass('active');
					$('#navigation').show();
		
				} else if (start == 4) {
					/* navigation-section-4  */
					$('#navigation-section-4').addClass('active');					
					$('#navigation-section-0, #navigation-section-1, #navigation-section-2, #navigation-section-3').removeClass('active');
					$('#navigation').show();
				}
				
      			if (start == 4) {
  					$('img.start').hide();
  					$('img.continue').hide();	
					$('img.restart').show();

  				} else {
					$('img.start').hide();
					$('img.restart').hide();
					$('img.continue').show();
					$('#navigation').show();
							
  				}
            }
		},
		onAfter: function (elem) {
			$('#sections ul li').fadeTo("slow", 0.5, "linear", function() {
            	$(elem).fadeTo("fast", 1.0);
          	});	
			
			//Tracking page loads
			_gaq.push(['_trackPageview']);
		}
	});

	function sopSetMetaData(page, navigation)
	{

		if (page == 'press') {
			History.pushState(null, "Press "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"press.cfm");
			/* meta */
			$('meta[name="description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[property="og:description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, jeff gordon'); 
			$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/8S40hU');
		
			var next = 'start';
			var start = 0;
			//alert('press page');

			if (navigation === true) {
				$('#navigation').hide('slow', function() {
					$('#navigation-section-1').removeClass('active');
					$('#navigation-section-2').removeClass('active');
					$('#navigation-section-3').removeClass('active');
					$('#navigation-section-4').removeClass('active');
				});

				$('img.previous').hide();
				$('img.continue').hide();		
  			}
		} else if (page == 'legal-notices') {
			History.pushState(null, "Legal Notices "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"legal-notices.cfm");
			/* meta tags  */
			$('meta[name="description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[property="og:description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, jeff gordon'); 
			$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/8S40hU');
		
			var next = 'start';
			var start = 0;
			//alert('test - legal?');
			if (navigation === true) {
				$('#navigation').hide('slow', function() {
					$('#navigation-section-1').removeClass('active');
					$('#navigation-section-2').removeClass('active');
					$('#navigation-section-3').removeClass('active');
					$('#navigation-section-4').removeClass('active');
				});

				$('img.previous').hide();
				$('img.continue').hide();		
				
  			}
		} else if (page == 'privacy-policy') {
			History.pushState(null, "Privacy Policy "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"privacy-policy.cfm");
			/* meta tags  */
			$('meta[name="description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[property="og:description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, jeff gordon'); 
			$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/8S40hU');
		
			var next = 'start';
			var start = 0;
			//alert('privacy - legal?');
			if (navigation === true) {
				$('#navigation').hide('slow', function() {
					$('#navigation-section-1').removeClass('active');
					$('#navigation-section-2').removeClass('active');
					$('#navigation-section-3').removeClass('active');
					$('#navigation-section-4').removeClass('active');
				});

				$('img.previous').hide();
				$('img.continue').hide();		
				
  			}
		} else if (page == 'references') {
			History.pushState(null, "References "+$.unescape('&mdash;')+" Help Silence the Sounds of Pertussis", url_directory+"references.cfm");
			/* set meta */
			$('meta[name="description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[property="og:description"]').attr('content', 'Find out info on pertussis (whooping cough) vaccinations from Sanofi Pasteur. The Sounds of Pertussis website features symptoms info, stats and video testimonials.'); 
			$('meta[name="keywords"]').attr('content', 'pertussis, whooping cough, vaccination, symptoms, information, vaccine, sanofi pasteur, jeff gordon'); 
			$('#share_twitter').attr('href', 'http://twitter.com/intent/tweet?text=Pertussis is a highly contagious disease, potentially fatal to any baby under 12 months. Learn more here: http://bit.ly/8S40hU');
		
			var next = 'start';
			var start = 0;

			if (navigation === true) {
				$('#navigation').hide('slow', function() {
					$('#navigation-section-1').removeClass('active');
					$('#navigation-section-2').removeClass('active');
					$('#navigation-section-3').removeClass('active');
					$('#navigation-section-4').removeClass('active');
				});

				$('img.previous').hide();
				$('img.continue').hide();		
				
  			}
		}
	
	}

/* Expand - content  */
	$('#section-1 .l-col-r-third a.expand').click(function() {
		if (($('#share-your-story').is(':visible')) && ($('#a-rising-threat-of-pertussis').is(':visible'))) {
			$('#share-your-story').slideToggle('slow');
			$('#a-rising-threat-of-pertussis').slideToggle('slow');
		
			$('#families-spread-it').animate({
    			width: '569px'
    		}, 300);
    		
    		$('#families-spread-it div.expanded_content').html('<p>Babies can get pertussis from those who are closest to them.<sup><a href="references.cfm" class="link-reference cBoxElement">3</a></sup> Researchers have found, that when a source was identified, in up to 80% of infant pertussis cases, babies caught the disease from a family member, primarily a parent.<sup><a href="references.cfm" class="link-reference cBoxElement">3</a></sup></p>');
    		$('#families-spread-it a.expand span').text('Collapse');
			$('#families-spread-it a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if (($('#share-your-story').is(':hidden')) && ($('#a-rising-threat-of-pertussis').is(':hidden'))) {
	    	$('#families-spread-it').animate({
    			width: '173px'
    		}, 300);
    		
    		$('#families-spread-it div.expanded_content').html('<p>Babies can get pertussis from those who are closest to them.<sup><a href="references.cfm" class="link-reference cBoxElement">3</a></sup></p>');
    		$('#families-spread-it a.expand span').text('Read more');
			$('#families-spread-it a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		
    		$('#share-your-story').slideToggle('slow');
			$('#a-rising-threat-of-pertussis').slideToggle('slow');
    	}	
	});

	$('#section-2 .r-col-btm a.expand').click(function() {
		if ($('#whooping-cough-is-highly-contagious').is(':visible')) {
			$('#whooping-cough-is-highly-contagious').slideToggle('slow');
		
			$('#adult-immunity-wears-off').animate({
    			height: '375px'
    		}, 300);
    		
    		$('#adult-immunity-wears-off div.expanded_content').html('<p>Adults are susceptible to pertussis, because the vaccine you received as a child wanes over time, after 5-10 years.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup> That\'s why the CDC recommends that adults and adolescents, especially those in close contact with an infant, receive a single dose of Tdap (tetanus, diphtheria, and acellular pertussis) vaccine. <a href="http://www.cdc.gov/mmwr/preview/mmwrhtml/mm6001a4.htm?s_cid=mm6001a4_w" rel="external" target="_blank">Click here</a> for the most current CDC guidelines.<sup><a href="references.cfm" class="link-reference cBoxElement">1,2</a></sup></p>');
    		$('#adult-immunity-wears-off a.expand span').text('Collapse');
			$('#adult-immunity-wears-off a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if ($('#whooping-cough-is-highly-contagious').is(':hidden')) {
	    	$('#adult-immunity-wears-off').animate({
    			height: '215px'
    		}, 300);
    		
    		$('#adult-immunity-wears-off div.expanded_content').html('<p>Adults are susceptible to pertussis, because the vaccine you received as a child wanes over time, after 5-10 years.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup></p>');
			$('#adult-immunity-wears-off a.expand span').text('Read more');
			$('#adult-immunity-wears-off a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		
			$('#whooping-cough-is-highly-contagious').slideToggle('slow');
    	}	
	});
	$('#section-2 .l-col-l a.expand').click(function() {
		if ($('#families-spread-it').is(':visible')) {
			//$('#adult-immunity-wears-off').slideToggle('slow');
			$('#families-spread-it').slideToggle('slow');
		
			$('#infants-are-at-risk-for-pertussis').animate({
    			width: '284px'
    		}, 300);
    		
    		$('#infants-are-at-risk-for-pertussis div.expanded_content').html('<p>Even when you get your baby vaccinated, he or she may not be fully protected until they have received at least 3 doses of the infant pertussis vaccine. During this time, infants are most vulnerable to pertussis.<sup><a href="references.cfm" class="link-reference cBoxElement">15</a></sup></p>');
    		$('#infants-are-at-risk-for-pertussis a.expand span').text('Collapse');
			$('#infants-are-at-risk-for-pertussis a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
		if ($('#families-spread-it').is(':hidden')) {
	    	$('#infants-are-at-risk-for-pertussis').animate({
    			width: '284px'
    		}, 300);
    		
    		$('#infants-are-at-risk-for-pertussis div.expanded_content').html('<p>Even when you get your baby vaccinated, he or she may not be fully protected until they have received at least 3 doses of the infant pertussis vaccine.<sup><a href="references.cfm" class="link-reference cBoxElement">15</a></sup></p>');
    		$('#infants-are-at-risk-for-pertussis a.expand span').text('Read more');
			$('#infants-are-at-risk-for-pertussis a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		
    		//$('#adult-immunity-wears-off').slideToggle('slow');
			$('#families-spread-it').slideToggle('slow');
    	}	
	});

	$('#section-1 .r-col-mid a.expand').click(function() {
		if ($('#whooping-cough-symptoms').is(':visible')) {
			$('#whooping-cough-symptoms').slideToggle('slow');
		
			$('#pertussis-is-a-fatal-cough').animate({
    			height: '375px'
    		}, 300);
    		
    		$('#pertussis-is-a-fatal-cough div.expanded_content').html('<p>Pertussis, commonly known as whooping cough, is a highly contagious bacterial disease that can be fatal for infants.<sup><a href="references.cfm" class="link-reference cBoxElement">1</a></sup> Ninety-two percent of deaths from pertussis occur in infants under 4 months of age.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup> And 63% of babies younger than 12 months of age who get pertussis end up in the hospital.<sup><a href="references.cfm" class="link-reference cBoxElement">1,2</a></sup></p>');
    		$('#pertussis-is-a-fatal-cough a.expand span').text('Collapse');
			$('#pertussis-is-a-fatal-cough a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if ($('#whooping-cough-symptoms').is(':hidden')) {
    		if ((jQuery.browser.msie) && (jQuery.browser.version < 8)) {
    			var height = '163px';
    		} else {
    			var height = '160px';
    		}
    		
	    	$('#pertussis-is-a-fatal-cough').animate({
    			height:  height
    		}, 300);
    		
    		$('#pertussis-is-a-fatal-cough div.expanded_content').html('<p>Pertussis, commonly known as whooping cough, is a highly contagious bacterial disease that can be fatal for infants.<sup><a href="references.cfm" class="link-reference cBoxElement">1</a></sup></p>');
			$('#pertussis-is-a-fatal-cough a.expand span').text('Read more');
			$('#ertussis-is-a-fatal-cough a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		
			$('#whooping-cough-symptoms').slideToggle('slow');
    	}	
	});

	$('#section-1 .r-col-btm a.expand').click(function() {
		if ($('#pertussis-is-a-fatal-cough').is(':visible')) {
			$('#pertussis-is-a-fatal-cough').slideToggle('slow');
		
			$('#whooping-cough-symptoms').animate({
    			height: '375px'
    		}, 300);
    		
    		$('#whooping-cough-symptoms div.expanded_content').html('<p>What may seem like the start of a common cold could be the serious symptoms of whooping cough.<sup><a href="references.cfm" class="link-reference cBoxElement">11</a></sup> At the start, typical symptoms of pertussis include runny nose or congestion, sneezing, and possibly mild cough or fever. But, after 1-2 weeks of these symptoms, severe coughing can begin and continue for weeks. Pertussis can cause violent and rapid coughing, which tends to produce a &quot;whooping&quot; sound between coughs, although this sound can be absent or minimal in infants.<sup><a href="references.cfm" class="link-reference cBoxElement">11</a></sup></p>');
    		$('#whooping-cough-symptoms a.expand span').text('Collapse');
			$('#whooping-cough-symptoms a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if ($('#pertussis-is-a-fatal-cough').is(':hidden')) {
	    	$('#whooping-cough-symptoms').animate({
    			height: '215px'
    		}, 300);
    		
    		$('#whooping-cough-symptoms div.expanded_content').html('<p>What may seem like the start of a common cold could be the serious symptoms of whooping cough.<sup><a href="references.cfm" class="link-reference cBoxElement">11</a></sup></p>');
			$('#whooping-cough-symptoms a.expand span').text('Read more');
			$('#whooping-cough-symptoms a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		
			$('#pertussis-is-a-fatal-cough').slideToggle('slow');
    	}	
	});
	
	$('#section-3 .l-col-r a.expand').click(function() {
		if ($('#ask-your-doctor-about-the-adult-pertussis-vaccine-and-get-your-booster-today').is(':visible')) {
			$('#ask-your-doctor-about-the-adult-pertussis-vaccine-and-get-your-booster-today').slideToggle('slow');

			$('#pertussis-is-preventable').animate({
    			width: '569px'
    		}, 300);
    		
    		$('#pertussis-is-preventable div.expanded_content').html('<p>One study suggests that vaccinating family members of newborns could prevent 76% of pertussis cases in infants younger than 3 months of age.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup> And, a one-time adult vaccination program would prevent about 44% of cases over a 10-year period.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup></p>');
    		$('#pertussis-is-preventable a.expand span').text('Collapse');
			$('#pertussis-is-preventable a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if ($('#ask-your-doctor-about-the-adult-pertussis-vaccine-and-get-your-booster-today').is(':hidden')) {
	    	$('#pertussis-is-preventable').animate({
    			width: '284px'
    		}, 300);
    		
    		$('#pertussis-is-preventable div.expanded_content').html('<p>One study suggests that vaccinating family members of newborns could prevent 76% of pertussis cases in infants younger than 3 months of age.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup></p>');
			$('#pertussis-is-preventable a.expand span').text('Read more');
			$('#pertussis-is-preventable a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		    		
    		$('#ask-your-doctor-about-the-adult-pertussis-vaccine-and-get-your-booster-today').slideToggle('slow');
    	}	
	});

	$('#section-4 .l-col-l a.expand').click(function() {
		if ($('#babies-are-at-risk-for-pertussis').is(':visible')) {
			$('#babies-are-at-risk-for-pertussis').slideToggle('slow');

			$('#adults-need-to-get-vaccinated-too').animate({
    			width: '569px'
    		}, 300);
    		
    		$('#adults-need-to-get-vaccinated-too div.expanded_content').html('<p>Parents, siblings, and other caregivers of infants are the ones who often spread pertussis to babies unknowingly.<sup><a href="references.cfm" class="link-reference cBoxElement">11</a></sup> That\'s why it\'s so important that adults and adolescents, especially those in close contact with an infant, receive a single dose of Tdap (tetanus, diphtheria, and acellular pertussis) vaccine. <a href="http://www.cdc.gov/mmwr/preview/mmwrhtml/mm6001a4.htm?s_cid=mm6001a4_w" rel="external" target="_blank">Click here</a> for the most current CDC guidelines.<sup><a href="references.cfm" class="link-reference cBoxElement">1,2</a></sup></p>');
    		$('#adults-need-to-get-vaccinated-too a.expand span').text('Collapse');
			$('#adults-need-to-get-vaccinated-too a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if ($('#babies-are-at-risk-for-pertussis').is(':hidden')) {
	    	$('#adults-need-to-get-vaccinated-too').animate({
    			width: '284px'
    		}, 300);
    		
    		$('#adults-need-to-get-vaccinated-too div.expanded_content').html('<p>Parents, siblings, and other caregivers of infants are the ones who often spread pertussis to babies unknowingly.<sup><a href="references.cfm" class="link-reference cBoxElement">11</a></sup></p>');
			$('#adults-need-to-get-vaccinated-too a.expand span').text('Read more');
			$('#adults-need-to-get-vaccinated-too a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		    		
    		$('#babies-are-at-risk-for-pertussis').slideToggle('slow');
    	}	
	});

	$('#section-4 .l-col-r a.expand').click(function() {
		if ($('#adults-need-to-get-vaccinated-too').is(':visible')) {
			$('#adults-need-to-get-vaccinated-too').slideToggle('slow');

			$('#babies-are-at-risk-for-pertussis').animate({
    			width: '569px'
    		}, 300);
    		
    		$('#babies-are-at-risk-for-pertussis div.expanded_content').html('<p>Nationally, pertussis is on the rise. This disease is potentially fatal, especially in infants.<sup><a href="references.cfm" class="link-reference cBoxElement">14</a></sup> In 2010, pertussis caused the deaths of over 18 babies in the US.<sup><a href="references.cfm" class="link-reference cBoxElement">17</a></sup> And 63% of babies younger than 12 months of age who get pertussis end up in the hospital.<sup><a href="references.cfm" class="link-reference cBoxElement">2</a></sup></p>');
    		$('#babies-are-at-risk-for-pertussis a.expand span').text('Collapse');
			$('#babies-are-at-risk-for-pertussis a.expand img').removeClass('btn-expand').addClass('btn-collapse').attr('title', 'Image of Collapse button');
    	} 
    	
    	if ($('#adults-need-to-get-vaccinated-too').is(':hidden')) {
	    	$('#babies-are-at-risk-for-pertussis').animate({
    			width: '284px'
    		}, 300);
    		
    		$('#babies-are-at-risk-for-pertussis div.expanded_content').html('<p>Nationally, pertussis is on the rise. This disease is potentially fatal, especially in infants.<sup><a href="references.cfm" class="link-reference cBoxElement">14</a></sup></p>');
			$('#babies-are-at-risk-for-pertussis a.expand span').text('Read more');
			$('#babies-are-at-risk-for-pertussis a.expand img').removeClass('btn-collapse').addClass('btn-expand').attr('title', 'Image of Read more button');
    		    		
    		$('#adults-need-to-get-vaccinated-too').slideToggle('slow');
    	}	
	});

	$('#section-4 .r-col-top-2 a.expand').click(function() {
		if ($('#prevention-is-the-best-defense').is(':visible')) {
			$('#prevention-is-the-best-defense').slideToggle('slow');
		
	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			var height = '325px';
    		} else if ((jQuery.browser.msie) && (jQuery.browser.version == '7.0')) {
    			var height = '320px';
	    	} else if ((jQuery.browser.msie) && (jQuery.browser.version == '8.0')) {
    			var height = '320px';
    		} else {
    			var height = '321px';
    		}
    		
			$('#follow-the-infant-immunization-schedule').animate({
    			height: height
    		}, 300);
    		
    		$('#follow-the-infant-immunization-schedule div.expanded_content').html('<p>Parents need to make sure their children complete the full series of immunizations. It\'s a known fact that DTaP immunization rates drop between the third and fourth dose which means kids are not fully protected.<sup><a href="references.cfm" class="link-reference cBoxElement">12</a></sup> As a matter of fact, during the 2010 California pertussis outbreak, 53% of the 1215 affected children between 6 months and 18 years of age with available vaccination history, had missed 1 or more recommended doses of vaccine.<sup><a href="references.cfm" class="link-reference cBoxElement">16</a></sup></p>');
    		$('#follow-the-infant-immunization-schedule a.expand span').text('Collapse');
    		$('#follow-the-infant-immunization-schedule a.expand img').attr('title', 'Image of Collapse button');
    		$('#follow-the-infant-immunization-schedule a.expand img').attr('class', 'collapse-image');

	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			$('#follow-the-infant-immunization-schedule a.expand img').empty().append('<img src="img/blank.gif" style="vertical-align:middle;width:31px;height:30px;margin:0;padding:0;" class="read_more btn-collapse" />');
    		} else {
				$('#follow-the-infant-immunization-schedule a.expand img').attr('src', 'img/collapse-trans.png');
				$('#follow-the-infant-immunization-schedule a.expand img').attr('class', 'collapse-image');
			}

    	} 
    	
    	if ($('#prevention-is-the-best-defense').is(':hidden')) {
	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			var height = '160px';
    		} else if ((jQuery.browser.msie) && (jQuery.browser.version == '7.0')) {
    			var height = '155px';
	    	} else if ((jQuery.browser.msie) && (jQuery.browser.version == '8.0')) {
    			var height = '155px';
    		} else {
    			var height = '159px';
    		}
    		
	    	$('#follow-the-infant-immunization-schedule').animate({
    			height: height
    		}, 300);
    		
    		$('#follow-the-infant-immunization-schedule div.expanded_content').html('<p>Parents need to make sure their children complete the full series of immunizations.</p>');
			$('#follow-the-infant-immunization-schedule a.expand span').text('Read more');
	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			$('#follow-the-infant-immunization-schedule a.expand img').attr('src', 'img/expand-trans.gif');
    		} else {
    			$('#follow-the-infant-immunization-schedule a.expand img').attr('src', 'img/expand-trans.png');
			}    		
			$('#prevention-is-the-best-defense').slideToggle('slow');
    	}	
	});

	$('#section-4 .r-col-mid a.expand').click(function() {
		if ($('#follow-the-infant-immunization-schedule').is(':visible')) {
			$('#follow-the-infant-immunization-schedule').slideToggle('slow');

	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			var height = '324px';
    		} else if ((jQuery.browser.msie) && (jQuery.browser.version == '7.0')) {
    			var height = '319px';
    		} else if ((jQuery.browser.msie) && (jQuery.browser.version == '8.0')) {
    			var height = '319px';
    		} else {
    			var height = '320px';
    		}
		
			$('#prevention-is-the-best-defense').animate({
    			height: height
    		}, 300);
    		
    		$('#prevention-is-the-best-defense div.expanded_content').html('<p>The best way to help protect babies against pertussis is to get the DTaP vaccine.<sup><a href="references.cfm" class="link-reference cBoxElement">10</a></sup> Children should receive 5 doses of the DTaP vaccine at 2, 4, 6, and 15-18 months of age, with a booster dose at 4-6 years of age. <sup><a href="references.cfm" class="link-reference cBoxElement">13</a></sup></p>');
    		$('#prevention-is-the-best-defense a.expand span').text('Collapse');			
			$('#prevention-is-the-best-defense a.expand img').attr('title', 'Image of Collapse button');

	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			$('#prevention-is-the-best-defense a.expand img').empty().append('<img src="img/blank.gif" style="vertical-align:middle;width:31px;height:30px;margin:0;padding:0;" class="read_more btn-collapse" />');
    		} else {
				$('#prevention-is-the-best-defense a.expand img').attr('src', 'img/collapse-trans.png');
				$('#prevention-is-the-best-defense a.expand img').attr('class', 'collapse-image');
			}

    	} 
    	
    	if ($('#follow-the-infant-immunization-schedule').is(':hidden')) {
	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			var height = '160px';
	    	} else if ((jQuery.browser.msie) && (jQuery.browser.version == '7.0')) {
    			var height = '163px';
	    	} else if ((jQuery.browser.msie) && (jQuery.browser.version == '8.0')) {
    			var height = '163px';
    		} else {
    			var height = '160px';
    		}
    		//alert('where is this - collapse');
	    	$('#prevention-is-the-best-defense').animate({
    			height: height
    		}, 300);
    		
    		$('#prevention-is-the-best-defense div.expanded_content').html('<p>The best way to help protect babies against pertussis is to get the DTaP (diphtheria, tetanus, and acellular pertussis) vaccine.<a href="references.cfm" class="link-reference cBoxElement"><sup><a href="references.cfm" class="link-reference cBoxElement">10</a></sup></a></p>');
			$('#prevention-is-the-best-defense a.expand span').text('Read more');
    		//$('#prevention-is-the-best-defense a.expand img').attr('class', 'btn-expand');   
    		
	    	if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
    			$('#prevention-is-the-best-defense a.expand img').attr('src', 'img/expand-trans.gif');
				
    		} else {
    			$('#prevention-is-the-best-defense a.expand img').attr('src', 'img/expand-trans.png');
			}   	 		
			$('#follow-the-infant-immunization-schedule').slideToggle('slow');
    	}	
	});
/* Expand - content  */

/* ColorBox  @link http://colorpowered.com/colorbox/ */
  	var is_iPad = navigator.userAgent.match(/iPad/i) != null;
	//if(!is_iPad)	{
		var onComplete = function() { jQuery('a[rel="external"]').each(function() { jQuery(this).attr('target', '_blank'); }); $('.scrollable').jScrollPane({showArrows:false, scrollbarWidth: 4});};
	//} else {
		//var onComplete = function() { jQuery('a[rel="external"]').each(function() { jQuery(this).attr('target', '_blank'); });};
	//}

	var url_directory = $.url().attr('directory');

	//$('#find-a-doctor').colorbox({ close: '', height: $(document).height() - 64+'px', iframe: true, scrolling: false, onComplete: onComplete, opacity: 0.5, speed: 500, width: $(document).width() - 64+'px' });	


	if (($.browser.msie) && ($.browser.version == '7.0'))	{
		$('#sendtoafriend').colorbox({ close: '', height: '363px', iframe: true, onComplete: onComplete, opacity: 0.5, scrolling: false, speed: 500, width: '544px' });
	
	} else {
		$('#sendtoafriend').colorbox({ close: '', height: '333px', iframe: true, onComplete: onComplete, opacity: 0.5, scrolling: false, speed: 500, width: '544px' });
	}
	
	$('#section-1 .l-col-m-third a.expand').colorbox({ close: '', height: '453px', iframe: true, onComplete: onComplete, opacity: 0.5, scrolling: false, speed: 500, width: '694px' });
	$('#section-2 .l-col-r a.expand').colorbox({ close: '', height: '453px', iframe: true, onComplete: onComplete, opacity: 0.5, scrolling: false, speed: 500, width: '694px' });
	/* share form */
	$('#my-story').colorbox({ close: '', height: '453px', iframe: true, onComplete: onComplete, opacity: 0.5, scrolling: false, speed: 500, width: '694px' });
	
	/* Switch state for "press.cfm". */
	if ($(location).attr('href').indexOf('press.cfm') != -1) {
		var open_press = true;
	} else {
		var open_press = false;
	}
	
	$('a[href="press.cfm"], .link-reference').live('click', function(e) {
		e.preventDefault();
		if (($.browser.msie) && ($.browser.version == '7.0'))	{
			$.fn.colorbox({ close: '', scrolling: false, href: "news.cfm", height: '503px', iframe: true, onComplete: onComplete, opacity: 0.5, speed: 500, scrolling: false, width: '694px' });
		} else {
			$.fn.colorbox({ close: '', scrolling: false, href: "news.cfm", height: '483px', iframe: true, onComplete: onComplete, opacity: 0.5, speed: 500, scrolling: false, width: '694px' });
		}		
	});


	/* Switch state for "legal-notices.cfm". */
	if ($(location).attr('href').indexOf('legal-notices.cfm') != -1) {
		var open_legal_notices = true;
	} else {
		var open_legal_notices = false;
	}
	
	$('a[href="legal-notices.cfm"]').colorbox({ close: '', scrolling: false, html: '<div style="margin:30px 20px 30px 20px;"><h2>Privacy Policy and Legal Notices</h2><div class="scrollable" style="overflow: auto; height: 350px;"><h3>Conditions for Use of Sanofi Pasteur Web sites</h3><p>Copyright &copy; 2011 Sanofi Pasteur Inc., USA. All rights reserved. Please read these terms of use carefully. If you proceed to use this site, you are agreeing to abide by these rules. All images and text are the property of Sanofi Pasteur Inc. and may not be downloaded, distributed, stored, reused, reposted, modified or otherwise used except as provided herein without the express written permission of sanofi pasteur. Sanofi Pasteur reserves the right to make additions, deletions, or modifications to the information at any time without prior notification. Sanofi Pasteur actively enforces its intellectual property rights to the fullest extent of the law.</p><h3>Site Information</h3><p>Sanofi Pasteur is a leading researcher, developer, manufacturer and supplier of vaccines for humans in the United States and abroad. Our focus is the prevention of childhood diseases, the detection, prevention, and treatment of diseases for families, and the prevention of diseases for travelers. As we continue to develop our Internet presence we trust you will find sanofi pasteur to be a valuable resource for medical, product, professional and developmental information. As a leading innovation-driven life science company, sanofi pasteur is committed to playing a major role in improving the quality of life. Sanofi Pasteur offers the information on this Web site for general educational and informational purposes only. This information is not intended as a substitute for advice, treatment, or recommendations from health-care professionals. It is important to follow the advice of your doctor and other health-care professionals regarding your individual medical and health-care needs. Please consult with your doctor or other health-care professional before using any drug product discussed within this Web site. Sanofi pasteur is not engaged in rendering medical advice or services. All product and service names appearing in a typeface different from that of the surrounding text or with a trademark symbol, including the sanofi pasteur logo, are trademarks and/or service marks owned by or licensed to sanofi pasteur, its subsidiaries or its affiliates. Use of these marks, except as permitted herein, is expressly prohibited.</p><h3>Copyright Notice</h3><p>This site is produced by sanofi pasteur. Sanofi Pasteur gives you permission to copy documents published by sanofi pasteur on the World Wide Web for noncommercial use only, provided any copy of these documents that you make shall retain all copyright and other proprietary notices contained herein. Sanofi Pasteur hereby authorizes you to copy, for noncommercial use only, documents or pages published by sanofi pasteur on this World Wide Web site, provided that any copy of these documents or pages that you make shall retain all copyright or other proprietary notices and any disclaimers contained herein. Unauthorized reproduction of sanofi pasteur Web sites and the material and/or information elements that comprise them is strictly prohibited. Nothing contained herein shall be construed as conferring, by implication, estoppel or otherwise, any license or right under any patent or trademark of sanofi pasteur or any third party. Except as expressly provided above, nothing contained herein shall be construed as conferring any license or right under any sanofi pasteur copyright.</p><h3>No Guarantee or Warranty</h3><p>While sanofi pasteur has endeavored to ensure that the information contained in this Web site is accurate, sanofi pasteur cannot guarantee the accuracy of such information. This site is provided &quot;AS IS&quot;. SANOFI PASTEUR MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND OR NATURE WITH RESPECT TO THE INFORMATION. SANOFI PASTEUR HEREBY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, WHETHER EXPRESS OR IMPLIED, CREATED BY LAW, CONTRACT OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT SHALL SANOFI PASTEUR BE LIABLE FOR ANY DAMAGES OF ANY KIND OR NATURE, INCLUDING, WITHOUT LIMITATION, DIRECT, INDIRECT, SPECIAL (INCLUDING LOSS OF PROFIT) CONSEQUENTIAL OR INCIDENTAL DAMAGES ARISING FROM, OR IN CONNECTION WITH, THE EXISTENCE OR USE OF THIS INTERNET SITE AND/OR THE INFORMATION CONTAINED IN IT, REGARDLESS OF WHETHER SANOFI PASTEUR HAS BEEN ADVISED AS TO THE POSSIBILITY OF SUCH DAMAGES.</p><h3>Links to Other Sites</h3><p>As a useful resource to our visitors, sanofi pasteur provides links to other Web sites. However, certain links on this site lead to resources located on servers maintained by third parties over whom sanofi pasteur has no control. We cannot guarantee, and make no representations as to, the accuracy of any Web site to which we provide a link or reference. Links to other sites are provided only as a convenience to users of our site.</p><h3>Information Deemed Nonconfidential</h3><p>Should any viewer of the sanofi pasteur Web site respond with information, including feedback data, questions, comments, suggestions, ideas or the like (excluding personally identifiable information such as name, address, telephone number, e-mail address, or certain health information as discussed below in the Privacy Statement), such information shall be deemed to be non-confidential, and sanofi pasteur shall have no obligation of any kind with respect to such information and shall be free to reproduce, disclose, and distribute the information to others without limitation and to use any ideas, concepts, know-how, or techniques contained in such information for any purpose whatsoever, including, but not limited to, developing, manufacturing, and marketing products incorporating such information.</p><h3>Use in the United States</h3><p>The information on the Web site pertaining to sanofi pasteur products is intended for use only by customers, patients, and health-care professionals in the United States. Other countries may have laws, regulatory requirements, and medical practices that differ from those in the United States and may require references to different or additional information. Because of these various laws, regulations, and medical practices, information designed to be used in one country may not be appropriate for use outside that country. Therefore, product information on this Web site may not be appropriate for residents of other countries.</p><h3>PRIVACY STATEMENT</h3><p>Sanofi Pasteur is committed to respecting the privacy of its Web site visitors. Many of the educational materials and programs on our Web sites are designed to support your personal health and wellness goals. We recognize that certain health information is very personal and needs to be kept confidential. The information you provide while taking advantage of the healthy lifestyle tools on our Web sites is kept confidential and is available only for your personal use. Our goal in offering these tools is to provide a valuable service to you to help you meet your healthy lifestyle goals through positive health habits and the correct use of our pharmaceutical products. Some of the information we keep on our Web server is information that you voluntarily provide through forms and some is collected automatically. For each visitor to our US Web sites, our server automatically recognizes the visitor\'s domain name, but not the e-mail address. We collect only aggregate information concerning which pages visitors access or visit and any information volunteered by the visitor, such as survey information and/or site registrations. We analyze only the aggregate information provided by our Web site visitors with the goal of improving the content and services offered on our Web site. Only when specifically requested by Web site visitors will the information we collect be used to respond to visitors\' inquiries, fulfill e-mail messaging programs, and notify visitors about new content or services on our Web sites. If you decide you no longer wish to receive postal mailings and/or e-mails from us, please let us know by sending an e-mail and telling us you no longer wish to receive postal mail and/or e-mail from us. Please provide us with your exact name, postal address, and/or e-mail address. We will be sure your name is removed from our mailing list. We do not provide this data to third parties, except to the vendors and service agencies that we may engage to assist us or as required by law (such as reporting safety information to the Food and Drug Administration). For example, we may provide data to an appropriate organization in order to complete a service or to assist us in reviewing the data. Any organization to which we provide such information is also required to keep your information confidential in accordance with the sanofi pasteur Privacy Policy.</p><h3>Information Security and Quality</h3><p>We intend to protect the quality and integrity of your personally identifiable information. We have implemented appropriate technical and organizational measures, such as using encryption for transmission of credit card numbers, to help us keep your information secure, accurate, current, and complete. We work to protect the security of your information during transmission by using Secure Sockets Layer (SSL) software, which encrypts information you input. We reveal only the VaccineShoppe.com® Confirmation number when confirming an order. We transmit the entire credit card number to the appropriate credit card company during order processing. It is important for you to protect against unauthorized access to your password and to your computer. Be sure to sign off when finished using a shared computer.</p><h3>Use of &quot;Cookies&quot;</h3><p>Some sanofi pasteur Web sites may deposit certain bits of information called &quot;cookies&quot; in a visitor\'s computer. Cookies can tell us how and when pages in a Web site are visited and by how many people. We will utilize individual visitor\'s identifying information in an aggregate form to help us improve our Web sites. The policy regarding cookies applies to all sanofi pasteur Web sites in the US. Should a specific site, or any portion thereof, deviate from this policy, Sanofi Pasteur will clearly state the intended use of the information on that Web site or the specific subsection of that Web site. Personally identifiable information will not be sold, rented or exchanged with any other organization or entity unless the user is first notified and expressly agrees to it, or as otherwise required by law. Any change to this privacy policy will be communicated promptly on this page.</p><h3>Legal Notice</h3><p><span>Sanofi Pasteur Inc.</span><span>Discovery Drive</span><span>Swiftwater, PA 18370</span><span>&copy; 2011 Sanofi Pasteur Inc.</span><span>This site intended for use by US residents only.</span></p></div></div>', maxHeight: '453px', maxWidth: '694px', onComplete: onComplete, onOpen: function() { return sopSetMetaData('legal-notices', false); }, opacity: 0.5, open: open_legal_notices, speed: 500  });

	/* Switch state for "privacy-policy.cfm". */
	if ($(location).attr('href').indexOf('privacy-policy.cfm') != -1) {
		var open_privacy_policy = true;
	} else {
		var open_privacy_policy = false;
	}
	
	$('a[href="privacy-policy.cfm"]').colorbox({ close: '', scrolling: false, html: '<div style="margin:30px 20px 30px 20px;"><h2>Privacy Policy and Legal Notices</h2><div id="privpolicy" ><div class="scrollable" style="overflow: auto; height: 350px;"><h3>Conditions for Use of Sanofi Pasteur Websites</h3><p>Copyright &copy; 2011 Sanofi Pasteur Inc., USA. All rights reserved. Please read these terms of use carefully. If you proceed to use this site, you are agreeing to abide by these rules. All images and text are the property of Sanofi Pasteur Inc. and may not be downloaded, distributed, stored, reused, reposted, modified or otherwise used except as provided herein without the express written permission of sanofi pasteur. Sanofi Pasteur reserves the right to make additions, deletions, or modifications to the information at any time without prior notification. Sanofi Pasteur actively enforces its intellectual property rights to the fullest extent of the law.</p><h3>Site Information</h3><p>Sanofi Pasteur is a leading researcher, developer, manufacturer and supplier of vaccines for humans in the United States and abroad. Our focus is the prevention of childhood diseases, the detection, prevention, and treatment of diseases for families, and the prevention of diseases for travelers. As we continue to develop our Internet presence we trust you will find sanofi pasteur to be a valuable resource for medical, product, professional and developmental information. As a leading innovation-driven life science company, sanofi pasteur is committed to playing a major role in improving the quality of life. Sanofi Pasteur offers the information on this Web site for general educational and informational purposes only. This information is not intended as a substitute for advice, treatment, or recommendations from health-care professionals. It is important to follow the advice of your doctor and other health-care professionals regarding your individual medical and health-care needs. Please consult with your doctor or other health-care professional before using any drug product discussed within this Web site. Sanofi pasteur is not engaged in rendering medical advice or services. All product and service names appearing in a typeface different from that of the surrounding text or with a trademark symbol, including the sanofi pasteur logo, are trademarks and/or service marks owned by or licensed to sanofi pasteur, its subsidiaries or its affiliates. Use of these marks, except as permitted herein, is expressly prohibited.</p><h3>Copyright Notice</h3><p>This site is produced by sanofi pasteur. Sanofi Pasteur gives you permission to copy documents published by sanofi pasteur on the World Wide Web for noncommercial use only, provided any copy of these documents that you make shall retain all copyright and other proprietary notices contained herein. Sanofi Pasteur hereby authorizes you to copy, for noncommercial use only, documents or pages published by sanofi pasteur on this World Wide Web site, provided that any copy of these documents or pages that you make shall retain all copyright or other proprietary notices and any disclaimers contained herein. Unauthorized reproduction of sanofi pasteur Web sites and the material and/or information elements that comprise them is strictly prohibited. Nothing contained herein shall be construed as conferring, by implication, estoppel or otherwise, any license or right under any patent or trademark of sanofi pasteur or any third party. Except as expressly provided above, nothing contained herein shall be construed as conferring any license or right under any sanofi pasteur copyright.</p><h3>No Guarantee or Warranty</h3><p>While sanofi pasteur has endeavored to ensure that the information contained in this Web site is accurate, sanofi pasteur cannot guarantee the accuracy of such information. This site is provided &quot;AS IS&quot;. SANOFI PASTEUR MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND OR NATURE WITH RESPECT TO THE INFORMATION. SANOFI PASTEUR HEREBY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, WHETHER EXPRESS OR IMPLIED, CREATED BY LAW, CONTRACT OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT SHALL SANOFI PASTEUR BE LIABLE FOR ANY DAMAGES OF ANY KIND OR NATURE, INCLUDING, WITHOUT LIMITATION, DIRECT, INDIRECT, SPECIAL (INCLUDING LOSS OF PROFIT) CONSEQUENTIAL OR INCIDENTAL DAMAGES ARISING FROM, OR IN CONNECTION WITH, THE EXISTENCE OR USE OF THIS INTERNET SITE AND/OR THE INFORMATION CONTAINED IN IT, REGARDLESS OF WHETHER SANOFI PASTEUR HAS BEEN ADVISED AS TO THE POSSIBILITY OF SUCH DAMAGES.</p><h3>Links to Other Sites</h3><p>As a useful resource to our visitors, sanofi pasteur provides links to other Web sites. However, certain links on this site lead to resources located on servers maintained by third parties over whom sanofi pasteur has no control. We cannot guarantee, and make no representations as to, the accuracy of any Web site to which we provide a link or reference. Links to other sites are provided only as a convenience to users of our site.</p><h3>Information Deemed Nonconfidential</h3><p>Should any viewer of the sanofi pasteur Web site respond with information, including feedback data, questions, comments, suggestions, ideas or the like (excluding personally identifiable information such as name, address, telephone number, e-mail address, or certain health information as discussed below in the Privacy Statement), such information shall be deemed to be non-confidential, and sanofi pasteur shall have no obligation of any kind with respect to such information and shall be free to reproduce, disclose, and distribute the information to others without limitation and to use any ideas, concepts, know-how, or techniques contained in such information for any purpose whatsoever, including, but not limited to, developing, manufacturing, and marketing products incorporating such information.</p><h3>Use in the United States</h3><p>The information on the Web site pertaining to sanofi pasteur products is intended for use only by customers, patients, and health-care professionals in the United States. Other countries may have laws, regulatory requirements, and medical practices that differ from those in the United States and may require references to different or additional information. Because of these various laws, regulations, and medical practices, information designed to be used in one country may not be appropriate for use outside that country. Therefore, product information on this Web site may not be appropriate for residents of other countries.</p><h3>PRIVACY STATEMENT</h3><p>Sanofi Pasteur is committed to respecting the privacy of its Web site visitors. Many of the educational materials and programs on our Web sites are designed to support your personal health and wellness goals. We recognize that certain health information is very personal and needs to be kept confidential. The information you provide while taking advantage of the healthy lifestyle tools on our Web sites is kept confidential and is available only for your personal use. Our goal in offering these tools is to provide a valuable service to you to help you meet your healthy lifestyle goals through positive health habits and the correct use of our pharmaceutical products. Some of the information we keep on our Web server is information that you voluntarily provide through forms and some is collected automatically. For each visitor to our US Web sites, our server automatically recognizes the visitor\'s domain name, but not the e-mail address. We collect only aggregate information concerning which pages visitors access or visit and any information volunteered by the visitor, such as survey information and/or site registrations. We analyze only the aggregate information provided by our Web site visitors with the goal of improving the content and services offered on our Web site. Only when specifically requested by Web site visitors will the information we collect be used to respond to visitors\' inquiries, fulfill e-mail messaging programs, and notify visitors about new content or services on our Web sites. If you decide you no longer wish to receive postal mailings and/or e-mails from us, please let us know by sending an e-mail and telling us you no longer wish to receive postal mail and/or e-mail from us. Please provide us with your exact name, postal address, and/or e-mail address. We will be sure your name is removed from our mailing list. We do not provide this data to third parties, except to the vendors and service agencies that we may engage to assist us or as required by law (such as reporting safety information to the Food and Drug Administration). For example, we may provide data to an appropriate organization in order to complete a service or to assist us in reviewing the data. Any organization to which we provide such information is also required to keep your information confidential in accordance with the sanofi pasteur Privacy Policy.</p><h3>Information Security and Quality</h3><p>We intend to protect the quality and integrity of your personally identifiable information. We have implemented appropriate technical and organizational measures, such as using encryption for transmission of credit card numbers, to help us keep your information secure, accurate, current, and complete. We work to protect the security of your information during transmission by using Secure Sockets Layer (SSL) software, which encrypts information you input. We reveal only the VaccineShoppe.com® Confirmation number when confirming an order. We transmit the entire credit card number to the appropriate credit card company during order processing. It is important for you to protect against unauthorized access to your password and to your computer. Be sure to sign off when finished using a shared computer.</p><h3>Use of &quot;Cookies&quot;</h3><p>Some sanofi pasteur Web sites may deposit certain bits of information called &quot;cookies&quot; in a visitor\'s computer. Cookies can tell us how and when pages in a Web site are visited and by how many people. We will utilize individual visitor\'s identifying information in an aggregate form to help us improve our Web sites. The policy regarding cookies applies to all sanofi pasteur Web sites in the US. Should a specific site, or any portion thereof, deviate from this policy, Sanofi Pasteur will clearly state the intended use of the information on that Web site or the specific subsection of that Web site. Personally identifiable information will not be sold, rented or exchanged with any other organization or entity unless the user is first notified and expressly agrees to it, or as otherwise required by law. Any change to this privacy policy will be communicated promptly on this page.</p><h3>Legal Notice</h3><p><span>Sanofi Pasteur Inc.</span><span>Discovery Drive</span><span>Swiftwater, PA 18370</span><span>&copy; 2011 Sanofi Pasteur Inc.</span><span>This site intended for use by US residents only.</span></p></div></div></div>', maxHeight: '453px', maxWidth: '694px', onComplete: onComplete, onOpen: function() { return sopSetMetaData('privacy-policy', false); }, opacity: 0.5, open: open_privacy_policy, speed: 500 });

	
	$('a[href="references.cfm"], .link-reference').live('click', function(e) {
		e.preventDefault();
		if (($.browser.msie) && ($.browser.version == '7.0'))	{
			$.fn.colorbox({ close: '', scrolling: false, href: "references.cfm", height: '503px', iframe: true, onComplete: onComplete, opacity: 0.5, speed: 500, scrolling: false, width: '694px' });
		} else {
			$.fn.colorbox({ close: '', scrolling: false, href: "references.cfm", height: '483px', iframe: true, onComplete: onComplete, opacity: 0.5, speed: 500, scrolling: false, width: '694px' });
		}		
	});
		
	
/* ColorBox  @link http://colorpowered.com/colorbox/ */

// additions by emb

/* ie6 png image fixes */
	if (($.browser.msie) && ($.browser.version == '6.0'))	{
		$('img#icon-fb').attr('src', 'img/fb-trans.gif');
		$('img#icon-twitter').attr('src', 'img/twitter-trans.gif');
		$('img#icon-email').attr('src', 'img/email-trans.gif');
		$('img#close-overlay').attr('src', 'img/colorbox/close-trans.gif');
		$('img#line-graph').attr('src', 'img/section-1/rising_threat_icon.gif');

		$('img.read_more').attr('src', 'img/expand-trans.gif');
		$('img.collapse-image').attr('src', 'img/collapse-trans.gif');

		$('img#a1-01').attr('src', 'img/section-0a/pertussis_whooping_cough_is_a_fatal_cough-trans.jpg');
		$('img#a1-03').attr('src', 'img/section-0a/parents_can_pass_pertussis-trans.jpg');
		$('img#a2-02').attr('src', 'img/section-0a/pertussis_is_also_known_as_whooping_cough-trans.jpg');
		$('img#a2-03').attr('src', 'img/section-0a/a-family-protects-their-newborn.jpg');
		$('img#a3-01').attr('src', 'img/section-0a/join_the_race_to_blanket_america-trans.jpg');
		$('img#a3-02').attr('src', 'img/section-0a/a-doctors-perspective.jpg');
		$('img#a3-03').attr('src', 'img/section-0a/pertussis_is_vaccine-preventable-trans.jpg');
		
	}
	$('div#cboxClose').attr('title', 'Image of Close button');
	$('img.btn-expand').attr('title', 'Image of Read more button');
	$('img.btn-collapse').attr('title', 'Image of Collapse button');

	
	$('a#my-story').click(function(event) {
		window.frames["video01"].location.reload(true);
	}); 

	
	/* next button - hard reset video - transcripts */
	$('img.next').click(function(event){
		if ($('a#navigation-section-0').hasClass('active'))
		{
			// not valid case
		}
		
		if ($('a#navigation-section-1').hasClass('active'))
		{
			//if ($('#section-0a').length) {
				// Only for Home page A
				//$('div#section-1-video iframe').attr('src', 'section-1-video.html');
				//window.frames["video0a"].location.reload(true);
			$('div#section-1-video').html('<iframe src="section-1-video.html" name="video01" frameborder="0" scrolling="no"></iframe>');
			//}
			$('div.transcript-content').html('<h2>A mother\'s personal story about pertussis</h2><h3>VIDEO TRANSCRIPT</h3><p>"Gavin started coughing, just occasionally, one cough here, one cough there. A few nights into that we got a little bit more concerned than we had been before, and we decided to take him into the Emergency Room just to be checked. But when they decided to admit him, I was... I was very surprised. It was just a few days after that, that he still was not improving, and they transferred him down to the Pediatric Intensive Care Unit, or the PICU. They had gotten a positive test result which... which indicated pertussis.</p><p>And from there it was, um, a very quick decline. He was very ill, and it was um... it was fast. And it was terrible. We watched him die from pertussis. We um, sang to him, and we spent as much time right at his side as we possibly could. And my husband put his hand on his chest, and was just feeling for those last beats of his heart. And within moments, he was gone. We um, we left the hospital with empty arms. And um, it was a really terrible thing."</p>');
		}
		if ($('a#navigation-section-2').hasClass('active'))
		{
			//alert('to two test');
			//$('div#section-2-video iframe').attr('src', 'section-2-video.html');
			$('div#section-2-video').html('<iframe src="section-2-video.html" name="video02" frameborder="0" scrolling="no"></iframe>');
			$('div.transcript-content').html('<h2>A family helps protect their newborn from pertussis </h2><h3>VIDEO TRANSCRIPT</h3><p>Suzy: I found out that infants like Charlie, may not be fully protected against pertussis, also known as whooping cough, until they have had at least 3 doses of the vaccine.</p><p>I want to get close and not think twice about giving her pertussis.  So I asked my doctor about the adult pertussis vaccine. And I got vaccinated right away.</p><p>Brian: I did too. So we also asked our closest friends and relatives to get the adult pertussis booster.</p><p>Suzy: It could save your baby\'s life.</p>');
			$('div#section-1-video').html('');
			//window.frames["video01"].location.reload(true);
		}
		if ($('a#navigation-section-3').hasClass('active'))
		{
			//alert('to three');
			//$('div#section-3-video iframe').attr('src', 'section-3-video.html');
			$('div#section-3-video').html('<iframe src="section-3-video.html" name="video03" frameborder="0" scrolling="no"></iframe>');
			//$('div#section-2-video iframe').removeAttr('src');
			$('div.transcript-content').html('<h2>A doctor\'s perspective on pertussis</h2><h3>VIDEO TRANSCRIPT</h3><p>"In the past 15 years, I\'ve witnessed more and more infants admitted to the ER with severe pertussis.</p><p>As a matter of fact, even when you get your baby vaccinated against pertussis, he or she may not be fully protected until they\'ve had at least 3 doses. The problem is that parents and other caregivers of infants, like you, are the ones who most often spread pertussis to babies. In adults, this disease is often mild and mistaken as a common cold or bronchitis. So you could easily pass it on to your baby and not even know you have it.</p><p>So call your doctor now. Ask about the adult pertussis vaccine and make an appointment to get your booster today. The CDC and over 20 medical societies recommend it."</p>');
			//window.frames["video02"].location.reload(true);
			$('div#section-2-video').html('');
		}
		if ($('a#navigation-section-4').hasClass('active'))
		{
			//alert('to four');
			//window.frames["video03"].location.reload(true);
			//$('div#section-3-video iframe').removeAttr('src');
			$('div#section-3-video').html('');
		} 
	});

	/* back button - hard reset video - transcripts */
	$('img.previous').click(function(event){	
		if ($('a#navigation-section-0').hasClass('active'))
		{
			//$('p#section-0b-video iframe').attr('src', 'section-0b-video.html');
			//$('div#section-1-video iframe').removeAttr('src');
			$('div#section-1-video').html('');
			$('div#section-0b-video').html('<iframe src="section-0b-video.html" id="video0b" name="video0b" frameborder="0" scrolling="no"></iframe>');

			$('div.transcript-content').html('<h2>Jeff Gordon and wife, Ingrid fight to raise awareness</h2><h3>VIDEO TRANSCRIPT</h3><p>Jeff: I\'m Jeff Gordon, and this is my wife, Ingrid.</p><p>Ingrid: Like all parents, we want to do the very best for our children.</p><p>Jeff: That means getting ourselves and others better informed about diseases like pertussis, or whooping cough.</p><p>Ingrid: Here on <a href="http://www.soundsofpertussis.com">SoundsOfPertussis.com</a>, you can learn about the risk pertussis poses to infants and what you can do to help protect the babies in your life.</p><p>Jeff: So check out these videos. They contain important facts about pertussis with information on what you can do to help protect your baby.</p>');
		}	
		if ($('a#navigation-section-1').hasClass('active'))
		{
			//$('div#section-1-video iframe').attr('src', 'section-1-video.html');
			//window.frames["video02"].location.reload(true);
			$('div#section-1-video').html('<iframe src="section-1-video.html" name="video01" frameborder="0" scrolling="no"></iframe>');
			$('div#section-2-video').html('');
			$('div.transcript-content').html('<h2>A mother\'s personal story about pertussis</h2><h3>VIDEO TRANSCRIPT</h3><p>"Gavin started coughing, just occasionally, one cough here, one cough there. A few nights into that we got a little bit more concerned than we had been before, and we decided to take him into the Emergency Room just to be checked. But when they decided to admit him, I was... I was very surprised. It was just a few days after that, that he still was not improving, and they transferred him down to the Pediatric Intensive Care Unit, or the PICU. They had gotten a positive test result which... which indicated pertussis.</p><p>And from there it was, um, a very quick decline. He was very ill, and it was um... it was fast. And it was terrible. We watched him die from pertussis. We um, sang to him, and we spent as much time right at his side as we possibly could. And my husband put his hand on his chest, and was just feeling for those last beats of his heart. And within moments, he was gone. We um, we left the hospital with empty arms. And um, it was a really terrible thing."</p>');
		}
		if ($('a#navigation-section-2').hasClass('active'))
		{
			//$('div#section-2-video iframe').attr('src', 'section-2-video.html');
			//window.frames["video03"].location.reload(true);
			$('div#section-2-video').html('<iframe src="section-2-video.html" name="video02" frameborder="0" scrolling="no"></iframe>');
			$('div#section-3-video').html('');
			$('div.transcript-content').html('<h2>A family helps protect their newborn from pertussis </h2><h3>VIDEO TRANSCRIPT</h3><p>Suzy: I found out that infants like Charlie, may not be fully protected against pertussis, also known as whooping cough, until they have had at least 3 doses of the vaccine.</p><p>I want to get close and not think twice about giving her pertussis.  So I asked my doctor about the adult pertussis vaccine. And I got vaccinated right away.</p><p>Brian: I did too. So we also asked our closest friends and relatives to get the adult pertussis booster.</p><p>Suzy: It could save your baby\'s life.</p>');
		}
		if ($('a#navigation-section-3').hasClass('active'))
		{
			$('div#section-3-video').html('<iframe src="section-3-video.html" name="video03" frameborder="0" scrolling="no"></iframe>');
			//$('div#section-3-video iframe').attr('src', 'section-3-video.html');
			$('div.transcript-content').html('<h2>A doctor\'s perspective on pertussis</h2><h3>VIDEO TRANSCRIPT</h3><p>"In the past 15 years, I\'ve witnessed more and more infants admitted to the ER with severe pertussis.</p><p>As a matter of fact, even when you get your baby vaccinated against pertussis, he or she may not be fully protected until they\'ve had at least 3 doses. The problem is that parents and other caregivers of infants, like you, are the ones who most often spread pertussis to babies. In adults, this disease is often mild and mistaken as a common cold or bronchitis. So you could easily pass it on to your baby and not even know you have it.</p><p>So call your doctor now. Ask about the adult pertussis vaccine and make an appointment to get your booster today. The CDC and over 20 medical societies recommend it."</p>');
		}
		//if ($('a#navigation-section-4').hasClass('active'))
		//{
			//alert('four');
		//} 
	});	
	$('div#hdr-logo img').click(function(event) {
			$('div#section-0b-video').html('<iframe src="section-0b-video.html" id="video0b" name="video0b" frameborder="0" scrolling="no"></iframe>');
			$('div.transcript-content').html('<h2>Jeff Gordon and wife, Ingrid fight to raise awareness</h2><h3>VIDEO TRANSCRIPT</h3><p>Jeff: I\'m Jeff Gordon, and this is my wife, Ingrid.</p><p>Ingrid: Like all parents, we want to do the very best for our children.</p><p>Jeff: That means getting ourselves and others better informed about diseases like pertussis, or whooping cough.</p><p>Ingrid: Here on <a href="http://www.soundsofpertussis.com">SoundsOfPertussis.com</a>, you can learn about the risk pertussis poses to infants and what you can do to help protect the babies in your life.</p><p>Jeff: So check out these videos. They contain important facts about pertussis with information on what you can do to help protect your baby.</p>');
	});		
	$('div#overlay-pike a').click(function(event) {
			// window.frames["video02"].location.reload(true);
			$('div#section-2-video').html('<iframe src="section-2-video.html" name="video02" frameborder="0" scrolling="no"></iframe>');
	});			
	$('p.ftr-nav a, #icon-email').click(function(event) {
		// stop videos on overlay
		window.frames["video0b"].location.reload(true);
		window.frames["video01"].location.reload(true);
		window.frames["video02"].location.reload(true);
		window.frames["video03"].location.reload(true);
	});	
	// start button kills iframe src to stop video //
	// must stop video from playing
	$('#start-next').click(function(event){
		$('div#section-0b-video').html('<iframe src="section-0b-video.html" id="video0b" name="video0b" frameborder="0" scrolling="no"></iframe>');
	});

	
	// Zip code locator functionality
	$('img#doctor-locator').hover(function(){
		$(this).css('cursor','hand');
	}, function () {
		$(this).css('cursor','pointer');
	});
	
	$('img#doctor-locator').click(function()	{
		if ($('#small_zipcode_overlay').is(":visible")){
			$('#small_zipcode_overlay').slideUp();
		} else {
			$('#small_zipcode_overlay').slideDown();
		}
	});

	$('#search_btn_zip').hover(function ()	{
		$(this).css('cursor','hand');
	}, function () {
		$(this).css('cursor','pointer');
	});
	
	$('#search_btn_zip').click(function (){
		var zip = $('#small_zipcode_overlay #zipcode').val();
		if (isZip(zip))	{
			$('#sm_zip_error').hide()
			var miles = $('#small_zipcode_overlay #miles').find(":selected").text();
			if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
				$.colorbox({ close: '', href: "find-a-doctor.html?zip=" + zip + "&miles=" + miles, width: "890px", height: "470px", iframe: true, scrolling: false, opacity: 0.5, speed: 500, onCleanup:function () {
					$('#small_zipcode_overlay').slideUp();
				}, onClosed:function(){ $("#zipcode").val('Enter Zip Code'); } 
				});	
			} else {
			$.colorbox({ close: '', href: "find-a-doctor.html?zip=" + zip + "&miles=" + miles, width: "890px", height: "520px", iframe: true, scrolling: false, opacity: 0.5, speed: 500, onCleanup:function () {
				$('#small_zipcode_overlay').slideUp();
				}, onClosed:function(){ $("#zipcode").val('Enter Zip Code'); } 
				});	
			}
		} else {
			$('#sm_zip_error').show()
		}
		return false;
	});

	$('#search_btn_zip2').hover(function ()	{
		$(this).css('cursor','hand');
	}, function () {
		$(this).css('cursor','pointer');
	});

	$('#search_btn_zip2').click(function (){
		var zip = $('#zipcode2').val();
		if (isZip(zip))	{
			$('#sm_zip_error2').hide()
			
			var miles = 10;
			if ((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
				$.colorbox({ close: '', href: "find-a-doctor.html?zip=" + zip + "&miles=" + miles, width: "890px", height: "470px", iframe: true, scrolling: false, opacity: 0.5, speed: 500, onCleanup:function () {
					$('#small_zipcode_overlay').slideUp();
				}, onClosed:function(){ $("#zipcode").val('Enter Zip Code'); } 
				});	
			} else {
			$.colorbox({ close: '', href: "find-a-doctor.html?zip=" + zip + "&miles=" + miles, width: "890px", height: "520px", iframe: true, scrolling: false, opacity: 0.5, speed: 500, onCleanup:function () {
				$('#small_zipcode_overlay').slideUp();
				}, onClosed:function(){ $("#zipcode").val('Enter Zip Code'); } 
				});	
			}
		} else {
			$('#sm_zip_error2').show()
		}
		return false;
	});

	
	$('.closeme').hover(function ()	{
		$(this).css('cursor','hand');
	}, function () {
		$(this).css('cursor','pointer');
	});

	//if (location.href.match('index2.cfm'))
	if (location.href.match('index.cfm'))
	{
		$('div#ienav-bkg').hide();
		$('#navigation').hide();
	}
	
});

function isZip(s) 
{
     // Check for correct zip code
     reZip = new RegExp(/(^\d{5}$)|(^\d{5}-\d{4}$)/);
     if (!reZip.test(s)) {
          return false;
     }
return true;
}

function loadTranscriptsOverlay(){
	$.fn.colorbox({html: $('#transcripts').html(), width:"694px", height:"453px", opacity: .5, scrolling: false});
}


