var timerRedim;
var varRedim=0;

var stepPoza=10;
var timerPoza;
var actiune=0;
var varFereastra=0;
var varFereastraOld=0;
var statIMGback=0;

var mnu_status=0;

var ImgPoz=1;

var arrIMG1=["IMAGINI/wait.gif","IMAGINI/vb.gif","IMAGINI/vb_o.gif","IMAGINI/vc.gif","IMAGINI/vc_o.gif","IMAGINI/bb.gif","IMAGINI/bb_o.gif","IMAGINI/bc.gif","IMAGINI/bc_o.gif","IMAGINI/arrow.gif","IMAGINI/spacer.png","IMAGINI/cross.png","IMAGINI/shadow.png","IMAGINI/js.png","IMAGINI/a1.jpg","IMAGINI/a2.jpg","IMAGINI/i1.jpg"];
var arrIMG2=["IMAGINI/face0.png","IMAGINI/face1.png","IMAGINI/face2.png","IMAGINI/face3.png","IMAGINI/face4.png","IMAGINI/face5.png","IMAGINI/face6.png"];
var arrIMG3=["IMAGINI/b0.jpg","IMAGINI/b1.jpg","IMAGINI/b2.jpg","IMAGINI/b3.jpg","IMAGINI/b4.jpg","IMAGINI/b5.jpg","IMAGINI/b6.jpg"];


/* ########################################################################### */
Event.observe(window, 'load', loadArrIMG1, false);
Event.observe(window, 'resize', ReDime, false);
/* ########################################################################### */
/* #########################  - INITIALIZARE -  ############################ */
/* --------------------------------------------------------------------- */
function loadArrIMG1(){
	new loadIMG(arrIMG1, loadArrIMG2);}
/* --------------------------------- */
function loadArrIMG2(){
	new loadIMG(arrIMG2, loadArrIMG3);}
/* --------------------------------- */
function loadArrIMG3(){
	new loadIMG(arrIMG3, finalAnim);}
/* --------------------------------------------------------------------- */
function finalAnim(){
		aflare_centru();
		pozitie();
		window.setTimeout("StartIndex();",1000);
		window.setTimeout("InitReady();",100);
		clearPreloadPage();
		disableSelect();
		varRedim=1;
		AfisareOraStatus();}
/* --------------------------------------------------------------------- */
function clearPreloadPage() {
	$('prepage').style.visibility='hidden';}
/* #########################  - REDIMENSIONARE -  ############################ */
function ReDime(){
	if (varRedim==0){
		clearInterval(timerRedim);
		timerRedim=setInterval("ReInitializare()",100);}}
/* --------------------------------- */
function ReInitializare(){
	clearInterval(timerRedim);
	varRedim=1;
	aflare_centru();
	window.setTimeout("pozitie1()",100);	
	window.setTimeout("InitReady()",500);}
/* --------------------------------- */
function pozitie1(){
	var tpLeft=CentruX-950;
	var tpTop=CentruY-785;
	new Effect.MoveAndResizeTo('dreptunghi',tpTop,tpLeft,1900,1550,{duration: 0.3,transition: Effect.Transitions.spring, afterFinish: function(effect){
		tpLeft=CentruX-400;
		tpTop=CentruY+270;
		new Effect.MoveAndResizeTo('footer',tpTop,tpLeft,900,30,{duration: 0.3, afterFinish: function(effect){}});
	}});}
/* --------------------------------------------------------------------- */
function InitReady(){
	varRedim=0;}
/* ########################################################################### */

/* ###############  - AFLA CENTRU BROWSER -  ################## */
var CentruX=0;var CentruY=0;var varWidth=0;var varHeight=0;
/* --------------------------------------------------------------------- */
function aflare_centru(){
  	var de = document.documentElement;
	varWidth = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	varHeight = self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	CentruX=varWidth/2;CentruY=varHeight/2;
	if (varWidth>800) {}else {}}
/* ###############  - AFISARE ORA -  ################## */
function AfisareOraStatus() {
	var TimerOraStatus = window.setTimeout("AfisareOraStatus()", 1000);
	var Astazi = new Date();
	var valoare = Astazi.toLocaleString();
	status = valoare;}
/* ###############  - DEZACTIVARE SELECTIE TEXT IN BROWSER -  ################## */
function disableSelect(){
	function disabletext(e){return false}
	function reEnable(){return true}
	document.onselectstart=new Function ("return false")//if the browser is IE4+
	if (window.sidebar){//if the browser is NS6
		document.onmousedown=disabletext
		document.onclick=reEnable}}
/* ###################  - POZITIONARE ELEMENTE IN PAGINA -  ################## */
function pozitie(){
	var tpLeft=CentruX-950;
	var tpTop=CentruY-785;
	$('dreptunghi').setStyle({top:-5000+'px',left:tpLeft+'px'}); 
	$('prepage').setStyle({top:0+'px',left:0+'px',width:varWidth+'px',height:varHeight+'px'});
	Element.setOpacity($('footer'),0.5);
	Element.setOpacity($('fundal'),0.01);
	for(fi = 0; fi <= 14; fi++){
	  	gi=(15-fi)/15;fg=(fi)/15;
		$('opacL'+fi).setStyle({top:fi+'px',opacity:gi});
	  	$('opacS'+fi).setStyle({top:(390+fi)+'px',opacity:fg});}
	Element.setOpacity($('xSiteMsk'),0.01);
	$$('.menMask').each(function(item) {Element.setOpacity(item,0.6);$(item).setStyle({top:0+'px',left:-1+'px',width:0+'px',height:30+'px'});});
	$$('.menLink').each(function(item) {Element.setOpacity(item,0.001);});
	$$('.msk').each(function(item) {Element.setOpacity(item,0.8);});
	$$('.mskLnk').each(function(item) {Element.setOpacity(item,0.01);});
	$('ticker').setStyle({top:200+'px',left:1300+'px',width:300+'px',height:100+'px'});
	
	
	$('imgGal1').setStyle({left:5+'px'});
	$('imgGal2').setStyle({left:5+'px'});
	$('imgGal3').setStyle({left:5+'px'});
	
	$('imgVid1').setStyle({left:0+'px'});
	$('imgVid2').setStyle({left:170+'px'});

	
	new Effect.MoveAndResizeTo('MENIU',10,-300,200,180,{duration: 0.0});

	FirstContent0();
	FirstContent1();
	FirstContent2();
	FirstContent3();
	FirstContent4();
	FirstContent5();
	FirstContent6();
	
	exInitializareScroller();
	exInitializareScrollera();
	exInitializareScrollerb();
	exInitializareScrollerc();
	exInitializareScrollerd();
}

/* ################################# */
function FirstContent0(){
	$('ctt01').setStyle({top:-1000+'px',left:10+'px',width:300+'px',height:245+'px'});
	$('ctt02').setStyle({top:10+'px',left:1200+'px',width:370+'px',height:245+'px'});
	$('ctt03').setStyle({top:265+'px',left:-1000+'px',width:400+'px',height:245+'px'});
	$('ctt04').setStyle({top:1265+'px',left:420+'px',width:270+'px',height:245+'px'});
	$('tit01').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit02').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit03').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit04').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('cctt01').setStyle({top:725+'px',left:10+'px',width:280+'px',height:205+'px'});
	$('cctt02').setStyle({top:725+'px',left:10+'px',width:350+'px',height:205+'px'});
	$('cctt03').setStyle({top:725+'px',left:10+'px',width:380+'px',height:205+'px'});
	$('cctt04').setStyle({top:725+'px',left:10+'px',width:250+'px',height:205+'px'});
	$('brd01').setStyle({top:20+'px',left:120+'px',width:0+'px',height:1+'px'});
	$('brd02').setStyle({top:20+'px',left:155+'px',width:0+'px',height:1+'px'});
	$('brd03').setStyle({top:20+'px',left:170+'px',width:0+'px',height:1+'px'});
	$('brd04').setStyle({top:20+'px',left:105+'px',width:0+'px',height:1+'px'});}
/* --------------------------------- */
function ShowContent0(){
	new Effect.MoveAndResizeTo('content',0,200,700,520,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish:function(effect){$('content0').setStyle({left:0+'px'});}});
	window.setTimeout("new Effect.MoveAndResizeTo('ctt02',10,320,370,245,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit02',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd02',20,30,310,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt02',25,10,350,205,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",400);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt01',10,10,300,245,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit01',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd01',20,30,240,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt01',25,10,280,205,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",700);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt03',265,10,400,245,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit03',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd03',20,30,340,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt03',25,10,380,205,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt04',265,420,270,245,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit04',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd04',20,30,210,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt04',25,10,250,205,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1300);}
/* --------------------------------- */
function HideContent0(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit02',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('tit01',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('tit03',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("new Effect.MoveAndResizeTo('tit04',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	
	window.setTimeout("new Effect.MoveAndResizeTo('brd02',20,155,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("new Effect.MoveAndResizeTo('brd01',20,120,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	window.setTimeout("new Effect.MoveAndResizeTo('brd03',20,170,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",900);
	window.setTimeout("new Effect.MoveAndResizeTo('brd04',20,105,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",1100);
	
	window.setTimeout("new Effect.MoveAndResizeTo('cctt02',725,10,350,205,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt01',725,10,280,205,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt03',725,10,380,205,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",600);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt04',725,10,250,205,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",800);
	
	window.setTimeout("new Effect.MoveAndResizeTo('ctt01',-345,10,300,245,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt02',10,1000,370,245,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt03',265,-500,400,245,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt04',665,420,270,245,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	$('js').setStyle({left:-1000+'px'});
	window.setTimeout("exAscundeMeniu();",1100);
}
/* ################################# */
function FirstContent1(){
	$('ctt11').setStyle({top:-1000+'px',left:10+'px',width:680+'px',height:230+'px'});
	$('ctt12').setStyle({top:250+'px',left:-1000+'px',width:360+'px',height:120+'px'});
	$('ctt13').setStyle({top:250+'px',left:1380+'px',width:310+'px',height:120+'px'});
	$('ctt14').setStyle({top:1380+'px',left:10+'px',width:680+'px',height:130+'px'});

	$('tit11').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit12').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit14').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	
	$('cctt11').setStyle({top:725+'px',left:10+'px',width:660+'px',height:195+'px'});
	$('cctt12').setStyle({top:725+'px',left:10+'px',width:340+'px',height:85+'px'});
	$('cctt13').setStyle({top:720+'px',left:10+'px',width:290+'px',height:100+'px'});
	$('cctt14').setStyle({top:725+'px',left:10+'px',width:660+'px',height:95+'px'});
	
	$('brd11').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});
	$('brd12').setStyle({top:20+'px',left:150+'px',width:0+'px',height:1+'px'});
	$('brd14').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});
}
/* --------------------------------- */
function ShowContent1(){
	window.setTimeout("new Effect.MoveAndResizeTo('ctt11',10,10,680,230,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit11',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd11',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt11',25,10,660,195,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt12',250,10,360,120,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit12',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd12',20,30,300,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt12',25,10,340,85,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1300);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt13',250,380,310,120,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt13',20,10,290,100,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});",1700);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt14',380,10,680,130,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit14',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd14',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt14',25,10,660,95,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",2000);}
/* --------------------------------- */
function HideContent1(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit11',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('tit12',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('tit14',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	
	window.setTimeout("new Effect.MoveAndResizeTo('brd11',20,310,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("new Effect.MoveAndResizeTo('brd12',20,150,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	window.setTimeout("new Effect.MoveAndResizeTo('brd14',20,31,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",1100);
	
	window.setTimeout("new Effect.MoveAndResizeTo('cctt11',725,10,660,195,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt12',725,10,340,85,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt13',720,10,290,100,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",600);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt14',725,10,660,95,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",800);
	
	window.setTimeout("new Effect.MoveAndResizeTo('ctt11',-1000,10,680,230,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt12',250,-1000,360,120,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt13',250,1380,310,120,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt14',1380,10,680,130,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	window.setTimeout("exAscundeMeniu();",1100);}
/* ################################# */
function FirstContent2(){
	$('ctt21').setStyle({top:-1500+'px',left:10+'px',width:680+'px',height:500+'px'});
	$('tit21').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('cctt21').setStyle({top:725+'px',left:10+'px',width:660+'px',height:465+'px'});
	$('brd21').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});}
/* --------------------------------- */
function ShowContent2(){
	window.setTimeout("new Effect.MoveAndResizeTo('ctt21',10,10,680,500,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit21',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd21',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt21',25,10,660,465,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);}
/* --------------------------------- */
function HideContent2(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit21',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('brd21',20,310,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt21',725,10,660,465,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt21',-1500,10,680,500,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("exAscundeMeniu();",700);}
/* ################################# */
function FirstContent3(){
	$('ctt31').setStyle({top:-1500+'px',left:10+'px',width:680+'px',height:500+'px'});
	$('tit31').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('cctt31').setStyle({top:725+'px',left:10+'px',width:660+'px',height:465+'px'});
	$('brd31').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});}
/* --------------------------------- */
function ShowContent3(){
	window.setTimeout("new Effect.MoveAndResizeTo('ctt31',10,10,680,500,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit31',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd31',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt31',25,10,660,465,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);}
/* --------------------------------- */
function HideContent3(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit31',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('brd31',20,310,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt31',725,10,660,465,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt31',-1500,10,680,500,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("exAscundeMeniu();",700);}
/* ################################# */
function FirstContent4(){
	$('ctt41').setStyle({top:-1500+'px',left:10+'px',width:680+'px',height:500+'px'});
	$('tit41').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('cctt41').setStyle({top:725+'px',left:10+'px',width:660+'px',height:465+'px'});
	$('brd41').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});}
/* --------------------------------- */
function ShowContent4(){
	window.setTimeout("new Effect.MoveAndResizeTo('ctt41',10,10,680,500,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit41',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd41',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt41',25,10,660,465,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);}
/* --------------------------------- */
function HideContent4(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit41',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('brd41',20,310,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt41',725,10,660,465,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt41',-1500,10,680,500,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("exAscundeMeniu();",700);}
/* ################################# */
function FirstContent5(){
	$('ctt51').setStyle({top:10+'px',left:-1000+'px',width:350+'px',height:175+'px'});
	$('ctt52').setStyle({top:1195+'px',left:10+'px',width:680+'px',height:315+'px'});
	$('ctt53').setStyle({top:10+'px',left:1370+'px',width:320+'px',height:175+'px'});

	$('tit51').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit52').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit53').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	
	$('cctt51').setStyle({top:725+'px',left:10+'px',width:330+'px',height:140+'px'});
	$('cctt52').setStyle({top:725+'px',left:10+'px',width:660+'px',height:280+'px'});
	$('cctt53').setStyle({top:725+'px',left:10+'px',width:300+'px',height:140+'px'});
	
	$('brd51').setStyle({top:20+'px',left:145+'px',width:0+'px',height:1+'px'});
	$('brd52').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});
	$('brd53').setStyle({top:20+'px',left:150+'px',width:0+'px',height:1+'px'});
}
/* --------------------------------- */
function ShowContent5(){
	window.setTimeout("new Effect.MoveAndResizeTo('ctt51',10,10,350,175,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit51',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd51',20,30,290,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt51',25,10,330,140,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt52',195,10,680,315,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit52',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd52',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt52',25,10,660,280,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1300);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt53',10,370,320,175,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit53',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd53',20,30,260,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt53',25,10,300,140,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1700);}
/* --------------------------------- */
function HideContent5(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit51',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('tit52',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('tit53',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	
	window.setTimeout("new Effect.MoveAndResizeTo('brd51',20,145,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("new Effect.MoveAndResizeTo('brd52',20,310,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	window.setTimeout("new Effect.MoveAndResizeTo('brd53',20,150,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",1100);
	
	window.setTimeout("new Effect.MoveAndResizeTo('cctt51',725,10,330,140,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt52',725,10,660,280,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt53',720,10,300,140,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",600);
	
	window.setTimeout("new Effect.MoveAndResizeTo('ctt51',10,-1000,350,175,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt52',1195,10,680,315,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt53',10,1370,320,175,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);

	window.setTimeout("exAscundeMeniu();",1100);}
/* ################################# */
function FirstContent6(){
	$('ctt61').setStyle({top:10+'px',left:-1000+'px',width:360+'px',height:145+'px'});
	$('ctt62').setStyle({top:165+'px',left:-1000+'px',width:360+'px',height:145+'px'});
	$('ctt63').setStyle({top:320+'px',left:1500+'px',width:680+'px',height:190+'px'});
	$('ctt64').setStyle({top:-710+'px',left:380+'px',width:310+'px',height:300+'px'});
	$('tit61').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit62').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit63').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('tit64').setStyle({top:0+'px',left:1000+'px',width:300+'px',height:25+'px'});
	$('cctt61').setStyle({top:725+'px',left:10+'px',width:340+'px',height:105+'px'});
	$('cctt62').setStyle({top:725+'px',left:10+'px',width:340+'px',height:105+'px'});
	$('cctt63').setStyle({top:725+'px',left:10+'px',width:660+'px',height:155+'px'});
	$('cctt64').setStyle({top:725+'px',left:10+'px',width:290+'px',height:265+'px'});
	$('brd61').setStyle({top:20+'px',left:150+'px',width:0+'px',height:1+'px'});
	$('brd62').setStyle({top:20+'px',left:150+'px',width:0+'px',height:1+'px'});
	$('brd63').setStyle({top:20+'px',left:310+'px',width:0+'px',height:1+'px'});
	$('brd64').setStyle({top:20+'px',left:125+'px',width:0+'px',height:1+'px'});}
/* --------------------------------- */
function ShowContent6(){
	window.setTimeout("new Effect.MoveAndResizeTo('ctt61',10,10,360,145,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit61',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd61',20,30,300,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt61',25,10,340,105,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",400);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt62',165,10,360,145,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit62',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd62',20,30,300,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt62',25,10,340,105,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",700);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt63',320,10,680,190,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit63',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd63',20,30,620,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt63',25,10,660,155,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1000);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt64',10,380,310,300,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('tit64',0,40,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});new Effect.MoveAndResizeTo('brd64',20,30,250,1,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('cctt64',25,10,290,265,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});}});",1300);}
/* --------------------------------- */
function HideContent6(){
	window.setTimeout("new Effect.MoveAndResizeTo('tit61',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('tit62',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('tit63',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("new Effect.MoveAndResizeTo('tit64',0,1000,300,25,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	
	window.setTimeout("new Effect.MoveAndResizeTo('brd61',20,150,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",500);
	window.setTimeout("new Effect.MoveAndResizeTo('brd62',20,150,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",700);
	window.setTimeout("new Effect.MoveAndResizeTo('brd63',20,310,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",900);
	window.setTimeout("new Effect.MoveAndResizeTo('brd64',20,125,0,1,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",1100);
	
	window.setTimeout("new Effect.MoveAndResizeTo('cctt61',725,10,340,105,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt62',725,10,340,105,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt63',725,10,660,155,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",600);
	window.setTimeout("new Effect.MoveAndResizeTo('cctt64',725,10,290,265,{duration: 0.7,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",800);
	
	window.setTimeout("new Effect.MoveAndResizeTo('ctt61',10,-1000,360,145,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt62',10,-1000,360,145,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt63',320,1500,680,190,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){$('MesajWrite').setStyle({top:10+'px'});$('MesajSent').setStyle({top:3000+'px'});}});",300);
	window.setTimeout("new Effect.MoveAndResizeTo('ctt64',-710,380,310,300,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);	
	window.setTimeout("exAscundeMeniu();",1100);
}

/* ################################# */
function StartIndex(){
	var tpLeft=CentruX-950;
	var tpTop=CentruY-785;
	new Effect.MoveAndResizeTo('dreptunghi',tpTop,tpLeft,1900,1550,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){
		new Effect.Highlight('wSite',{duration: 0.9,restorecolor:'#fffaaa',startcolor:'#111111',endcolor:'#fffaaa', afterFinish: function(effect){
			$('js').setStyle({left:10+'px',top:70+'px'});
			new Effect.Highlight('wSite',{duration: 0.7,restorecolor:'#111111',startcolor:'#fffaaa',endcolor:'#111111', afterFinish:function(effect){
				//ShowContent0();
				$('ticker').setStyle({top:150+'px',left:450+'px',width:280+'px',height:350+'px'});
				splittimer=setTimeout('exMesajSplit()',500);
			}});}});}});}	

/* ################################################################################## */
/* ################################  - MENIU FOCUS -  ############################### */
/* ################################################################################## */
var MeniuArie=[0,0,0,0,0,0,0];
var IntervalMeniuArie=['','','','','','',''];
/* ---------------------------------------------------------------------------------- */
function mnu_on(valoare){
	clearInterval(IntervalMeniuArie[valoare]);
	if (MeniuArie[valoare]==0){
	   MeniuArie[valoare]=1;
	   new Effect.Highlight('mMask'+valoare,{duration: 0.5,restorecolor:'#111111',startcolor:'#fffaaa',endcolor:'#111111', afterFinish: function(effect){MeniuArie[valoare]=2;}});
	   $('mText'+valoare).setStyle({left:-1000+'px'}); 
	   $('msText'+valoare).setStyle({left:0+'px'}); 
	   new Effect.MoveAndResizeTo('mMask'+valoare,0,0,200,28,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}
  	else {IntervalMeniuArie[valoare]=setInterval("mnu_on("+valoare+")",10);};}
/* ---------------------------------------------------------------------------------- */
function mnu_off(valoare){
	clearInterval(IntervalMeniuArie[valoare]);
  	if (MeniuArie[valoare]==2){
    	MeniuArie[valoare]=1;
		$('mText'+valoare).setStyle({left:0+'px'}); 
	   	$('msText'+valoare).setStyle({left:-1000+'px'}); 
		new Effect.MoveAndResizeTo('mMask'+valoare,0,-1,0,28,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){MeniuArie[valoare]=0;}});}
    else {IntervalMeniuArie[valoare]=setInterval("mnu_off("+valoare+")",10);}}
/* ##############################  - END MENIU FOCUS -  ############################# */
/* ---------------------------------------------------------------------------------- */	    

/* ################################################################################## */
/* ################################  - MENIU CLICK -  ############################### */
/* ################################################################################## */
/* ################################# */
function exAfisareCategorie(valoare){
	if (actiune == 0){
		actiune=1;
		varFereastraOld = varFereastra;
		varFereastra = valoare;
		new Effect.MoveAndResizeTo('content',0,200,700,520,{duration: 0.4,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
		switch(varFereastraOld){
			case 0:
				HideContent0();break;
			case 1:
  				HideContent1();break;
			case 2:
				HideContent2();break;
			case 3:
  				HideContent3();break;
			case 4:
				HideContent4();break;
			case 5:
  				HideContent5();break;
			case 6:
				HideContent6();break;};
	};}
/* ################################# */
function exAscundeMeniu(){
	new Effect.MoveAndResizeTo('content',0,1220,700,520,{duration: 0.3, afterFinish: function(effect){
		$('content'+varFereastraOld).setStyle({left:1900+'px'}); 
		$('content'+varFereastra).setStyle({left:0+'px'});
		exAscundePoza();
		$('back1').src=arrIMG3[varFereastra];
	}});
	new Effect.MoveAndResizeTo('MENIU',10,-300,200,180,{duration: 0.3, afterFinish: function(effect){}});
}
/* ################################# */
function exAscundePoza(){
	new Effect.Highlight('wSite',{duration: 0.7,restorecolor:'#fffaaa',startcolor:'#111111',endcolor:'#fffaaa', afterFinish: function(effect){
		$('face'+varFereastraOld).setStyle({left:-1300+'px'}); 
		$('face'+varFereastra).setStyle({left:10+'px'});
		if (varFereastra == 0) {}
		else if(varFereastra == 1){mnu_status=0;}
		else if(varFereastra == 2){
			mnu_status=2;
			window.setTimeout("exScrollera();",200);
		}
		else if(varFereastra == 3){
			mnu_status=3;
			window.setTimeout("exScrollerb();",200);
		}
		else if(varFereastra == 4){
			mnu_status=4;
			window.setTimeout("exScrollerc();",200);
		}
		else if(varFereastra == 5){
			mnu_status=5;
			window.setTimeout("exScrollerd();",200);
		}
		else if(varFereastra == 6){};
		
		
		
		timerPoza=setTimeout('exAfiseazaPoza()',400);
	}});}
/* ################################# */
function exAfiseazaPoza(){
	new Effect.Highlight('wSite',{duration: 0.7,restorecolor:'#111111',startcolor:'#fffaaa',endcolor:'#111111', afterFinish: function(effect){
		new Effect.MoveAndResizeTo('MENIU',10,10,200,180,{duration: 0.3, afterFinish: function(effect){}});
		new Effect.MoveAndResizeTo('content',0,200,700,520,{duration: 0.3, afterFinish: function(effect){
			actiune=0;
		}});
	}});
	switch(varFereastra){
		case 0:
			ShowContent0();break;
		case 1:
  			ShowContent1();break;
		case 2:
			ShowContent2();break;
		case 3:
  			ShowContent3();break;
		case 4:
			ShowContent4();break;
		case 5:
  			ShowContent5();break;
		case 6:
			ShowContent6();break;};
}
/* ##############################  - END MENIU CLICK -  ############################# */
/* ---------------------------------------------------------------------------------- */




/* ################################################################################## */
function exAjaxSf(valoare) {
	new Effect.MoveAndResizeTo('xSiteMsk',0,0,1900,1550,{duration: 0.0, afterFinish: function(effect){
		new Effect.Appear('xSiteMsk',{duration:0.5, to:0.9, afterFinish: function(effect){
			new Effect.MoveAndResizeTo('xSite',565,633,634,465,{duration: 0.5, afterFinish: function(effect){
				exAjaxSf1(valoare);
			}});
		}});
	}});}
/* --------------------------------- */
function exAjaxSf1(valoare) {
	var arrIMGtemp = ["IMAGINI/sfinti/"+valoare+".jpg"];
	var pars = 'nr=2&di='+valoare;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;new loadIMG(arrIMGtemp, exAfisareSf);},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exAfisareSf(){
	$('prod_text').innerHTML=$('txtTemp').innerHTML;
	$('prod_tit').innerHTML=$('titTemp').innerHTML;
	$('divtemp').innerHTML="";
	mnu_status=0;
	window.setTimeout("exScroller();",200);}
/* --------------------------------- */
/* ################################################################################## */
function exAjaxPrd(valoare) {
	new Effect.MoveAndResizeTo('xSiteMsk',0,0,1900,1550,{duration: 0.0, afterFinish: function(effect){
		new Effect.Appear('xSiteMsk',{duration:0.5, to:0.9, afterFinish: function(effect){
			new Effect.MoveAndResizeTo('xSite',565,633,634,465,{duration: 0.5, afterFinish: function(effect){
				exAjaxPrd1(valoare);
			}});
		}});
	}});}
/* --------------------------------- */
function exAjaxPrd1(valoare) {
	var arrIMGtemp = ["IMAGINI/predici/"+valoare+".jpg"];
	var pars = 'nr=1&di='+valoare;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;new loadIMG(arrIMGtemp, exAfisarePrd);},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exAfisarePrd(){
	$('prod_text').innerHTML=$('txtTemp').innerHTML;
	$('prod_tit').innerHTML=$('titTemp').innerHTML;
	$('divtemp').innerHTML="";
	mnu_status=0;
	window.setTimeout("exScroller();",200);}
/* --------------------------------- */
/* ################################################################################## */
function exCloseProd(){
	$('prod_text').innerHTML="";
	$('prod_tit').innerHTML="";
	new Effect.MoveAndResizeTo('xSite',797,940,0,0,{duration: 0.5, afterFinish: function(effect){}});
	new Effect.Fade('xSiteMsk',{duration:0.5, to:0.01, afterFinish: function(effect){
		new Effect.MoveAndResizeTo('xSiteMsk',0,0,0,0,{duration: 0.0});
		mnu_status=3;
	}});}
/* --------------------------------- */
/* ################################################################################## */

/* ################################################################################## */
/* ########################  - SCROLLER AND MOUSE WHELL -  ########################## */
/* ################################################################################## */
var varDetaliuHeight=0;
var varDetaliuHeighta=0;
var varDetaliuHeightb=0;
var varDetaliuHeightc=0;
var varDetaliuHeightd=0;
/* ---------------------------------------------------------------------------------- */
if (window.addEventListener){window.addEventListener('DOMMouseScroll', wheel, false);}
window.onmousewheel = document.onmousewheel = wheel;
/* ---------------------------------------------------------------------------------- */
function wheel(event){
	var delta = 0;
    if (!event) event = window.event;
    if (event.wheelDelta) {delta = event.wheelDelta/120;if (window.opera) delta = delta;} 
    else if (event.detail) {delta = -event.detail/3;};
    if (delta){
    	if (mnu_status==0){handleProd(delta);}
    	else if (mnu_status==2){handleProda(delta);}
    	else if (mnu_status==3){handleProdb(delta);}
    	else if (mnu_status==4){handleProdc(delta);}
		else if (mnu_status==5){handleProdd(delta);}
    	else if (mnu_status==6){handleProd(delta);};
        if (event.preventDefault){event.preventDefault();};
        event.returnValue = false;}}
/* -------------------------  - EXECUTIE WHELL PRODUS -  ---------------------------- */
function handleProd(delta) {
	var vDetArrow=$('slider_bar').offsetHeight-$('slider_arrow').offsetHeight;
	if (varDetaliuHeight>0){
	   	var varSS=$('slider_slave').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slave').style.top=0+'px';$('slider_arrow').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight){$('slider_slave').style.top=-varDetaliuHeight+'px';$('slider_arrow').style.top=vDetArrow+'px';}
		   	else {$('slider_slave').style.top=varResult+'px';$('slider_arrow').style.top=-($('slider_slave').offsetTop*vDetArrow)/varDetaliuHeight+'px';};}}}
/* ---------------------  - INITIALIZARE SCROLLER PRODUS -  ------------------------- */
function exInitializareScroller() {
	new Control.Slider('slider_arrow','slider_bar',{axis:'vertical',
		onSlide:function(v){$('slider_slave').style.top=-varDetaliuHeight*v+'px';},
        onChange:function(v){$('slider_slave').style.top=-varDetaliuHeight*v+'px';}});
	$('slider_bar').style.visibility='hidden';}
/* -----------------------  - EXECUTIE SCROLLER PRODUS -  --------------------------- */
function exScroller() {
	varDetaliuHeight=$('slider_slave').offsetHeight-$('slider_master').offsetHeight+0;
	$('slider_arrow').style.top='0px';
	$('slider_slave').style.top='0px';
	if (varDetaliuHeight<=0){
		$('slider_bar').style.visibility='hidden';}
	else{
		$('slider_bar').style.visibility='visible';
		new Effect.Appear('slider_bar',{duration:0.5});}}
/* -------------------------  - EXECUTIE WHELL PRODUS -  ---------------------------- */
function handleProda(delta) {
	var vDetArrow=$('slider_bara').offsetHeight-$('slider_arrowa').offsetHeight;
	if (varDetaliuHeighta>0){
	   	var varSS=$('slider_slavea').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeighta){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slavea').style.top=0+'px';$('slider_arrowa').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeighta){$('slider_slavea').style.top=-varDetaliuHeighta+'px';$('slider_arrowa').style.top=vDetArrow+'px';}
		   	else {$('slider_slavea').style.top=varResult+'px';$('slider_arrowa').style.top=-($('slider_slavea').offsetTop*vDetArrow)/varDetaliuHeighta+'px';};}}}
/* ---------------------  - INITIALIZARE SCROLLER PRODUS -  ------------------------- */
function exInitializareScrollera() {
	new Control.Slider('slider_arrowa','slider_bara',{axis:'vertical',
		onSlide:function(v){$('slider_slavea').style.top=-varDetaliuHeighta*v+'px';},
        onChange:function(v){$('slider_slavea').style.top=-varDetaliuHeighta*v+'px';}});
	$('slider_bara').style.visibility='hidden';}
/* -----------------------  - EXECUTIE SCROLLER PRODUS -  --------------------------- */
function exScrollera() {
	varDetaliuHeighta=$('slider_slavea').offsetHeight-$('slider_mastera').offsetHeight+0;
	$('slider_arrowa').style.top='0px';
	$('slider_slavea').style.top='0px';
	if (varDetaliuHeighta<=0){
		$('slider_bara').style.visibility='hidden';}
	else{
		$('slider_bara').style.visibility='visible';
		new Effect.Appear('slider_bara',{duration:0.5});}}
/* -------------------------  - EXECUTIE WHELL PRODUS -  ---------------------------- */
function handleProdb(delta) {
	var vDetArrow=$('slider_barb').offsetHeight-$('slider_arrowb').offsetHeight;
	if (varDetaliuHeightb>0){
	   	var varSS=$('slider_slaveb').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeightb){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slaveb').style.top=0+'px';$('slider_arrowb').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeightb){$('slider_slaveb').style.top=-varDetaliuHeightb+'px';$('slider_arrowb').style.top=vDetArrow+'px';}
		   	else {$('slider_slaveb').style.top=varResult+'px';$('slider_arrowb').style.top=-($('slider_slaveb').offsetTop*vDetArrow)/varDetaliuHeightb+'px';};}}}
/* ---------------------  - INITIALIZARE SCROLLER PRODUS -  ------------------------- */
function exInitializareScrollerb() {
	new Control.Slider('slider_arrowb','slider_barb',{axis:'vertical',
		onSlide:function(v){$('slider_slaveb').style.top=-varDetaliuHeightb*v+'px';},
        onChange:function(v){$('slider_slaveb').style.top=-varDetaliuHeightb*v+'px';}});
	$('slider_barb').style.visibility='hidden';}
/* -----------------------  - EXECUTIE SCROLLER PRODUS -  --------------------------- */
function exScrollerb() {
	varDetaliuHeightb=$('slider_slaveb').offsetHeight-$('slider_masterb').offsetHeight+0;
	$('slider_arrowb').style.top='0px';
	$('slider_slaveb').style.top='0px';
	if (varDetaliuHeightb<=0){
		$('slider_barb').style.visibility='hidden';}
	else{
		$('slider_barb').style.visibility='visible';
		new Effect.Appear('slider_barb',{duration:0.5});}}
/* -------------------------  - EXECUTIE WHELL PRODUS -  ---------------------------- */
function handleProdc(delta) {
	var vDetArrow=$('slider_barc').offsetHeight-$('slider_arrowc').offsetHeight;
	if (varDetaliuHeightc>0){
	   	var varSS=$('slider_slavec').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeightc){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slavec').style.top=0+'px';$('slider_arrowc').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeightc){$('slider_slavec').style.top=-varDetaliuHeightc+'px';$('slider_arrowc').style.top=vDetArrow+'px';}
		   	else {$('slider_slavec').style.top=varResult+'px';$('slider_arrowc').style.top=-($('slider_slavec').offsetTop*vDetArrow)/varDetaliuHeightc+'px';};}}}
/* ---------------------  - INITIALIZARE SCROLLER PRODUS -  ------------------------- */
function exInitializareScrollerc() {
	new Control.Slider('slider_arrowc','slider_barc',{axis:'vertical',
		onSlide:function(v){$('slider_slavec').style.top=-varDetaliuHeightc*v+'px';},
        onChange:function(v){$('slider_slavec').style.top=-varDetaliuHeightc*v+'px';}});
	$('slider_barb').style.visibility='hidden';}
/* -----------------------  - EXECUTIE SCROLLER PRODUS -  --------------------------- */
function exScrollerc() {
	varDetaliuHeightc=$('slider_slavec').offsetHeight-$('slider_masterc').offsetHeight+0;
	$('slider_arrowc').style.top='0px';
	$('slider_slavec').style.top='0px';
	if (varDetaliuHeightc<=0){
		$('slider_barc').style.visibility='hidden';}
	else{
		$('slider_barc').style.visibility='visible';
		new Effect.Appear('slider_barc',{duration:0.5});}}
/* -------------------------  - EXECUTIE WHELL PRODUS -  ---------------------------- */
function handleProdd(delta) {
	var vDetArrow=$('slider_bard').offsetHeight-$('slider_arrowd').offsetHeight;
	if (varDetaliuHeightd>0){
	   	var varSS=$('slider_slaved').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeightd){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slaved').style.top=0+'px';$('slider_arrowd').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeightd){$('slider_slaved').style.top=-varDetaliuHeightd+'px';$('slider_arrowd').style.top=vDetArrow+'px';}
		   	else {$('slider_slaved').style.top=varResult+'px';$('slider_arrowd').style.top=-($('slider_slaved').offsetTop*vDetArrow)/varDetaliuHeightd+'px';};}}}
/* ---------------------  - INITIALIZARE SCROLLER PRODUS -  ------------------------- */
function exInitializareScrollerd() {
	new Control.Slider('slider_arrowd','slider_bard',{axis:'vertical',
		onSlide:function(v){$('slider_slaved').style.top=-varDetaliuHeightd*v+'px';},
        onChange:function(v){$('slider_slaved').style.top=-varDetaliuHeightd*v+'px';}});
	$('slider_bard').style.visibility='hidden';}
/* -----------------------  - EXECUTIE SCROLLER PRODUS -  --------------------------- */
function exScrollerd() {
	varDetaliuHeightd=$('slider_slaved').offsetHeight-$('slider_masterd').offsetHeight+0;
	$('slider_arrowd').style.top='0px';
	$('slider_slaved').style.top='0px';
	if (varDetaliuHeightd<=0){
		$('slider_bard').style.visibility='hidden';}
	else{
		$('slider_bard').style.visibility='visible';
		new Effect.Appear('slider_bard',{duration:0.5});}}
/* ######################  - END SCROLLER AND MOUSE WHELL -  ######################## */
/* ---------------------------------------------------------------------------------- */


/* ################################# */
function b_down_on(valoare){
	//Element.setOpacity(valoare,1.0);
	$(valoare).style.color='#7e7c54';}
/* --------------------------------- */
function b_down_off(valoare){
	//Element.setOpacity(valoare,0.5);
	$(valoare).style.color='#ffffff';}
/* --------------------------------- */

/* ################################# */
/* ################################# */
var CurrImgGal=0;var varUpImgGal=0;var varDownImgGal=1;var BlockImgGal=0;var CurrBigPic="";
var CurrImgVid=1;var varUpImgVid=0;var varDownImgVid=1;var BlockImgVid=0;
/* ################################# */
/* ################################# */
function exUpImgVid(){
	if (BlockImgVid==0) {
		BlockImgVid=1;
		$('vc').src="IMAGINI/vc.gif";
		$('vc').setStyle({cursor:'default'});
		var nrTemp=CurrImgVid-1;
		if (nrTemp>0) {
			CurrImgVid=nrTemp;
			window.setTimeout("new Effect.MoveAndResizeTo('imgVid1',10,-2005,158,98,{duration: 0.5, afterFinish: function(effect){}});",100);
			window.setTimeout("new Effect.MoveAndResizeTo('imgVid2',10,2175,158,98,{duration: 0.5, afterFinish: function(effect){exAjaxImgVid("+CurrImgVid+");}});",200);} 
		else {BlockImgVid=0;};};
}
/* --------------------------------- */
function exDownImgVid(){
	if (BlockImgVid==0) {
		BlockImgVid=1;
		$('vb').src="IMAGINI/vb.gif";
		$('vb').setStyle({cursor:'default'});
		var nrTemp=(CurrImgVid+1)*2;
		if (nrTemp<=nrImgVid) {
			CurrImgVid=nrTemp/2;
			window.setTimeout("new Effect.MoveAndResizeTo('imgVid1',10,-2005,158,98,{duration: 0.5, afterFinish: function(effect){}});",100);
			window.setTimeout("new Effect.MoveAndResizeTo('imgVid2',10,2175,158,98,{duration: 0.5, afterFinish: function(effect){exAjaxImgVid("+CurrImgVid+");}});",200);} 
		else {BlockImgVid=0;};};
}
/* --------------------------------- */
function exAjaxImgVid(val) {
	var pars = 'nr=4&di='+val;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;exImgVid();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('FILES/exec_ajax.php?'+pars, opt);
}
/* --------------------------------- */
function exImgVid() {
	$('VidImg').innerHTML=$('txtTemp').innerHTML;
	new Effect.MoveAndResizeTo('imgVid1',10,-2005,158,98,{duration: 0.0});
	new Effect.MoveAndResizeTo('imgVid2',10,2175,158,98,{duration: 0.0});

	var arrIMGtemp = $A($$('.aj_img')); 
	new loadIMG(arrIMGtemp, exAfisVid);}
/* --------------------------------- */
function exAfisVid() {
	window.setTimeout("new Effect.MoveAndResizeTo('imgVid1',10,0,158,98,{duration: 0.9,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('imgVid2',10,169,158,98,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",400);
	$('divtemp').innerHTML="";
	BlockImgVid=0;
}
/* ################################# */
/* ################################# */
function exUpImgGal(){
	if (BlockImgGal==0) {
		BlockImgGal=1;
		$('bc').src="IMAGINI/bc.gif";
		$('bc').setStyle({cursor:'default'});
		var nrTemp=CurrImgGal-3;
		if (nrTemp>=0) {
			CurrImgGal=nrTemp;
			window.setTimeout("new Effect.MoveAndResizeTo('imgGal1',5,2005,178,73,{duration: 0.5, afterFinish: function(effect){}});",100);
			window.setTimeout("new Effect.MoveAndResizeTo('imgGal2',90,2005,178,73,{duration: 0.5, afterFinish: function(effect){}});",200);
			window.setTimeout("new Effect.MoveAndResizeTo('imgGal3',175,2005,178,73,{duration: 0.5, afterFinish: function(effect){exAjaxImgInd("+CurrImgGal+");}});",300);} 
		else {BlockImgGal=0;};};
}
/* --------------------------------- */
function exDownImgGal(){
	if (BlockImgGal==0) {
		BlockImgGal=1;
		$('bb').src="IMAGINI/bb.gif";
		$('bb').setStyle({cursor:'default'});
		var nrTemp=CurrImgGal+5;
		if (nrTemp<nrImgGal) {
			CurrImgGal=nrTemp-2;
			window.setTimeout("new Effect.MoveAndResizeTo('imgGal1',5,2005,178,73,{duration: 0.5, afterFinish: function(effect){}});",100);
			window.setTimeout("new Effect.MoveAndResizeTo('imgGal2',90,2005,178,73,{duration: 0.5, afterFinish: function(effect){}});",200);
			window.setTimeout("new Effect.MoveAndResizeTo('imgGal3',175,2005,178,73,{duration: 0.5, afterFinish: function(effect){exAjaxImgInd("+CurrImgGal+");}});",300);} 
		else {BlockImgGal=0;};};
}
/* --------------------------------- */
function exAjaxImgInd(val) {
	var pars = 'nr=3&di='+val;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;exImgInd();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('FILES/exec_ajax.php?'+pars, opt);
}
/* --------------------------------- */
function exImgInd() {
	$('GalImg').innerHTML=$('txtTemp').innerHTML;
	$('imgGal1').setStyle({left:2005+'px'});
	$('imgGal2').setStyle({left:2005+'px'});
	$('imgGal3').setStyle({left:2005+'px'});
	var arrIMGtemp = $A($$('.aj_img')); 
	new loadIMG(arrIMGtemp, exAfisInd);}
/* --------------------------------- */
function exAfisInd() {
	window.setTimeout("new Effect.MoveAndResizeTo('imgGal1',5,5,178,73,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",100);
	window.setTimeout("new Effect.MoveAndResizeTo('imgGal2',90,5,178,73,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",200);
	window.setTimeout("new Effect.MoveAndResizeTo('imgGal3',175,5,178,73,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});",300);
	$('divtemp').innerHTML="";
	BlockImgGal=0;
}
/* ################################# */
/* ################################# */
function exImgGal(val){
	if (BlockImgGal==0) {
		BlockImgGal=1;
		var arrIMGtemp = ["IMAGINI/galerie/mari/"+val+""]; 
		CurrBigPic=arrIMGtemp[0];
		new Effect.MoveAndResizeTo('ImgGalBig',2005,0,463,268,{duration: 0.5, afterFinish: function(effect){
			new loadIMG(arrIMGtemp, exAfisImgGal);
		}});};
}
/* --------------------------------- */
function exAfisImgGal() {
	$('ImgGalBig').src=CurrBigPic;
	new Effect.MoveAndResizeTo('ImgGalBig',5,0,463,268,{duration: 0.5,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){
		BlockImgGal=0;
	}});
}

function vb_on(val){
	if (val=='vc') {
		var nrTemp=CurrImgVid-1;} 
	else if(val=='vb'){
		var nrTemp=(CurrImgVid+1)*2;};
	
	if ((nrTemp==0) || (nrTemp>nrImgVid)) {
		$(val).src="IMAGINI/"+val+".gif";
		$(val).setStyle({cursor:'default'});}	
	else{
		$(val).src="IMAGINI/"+val+"_o.gif";
		$(val).setStyle({cursor:'pointer'});
	};
	
}

function bb_on(val){
	if (val=='bc') {
		var nrTemp=CurrImgGal-3;} 
	else if(val=='bb'){
		var nrTemp=CurrImgGal+5;};
	
	if ((nrTemp<0) || (nrTemp>nrImgGal)) {
		$(val).src="IMAGINI/"+val+".gif";
		$(val).setStyle({cursor:'default'});}	
	else{
		$(val).src="IMAGINI/"+val+"_o.gif";
		$(val).setStyle({cursor:'pointer'});
	};
	
}

function bb_off(val){
	$(val).src="IMAGINI/"+val+".gif";
	$(val).setStyle({cursor:'default'});
}

function ImgGal_on(val){Element.setOpacity($(val),0.4);}
function ImgGal_off(val){Element.setOpacity($(val),1.0);}

function onMskLnk(val){Element.setOpacity($(val),0.6);}
function offMskLnk(val){Element.setOpacity($(val),0.01);}

function stopVid() {
	soundManager.destroySound('VID');
	new Effect.MoveAndResizeTo('videoSite',-2000,757,386,335,{duration: 0.5, afterFinish: function(effect){}});
	new Effect.Fade('xSiteMsk',{duration:0.5, to:0.01, afterFinish: function(effect){
		new Effect.MoveAndResizeTo('xSiteMsk',0,0,0,0,{duration: 0.0});
	}});
}

/* ################################################################################## */
function exAfisImgVid(valoare) {
	new Effect.MoveAndResizeTo('xSiteMsk',0,0,1900,1550,{duration: 0.0, afterFinish: function(effect){
		new Effect.Appear('xSiteMsk',{duration:0.5, to:0.9, afterFinish: function(effect){
			new Effect.MoveAndResizeTo('videoSite',605,757,386,335,{duration: 0.5, afterFinish: function(effect){
				exAfisareVideo(valoare);
			}});
		}});
	}});}
/* --------------------------------- */
function exAfisareVideo(val){
		var mySound = soundManager.createVideo({
    	id: 'VID',
		stream: true,
    	url: 'http://localhost/New%20Proj/PARINTELE.RO/WEBSITE4/IMAGINI/video/mari/'+val});
		soundManager.play('VID');}
/* --------------------------------- */
/* ################################################################################## */

/* ###############  - SCHIMBARE TEXT DISPLAY -  ################## */
var splittimer='';
var varMsgSplit='';
var varMsgCount=-1;
var varMsgInner='';
var boolMsgState=false;
var boolFreeState=false;
/* --------------------------------- */
function exMesajSplit(){
	if (!boolFreeState) {
		if (!boolMsgState) {
			boolMsgState = true;
			varMsgInner = '';
			varMsgCount++;
			if (varMsgCount >= arrMesaj.length) {
				boolFreeState=true;
				var tpLeft=CentruX-400;
				var tpTop=CentruY+270;
				new Effect.MoveAndResizeTo('footer',tpTop,tpLeft,900,30,{duration: 1.3});
				new Effect.MoveAndResizeTo('LOGO',490,530,900,30,{duration: 0.7, afterFinish: function(effect){ShowContent0();}});
				$('ticker').setStyle({
					top: 5200 + 'px',
					left: 5500 + 'px',
					width: 0 + 'px',
					height: 0 + 'px'
				});
				return;
			};
			varMsgSplit = arrMesaj[varMsgCount].split(" ");
			for (i = 0; i < varMsgSplit.length; i++) {
				varMsgInner += '<DIV class="ofmesaj">&nbsp;' + varMsgSplit[i] + '</DIV>'
			}
			Element.setOpacity('ticker', 0.0);
			$('ticker').innerHTML = varMsgInner;
			$$('.ofmesaj').each(function(item){
				Element.setOpacity(item, 0.01);
			});
			Element.setOpacity('ticker', 1.0);
			Effect.multiple('ticker', Effect.Appear, {
				speed: 0.2
			});
			splittimer = setTimeout("exMesajSplit()", 5000);
		}
		else {
			boolMsgState = false;
			Effect.multiple('ticker', Effect.Fade, {
				speed: 0.05,
				to: 0.01
			});
			splittimer = setTimeout("exMesajSplit()", 1500);
		}
	}
}

/* ---------------------------------------------------- */
function exTrimitere() {
  	var str1='Nume: '+$('nume').value+' '+$('prenume').value+'<br />Email: '+$('email').value+'<br />Mesaj: '+$('detalii').value;
	var pars = 'nr=5&di='+str1;
	var opt = {
		method: 'get',
		onSuccess: function(t) {alert(""+t.responseText);succTrimitere();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('FILES/exec_ajax.php?'+pars, opt);}
/* ---------------------------------------------------- */
function succTrimitere() {
	$('nume').value='';
	$('prenume').value='';
	$('email').value='';
	$('detalii').value='';
	new Effect.MoveAndResizeTo('MesajWrite',3000,10,660,155,{duration: 0.5, afterFinish: function(effect){new Effect.MoveAndResizeTo('MesajSent',10,10,660,155,{duration: 0.5, afterFinish: function(effect){}});}});}
	
	
	
	
