// JavaScript Document

var commentStatus = 1;

function loadComment(speed)
{	if(commentStatus==0)
	{	$("#popupComment").css("display","none").show(speed);
		commentStatus = 1;
	}
	else
	{	$("#popupComment").hide();
		commentStatus = 0;
	}
}

function minimizeComment()
{	if(commentStatus==1)
	{	$("#popupComment").hide(2000);
		$("#minComment").show;
		commentStatus = 0;
	}
}

function fadeComment()
{	if(commentStatus==1)
	{	$("#popupComment").fadeOut(3000,0.5);
		commentStatus = 0;
	}
}

$(function()
{	$("#popupTrigger").click(function()
	{	loadComment(2000);});

	$("#popupCommentClose").click(function(){minimizeComment();});
	$("#minComment").click(function(){loadComment(1000);});
	$("#minFlash").click(function(){showVideo();});
	
	loadComment(3000);

});
