function gallery_ow(url) {

    // window.open("/gallery_ow.php?file="+file,"","toolbar=no,menubar=no,scrollbars=yes,status=yes,location=no");
    
    var centerWidth = (window.screen.width - 615) / 2;
    var centerHeight = (window.screen.height - 615) / 2;
    newWindow = window.open(url,"","width=640,height=670,toolbar=no,menubar=no,scrollbars=no,status=no,location=no");
    newWindow.moveTo(centerWidth, centerHeight);
    newWindow.blur();
    newWindow.focus();  

}


function video_ow(file) {

    // window.open("/gallery_ow.php?file="+file,"","toolbar=no,menubar=no,scrollbars=yes,status=yes,location=no");
    
    var centerWidth = (window.screen.width - 450) / 2;
    var centerHeight = (window.screen.height - 370) / 2;
    newWindow = window.open("/video_ow.php?file="+file,"","width=450,height=370,toolbar=no,menubar=no,scrollbars=no,status=no,location=no");
    newWindow.moveTo(centerWidth, centerHeight);
    newWindow.blur();
    newWindow.focus();  

}

function controlPlayer(func,param) {
	thisMovie("mp3player").jsControl(func,param);
}
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	} else {
		return document[movieName]
	}
}
var full_txt_id;
function show_text(id) {
	if(full_txt_id == id) {
		document.getElementById("T" + id ).style.display = "none"
		full_txt_id = ''
	} else {
		if(full_txt_id) 
			document.getElementById("T" + full_txt_id).style.display = "none"
		document.getElementById("T" + id ).style.display = "block"
		full_txt_id = id
	}
	return false;
	
}

