<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
var childWindow=null;
var meniu =[
['Despre noi','.',9],
['Servicii','.',9],
[
['Recrutare de personal / Casting','servicii_recrutare',4],
['Training-uri specializate pentru fiecare proiect','servicii_training',10],
['Promotii In Store','servicii_promotii_in_store',13],
['Promotii Ho-Re-Ca','servicii_promotii_horeca',9],
['Servicii Evenimente / Targuri','servicii_evenimente_targuri',24],
['Merchandising','servicii_merchandising',4],
['Door-to-Door / Distributie de pliante','servicii_door_to_door_distributie',8],
['Servicii indirecte','servicii_indirecte',9]
],
['Avantaje','.',9],
['Clienti','.',9],
['Contact','.',9],
['Noutati','noutati',6]
]

width=screen.width;
limit=(width-160)/72;

function photo_album(m,n,lang)
{
	title=lang=='ro'?'click pentru a mari poza':'click to open';
	if(parseInt(n))
	{
		nmax=meniu[m][n-1][2];
		path=meniu[m][n-1][1]+'/';
	}
	else
	{
		nmax=meniu[m][2];
		//title=meniu[m][0];
		path=meniu[m][1]+'/';
	}
	//alert(n);
	//alert(nmax);
	//alert(path);
	
	text = '';
	for(i=1;(i<=limit && i<=nmax);i++)
	 text += '<td><a href="Javascript:openw('+m+','+n+','+i+',\''+lang+'\')" title="'+title+'" id="'+m+'_'+n+'_'+i+'"><img name="foto'+i+'" src="foto/thumbs/'+path+i+'.jpg" alt="'+title+'" width="70" height="70" border="0"></a></td>';
	return text;
}
function getFocusToChild(childWindow)
{
	if(!childWindow) return;
	if(childWindow == '') return;
	if(childWindow.closed) return;
	childWindow.focus();
}
			
function closeChild(childWindow)
{
	if(!childWindow) return;
	if(childWindow == '') return;
	if(childWindow.closed) return;
	childWindow.close();
}

function getchild()
{
	return childWindow; 
}
var offset;
offset=0;
function openw(m,n,img,lang)
{
	var img_send=0;
	img_send=parseInt(img)+parseInt(offset);
	if(lang=='ro') name='galeria_foto';
	else 			name = 'photo_gallery';
	href=name + '.html?m='+m+'&amp;n='+n+'&amp;img='+img_send;
	//alert(href);
		childWindow = window.open(href,'City_Promotions_Galeria_Foto','width=500,height=553,resize=no,scrollbars=no,status=yes');
	//alert('galeria_foto.html?m='+m+'&n='+n+'&img='+img_send,'City Promotions -> Galeria Foto','width=500,height=550,resize=no,scrollbars=no,status=yes');
}

function push(m,n)
{
maxim = parseInt(n)?meniu[m][n-1][2]:meniu[m][2];
if(parseInt(limit)+parseInt(offset)<parseInt(maxim))
{
	offset++;
	for(i=1;i<=limit;i++)
			MM_swapImage('foto'+i,'','foto/thumbs/'+(parseInt(n)?meniu[m][n-1][1]+'/':meniu[m][1]+'/')+(i+offset)+'.jpg',1);
}
	//alert(start);
}//end function push

function pop(m,n)
{
if(offset > 0)
{	
	offset--;	
	for(i=1;i<=limit;i++)
		MM_swapImage('foto'+i,'','foto/thumbs/'+(parseInt(n)?meniu[m][n-1][1]+'/':meniu[m][1]+'/')+(i+offset)+'.jpg',1);
}
}

function getVar(name)
         {
         get_string = document.location.search;         
         return_value = '';
         
         do { //This loop is made to catch all instances of any get variable.
            name_index = get_string.indexOf(name + '=');
            
            if(name_index != -1)
              {
              get_string = get_string.substr(name_index + name.length + 1, get_string.length - name_index);
              
              end_of_value = get_string.indexOf('&');
              if(end_of_value != -1)                
                value = get_string.substr(0, end_of_value);                
              else                
                value = get_string;                
                
              if(return_value == '' || value == '')
                 return_value += value;
              else
                 return_value += ', ' + value;
              }
            } while(name_index != -1)
            
         //Restores all the blank spaces.
         space = return_value.indexOf('+');
         while(space != -1)
              { 
              return_value = return_value.substr(0, space) + ' ' + 
              return_value.substr(space + 1, return_value.length);
							 
              space = return_value.indexOf('+');
              }
          
         return(return_value);        
         }
		 
		 function swap(img)
		{
			//var table;
			//var tabledatastr='';
			/*if (document.all)
				table=document.all['tableup'];
			if (document.getElementById)
				table=document.getElementById('tableup');
			var menu= getVar('menu');
			MM_swapImage('galeria_foto','','foto/'+getVar('img')+'.jpg','up','','images/up'+menu+'.gif','gradient1','','images/gradient'+menu+'.gif','gradient2','','images/gradient'+menu+'.gif','future_is_now','','images/future_is_now'+menu+'.gif',5);
			
			if (table) 
				table.rows[0].cells[2].className='td'+menu;
			*/
			if(n>0 && n <= 8 && m>0 && m<=6) path=meniu[m][n-1][1] +'/'+img;
			else if(n==0) path=meniu[m][0]+'/'+img;
			else this.close();
			//alert(path);
			//alert(meniu[m][n-1][1]);
			MM_swapImage('galeria_foto','','foto/'+ path +'.jpg',1);
		}
		//function getFotoLink(i)
		//{
			//document.location.href= 'galeria_foto.html?menu='+getVar('m')+'&amp;n='+getVar('n')+'&amp;img='+i;
		//}
		function getNext()
		{
			if(img < maxImg) swap(++img);
		}
		
		function getPrev()
		{
			if(img > 1) swap(--img);
		}
//-->