


function show_gallery(categoryName, categoryUrl, pageNo, language, nivel)
{

	
	var path=sitepath+"include/photos-category.php?category_name="+categoryName+"&category_url="+categoryUrl+"&page_no="+pageNo+"&lang="+language+"&nivel="+nivel;
	
	loadXMLDoc(path);
}


function show_gallery2(categoryName, categoryUrl, pageNo, language, nivel)
{
	var path=sitepath+"include/photos-category2.php?category_name="+categoryName+"&category_url="+categoryUrl+"&page_no="+pageNo+"&lang="+language+"&nivel="+nivel;
	loadXMLDoc(path);
}



function show_gallery_home(categoryName, categoryUrl, pageNo, language, nivel)
{

	
	var path=document.URL+"include/photos-category.php?category_name="+categoryName+"&category_url="+categoryUrl+"&page_no="+pageNo+"&lang="+language+"&nivel="+nivel;
	
	loadXMLDoc(path);
}





/********************* AJAX FUNCTIONS ***************************/



			var req;
			var sitepath;
			sitepath='http://www.cosminbararu.ro/';
			var elem_blur = new Array;
			
			function loadXMLDoc(url) {
		
   				// Internet Explorer
   				try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
   				catch(e) 
   				{
   					
      				try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
      				catch(oc) { req = null; }
   				}
   					
   				// Mozilla/Safari
   				if (!req && typeof XMLHttpRequest != "undefined") {
   					 req = new XMLHttpRequest();
   					
   				 }

   			
   				// Call the processChange() function when the page has loaded
   				if (req != null) {
   					//alert(req.readyState);
      				req.onreadystatechange = function()
      				{
      					
      					
		      				// The page has loaded and the HTTP status code is 200 OK
		   				if (req.readyState == 4 && req.status == 200) 
		   				{
		   					// alert(req.responseText);
		      				// Write the contents of this URL to the searchResult layer
		  
		      			    getObject("photo-gallery").innerHTML = req.responseText;
						}
      				}
      				;
      				req.open("GET", url, true);
      				req.send(null);
   				}
			}

			function processChange() {
			
   				
			}

			function getObject(name) {
   				var ns4 = (document.layers) ? true : false;
   				var w3c = (document.getElementById) ? true : false;
   				var ie4 = (document.all) ? true : false;

   				if (ns4) return eval('document.' + name);
   				if (w3c) return document.getElementById(name);
   				if (ie4) return eval('document.all.' + name);
   				return false;
			}




