// JavaScript Document

var e_mare=1;

function initializeazaFlash()
{
	objFlash=getFlashMovieObject("flash");
	objFlash.style.width = '813px';
	objFlash.removeAttribute("style");
	objFlash.setAttribute("style", "height: 0px");
	objFlash.style.cssText = "height: 0px";
}

function porneste_flash()
{
	if (e_mare)
	{
		startFlashAnims();
	}
	else
	{
		stopFlashAnims();
	}
}

function redimensioneaza_din_submeniu(butonu)
{
	var flashMovie1=getFlashMovieObject("flash");
	flashMovie1.SetVariable("/:butonu",butonu);
	startFlashAnims();
}

function redimensioneaza(butonu)
{
	if (e_mare) { activeaza_pagina(butonu); micsoreaza(); }
	else { activeaza_pagina(butonu); mareste(); }
}

function micsoreaza()
{
	e_mare=0;
	objFlash=getFlashMovieObject("flash");
	var browserName=navigator.appName;
	if (browserName=="Microsoft Internet Explorer") objFlash.style.height="200px";
	else { document.getElementById("flashemb").style.height="200px"; objFlash.style.cssText = "height: 200px"; }
}

function mareste_fara_animatie()
{
	e_mare=1;
	objFlash=getFlashMovieObject("flash");
	var browserName=navigator.appName; 
	if (browserName=="Microsoft Internet Explorer")	objFlash.style.height="599px";
	else { document.getElementById("flashemb").style.height="599px";  objFlash.style.cssText = "height: 599px"; }
}

function mareste(unu)
{
	e_mare=1; 
	objFlash=getFlashMovieObject("flash");
	var browserName=navigator.appName; 
	if (browserName=="Microsoft Internet Explorer") { objFlash.style.height="599px"; }
	else { document.getElementById("flashemb").style.height="599px"; objFlash.style.cssText = "height: 599px"; }
	if (unu==1) { stopFlashAnims(); activeaza_pagina('prima_pagina'); s_a_schimbat=1; }
}

function getFlashMovieObject(movieName)
{
	if (window.document[movieName])
	{
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1)
	{
		if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; 
	}
	else
	{ // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		return document.getElementById(movieName);
	}
}

function startFlashAnims()
{
	var flashMovie1=getFlashMovieObject("flash");
	flashMovie1.SetVariable("/:startAnim", 1);
}

function stopFlashAnims()
{
	var flashMovie1=getFlashMovieObject("flash");
	flashMovie1.SetVariable("/:startAnim", -1);
}

//e ascuns pentru ca mai am un onload de unde accesez si functia trecuta aici la onload
//window.onload=initializeazaFlash;

