// ================== News Loading ==========================
$(document).ready(function(){
    $(".newsitem .newsitem_header_bx2").click(function(){
		if($(this).parents(".newsitem").hasClass("expanded")){
			$(this).parents(".newsitem").removeClass("expanded");
        } else {
            $(this).parents(".newsitem").addClass("expanded");
        }
    });
});

/**
function show_pane(num, total, pane, contentid)
{
        var target;
        // minimize all panes, and unbold title, change number back to grey color
        for (var i = 1; i <= total; i++) {
                target = document.getElementById('flyff_content_pane_' + pane + '_' + i);
                bold = document.getElementById('flyff_title_link_' + pane + '_' + i);
                //icon = document.getElementById('flyff_number_image_' + pane + '_' + i);
                if(num == i) {
                        target.style.display = "";
                        bold.style.fontWeight = "bold";
                        $("#"+target.id+'_content').load('/modules/home/inc/contents.php?id='+contentid);

                        // icon.src='/templates/common/images/main_contents_icon_0' + i + '.gif';
                } else {
                        target.style.display = "none";
                        bold.style.fontWeight = "";
                        // icon.src='/templates/common/images/main_contents_icon_0' + i + '.gif';
                }
        }
}
**/


