//ABA OMK - Indigent Defense
var urlToOpenBase = "http://www.abanet.org/crimjust/juvjus";
var pdfSuffix = ".pdf";
var htmlSuffix = ".html";

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openRadioNewsRelease(){
	var urlToOpen = "audio_radionewsrelease.htm";
	this.MM_openBrWindow(urlToOpen,'media','width=550,height=450');
}

function playAudio(audio, format, speed){
	var urlToPlay = "audio_" + audio + "_";
	var urlSuffix = ".htm";
	
	if( format == "RealPlayer" ){
		urlToPlay += "rp";	}
	else{
		urlToPlay += "wmp";	}
	
	if( speed == "fast" ){
		urlToPlay += "_fast";	}
	else{
		urlToPlay += "_slow";	}
		
	urlToPlay += ".htm";
	
	window.open(urlToPlay,'_self');	
}

function playAudioNewsRelease(format,speed){
	playAudio("radionewsrelease",format,speed);
}

function openVideoABAPresident(){
	var urlToOpen = "video_ABApresident.htm";
	MM_openBrWindow(urlToOpen,'media','width=550,height=375');
}

function playVideo(video, format, speed){
	var urlToPlay = "video_" + video + "_";
	var urlSuffix = ".htm";
	
	if( format == "RealPlayer" ){
		urlToPlay += "rp";	}
	else{
		urlToPlay += "wmp";	}
	
	if( speed == "fast" ){
		urlToPlay += "_fast";	}
	else{
		urlToPlay += "_slow";	}
		
	urlToPlay += ".htm";
	
	window.open(urlToPlay,'_self');	
}

function playVideoABAPresident(format,speed){
	playVideo("ABAPresident",format,speed);
}

function playVideo(video, format, speed){
	var urlToPlay = "video_" + video + "_";
	var urlSuffix = ".htm";
	
	if( format == "RealPlayer" ){
		urlToPlay += "rp";	}
	else{
		urlToPlay += "wmp";	}
	
	if( speed == "fast" ){
		urlToPlay += "_fast";	}
	else{
		urlToPlay += "_slow";	}
		
	urlToPlay += ".htm";
	
	window.open(urlToPlay,'_self');	
}

function playVideoCMorgan(format,speed){
	playVideo("CMorgan",format,speed);
}

function playVideoCCerdo(format,speed){
	playVideo("CCerdo",format,speed);
}

function playVideoANelson(format,speed){
	playVideo("ANelson",format,speed);
}

function playVideoCJohnson(format,speed){
	playVideo("CJohnson",format,speed);
}

function playVideoPBoggs(format,speed){
	playVideo("PBoggs",format,speed);
}

function playVideoKHodge(format,speed){
	playVideo("KHodge",format,speed);
}

function playVideoEHolder(format,speed){
	playVideo("EHolder",format,speed);
}

function playVideoCLillie(format,speed){
	playVideo("CLillie",format,speed);
}

function playVideoRGrey(format,speed){
	playVideo("RGrey",format,speed);
}

function playVideoSWatson(format,speed){
	playVideo("SWatson",format,speed);
}
