﻿    
          
          function OpenRssWin(strFileName)
        {
            var URL=strPath+strFileName;

            openMenuNew('divPopUp'); // Open fedded layer
            // Open Authentication Layer

            divwin=dhtmlwindow.open('googlebox', 'iframe', URL, '', 'width=500px,height=450px,resize=0,scrolling=no,center=1', 'recal');

        }
          
         function OpenTagWin(strFileName)
        {
            var URL=strPath+strFileName;

            openMenuNew('divPopUp'); // Open fedded layer
            // Open Authentication Layer

            divwin=dhtmlwindow.open('googlebox', 'iframe', URL, '', 'width=560px,height=200px,resize=0,scrolling=no,center=1', 'recal');

        }
        
        
        function openMenuNew(strOpen) {

        var navMenu = new Array(["divPopUp"],["divPopUp2"]); 

        //initialize flag array to keep track of which menu is open
        for (j=0; j<navMenu.length; j++) 
        {

        //set up a flag for each menu, to tell whether it's on or off
 	        navMenu[j][1]=0;
	        // sets all menu flags as "off"
	        // indicating that all menus are thought to be invisible
        }
        for (i=0; i<navMenu.length; i++){ 
        // find the menu
	        if ((navMenu[i][0]==strOpen)&&(navMenu[i][1]==0)){
	        // check the menu's state

		        showNew(navMenu[i][0]);
		        // show the menu, because it's not visible
        			
		        navMenu[i][1]=1;
		        // set the flag indicating the menu state is visible
        			
		        break;
		        // break out of the function, we've found our menu
		        }
		        else if ((navMenu[i][0]==strOpen)&&(navMenu[i][1]==1)){
		        //check the menu's state
        		
			        hideNew(navMenu[i][0]);
			        //hide the menu, because it's already open
        		
			        navMenu[i][1]=0;
			        //set the flag indicating the menu state is hidden
        		
			        break; 
			        // break out of the function, we've found our menu
		        }
	        }
        }

function hideNew(str) {
        //alert(str+'aaaa');
        var x;
        x = document.getElementById(str);
        x.style.display = 'none'; // hide the element
        flagState = 0; // now it's off, keeping track of its state
    }
function showNew(str) {
            var x;
          //  alert(str);
            x = document.getElementById(str);
            x.style.display = 'block'; // show the element
            flagState = 1; // now it's on, keeping track of its state
        }
	function CreateBookmarkLink() {title = top.document.title; url = location.href;if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,'');	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }	else if(window.opera && window.print) { // Opera Hotlist
		return true; }}

function Trim(str){     while(str.charAt(0) == (" ") )      {     str = str.substring(1); }      while(str.charAt(str.length-1) == " " )   {     str = str.substring(0,str.length-1);      }     return str;}

function openBlogRSSNew(blogID)
{  
//alert(blogID);
var newWindow = window.open(varAppPath+'BlogRSS.aspx?blogid='+blogID,'','left=' + ((document.body.clientWidth / 2) - 300) + ',top=110,width=610,height=150,toolbar=1,resizable=1,scrollbars=1');
}

function openBlogRSS()
{  

var newWindow = window.open(varAppPath+'BlogRSS.aspx?blogid='+varStrBlogID,'','left=' + ((document.body.clientWidth / 2) - 300) + ',top=110,width=610,height=150,toolbar=1,resizable=1,scrollbars=1'); }
    

    
var theForm = document.forms['aspnetForm'];
if (!theForm) {theForm = document.aspnetForm;}theForm.action = window.location;

 if(window.parent!=window)
 {
    var ele = document.getElementsByTagName("a");
    var count =0;
     for(i=0;i<ele.length;i++)
     {
     if(ele[i].innerHTML!='(read more)' && Trim(ele[i].innerHTML).indexOf('Blog Fans')==-1 && Trim(ele[i].innerHTML).indexOf('Favourite Blogs')==-1 && Trim(ele[i].innerHTML).indexOf('New Comments')==-1 && Trim(ele[i].innerHTML).indexOf('Bookmark this')==-1 && Trim(ele[i].innerHTML).indexOf('Next 10')==-1 && Trim(ele[i].innerHTML).indexOf('Next')==-1&& Trim(ele[i].innerHTML).indexOf('Previous')==-1 && Trim(ele[i].innerHTML).indexOf('Previous 10')==-1  && Trim(ele[i].innerHTML).indexOf('Oldest Post')==-1 && Trim(ele[i].innerHTML)!='Previous'&& Trim(ele[i].innerHTML)!='Next Post'&& Trim(ele[i].innerHTML)!='Latest Post' && Trim(ele[i].innerHTML).indexOf('Add comment')==-1 && Trim(ele[i].innerHTML).indexOf('Read comments')==-1  
     && ele[i].innerHTML!=varAppPath+varStrBlogShortURL)

        {
        
        if(Trim(ele[i].innerHTML)!=varAppPath+varStrBlogShortURL) 
               ele[i].setAttribute('target','_top');
       }
      // alert(ele[i].getAttribute('target'));
     }
   }
    