/*
var date				= new Date("December 31, 2023");
var expirationDate		= date.toGMTString();
var cookieScreenWidth	= "HHCZ_SCREEN_WIDTH=" + screen.width + ";expires=" + expirationDate + ";path=/";
var cookieScreenHeight	= "HHCZ_SCREEN_HEIGHT=" + screen.height + ";expires=" + expirationDate + ";path=/";
document.cookie			= cookieScreenWidth;
document.cookie			= cookieScreenHeight;
*/
var addthis_options = 'email, print, facebook, twitter, blogger, delicious, digg, favorites, google, myspace, wordpress, more';
var addthis_localize = {
	share_caption: "hip-hop.cz",
	email_caption: "Poslat odkaz se vzkazem příteli",
	email: "E-mail",
	favorites: "Oblíbené",
	more: "Další"
};

function openWindow(url, title) {
	window.open(url, title, "toolbar=no,status=no,scrollbars=yes,resizable=no,width=490,height=320");
}

function resizeWindow() {
	IE7 = ((document.all) && (navigator.appVersion.indexOf("MSIE 7.") != -1)) ? true : false;
	if (IE7) {
		this.window.resizeTo(document.images['img'].width + 40, document.images['img'].height + 115);
	}
	else {
		this.window.resizeTo(document.images['img'].width + 40, document.images['img'].height + 90);
	}
}

function showObject(obj) {
	var x = document.getElementById(obj);
	x.style.display = "table";
}

function hideObject(obj) {
	var x = document.getElementById(obj);
	x.style.display = "none";
}

function insertText(obj, text){ 
	obj.focus(); 
	obj.value += " " + text;
}

function showSendForm() {
	var sendForm = document.getElementById('sendForm');
	var commentForm = document.getElementById('commentForm');
	var comments = document.getElementById('comments');
	if (sendForm != null) {
		sendForm.className = "visible";
	}
	if (commentForm != null) {
		commentForm.className = "hide";
	}
	if (comments != null) {
		comments.className = "hide";
	}
}

function showCommentForm() {
	var sendForm = document.getElementById('sendForm');
	var commentForm = document.getElementById('commentForm');
	var comments = document.getElementById('comments');
	if (sendForm != null) {
		sendForm.className = "hide";
	}
	if (commentForm != null) {
		commentForm.className = "visible";
	}
	if (comments != null) {
		comments.className = "hide";
	}
}

function showComments() {
	var sendForm = document.getElementById('sendForm');
	var commentForm = document.getElementById('commentForm');
	var comments = document.getElementById('comments');
	if (sendForm != null) {
		sendForm.className = "hide";
	}
	if (commentForm != null) {
		commentForm.className = "hide";
	}
	if (comments != null) {
		comments.className = "visible";
	}
}
