
// New Toggle Version For Use In The Popup Player
// Toggles CSS 'display' property instead of 'visibility'
function toggleSyndication(obj) {
	var el = document.getElementById(obj);
	el.style.display = (el.style.display != 'none' ? 'none' : '' );
}

// Old Version
function showHideSyndication(elementid){
    if (document.getElementById(elementid).style.visibility == 'hidden'){
        document.getElementById(elementid).style.height = 'auto';
        document.getElementById(elementid).style.width = '186px';
        document.getElementById(elementid).style.visibility = 'visible';
    } else {
        document.getElementById(elementid).style.height = '1px';
        document.getElementById(elementid).style.width = '1px';
        document.getElementById(elementid).style.visibility = 'hidden';
    }
}

function openPlayerInNewWindow(params){
    new_window = window.open(player_base_url+'popup.php?'+params,'none','height=350,width=360,resizable=yes');
    if(window.focus) {
        new_window.focus();
    }
}

function popUp(url) {
	newwindow=window.open(url,'name','height=170,width=360,resizable=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}

