DynAPI.onLoad = function() {
myChild1 = new DynLayer();
myChild2 = new DynLayer();
myChild3 = new DynLayer();
myChild5 = new DynLayer();

	block1 = new DynLayer();
	block1.setSize(100,140);
	block1.moveTo(299,134);		//aici modifici pozitionarea pe orizontala pentru meniul Cariera Ta________________--------------------------------------
	block1.setVisible(false);
	//block1.setBgColor("red");	

	L1 = new EventListener(DynAPI.document);
	L1.onmouseout=function(e) {
		timerID=setTimeout('Afis(2,block1,myChild1)',500);
		};
	L1.onmouseover=function(e) {
		clearTimeout(timerID);
	};
	block1.addEventListener(L1);

	myChild1 = new DynLayer();
	myChild1.setSize(100,140);
	myChild1.moveTo(0,-140);
	//myChild1.setBgColor("blue");
	myChild1.setHTML('<table width="100" border="0" cellspacing="0" cellpadding="0"> <tr>    <td colspan="3" bgcolor="#990000"><img src="img/transparent.gif" width="100" height="10"></td>  </tr>  <tr align="left" valign="top" bgcolor="#990000">     <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>    <td width="80"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif" style="text-decoration: none"><a class="def" href="index.php?page=filosofia">Philosophy</a> <br><a class="def" href="index.php?page=echipa">Team</a><br><a class="def" href="index.php?page=iasibranch">Iasi <br> &nbsp;&nbsp&nbsp; Branch</a><br><a class="def" href="index.php?page=timisoarabranch">Timisoara <br>&nbsp;&nbsp;&nbsp;Branch</a><br><a class="def" href="index.php?page=parteneri">Partners</a> <br>      <a class="def" href="index.php?page=contact">Contact</a><br><a class="def" href="index.php?page=expand">Event</a><br><a class="def" href="index.php?page=press">Press</a> </font></td>    <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>  </tr>  <tr>     <td colspan="3"><img src="img/rosu_jos.gif" width="100" height="10"></td>  </tr> </table>')
	myChild1.setVisible(true);	
	block1.addChild(myChild1);	
	path = new PathAnimation(myChild1);
	linegenerated = PathAnimation.line(0,-140, 0,0, 15); // x1,y1,x2,y2,inc
	path.addAnimation( linegenerated );

	
	// default interval
	//path.sleep(50);
	
	DynAPI.document.addChild(block1);

	block2 = new DynLayer();
	block2.setSize(130,140);
	block2.moveTo(400,135);		//aici modifici pozitionarea pe orizontala pentru meniul Comapnii Ta________________--------------------------------------
	block2.setVisible(false);
	//block2.setBgColor("red");	

	L2 = new EventListener(DynAPI.document);
	L2.onmouseout=function(e) {
		timerID=setTimeout('Afis(2,block2,myChild2)',500);
		};
	L2.onmouseover=function(e) {
		clearTimeout(timerID);
	};
	block2.addEventListener(L2);

	myChild2 = new DynLayer();

	myChild2.setSize(130,140);
	myChild2.moveTo(0,-140);
	//myChild2.setBgColor("blue");
	myChild2.setHTML('<table width="130" border="0" cellspacing="0" cellpadding="0"> <tr>    <td colspan="3" bgcolor="#990000"><img src="img/transparent.gif" width="130" height="10"></td>  </tr>  <tr align="left" valign="top" bgcolor="#990000">     <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>    <td width="110"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a class="def" href="index.php?page=servicii1">Promotion team</a> <br><a class="def" href="index.php?page=servicii2">Training</a> <br><a class="def" href="index.php?page=servicii3">Recruitment</a><a class="def" href="index.php?page=servicii4"><br>Evaluation</a><!--<BR>Studii de piata!--><br><a class="def" href="index.php?page=servicii5">Teambuilding</a></font></td>    <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>  </tr>  <tr>     <td colspan="3"><img src="img/rosu_jos.gif" width="130" height="10"></td>  </tr> </table>');
	myChild2.setVisible(true);	
	block2.addChild(myChild2);

	
	path2 = new PathAnimation(myChild2);
	linegenerated2 = PathAnimation.line(0,-140, 0,0, 15); // x1,y1,x2,y2,inc
	path2.addAnimation( linegenerated2 );

	

	
	DynAPI.document.addChild(block2);

	block3 = new DynLayer();
	block3.setSize(110,95);
	block3.moveTo(490,135);		//aici modifici pozitionarea pe orizontala pentru meniul Cariera Ta________________--------------------------------------
	block3.setVisible(false);
	//block3.setBgColor("red");	
	L3 = new EventListener(DynAPI.document);
	L3.onmouseout=function(e) {
		timerID=setTimeout('Afis(2,block3,myChild3)',500);
		};
	L3.onmouseover=function(e) {
		clearTimeout(timerID);
	};
	block3.addEventListener(L3);
	myChild3 = new DynLayer();
	myChild3.setSize(110,95);
	myChild3.moveTo(0,-95);
	//myChild3.setBgColor("blue");
	myChild3.setHTML('<table width="110" border="0" cellspacing="0" cellpadding="0"> <tr>    <td colspan="3" bgcolor="#990000"><img src="img/transparent.gif" width="110" height="10"></td>  </tr>  <tr align="left" valign="top" bgcolor="#990000">     <td width="10"><img src="img/transparent.gif" width="10" height="1"></td> <td width="80"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a class="def" href="index.php?page=depunere_cv" >Post your CV</a><br><a class="def" href="index.php?page=seminarii" >Semminars</a><br><a class="def" href="index.php?page=joburidisp" >Available Jobs</a></font></td>    <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>  </tr>  <tr>     <td colspan="3"><img src="img/rosu_jos.gif" width="110" height="10"></td>  </tr> </table>')
	myChild3.setVisible(true);
	block3.addChild(myChild3);	
	path3 = new PathAnimation(myChild3);
	linegenerated3 = PathAnimation.line(0,-95, 0,0, 15); // x1,y1,x2,y2,inc
	path3.addAnimation( linegenerated3 );
	DynAPI.document.addChild(block3);


	
	block5 = new DynLayer();
	block5.setSize(150,175);
	block5.moveTo(600,135);		//aici modifici pozitionarea pe orizontala pentru meniul Cariera Ta________________--------------------------------------

	block5.setVisible(false);
	L5 = new EventListener(DynAPI.document);
	L5.onmouseout=function(e) {
		timerID=setTimeout('Afis(2,block5,myChild5)',500);
		};

	L5.onmouseover=function(e) {
		clearTimeout(timerID);
	};

	block5.addEventListener(L5);

	myChild5 = new DynLayer();

	myChild5.setSize(150,175);

	myChild5.moveTo(0,-110);

	myChild5.setHTML('<table width="150" border="0" cellspacing="0" cellpadding="0"> <tr>    <td colspan="3" bgcolor="#990000"><img src="img/transparent.gif" width="150" height="10"></td>  </tr>  <tr align="left" valign="top" bgcolor="#990000">     <td width="10"><img src="img/transparent.gif" width="10" height="1"></td><td width="130"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif" style="text-decoration: none"><a class="def" href="index.php?page=pbwc2008">PharmaBusiness Women Catalogue 2008</a><br><a class="def" href="index.php?page=pharma">PharmaBusiness Congress 2007</a><br><a class="def" href="index.php?page=salesforce">Sales Force Effectiveness Europe 2007</a><br><a class="def" href="index.php?page=noutatiserv">New services</a><br><a class="def" href="index.php?page=oferte1">Offers for companies</a><br>      <a class="def" href="index.php?page=oferte2">Offers for individuals </a> </font></td>    <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>  </tr>  <tr>     <td colspan="3"><img src="img/rosu_jos.gif" width="150" height="10"></td>  </tr> </table>')
	myChild5.setVisible(true);	
	block5.addChild(myChild5);	

	path5 = new PathAnimation(myChild5);
	linegenerated5 = PathAnimation.line(0,-110, 0,0, 15); // x1,y1,x2,y2,inc

	path5.addAnimation( linegenerated5 );
	DynAPI.document.addChild(block5);

	block6 = new DynLayer();
	block6.setSize(90,110);
	block6.moveTo(671,135);		//aici modifici pozitionarea pe orizontala pentru meniul Cariera Ta________________--------------------------------------

	block6.setVisible(false);
	L6 = new EventListener(DynAPI.document);
	L6.onmouseout=function(e){
		timerID=setTimeout('Afis(2,block6,myChild6)',500);
		};

	L6.onmouseover=function(e) {
		clearTimeout(timerID);
	};

	block6.addEventListener(L6);

	myChild6 = new DynLayer();

	myChild6.setSize(90,110);

	myChild6.moveTo(0,-110);

	myChild6.setHTML('<table width="90" border="0" cellspacing="0" cellpadding="0"> <tr>    <td colspan="3" bgcolor="#990000"><img src="img/transparent.gif" width="90" height="10"></td>  </tr>  <tr align="left" valign="top" bgcolor="#990000">     <td width="10"><img src="img/transparent.gif" width="10" height="1"></td><td width="130"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif" style="text-decoration: none"><a class="def" href="index.php?page=contact">Bucuresti</a><br><a class="def" href="index.php?page=contact">Iasi</a><br><a class="def" href="index.php?page=contact">Timisoara</a></font></td>    <td width="10"><img src="img/transparent.gif" width="10" height="1"></td>  </tr>  <tr>     <td colspan="3"><img src="img/rosu_jos.gif" width="90" height="10"></td>  </tr> </table>')
	myChild6.setVisible(true);	
	block6.addChild(myChild6);	

	path6 = new PathAnimation(myChild6);
	linegenerated6 = PathAnimation.line(0,-110, 0,0, 15); // x1,y1,x2,y2,inc

	path6.addAnimation( linegenerated6 );
	DynAPI.document.addChild(block6);


}

function Afis(par,par2,par3){
if(afis){
	if(par==2) {
		clearTimeout(timerID);
		par2.setVisible(false);
		par3.setVisible(false);
		par3.moveTo(0,-85);
	}
	if(par==1) { 
		
		par2.setVisible(true);
		if(par3!=null) par3.setVisible(true);
		}
}
}

function Afis_layer(par,par2,par3){
if(afis){
		if(par.getVisible()) clearTimeout(timerID);
		else{
			par.setVisible(true);
			par3.setVisible(true);
			par2.playAnimation(linegenerated);
		}
}
}
