var flashVideoPlayer;

function initializeFlash(){
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	flashVideoPlayer = (isIE) ? window['sessionPlayer'] : document['sessionPlayer'];
}


// Mini/Full Player Play Function

function callFlashPlayVideo(url) {
    flashVideoPlayer.callFlashPlayVideo(url + '.mp4');
}

// Full Player Stop Function
function callFlashStopVideo(){
    flashVideoPlayer.callFlashStopVideo();
}


// Vlog controls

var flashVlogPlayer;

function initializeVlog(){
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	flashVlogPlayer = (isIE) ? window['vlogPlayer'] : document['vlogPlayer'];
}

function showVideo(url){
	
	//$("#vlogPlayer").css("diplay","");
	//$("#vlogPicture").css("display","none");
	
	flashVlogPlayer.callFlashPlayVideo(url + '.mp4');
}

function hideVideo(){
	
	flashVlogPlayer.callFlashStopVideo();
	
	//$("#vlogPicture").css("display", "");
	//$("#vlogPlayer").css("display", "none");
}