		function getPlayer(gid) {
		 		 if(navigator.appName.indexOf("Microsoft") != -1) {
		 		 		 return eval("parent.window."+gid)
		 		 } else {
		 		 return parent.document.getElementById(gid);
		 		 }
		 }
		function showcaseBlurb(videoID,fileName,image,videoTitle,programURL,embedFlag,description){
			jQuery('#showcaseSideContent').html(description);
			showVideo(videoID,fileName,image,videoTitle,programURL,embedFlag);
		}
		
		 function showVideo(videoID,fileName,image,videoTitle,programURL,embedFlag){
				
				if(embedFlag==1||embedFlag==2){
					if(programURL!=''&& programURL!='undefined'&& videoTitle!=''){
						document.getElementById('emBotTitleDiv').innerHTML='<a href="'+programURL+'">Learn more: '+videoTitle+'</a>';
					}
					if((programURL==''|| programURL=='undefined')&& videoTitle!=''){
						document.getElementById('emBotTitleDiv').innerHTML=videoTitle;
							
					}
				
				
					var xmlHttp;
					// Firefox, Opera 8.0+, Safari
					try{xmlHttp=new XMLHttpRequest();}
					 // Internet Explorer
						catch (e){  try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
						catch (e){   try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
						catch (e){xmlHttp=false;					 	}}}
					xmlHttp.onreadystatechange=function(){
						if(xmlHttp.readyState==4){
							document.getElementById("embedPlayer").innerHTML=xmlHttp.responseText;
							
		 				 }
					}
					xmlHttp.open("GET",fileName,true);
					xmlHttp.send(null);
				}
				if(embedFlag==0){
					
					var videoInfo=eval('[{ file:\''+fileName+'\', image:\''+image+'\'}]');
					jwplayer().load(videoInfo);
					jwplayer().play(true);				
					if(programURL!=''&& programURL!='undefined'&& videoTitle!=''){
						document.getElementById('botTitleDiv').innerHTML='<a href="'+programURL+'">Learn more: '+videoTitle+'</a>';
					}
					if((programURL==''|| programURL=='undefined')&& videoTitle!=''){
						document.getElementById('botTitleDiv').innerHTML=videoTitle;
							
					}				
				}
				if(embedFlag==2){
					if(programURL!=''&& programURL!='undefined'&& videoTitle!=''){
						document.getElementById('emBotTitleDiv').innerHTML='<a href="'+programURL+'">Learn more: '+videoTitle+'</a>';
					}
					if((programURL==''|| programURL=='undefined')&& videoTitle!=''){
						document.getElementById('emBotTitleDiv').innerHTML=videoTitle;
							
					}
					
				}
				
				document.getElementById(videoID).style.visibility='visible';
				document.getElementById(videoID).style.zIndex='1000';
		 }
		 function closeVideo(videoID){
				if(videoID=='videoDiv'||videoID=='prgrmVideoDiv'||videoID=='showcaseVideoDiv')
					jwplayer().play(false);
				else
					document.getElementById("embedPlayer").innerHTML='';
		 		document.getElementById(videoID).style.visibility='hidden';
		 		document.getElementById(videoID).style.zIndex='0';
		 }
		
		function showFixedVideo(videoID,videoURL,videoTitle,programURL){
				var xmlHttp;
				// Firefox, Opera 8.0+, Safari
				try{xmlHttp=new XMLHttpRequest();}
				 // Internet Explorer
				catch (e){  try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
				catch (e){   try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
				catch (e){xmlHttp=false;					 	}}}
				xmlHttp.onreadystatechange=function(){
					if(xmlHttp.readyState==4){
						document.getElementById("playerDivAjax").innerHTML=xmlHttp.responseText;
		 			 }
				}
				xmlHttp.open("GET",videoURL,true);
				xmlHttp.send(null);
		 		document.getElementById(videoID).style.zIndex='100';
				if(videoTitle!=''){
					document.getElementById('videoTitleDiv').innerHTML=videoTitle;
				}
		 }
