Template PDW Branco
Autor: ??? | Publicado: 2010-07-18T00:25:00-07:00






&lt;data:blog.title/&gt;

&lt;data:blog.pageName/&gt;














Home
WWE
TNA
Humor
Biografias


         

Home
Noticias
Downloads
Vagas
Entre em contato


                      &lt;script type="text/javascript"&gt;  function showpageCount(json) { var thisUrl = location.href; var htmlMap = new Array(); var isFirstPage = thisUrl.substring(thisUrl.length-5,thisUrl.length)==".com/"; var isLablePage = thisUrl.indexOf("/search/label/")!=-1; var isPage = thisUrl.indexOf("/search?updated")!=-1; var thisLable = isLablePage ? thisUrl.substr(thisUrl.indexOf("/search/label/")+14,thisUrl.length) : ""; thisLable = thisLable.indexOf("?")!=-1 ? thisLable.substr(0,thisLable.indexOf("?")) : thisLable; var thisNum = 1; var postNum=1; var itemCount = 0; var fFlag = 0; var eFlag = 0; var html= ''; var upPageHtml =''; var downPageHtml ='';  var pageCount = 5; var displayPageNum = 5; var upPageWord = 'Previous'; var downPageWord = 'Next';    var labelHtml = '&lt;span class="showpageNum"&gt;&lt;a href="/search/label/'+thisLable+'?&amp;max-results='+pageCount+'"&gt;';  for(var i=0, post; post = json.feed.entry[i]; i++) { var timestamp = post.published.$t.substr(0,10); var title = post.title.$t; if(isLablePage){ if(title!=''){ if(post.category){ for(var c=0, post_category; post_category = post.category[c]; c++) { if(encodeURIComponent(post_category.term)==thisLable){ if(itemCount==0 || (itemCount % pageCount ==(pageCount-1))){ if(thisUrl.indexOf(timestamp)!=-1 ){ thisNum = postNum; }  postNum++; htmlMap[htmlMap.length] = '/search/label/'+thisLable+'?updated-max='+timestamp+'T00%3A00%3A00%2B08%3A00&amp;max-results='+pageCount; } } } }//end if(post.category){  itemCount++; }  }else{ if(title!=''){ if(itemCount==0 || (itemCount % pageCount ==(pageCount-1))){ if(thisUrl.indexOf(timestamp)!=-1 ){ thisNum = postNum; }  if(title!='') postNum++; htmlMap[htmlMap.length] = '/search?updated-max='+timestamp+'T00%3A00%3A00%2B08%3A00&amp;max-results='+pageCount; } } itemCount++; } }  for(var p =0;p&lt; htmlMap.length;p++){ if(p&gt;=(thisNum-displayPageNum-1) &amp;&amp; p&lt;(thisNum+displayPageNum)){ if(fFlag ==0 &amp;&amp; p == thisNum-2){ if(thisNum==2){ if(isLablePage){ upPageHtml = labelHtml + upPageWord +'&lt;/a&gt;&lt;/span&gt;'; }else{ upPageHtml = '&lt;span class="showpage"&gt;&lt;a href="/"&gt;'+ upPageWord +'&lt;/a&gt;&lt;/span&gt;'; } }else{ upPageHtml = '&lt;span class="showpage"&gt;&lt;a href="'+htmlMap[p]+'"&gt;'+ upPageWord +'&lt;/a&gt;&lt;/span&gt;'; }  fFlag++; }  if(p==(thisNum-1)){ html += '&lt;span class="showpagePoint"&gt;'+thisNum+'&lt;/span&gt;'; }else{ if(p==0){ if(isLablePage){ html = labelHtml+'1&lt;/a&gt;&lt;/span&gt;'; }else{ html += '&lt;span class="showpageNum"&gt;&lt;a href="/"&gt;1&lt;/a&gt;&lt;/span&gt;'; } }else{ html += '&lt;span class="showpageNum"&gt;&lt;a href="'+htmlMap[p]+'"&gt;'+ (p+1) +'&lt;/a&gt;&lt;/span&gt;'; } }  if(eFlag ==0 &amp;&amp; p == thisNum){ downPageHtml = '&lt;span class="showpage"&gt; &lt;a href="'+htmlMap[p]+'"&gt;'+ downPageWord +'&lt;/a&gt;&lt;/span&gt;'; eFlag++; } }//end if(p&gt;=(thisNum-displayPageNum-1) &amp;&amp; p&lt;(thisNum+displayPageNum)){ }//end for(var p =0;p&lt; htmlMap.length;p++){  if(thisNum&gt;1){ if(!isLablePage){ html = ''+upPageHtml+' '+html +' '; }else{ html = ''+upPageHtml+' '+html +' '; } }  html = '&lt;div class="showpageArea"&gt;&lt;span style="COLOR: #000;" class="showpageOf"&gt; Pages ('+(postNum-1)+')&lt;/span&gt;'+html;  if(thisNum&lt;(postNum-1)){ html += downPageHtml;  }  if(postNum==1) postNum++; html += '&lt;/div&gt;';  if(isPage || isFirstPage || isLablePage){ var pageArea = document.getElementsByName("pageArea"); var blogPager = document.getElementById("blog-pager");  if(postNum &lt;= 2){ html =''; }  for(var p =0;p&lt; pageArea.length;p++){ pageArea[p].innerHTML = html; }  if(pageArea&amp;&amp;pageArea.length&gt;0){ html =''; }  if(blogPager){ blogPager.innerHTML = html; } }  } &lt;/script&gt;  &lt;script src="/feeds/posts/summary?alt=json-in-script&amp;callback=showpageCount&amp;max-results=99999"; type="text/javascript"&gt;&lt;/script&gt;                             | Copyright  © 2009 | Distributed By Blogger Templates | Converted To Blogger By Technolizard
Blogger Widgets

<!-- end Yahoo Smileys For Comments -->