function showComment(id){
	if(document.getElementById("show_comment-"+id).style.display=="block"){
		document.getElementById("show_comment-"+id).style.display="none";
		//document.getElementById("add_comment-"+id).style.display="none";
	}
	else{
		//document.getElementById("add_comment-"+id).style.display="none";
		document.getElementById("show_comment-"+id).style.display="block";
	}
}
function addComment(id){
	/*if(document.getElementById("add_comment-"+id).style.display=="block"){
		document.getElementById("add_comment-"+id).style.display="none";
		document.getElementById("show_comment-"+id).style.display="none";
	}
	else{
		document.getElementById("show_comment-"+id).style.display="none";
		document.getElementById("add_comment-"+id).style.display="block";
	}*/
	showWindowComment(id);
}
function addCommentAboutMe(id){
	showWindowCommentAboutMe(id);
}
function addCommentContact(){
	showWindowCommentContact();
}
function addCommentInfo(){
	showWindowCommentInfo();
}
function addCommentBooks(id){
	showWindowCommentBooks(id);
}
function showWindow(name)
	{
				w = screen.width;
				h = screen.height;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','flashGallery', settings);

				initWindow.location = 'http://www.bysergio.ro/gallery/gallery.php?directory='+name;
				initWindow.focus();
	}
function showHtmlWindow(url,name)
	{
				w = 1041;
				h = 750;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','htmlGallery', settings);

				initWindow.location = 'showHtmlGallery.php?url='+url+'&file='+name;
				initWindow.focus();
	}
function showWindowComment(name)
	{
				w = 597;
				h = 392;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','addComment', settings);

				initWindow.location = 'http://www.bysergio.ro/comment_popup.php?gallery_id='+name;
				initWindow.focus();
	}
function showWindowCommentAboutMe(name)
	{
				w = 597;
				h = 392;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','addComment', settings);

				initWindow.location = 'http://www.bysergio.ro/comment_popup_about_me.php?about_me_id='+name;
				initWindow.focus();
	}
function showWindowCommentBooks(name)
	{
				w = 597;
				h = 392;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','addComment', settings);

				initWindow.location = 'http://www.bysergio.ro/comment_popup_books.php?books_id='+name;
				initWindow.focus();
	}
function showWindowCommentContact()
	{
				w = 597;
				h = 392;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','addComment', settings);

				initWindow.location = 'http://www.bysergio.ro/comment_popup_contact.php';
				initWindow.focus();
	}
function showWindowCommentInfo()
	{
				w = 597;
				h = 392;

//				window.close();

				LeftPosition = (screen.width)  ? ((screen.width  - w) / 2) : 100;
				TopPosition  = (screen.height) ? ((screen.height - h) / 2) : 100;

				settings = 'width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
				initWindow = window.open('','addComment', settings);

				initWindow.location = 'http://www.bysergio.ro/comment_popup_info.php';
				initWindow.focus();
	}
function mouseOverImage(id,linkId){
	
	if(linkId=="html"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut01_b_b.gif')";
	}
	else if(linkId=="flash"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut02_b_b.gif')";
	}
	else if(linkId=="comment"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut03_b_b.gif')";
	}
	else if(linkId=="home"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut04a.gif')";
	}
}
function mouseOutImage(id,linkId){
	if(linkId=="html"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut01_a_a.gif')";
	}
	else if(linkId=="flash"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut02_a_a.gif')";
	}
	else if(linkId=="comment"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut03_a_a.gif')";
	}
	else if(linkId=="home"){
		document.getElementById(id).style.backgroundImage="url('../images/commentbut04.gif')";
	}
}