

$(function(){
    var url = window.location.href;
    if(url.indexOf("#") != -1)
    {
	    if(url.indexOf("#comments") != -1)
	    {
        	ShowComment('comentar');
	    }
	    else
	    {
		url = url.replace("#comments", "");
		toReplace = url.split("#");
        	$("#voltar").attr("value","history.go(-1)#" + toReplace[1]);
	    }

    } 
    
    if ($("#flashArtigoHidden").length > 0 && $("#flashArtigoHidden").val() != "")
    {
	    so = new SWFObject($("#flashArtigoHidden").val(), "objCurrentGame", 650, 560, "8", "#000000");
	    so.addParam("wmode", "opaque");
	    so.write("flashArtigo");
    } 
});
