document.addEventListener("DOMContentLoaded",function(){CheckRTL();InitSiteInfo()});function CheckRTL(){IsRTL()&&(document.body.style.direction="rtl")}function InitSiteInfo(){PageRank_ShowItems();OnCheckSelectedTab(sessionStorage.id,sessionStorage.url)}function OnCheckSelectedTab(a,d){if(eOk(d))for(var c in g_arrSites)"siteinfo"==g_arrSites[c].tab&&AjaxUpdate(c,0)}
function PageRank_ShowItems(){var a;a='<table id="table_2cols"><tr><td class="top col">'+GetGroupItems({"0":"domain_whois",1:"domain_dns",2:"domain_dns2"},"DomainInfo","domain",1);a=a+'<div class="report_space"></div>'+GetGroupItems({"0":"sec_siteadv",1:"sec_norton",2:"sec_wot"},"SiteSecurity","sec",0);a+='<div class="report_space"></div>';a+=GetGroupItems({"0":"sns_delicious",1:"sns_facebook",2:"sns_ggplus",3:"sns_stumbles",4:"sns_twitter"},"Social","sns",0);a+='</td><td class="top space"></td><td class="top col">';
a+=GetGroupItems({"0":"geoip_ip",1:"geoip_city",2:"geoip_country"},"GeoLocation","geoip",0);a+='<div class="report_space"></div>';a+=GetGroupItems({"0":"on_builtwith",1:"on_robots",2:"on_sitemap"},"Onsite","onsite",0);a+="</td></tr></table>";$("#content").html(a);$("#lnk_domain_whois").html(GetLink("a_whois",MYLANG("Whois"),MYLANG("Whois"),"","",0));SetLinkActions({a_whois:{type:"link",sel:1,url:"http://whois.chromefans.org/"}})};function GetGroupItems(a,d,c,e){var b="",f=0,h=0,g="",i;for(i in a)0<f&&e&&(b+='</table><table id="tbl_'+c+f+'" class="report_tbl">'),g=GetReportItem(a[i],h),""!=g&&h++,b+=g,f++;""!=b&&(b=GetReportHead(MYLANG(d),c)+b+GetReportTail());return b}function GetReportHead(a,d){return'<div id="h_'+d+'" class="report_title"><div class="report_title_txt">'+a+'</div></DIV><div class="report_items"><table id="tbl_'+d+'" class="report_tbl">'}function GetReportTail(){return"</table></div>"}
function GetReportItem(a,d){if(""==a)return'<tr class="'+(0==d?"noborder ":"")+(d%2?"tr_b":"tr_a")+'"><td colspan=3></td></tr>';if(!g_arrSites[a])return"";var c=g_arrSites[a],e="td_2",b="td_3";"rank_ggpr"==a||"rank_alexa"==a||"rank_compete"==a?(e="td_2_gg",b="td_3_gg"):"domain_dns"==a||"domain_dns2"==a||"geoip_ip2"==a||"geoip_city2"==a||"geoip_ip"==a||"geoip_city"==a||"geoip_country"==a||"geoip_country2"==a?(e="td_2_ip",b="td_3_ip"):"ch_google"==a||"ch_archive"==a?(e="td_2_ch",b="td_3_ch"):"traffic"==
g_arrSites[a].tab&&(e="td_2_tf",b="td_3_tf");var f=MYLANG(c.text_id),c=""==c.tip_id?f:f+"("+MYLANG(c.tip_id)+")";return'<tr class="'+(0==d?"noborder ":"")+(d%2?"tr_b":"tr_a")+'" id="tr_'+a+'">    <td class="td_1" title="'+c+'"><div id="img_'+a+'" class="imgicon"></div></td>    <td class="'+e+'" title="'+c+'"><div class="'+e+'_txt" id="lnk_'+a+'" >'+f+'</div></td>    <td class="'+b+'" id="val_'+a+'"><div id="'+a+'" class="'+b+'_txt" ></div></td>    </tr>'};
