function poptastic(limba,url,prop)
{
	var newwindow,title;
	var label_resolution;
	if(limba=="ro")
	{
		title="Vedere la rezolutie mare";
	}
	if(limba=="en")
	{
		title="High Resolution View";
	}
	if(limba=="de")
	{
		title="Hohe Auflösung Ansicht";
	}
	
	prop+=' screenX=100,screenY=100,left=420,top=50';
	newwindow=window.open(url,'name',prop);
	newwindow.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>' + title + '</title></head><body style="margin:0 auto;padding:0;">');
newwindow.document.writeln('<div id="pic" style="width:800px;height:536px;margin:10px auto;"><img src=' + url + ' title="' + title + '" border="0" alt="' + title + '" ></div>');
newwindow.document.writeln('</body></html>');

if (window.focus) {newwindow.focus()}
}
function afiseaza(nume_poza,limba)
{
	var label_resolution;
	if(limba=="ro")
	{
		label_resolution="Vezi imaginea marita (popup)";
	}
	if(limba=="en")
	{
		label_resolution="View high resolution (popup)";
	}
	if(limba=="de")
	{
		label_resolution="Hohe auflösung der ansicht (popup)";
	}
	
	
	document.getElementById('afisare').innerHTML='<img src="'+nume_poza+'" alt="" border="6" width="330" height="221" class="image"/>';
	document.getElementById('afisarehigh').innerHTML='<a href=\'javascript:poptastic("'+limba+'","'+nume_poza+'","height=556,width=820,scrollbars=no")\' class="view_photo">'+label_resolution+'</a>';
	
}
function load_cat(aid,limba)
{
	var label_resolution,director;
	if(limba=="ro")
	{
		label_resolution="Vezi imaginea marita (popup)";
	}
	if(limba=="en")
	{
		label_resolution="View high resolution (popup)";
	}
	if(limba=="de")
	{
		label_resolution="Hohe auflösung der ansicht (popup)";
	}	
	
	var label_cat1,label_cat2,label_cat3,label_cat4
	if(limba=="ro")
	{
		label_cat1="Echipa";
		label_cat2="Ferma";
		label_cat3="Animale";
		label_cat4="Vanatoare";
	}
	if(limba=="en")
	{
		label_cat1="The Team";
		label_cat2="The Farm";
		label_cat3="Animals";
		label_cat4="Hunt";
	}
	if(limba=="de")
	{
		label_cat1="Die Mannschaft";
		label_cat2="Die Bauernhof";
		label_cat3="Tiere";
		label_cat4="Jagd";
	}
	
	if(aid==1)
	{
		director="ekipa";
		document.getElementById('unu').innerHTML=label_cat1+'<br /><a href="javascript:load_cat(2,\''+limba+'\')" class="view_photo">'+label_cat2+'<br /><a href="javascript:load_cat(3,\''+limba+'\')" class="view_photo">'+label_cat3+'</a><br /><a href="javascript:load_cat(4,\''+limba+'\')" class="view_photo">'+label_cat4+'</a><br />';
	}
	if(aid==2)
	{
		director="ferma";
		document.getElementById('unu').innerHTML='<a href="javascript:load_cat(1,\''+limba+'\')" class="view_photo">'+label_cat1+'</a><br />'+label_cat2+'<br /><a href="javascript:load_cat(3,\''+limba+'\')" class="view_photo">'+label_cat3+'</a><br /><a href="javascript:load_cat(4,\''+limba+'\')" class="view_photo">'+label_cat4+'</a><br />';
	}
	if(aid==3)
	{
		director="animale";
		document.getElementById('unu').innerHTML='<a href="javascript:load_cat(1,\''+limba+'\')" class="view_photo">'+label_cat1+'</a><br /><a href="javascript:load_cat(2,\''+limba+'\')" class="view_photo">'+label_cat2+'</a><br />'+label_cat3+'<br /><a href="javascript:load_cat(4,\''+limba+'\')" class="view_photo">'+label_cat4+'</a><br />';
	}
	if(aid==4)
	{
		director="vanatoare";
		document.getElementById('unu').innerHTML='<a href="javascript:load_cat(1,\''+limba+'\')" class="view_photo">'+label_cat1+'</a><br /><a href="javascript:load_cat(2,\''+limba+'\')" class="view_photo">'+label_cat2+'<br /><a href="javascript:load_cat(3,\''+limba+'\')" class="view_photo">'+label_cat3+'</a><br />'+label_cat4+'<br />';
	}
	
		
	document.getElementById('afisare').innerHTML='<img src="/images/photos/'+director+'/africa_1.jpg" alt="" border="6" width="330" height="221" class="image"/>';
		document.getElementById('afisarehigh').innerHTML='<a href=\'javascript:poptastic("'+limba+'","/images/photos/'+director+'/africa_1.jpg","height=556,width=820,scrollbars=no")\' class="view_photo">'+label_resolution+'</a>';	
		
	document.getElementById('categorie').innerHTML='<table width="360" border="0"><tr><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_1.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_1_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery"/></a></td><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_2.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_2_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_3.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_3_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_4.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_4_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td></tr></table><table width="360" border="0"><tr><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_5.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_5_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_6.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_6_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_7.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_7_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td><td width="85"><a href="javascript:afiseaza(\'/images/photos/'+director+'/africa_8.jpg\',\''+limba+'\')"><img src="/images/photos/'+director+'/africa_8_m.jpg" alt="" width="80" height="58" border="2" class="photo_gallery" /></a></td></tr></table>';
	
	}
		