
function showComments(photoid){	
    document.getElementById('comments-frame').src = "http://photocomments.sportchalet.com/Comments.aspx?PhotoID=" + photoid ;
    var t = setTimeout("showBox()",400)
   	}

function showBox() {
    document.getElementById('comments-frame').style.left = "212px";    
    document.getElementById('photocom-top').style.background = "url(http://photocomments.sportchalet.com/shared/images/photocom-widget-overlay1.png)";
}

function closeComments(){
	document.getElementById('comments-frame').style.left = "-9999px";
    document.getElementById('photocom-top').style.background = "url(http://photocomments.sportchalet.com/shared/images/photocom-widget-overlay.png)";
	}
	

 /* $(document).ready(function(){

 $(".title").parent().addClass("closed");

$(".comment-message > .title").click(function () {
      $(this).parent().toggleClass("closed");
    });

	
	$("#close").click(function () {
      $("#photo-comments").css({
	  		'left' :'-9999px'
	  });
    });
	
	$("#add-toggle").click(function () {
      $("#right").hide();
	  $("#add-comments").show();
	  $("#add-toggle").hide();
	  $("#view-toggle").show();
    });
	$("#view-toggle").click(function () {
      $("#add-comments").hide();
	  $("#right").show();
	  $("#view-toggle").hide();
	  $("#add-toggle").show();
    });
	
	
	$(".fancy").fancybox({
		'padding': 0	
	});
	
});*/