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 getCategoriesS(a){
	var req = new Request.HTML({url:'ajax/categories_small.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('submenu').set('text', '');
		//Inject the new DOM elements into the results div.
		$('submenu').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('submenu').set('text', 'The request failed.');
	}
	});
	req.send(a);
}
//get de
function getImages(a){
	var req = new Request.HTML({url:'ajax/images.php', 
	onSuccess: function(html) {
		$('foto').set('text', '');
		$('foto').adopt(html);
	},
	onFailure: function() {
		$('foto').set('text', 'The request failed.');
	}
	});
	req.send(a);
}

function acomoda(a, b){
	for (ii=1;ii<=b;ii++){
		document.getElementById('f'+ii).innerHTML=ii;
	}
	aux=document.getElementById(a).innerHTML;
	document.getElementById(a).innerHTML="<b>" + aux + "</b>"
}

function getBio(a){
	var req = new Request.HTML({url:'ajax/bio.php', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('content').set('text', '');
		//Inject the new DOM elements into the results div.
		$('content').adopt(html);
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('content').set('text', 'The request failed.');
	}
	});
	req.send(a);
	if (a=='b=2'){
		$('fotobiof').set('src', 'imgs/bio/tamara_tag.jpg');
	}else{
		$('fotobiof').set('src', 'imgs/bio/fotobio.jpg');
	}
}

function getResults(a){
	var req = new Request.HTML({url:'ajax/products.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('content').set('text', '');
		//Inject the new DOM elements into the results div.
		$('content').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('content').set('text', 'The request failed.');
	}
	});
	req.send(a);
}
function getProjects(a){
	var req = new Request.HTML({url:'ajax/projects.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('results').set('text', '');
		//Inject the new DOM elements into the results div.
		$('results').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('results').set('text', 'The request failed.');
	}
	});
	req.send(a);
}
function getCategories(a){
	var req = new Request.HTML({url:'ajax/categories.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('results').set('text', '');
		//Inject the new DOM elements into the results div.
		$('results').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('results').set('text', 'The request failed.');
	}
	});
	req.send(a);
}
function getStores(a){
	var req = new Request.HTML({url:'ajax/stores.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('content').set('text', '');
		//Inject the new DOM elements into the results div.
		$('content').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('content').set('text', 'The request failed.');
	}
	});
	req.send(a);
}

function loadMap(a){
	var req = new Request.HTML({url:'ajax/storemap.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('content').set('text', '');
		//Inject the new DOM elements into the results div.
		$('content').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('content').set('text', 'The request failed.');
	}
	});
	req.send(a);
}
function getPress(a){
	var req = new Request.HTML({url:'ajax/press.php', method:'get', 
	onSuccess: function(html) {
		//Clear the text currently inside the results div.
		$('content').set('text', '');
		//Inject the new DOM elements into the results div.
		$('content').adopt(html);
		//document.location.href+="#" + a
		$$("h1").each( function(el) { FLIR.replace(el); } );
		$$("li").each( function(el) { FLIR.replace(el); } );
	},
	//Our request will most likely succeed, but just in case, we'll add an
	//onFailure method which will let the user know what happened.
	onFailure: function() {
		$('content').set('text', 'The request failed.');
	}
	});
	req.send(a);
}

function changeTitle(texto){
//	$('section_title_fli').set('innerHTML', texto);
	//alert(document.getElementById('section_title_fli').innerHTML);
	document.getElementById('section_title_fli').innerHTML='<img style="border: medium none ;" src="/system/apps/facelift/generate.php?text=' + texto + '&amp;h=45&amp;w=640&amp;fstyle=%7B%22mode%22%3A%22%22%2C%22output%22%3A%22auto%22%2C%22cSize%22%3A%2237%22%2C%22cColor%22%3A%22rgb%28255%2C%20255%2C%20255%29%22%2C%22cFont%22%3A%22helve%22%2C%22realFontHeight%22%3A%22false%22%2C%22dpi%22%3A%2296%22%2C%22cBackground%22%3A%22transparent%22%2C%22cSpacing%22%3A%22%22%2C%22cLine%22%3A%221.2162%22%2C%22cAlign%22%3A%22right%22%2C%22cTransform%22%3A%22none%22%7D" class="flir-image" alt="' + texto + '">';
	//$$("h1").each( function(el) { FLIR.replace(el); } );
	//$$("li").each( function(el) { FLIR.replace(el); } );
}