numBlogs = 6;
countIt =0;
stopC='on'


bloGs=new Array();
bloGs[0]="1";
bloGs[1]="2";
bloGs[2]="3";
bloGs[3]="4";
bloGs[4]="5";
bloGs[5]="6";


function hideallExcept(call) {
for (var i = 0; i < numBlogs; i++) {
var show = document.getElementById("sh" + i);
if (call != i) {
show.style.display = "none";
}
else {
show.style.display = "block";
}
}
}



var player = null;
function playerReady(thePlayer) {
	player = window.document[thePlayer.id];
}


function createPlayer() {
	var flashvars = {
		file:"http://abilto.com/v/outcomes04.flv", 
		autostart:"false",
		skin:"http://abilto.com/case-study/modieus/modieus.swf"
	}

	var params = {
		allowfullscreen:"true", 
		allowscriptaccess:"always"
	}

	var attributes = {
		id:"player1",  
		name:"player1"
	}

	swfobject.embedSWF("http://abilto.com/case-study/player.swf", "placeholder1", "300", "255", "9.0.115", false, flashvars, params, attributes);
}

var allVids = new Array('http://abilto.com/v/advantages03.flv','http://abilto.com/v/approach04.flv','http://abilto.com/v/clientteam04.flv','http://abilto.com/v/outcomes04.flv','http://abilto.com/v/videocounseling03.flv');
var allH4s = new Array('Advantages','Approach','Team','Results','Video');
var allPs = new Array(
			'Charlie preferred to work from his apartments during the evening.',
			'Charlie found our empirically grounded approach to be uniquely effective.',
			'Coordination translated into into better help and support for Charlie.',
			'"My panic attacks kept me at home. Eight weeks after starting with AbilTo, I was panic free and navigating the #6 train alone. The Program really works."<br /><br /><strong>Charlie H.</strong><br />Former Client</p>',
			'Charlie found web-based videocounseling preferable to a therapist office.');


function changeVid(newVid){
	player.sendEvent('STOP');
	player.sendEvent('LOAD', 
	allVids[newVid]);
	var daP = document.getElementById('vid-p');
	var daH = document.getElementById('vid-h');
	daP.innerHTML=allPs[newVid];
	daH.innerHTML=allH4s[newVid];
	}