// Edit this file to configure this skin. Settings related to a given VL installation
// (such as where to find the toc and the video files) are set in deployment.js
// Default values are shown commented out. You need to uncomment and edit the value
// in order to change the skin's behaviour.

window.config = {	
// SetUIMode. A function to show different parts of the UI
// Common modes are: 'frontpage', 'videos', 'details', 'searchResults'
	setUIMode: setUIMode,
	thumbnail: {x: 200, y: 0, ie6y: 112}, //you must always set a thumbnail
	breadcrumbSeparator: '&nbsp;::&nbsp;',
	//hover: {x: 320, y:240},
	disableAdHocLive: true,
	disablePNGFix: true,
	infoMinHeight: 150,
	chaptersMinHeight: 150,
	splitWidth: 4
};

// Auto-Refresh. Uncomment this to reload the toc periodically. Default is off
setInterval(refresh, 40000);
	
///////////////////////////////////////////////////////////////////////////////	
//Add any custom functions or initialization below this line

function focusSearch(){
	if(D("vl_searchtext").value == "Search titles and descriptions"){
		D("vl_searchtext").value = '';
		D("vl_searchtext").style.color = 'black';
	}	
}

function blurSearch(){
	if(D("vl_searchtext").value == "" ){
		D("vl_searchtext").value = 'Search titles and descriptions';
		D("vl_searchtext").style.color = '#555';
	}
}

function setUIMode(mode)
{	
	switch(mode){
		case 'details':
			D("btnPermlinkv").style.display = "block";
			D("btnFullScreen").style.display = "block";
			D("vl_sortselect").style.display = "none";				
			D('permalink').style.visibility = "hidden";	
			break;
		case 'videos':
			D("btnPermlinkv").style.display = "block";
			D("btnFullScreen").style.display = "none";
			D("vl_sortselect").style.display = "block";
			D('edPermalink').value = folders[selectedFolderIdx].folderUrl;
			break;
		case 'searchResults':
			D("btnPermlinkv").style.display = "none";
			D("btnFullScreen").style.display = "none";
			D("vl_sortselect").style.display = "block";						
			break;  
		case 'frontpage':
			D("btnPermlinkv").style.display = "none";
			D("btnFullScreen").style.display = "none";
			D("vl_sortselect").style.display = "none";
			D("vl_breadcrumbs").innerHTML = '<a href="javascript:void 0">Latest Videos</a></div>';
			break;
	}
}

// Copyright (c) 2008 Encoded Media (UK) Limited. All Rights Reserved. For more information, visit www.encodedmedia.com //
// $Revision: 1.1.2.1 $

