function initPhishingFlash()
{
    $("#div_wgPhishing10").load("Last10Data.jsp?type=2");
    swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingWeek", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataWeek.jsp?type=2"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingMonth", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataMonth.jsp?type=2"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingYear", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataYear.jsp?type=2"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingHourly", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataHourly.jsp?type=2"});
}
var positionScrolltPhishing
function initPhishingRefresh()
{
    $("#wgPhishingQuery .refresh").remove();
    $("#wgFPhishingWeek .refresh").click(function(){
        positionScrolltPhishing = document.documentElement.scrollTop;
        $("#td_PhishingWeek").children().remove();
        $("#td_PhishingWeek").empty();
        $("#td_PhishingWeek").append("<DIV id='div_PhishingWeek' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingWeek", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataWeek.jsp?type=2"});
        setTimeout('document.documentElement.scrollTop=positionScrolltPhishing;',10);
    });
    $("#wgFPhishingMonth .refresh").click(function(){
        positionScrolltPhishing = document.documentElement.scrollTop;
        $("#td_PhishingMonth").children().remove();
        $("#td_PhishingMonth").empty();
        $("#td_PhishingMonth").append("<DIV id='div_PhishingMonth' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingMonth", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataMonth.jsp?type=2"});
        setTimeout('document.documentElement.scrollTop=positionScrolltPhishing;',10);
    });
    $("#wgFPhishingYear .refresh").click(function(){
        positionScrolltPhishing = document.documentElement.scrollTop;
        $("#td_PhishingYear").children().remove();
        $("#td_PhishingYear").empty();
        $("#td_PhishingYear").append("<DIV id='div_PhishingYear' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingYear", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataYear.jsp?type=2"});
        setTimeout('document.documentElement.scrollTop=positionScrolltPhishing;',10);
    });
    $("#wgFPhishingHourly .refresh").click(function(){
        positionScrolltPhishing = document.documentElement.scrollTop;
        $("#td_PhishingHourly").children().remove();
        $("#td_PhishingHourly").empty();
        $("#td_PhishingHourly").append("<DIV id='div_PhishingHourly' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_PhishingHourly", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataHourly.jsp?type=2"});
        setTimeout('document.documentElement.scrollTop=positionScrolltPhishing;',10);
    });
   


    $("#wgPhishing10 .refresh").click(function(){
        positionScrolltPhishing = document.documentElement.scrollTop;
        $("#div_wgPhishing10").empty();
        $("#div_wgPhishing10").children().remove();
        $("#div_wgPhishing10").load("Last10Data.jsp?type=2");
        setTimeout('document.documentElement.scrollTop=positionScrolltPhishing;',10);
    });
}