/** Configurations off hightslide **/

hs.graphicsDir = 'highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.dimmingOpacity = 0.8;
hs.outlineType = 'rounded-white';
hs.captionEval = 'this.thumb.alt';
hs.marginBottom = 105 // make room for the thumbstrip and the controls
hs.numberPosition = 'caption';
hs.allowSizeReduction = false;


// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	/*repeat: false,
	useControls: true,
	overlayOptions: {
		className: 'text-controls',
		position: 'bottom center',
		relativeTo: 'viewport',
		offsetY: -60
	},
	thumbstrip: {
		position: 'bottom center',
		mode: 'horizontal',
		relativeTo: 'viewport'
	}*/
});

function sendContact (form)
{
	alert('em construção');
	/*var elements = form.elements;
	
	var out = "";
	
	for(var i =0 ; i < elements.length; i++)
	{
		var obj = elements[i];

		if(i!=0)
			out +="&";
		
		out += obj.name +"="+obj.value;		
	}
	
	var ajax = new AjaxNzk();
	ajax.method = "POST";	
	ajax.loadResult("send_contact.nzk.php",$id("resultForm"),out);	
	$id("resultForm").innerHTML = "Processando Mensagem";
	form.reset();*/
}

function openPopup ()
{
	var lk = document.createElement('a');
	lk.href = 'popup.jpg';
	lk.className = 'highslide';
	
	$(lk).attr('onclick','return hs.expand(this)');
	
	//alert('diap');
	$(document.body).append(lk);
	
	setTimeout(function () {
		$(lk).click();
	}, 3000);
}

$(document).ready(function () { /*openPopup();*/ });
