// JavaScript Document
function change_image(name, image) {
	document.getElementById(name).src = image;
}
function CommentsVisibility(d)
{
	if(d.length < 1) { return; }
	if(document.getElementById(d).style.display == "none") {
		document.getElementById(d).style.display = "block";
		document.getElementById("comments-navigation-icon").style.backgroundImage = "url('/img/comments_up.gif')";
	} else {
		document.getElementById(d).style.display = "none"; 
		document.getElementById("comments-navigation-icon").style.backgroundImage = "url('/img/comments_down.gif')";		
	}
}
function show(d)
{
	if(d.length < 1) { return; }
	if(document.getElementById(d).style.display == "none") {
		document.getElementById(d).style.display = "block";
		document.getElementById("comments-navigation-icon").style.backgroundImage = "url('/img/comments_up.gif')";
	}
}
function popup(cat, id) {
	var url;
	if (id) 
		url = "/photoshow/" + cat + "/" + id;
	else 
		url = "/photoshow/" + cat;	
	window.open(url, "", "status = 1, height = 600, width = 910, resizable = 0");
}
function tfpopup(id, tab){
window.open('/libs/tell_a_friend.php?id='+id+'&tab='+tab, 'tellafriend_script','scrollbars=1,statusbar=1,resizable=1,width=400,height=510');
}
function printpreview_popup(aid, section) {
	window.open('/printpreview.php?'+section+'='+aid, 'Printpreview', 
		'status = 1, scrollbars=1, height = 640, width = 570, resizable = 0');
}
function livescore_popup_sport() {
	window.open('/tmpl/livescore.php', 'Printpreview', 
		'status = 1, scrollbars=1, height = 840, width = 570, resizable = 0');
}
