var newsArray = new Array();
var authArray = new Array();

var currentNews = 0;

function opinionsStart(lang){
	if(lang == "pl")
	{
		newsArray = new Array(
    "W końcu ktoś czyta mi napisy do filmów, dotychczas myślałem, że syntezator to przereklamowana sprawa, sprawdziłem, czyta rewelacyjnie. Jak człowiek."
    ,"Prowadzę szkolenia w firmie ubezpieczeniowej, za każdym razem stres, bo nie wiem jak wypadnie to co napisałam. Kupiłam i odsłuchuję syntezatorem IVONA i wiem jak wyjdzie moje szkolenie. Super sprawa."
    ,"Aktów prawnych mam do przeczytania na kilogramy, ciągle nie nadążałem za nowymi ustawami. Teraz zapisuję do mp3, i odsłuchuję na moim IPodzie, gdy stoję w korku."
    ,"Moja mama kocha czytać książki ale ma problemy ze wzrokiem. Odkąd poznałam Wasze głosy przygotowuję jej audiobooki, aby mogła przynajmniej posłuchać książek. Cieszę się, że taki program jak IVONA istnieje na rynku. Dzięki !!! "
    ,"Dużo siedzę przy kompie, piszę aplikacje i nie mam kiedy sprawdzać co się dzieje w necie. IVONA ściąga i odsłuchuje mi wiadomości RSS. RSS normalna sprawa, ale teraz ktoś inny czyta za mnie. Szacun!!!"
    );

		authArray = new Array("Piotr, handlowiec, Katowice","Joanna, szkoleniowiec, Poznań","Kuba, prawnik, Warszawa","Anka, psycholog, Łódź","Maro, programista, Gdańsk");
	}
	else
	{
		newsArray = new Array(

    "I've bought the full version of the program and so far I created lots of audiobooks for my blind sister. IVONA is outstanding, there's no better program at this price. I totally recommend it."
    ,"Great program, it added icons to Firefox and Thunderbird making it easier for me to read websites and emails. Thanks to the editable exceptions lexicon I can change the pronunciation of foreign words easily."
    ,"I didn't think this could be possible but IVONA radically changed my way of using a computer. Generally speaking I'm very happy about having bought the full version of IVONA voices."
    ,"I have just bought this program a couple of days ago and I can't understand how I had been living without it. It's worth spending every penny!"
    );

		authArray = new Array("Anne, accountant, Hannover, Germany", "James, graphic designer, Edinburgh, United Kingdom", "Michael, engineer, Richmond, United States", "Matias, sales manager, Stockholm, Sweden");
		}
	jQuery('#reader_opcontent').replaceWith('<span id="reader_opcontent"><span class="i">' +newsArray[currentNews] + '&nbsp;</span><span class=" b">' +authArray[currentNews] + '</span></span>');
	//jQuery('#reader_author').replaceWith('<span id="reader_author">' +authArray[currentNews] + '</span>');
	
	}
jQuery(document).ready(function() {
	
	

	jQuery('#reader_raquo').click(function () {
		  
		  if(currentNews < newsArray.length -1)
		  {
		  currentNews++;
		  }
		  else
		  {
		  currentNews = 0
		  }
		jQuery('#reader_opcontent').replaceWith('<span id="reader_opcontent"><span class="i">' +newsArray[currentNews] + '&nbsp;</span><span class=" b">' +authArray[currentNews] + '</span></span>');
		//  jQuery('#reader_author').replaceWith('<span id="reader_author">' +authArray[currentNews] + '</span>');
	});
	
	
});

function feature(subpage){
  jQuery.ajax( { url: "/reader_feature.php",  data: ({feature: 'feature', feat: subpage}), type: "POST" });
}	
