if (!window.hero)
	window.hero = {};

hero.Page = function() 
{
}
hero.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:	
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	},
	
	// Sample event handler
	handleMouseDown: function(sender, eventArgs) 
	{
		// The following line of code shows how to find an element by name and call a method on it.
		//this.control.content.findName("Timeline1").Begin();
	}
}

function clickTag(sender,eventArgs)
{
	window.location="default.aspx";
	


}

function OnCompleted(sender,eventArgs)
{
	sender.findName("Timeline1").Begin();	
}

domeny = new Array("    beham.cz","  chytracka.cz","     desnej.cz"," fandimslavii.cz","fandimsparte.cz","     hrisnik.cz","     iambad.cz","   ifeelgood.cz","     metrous.cz","      mlsam.cz","  peknaholka.cz","  peknejkluk.cz","   prostejinej.cz","     pupkac.cz","    srandista.cz","     susinka.cz","     vbaliku.cz","      bajker.cz","  ewaforlive.cz","    ewa4live.cz","       hulic.cz","     jsembuh.cz","   jsemhustej.cz","    jsemsvata.cz","    jsemsvaty.cz","neradvstavam.cz","     pihatka.cz","   pijudenne.cz","      ranar.cz","      sladkej.cz","     tloustik.cz","    uzivamsi.cz","   zijuzdrave.cz","    vostrej.cz","      zoban.cz");

var i = 0;

function OnCompleted2(sender,eventArgs)
{
	sender.findName("TimelineDomeny").Begin();	
	
	sender.findName("textBlock").Text=domeny[i];
	i++;
	if(i==domeny.length) { i=0; }
}

function OnLoaded(sender,eventArgs)
{
	sender.findName("Timeline1").Begin();
	sender.findName("TimelineDomeny").Begin();	
	sender.findName("textBlock").Text=domeny[i];
	i++;
}
