function ajaxPost()
	{
	document.getElementById('postDone').innerHTML = '';
	sendd = '?your_name=' + escape(document.forms['tellAfriend'].your_name.value) + '&' +
		'your_email=' + escape(document.forms['tellAfriend'].your_email.value) + '&' +
		'friend_email1=' + escape(document.forms['tellAfriend'].friend_email1.value) + '&' +
		'seq=' + escape(document.forms['tellAfriend'].seq.value) + '&' +
		'message=' + escape(document.forms['tellAfriend'].message.value);
	var xmlHttp;
	try { xmlHttp=new XMLHttpRequest(); }
	catch (e)
		{
		try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e)
			{
			try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e) { document.getElementById('postDone').innerHTML = 'You have an old browser. Try update... it`s free!'; return false; }
			}
		}
	xmlHttp.open('get','../_post/'+sendd,true);
	xmlHttp.onreadystatechange=function()
		{ 
		if(xmlHttp.readyState==4) { document.getElementById('postDone').innerHTML = xmlHttp.responseText; } 
		}
	xmlHttp.send(null);
	}

$(function() 
	{
	$.fn.fancyzoom.defaultsOptions.imgDir='../_layout/'; //very important must finish with a / 
	//$('a.fancyzoom').fancyzoom({Speed:2000,showoverlay:true,overlay:5/10});
	$('a.fancyzoom').fancyzoom({Speed:2000});
	});

stepcarousel.setup({
	galleryid: 'mygallery', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:false, moveby:1, pause:3000},
	panelbehavior: {speed:1500, wraparound:false, persist:true},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})

function active(m)
	{
	document.body.style.backgroundImage='url(../_layout/loader.gif)';
	for (i=0; i<8; i++)
		{
		document.getElementById('c'+i).style.display = 'none';
		}
	document.body.style.backgroundImage='url(../_backgrounds/'+m+'.jpg)';
	document.getElementById('c'+m).style.display = 'block';
	}