window.config = {
	setUIMode: function(mode){
			D('vl_mediaplayer').style.display = 'block';	
	if(isIE){	
		D('vl_chaptersSelect').style.marginTop= '-3px';
		D('vl_chaptersSelect').style.height = '58px';	
	}
	}	
};

if(location.toString().substring(location.toString().length - 3, location.toString().length) == 'hta')
{
    window.resizeTo(1030, 710);
}

function selectTab(btn, id)
{
	var parent = D(id).parentNode;
	for(i in parent.childNodes)
	{
		var n = parent.childNodes[i];
		if(n.nodeType == 1 && n.tagName == D(id).tagName) {
			if(n.className.indexOf('visible_false') == -1){
            n.className = 'tab_hidden';
			}
		};
	}
	D(id).className = 'tab_selected';
	
	parent = btn.parentNode;
	for(i in parent.childNodes)
	{
		var n = parent.childNodes[i];
		if(n.nodeType == 1 && n.tagName == btn.tagName) {
			if(n.className.indexOf('visible_false') == -1){
            n.className = 'tab_button';
			}
		};
	}
	btn.className = 'tab_button_selected';
}


