news =
{
	newsindex: 0,
	
     listfr: ["<a href='http://itunes.apple.com/us/app/vinoteka/id373809026?mt=8'>Vinoteka Touch/Lite 1.6.6 disponibles sur l'App Store","<a href='http://itunes.apple.com/fr/app/vinoteka/id414890125?mt=12'>Vinoteka 2.6.6 disponible sur le Mac App Store","<a href='http://www.vinotekasoft.com/blog/'>Vinoteka 2.6.6 disponible <b>sur notre site</b></a>"],
	listen: ["<a href='http://itunes.apple.com/us/app/vinoteka/id373809026?mt=8'>Vinoteka Touch/Lite 1.6.6 both available on the App Store","<a href='http://itunes.apple.com/fr/app/vinoteka/id414890125?mt=12'>Vinoteka 2.6.6 available on the Mac App Store","<a href='http://www.vinotekasoft.com/blog/'>Vinoteka 2.6.6 available <b>on our website</b></a>"],
	listde: ["<a href='http://itunes.apple.com/us/app/vinoteka/id373809026?mt=8'>Vinoteka Touch/Lite 1.6.6 verfügbar auf dem App Store","<a href='http://itunes.apple.com/fr/app/vinoteka/id414890125?mt=12'>Vinoteka 2.6.6 verfügbar auf dem Mac App Store","<a href='http://www.vinotekasoft.com/blog/'>Vinoteka 2.6.6 verfügbar <b>auf unserer Webseite</b></a>"],	
	
	
		
	news_anim: function(lang)
	{
		news.newsindex = 1;
		
		if(lang=="fr")
			$("#newstext").html(news.listfr[0]);
		else if(lang=="de")
			$("#newstext").html(news.listde[0]);
		else
			$("#newstext").html(news.listen[0]);

		var timer = setInterval(function() 
        {
        	if(news.newsindex > news.listen.length-1)
            {
            	news.newsindex = 0;
            }
            
			$("#newstext").fadeOut("slow", function() {
		
				if(lang=="fr")
					$("#newstext").html(news.listfr[news.newsindex]);
				else if(lang=="de")
					$("#newstext").html(news.listde[news.newsindex]);
				else
					$("#newstext").html(news.listen[news.newsindex]);
			
				$("#newstext").fadeIn("slow");
				news.newsindex = news.newsindex+1;
			});
			

        }, 6000);
		
	},
};
