var podcastB2B = [
	{
		headline: "Social Media in the B2B Space ",
		body:     "<p>In this podcast, Matt Webster, Mov&eacute;o's VP of Media Services, explains what B2B brand owners need to know about social media -- from the tools available to basics of building an effective strategy. He argues that the best place to start is with a thorough understanding of the social media channel, its capabilities and its limitations.</p><p>Matt has more than 14 years of experience in developing media strategies for companies like CareerBuilder, Siemens and Midas Auto Service Experts. He specializes in helping Mov&eacute;o's clients harness the power of emerging media.</p>",
		img:      "podcast_player/swf/social_media.swf",
		mp3:      "podcast_player/mp3/b2b-social-media-podcast-moveo.mp3",
		urchin:   "/b2b/mindshare/podcasts/b2bvideo"
	
	},
	
	{
		headline: "B2B Video: Seeing the Possibilities ",
		body:     "<p>Brian Davies a founding partner of Mov&eacute;o Integrated Branding discusses the slow adoption of video on the web by B2B companies and the opportunities available.</p>",
		img:      "podcast_player/swf/b2b_video_podcast2.swf",
		mp3:      "podcast_player/mp3/moveo_b2b_video_podcast2.mp3",
		urchin:   "/b2b/mindshare/podcasts/b2bvideo"
	
	},
	{
		headline: "Web 2.0 is Branding 2.0",
		body:	  "<p>Dave Cannon, Mov&eacute;o's Director of Interactive Services, discusses how businesses can use the web to drive brand preference and deliver results.</p><p>He argues that \"Web 2.0,\" a series of best practices and favored technologies for Internet development, has given rise to new ways of looking at branding -- in essence, a kind of \"Branding 2.0.\"</p><p>Dave has 10 years of experience in Internet strategy and development and has helped dozens of companies develop sites that leverage Web 2.0 technologies.</p>",
		img:      "podcast_player/swf/web2.swf",
		mp3:      "podcast_player/mp3/web2brand_podcast.mp3",
		urchin:   "/b2b/mindshare/podcasts/web2"
	
	},
	{
		headline: "A Customer Survey That Matters in the B2B Boardroom",
		body:     "<p>Kevin Randall, Mov&eacute;o's Director of Brand Strategy and Research, explains the buzz around the newest customer loyalty metric, the Net Promoter Scorer (NPS).</p><p>NPS measures how likely customers are to recommend a brand or business to colleagues. Its inventor, Fred Reichheld, argues that this is the only real indicator of customer preference.</p><p>Kevin has helped numerous B2B executives incorporate NPS into their strategy efforts. For more than a decade, he has worked with blue-chip brands such as Pfizer, CareerBuilder.com and Siemens.</p>",
		img:      "podcast_player/swf/customer_survey.swf",
		mp3:      "podcast_player/mp3/moveo_nps_podcast.mp3",
		urchin:   "/b2b/mindshare/podcasts/nps"
	
	},
	{
		headline: "Brands Are More Important in B2B Than B2C",
		body:     "<p>Kevin Randall, Mov&eacute;o's Director of Brand Strategy and Research, argues that B2B customers make purchase decisions based on more than just cold hard facts. As customers find themselves overwhelmed by parity and clutter--benefits, features, metrics--brand affinity becomes more important.</p><p>Kevin has more than a decade of experience in developing brand strategies for B2B companies, such as CareerBuilder.com, Siemens and the IntercontinentalExchange (ICE).</p>",
		img:      "podcast_player/swf/brand_importance.swf",
		mp3:      "podcast_player/mp3/b2b_brands_matter.mp3",
		urchin:   "/b2b/mindshare/podcasts/brandsmatter"
		
	},
	{
		headline: "Emerging Media and Your Target Audience",
		body:     "<p>Matt Webster, Mov&eacute;o's Director of Emerging Media and Planning, explains that B2B marketers must learn to leverage emerging media in order to effectively reach their target audiences.</p><p>With more than 11 years of experience in online media planning and client service, Matt helps Mov&eacute;o's clients select the right media mix and optimize their campaigns.</p>",
		img:      "podcast_player/swf/emerging_media.swf",
		mp3:      "podcast_player/mp3/moveo_emerging_media_pod.mp3",
		urchin:   "/b2b/mindshare/podcasts/emergingmedia"
	
	},
	{
		headline: "Ingredient Branding",
		body:     "<p>Dr. Waldemar Pfoertsch is a noted a brand consultant, university professor and co-author of B2B Brand Management. In this podcast, he shares his knowledge of ingredient branding with Mov&eacute;o Partner Bob Murphy.</p><p>Ingredient branding or \"InBranding\" is a marketing strategy in which component makers promote their products not only to equipment manufacturers, but end users as well. The most famous example of InBranding is the \"Intel Inside\" campaign of the late 90's.</p><p>Dr. Pfoertsch has served as an economic advisor to the United Nations Industrial Development Organization and is faculty member at Pforzheim University in Germany.</p>",
		img:      "podcast_player/swf/ingredient_branding.swf",
		mp3:      "podcast_player/mp3/Moveo_Ingredient_Branding.mp3",
		urchin:   "/b2b/mindshare/podcasts/ingredientbranding"
	
	}

];
var podcastHC = [
	{
		headline: "Ideal Cancer Center",
		body:     "<p>What Cancer Patients Want?</p><p>Kevin Randall, Mov&eacute;o's Director of Brand Strategy and Research, discusses the results of his proprietary national studies of cancer patients, caregivers and oncologists. What did he learn? That it's essential to offer both traditional medicine and \"complementary\" or \"alternative\" treatment options.</p><p>Kevin has more than a decade of experience in developing brand strategies for healthcare and pharmaceutical companies, such as Cancer Treatment Centers of America, GE Healthcare, Roche, Pfizer, TAP, Eli Lilly, Baxter, Mallinckrodt, Abbott and others.</p><p>Mov&eacute;o conducted a nationwide study of 1,200 cancer patients, caregivers and oncologists.</p><p><strong>Finding #1:</strong> Patients want to be viewed and treated as a whole person -- not just an illness.</p><p><strong>Finding #2:</strong> Patients are making treatment decisions based on more than just their doctors' opinions. They're influenced by the Internet and support groups.</p><p><strong>Finding #3:</strong> More hospitals are willing to offer the holistic care patients' want.</p><p><strong>Finding #4:</strong> Caregivers -- the patients' loved ones -- need support and care, as well.</p><dl><dt>What does the ideal cancer center look like?</dt><dd><ul><li>All treatments under one roof</li><li>Case managers/patient advocates</li><li>Patient-centric</li><li>Holistic care and support services</li></ul></dd></dl>",
		img:      "podcast_player/swf/ideal_cancer_center.swf",
		mp3:      "podcast_player/mp3/ideal_cancer_center.mp3",
		urchin:   "/hc/mindshare/podcasts/idealcancercenter"
	
	},
	{
		headline: "What is Web 2.0?",
		body:	  "<p>Dave Cannon, Mov&eacute;o's Director of Interactive Services, discusses how businesses can use the web to drive brand preference and deliver results.</p><p>He argues that \"Web 2.0,\" a series of best practices and favored technologies for Internet development, has given rise to new ways of looking at branding -- in essence, a kind of \"Branding 2.0.\"</p><p>Dave has 10 years of experience in Internet strategy and development and has helped dozens of companies develop sites that leverage Web 2.0 technologies.</p>",
		img:      "podcast_player/swf/web2.swf",
		mp3:      "podcast_player/mp3/web2brand_podcast.mp3",
		urchin:   "/b2b/mindshare/podcasts/web2"
	
	}

];





var PodcastPlayInit = false;

window.onload = function() {

	//:: APPLICATION VARIABLES
	sndIndex = 0;
	inPause = false;
	inPlay = false;
	trackInfo = document.getElementById("track-info");
	trackListBtn = document.getElementById("track-list-btn");
	trackList = document.getElementById("track-list");
	nextTrackBtn = document.getElementById("next-track-btn");
	prevTrackBtn = document.getElementById("prev-track-btn");
	playPauseBtn = document.getElementById("play-pause-btn");
	stopBtn = document.getElementById("stop-btn");
	trackList = document.getElementById("track-list");
	
	//:: INIT FLASH OBJECT
	if(navigator.appName.indexOf("Microsoft") != -1){
		swf = document.podcast_player;
	}else{
		swf = window.document.podcast_player;
	}
	
	//:: INIT TRACKLIST
	var ul = document.createElement("ul");
	trackList.appendChild(ul);
		
	for(var i=0; i<industry.length; i++){
		var li = document.createElement("li");
		ul.appendChild(li);
				
		var a = document.createElement("a");
		a.href = "javascript:void(0);";
		a.id = i;
		a.onclick = trackListItemEvent;
		a.appendChild(document.createTextNode(industry[i].headline));
 		li.appendChild(a);
 	}
 	
 	//:: REGISTER EVENTS
   	trackListBtn.onclick = trackListBtnEvent;
 	nextTrackBtn.onclick = nextTrackBtnEvent;
 	prevTrackBtn.onclick = prevTrackBtnEvent;
 	playPauseBtn.onclick = playPauseBtnEvent;
 	playPauseBtn.onmouseover = playPauseBtnEvent;
 	playPauseBtn.onmouseout = playPauseBtnEvent;
 	stopBtn.onclick = stopBtnEvent;
 	
 	//:: INIT TRACKLIST INFO
 	trackListBtn.innerHTML = industry[sndIndex].headline;
	trackInfo.innerHTML = "<h4>" + industry[sndIndex].headline + "</h4>" + industry[sndIndex].body;
	swf.swfLoadSnd(industry[sndIndex].mp3);
	swf.swfNewImg(industry[sndIndex].img);
}

//--------------------

function newTrack(){
	inPlay = true;
	inPause = false;
	playPauseBtn.style.backgroundPosition = "-41px";
	trackListBtn.innerHTML = industry[sndIndex].headline;
	trackInfo.innerHTML = "<h4>" + industry[sndIndex].headline + "</h4>" + industry[sndIndex].body;
	trackList.style.display = "none";
	swf.swfLoadSnd(industry[sndIndex].mp3);
	swf.swfTBarEvents();
	swf.swfNewImg(industry[sndIndex].img);
	urchinTracker(industry[sndIndex].urchin);
	//alert(industry[sndIndex].urchin);
}

//--------------------

function trackListBtnEvent(){
	var e = arguments[0] || window.event;
	
	if(e.type == "click"){
		if(trackList.style.display == "none"){
			trackList.style.display = "block";
		
		}else{
			trackList.style.display = "none";
		
		}
			
	}

}

//--------------------

function trackListItemEvent(){
	var e = arguments[0] || window.event;
	
	if(e.type == "click"){
		sndIndex = parseInt(this.id);
		newTrack();
					
	}

}

//--------------------

function prevTrackBtnEvent(){
	var e = arguments[0] || window.event;
	
	if(e.type == "click"){
		if(sndIndex > 0){
			sndIndex -= 1;
			newTrack();
						
		}
		
	}
	
}

//--------------------

function nextTrackBtnEvent(){
	var e = arguments[0] || window.event;

	if(e.type == "click"){
		if(sndIndex < industry.length - 1){
			sndIndex +=1;
			newTrack();
					
		}
	
	}

}

//--------------------

function playPauseBtnEvent(){
	var e = arguments[0] || window.event;

	if(e.type == "click"){
		
		if(inPlay == true){
			inPlay = false;
			inPause = true;
			this.style.backgroundPosition = "-82px";
			swf.swfPauseSnd();
				
		}else{
			inPlay = true;
			inPause = false;
			this.style.backgroundPosition = "-41px";
			swf.swfPlaySnd(industry[sndIndex].mp3);
		
		}
		
		if (!PodcastPlayInit) {
			newTrack();
			PodcastPlayInit = true;
		}
			
	}
	if(e.type == "mouseover"){
		if(!inPlay && !inPause){
			this.style.backgroundPosition = "-41px";
			
		}
	
	}
	if(e.type == "mouseout"){
		if(!inPlay && !inPause){
			this.style.backgroundPosition = "0";
		
		}
		
	}

}

//--------------------

function stopBtnEvent(){
	var e = arguments[0] || window.event;

	if(e.type == "click"){
		inPlay = false;
		inPause = false;
		playPauseBtn.style.backgroundPosition = "0";
		swf.swfStopSnd();
		
	}

}
