
      var sts=new Array();
       styleGen();
	   var  texth=new Array(37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18);
	   var months=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	  
	  
	  
	  	function getFeedsCloudXX(numOfFeeds) {
        /*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
            html += '<table rules="groups">'
                 + '<tbody>';
        
            for (var i = 0, blogEntry; blogEntry = blogEntries[i]; i++) {
            if(i<numOfFeeds){
			
			  var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var blogContent=blogEntry.getContent().getText();
			  var contentLine=blogContent.substring(0,(blogContent.indexOf(".")+1));
			  
			
			 html 
                    += '<a   style="font-size:'
					+ texth[i]
					+'px" " class="'
					+chooseStyle(1,i)
					+'" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
                    + blogTitle
                    + '</a>';
				
					
					
                  
				   /*html += '<tr>'
                  
					+'<p class="regular15_33">'
					+contentLine
					
					+'<a style="color:blue; font-style:italic" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
					+'read more</a>'
					+'</p>'
					+ '</tr>';*/
				
					
					}
            }
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  function getFeedsEX(numOfFeeds) {
        /*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
            html += '<table rules="groups">'
                 + '<tbody>';
        
            for (var i = 0, blogEntry; blogEntry = blogEntries[i]; i++) {
            if(i<numOfFeeds){
			
			  var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var blogContent=blogEntry.getContent().getText();
			  var contentLine=blogContent.substring(0,(blogContent.indexOf(".")+1));
			  
			
			 html += '<tr>'
                    + '<p class="semibold18_33"><a href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
                    + blogTitle
                    + '</a></p>'
					+ '</tr>';
					
                  
				   /*html += '<tr>'
                  
					+'<p class="regular15_33">'
					+contentLine
					
					+'<a style="color:blue; font-style:italic" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
					+'read more</a>'
					+'</p>'
					+ '</tr>';*/
				
					
					}
            }
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);

	 
	 
	 	function getFeeds(numOfFeeds) {
        /*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
            html += '<table rules="groups" width="100%">'
                 + '<tbody>';
        
            for (var i = 0, blogEntry; blogEntry = blogEntries[i]; i++) {
            if(i<numOfFeeds){
			
			  var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var month=blogUpdated.getMonth();
			  var writtenMonth=months[month];
			  var year=blogUpdated.getFullYear();
			  var date=blogUpdated.getDate();
			
			  var blogContent=blogEntry.getContent().getText();
			  var contentLine=blogContent.substring(0,(blogContent.indexOf(".")+1));
			  
			
			 html 
					+='<p class="tarih">'
					+writtenMonth
					+' '
					+date
					+','
					+year
					+'</p>'
                    + '<p class="regular14_33"><a  href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
                    + blogTitle
                    + '</a></p>';
				
					
					
                  
				  /* html += '<tr>'
                  
					+'<p class="regular15_33">'
					+blogContent
					
					+'<a style="color:blue; font-style:italic" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
					+'read more</a>'
					+'</p>'
					+ '</tr>';*/
				
					
					}
            }
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);
	 
	 
	   function getFeedsCloudX(numOfFeeds) {
        /*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
            html += '<table rules="groups">'
                 + '<tbody>';
        
            for (var i = 0, blogEntry; blogEntry = blogEntries[i]; i++) {
            if(i<numOfFeeds){
			
			  var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var blogContent=blogEntry.getContent().getText();
			  var contentLine=blogContent.substring(0,(blogContent.indexOf(".")+1));
			  
			
			 html 
                    += '<a   class="'
					+chooseStyle(1,i)
					+'" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
                    + blogTitle
                    + '</a>';
				
					
					
                  
				   /*html += '<tr>'
                  
					+'<p class="regular15_33">'
					+contentLine
					
					+'<a style="color:blue; font-style:italic" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
					+'read more</a>'
					+'</p>'
					+ '</tr>';*/
				
					
					}
            }
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);
	 
	 function getFeedsforBox(numOfFeeds) {
        /*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
            html += '<table rules="groups" width="100%" >'
                 + '<tbody>';
        
            for (var i = 0, blogEntry; blogEntry = blogEntries[i]; i++) {
            if(i<numOfFeeds){
			
			   var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var month=blogUpdated.getMonth();
			  var writtenMonth=months[month];
			  var year=blogUpdated.getFullYear();
			  var date=blogUpdated.getDate();
			
			  var blogContent=blogEntry.getContent().getText();
			  var contentLine=blogContent.substring(0,(blogContent.indexOf(".")+1));
			  
			
			 html 
                    +='<p class="tarih">'
					+writtenMonth
					+' '
					+date
					+','
					+year
					+'</p>'
                    + '<p class="regular14_33"><a  href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
                    + blogTitle
                    + '</a></p>';
				
					
					
                  
				  /* html += '<tr>'
                  
					+'<p class="regular15_33">'
					+blogContent
					
					+'<a style="color:blue; font-style:italic" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
					+'read more</a>'
					+'</p>'
					+ '</tr>';*/
				
					
					}
            }
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);
	 
	 
	 
	 
	 
	 

	 
	 
	  function getFeedsCloudForNewsBox(numOfFeeds) {
        /*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
            html += '<table rules="groups">'
                 + '<tbody>';
        
            for (var i = 0, blogEntry; blogEntry = blogEntries[i]; i++) {
            if(i<numOfFeeds){
			
			  var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var blogContent=blogEntry.getContent().getText();
			  var contentLine=blogContent.substring(0,(blogContent.indexOf(".")+1));
			  
			
			 html 
                    += '<a   class="'
					+chooseStyle(2,i)
					+'" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
                    + blogTitle
                    + '</a>';
				
					
					
                  
				   /*html += '<tr>'
                  
					+'<p class="regular15_33">'
					+contentLine
					
					+'<a style="color:blue; font-style:italic" href="http://www.pozitron.com/viewblog.php?id='
					+i
					+'" target="_self">'
					+'read more</a>'
					+'</p>'
					+ '</tr>';*/
				
					
					}
            }
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);
	 
	  function chooseStyle(type,number)
{


        var n=sts[number];
			var st;
			var  val=new Array("news_1b","news_1c","news_2a","news_2c","news_3a","news_3b");
			var  boxval=new Array("newsbox_1b","newsbox_1c","newsbox_2a","newsbox_2c","newsbox_3a","newsbox_3b");
			
			if(type==1){
	        
			 st=val[n];
		
 		     }
		      if(type==2){
		      st=boxval[n];
		      }    
                
				return st;

} 

     function styleGen(){
var i=1;

sts[0]=1;

	while (i<20)
	{
	var n=Math.floor(Math.random()*6);
    
	   if(sts[i-1]==n){
   
	   while(sts[i-1]==n){
	   n=Math.floor(Math.random()*6);
	   
	   }
	  sts[i]=n;
		i++;
		}
		else{
		 sts[i]=n;
		i++;
		
		}
		
	}
}
	  
	  function getOneFeed(numOfFeed) {
        
		
		
		/*
        * Retrieve a list of blogs
        */
        
        // Obtain a reference to the 'content' div
        var content = document.getElementById('content');
        
        // Create the blogger service object
        var bloggerService =
            new google.gdata.blogger.BloggerService('com.appspot.interactivesampler');
        
        // The default "metafeed" feed is used to retrieve a list of blogs for a
        // particular logged-in user.
        //
        // The ID included in this URI can be retrieved from the <link rel="me">
        // element in the Blog's HTML source
        var feedUri = 'http://pozitronblog.blogspot.com/feeds/posts/default?alt=rss';
        
        // The callback method invoked when getBlogFeed() returns feed data
        var handleBlogFeed = function(blogFeedRoot) {
        
			
          // Display Blogger Profile data
          var author = blogFeedRoot.feed.getAuthors();
          var authorName = author[0].getName().getValue();
          var authorUri = author[0].getUri().getValue();
        
          // This variable will buffer HTML output until execution is complete
          var html = ''
             //  + '<h2>Profile Information</h2>'
             //  + '<dl>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd>' + authorName + '</dd>'
             //  + '<dt>Profile Name:</dt>'
             //  + '<dd><a href="' + authorUri + '">' + authorUri + '</a></dd>';
        
          // Fetch blogs associated with this Blogger Profile
         // html += '<h2>Blog List</h2>';
          var blogEntries = blogFeedRoot.feed.getEntries();
        
          // Has the user created any blogs?
          if(!blogEntries.length) {
            html += '<p>First <a href="http://www.blogger.com" '
                  + 'target="_blank">create a blog</a>.</p>';
          } else {
            // Print list of blogs
			
			  blogEntry = blogEntries[numOfFeed];
            
			
			  var blogTitle = blogEntry.getTitle().getText();
              var blogURL = blogEntry.getHtmlLink().getHref();
              var blogUpdated = blogEntry.getUpdated().getValue().getDate();
			  var blogContent=blogEntry.getContent().getText();
			  
			
            html += '<table rules="groups" width="100%">'
                 + '<thead><tr>'
                + '<p class="regular24_33"><a href="' + blogURL + '" target="_blank">'
                    + blogTitle
                    + '</a></p>'
                 + '</tr></thead>'
                 + '<tbody>';
        
          
              html += '<tr>'
                  
					+'<p class="regular15_33">'
					+blogContent
					+'</p>'
                    + '</tr>';
					
					
            
        
            html += '</tbody>'
                  + '</table>';
          };
        
          // Output buffered HTML and clear 'Loading...' message
          content.innerHTML = html;
        };
        
        // Error handler called when getBlogFeed() produces an error
        var handleError = function(error) {
          content.innerHTML = '<pre>' + error + '</pre>';
        };
        
        // Submit the request using the blogger service object
        bloggerService.getBlogFeed(feedUri, handleBlogFeed, handleError);
        
      }
     //google.setOnLoadCallback(getFeeds);
