function send(n, v, f)
{
	if (f) {
		document.myform.elements[n].value = v;
	} else {
		document.myform.almighty.value = v;
		document.myform.almighty.name  = n;
	}
	document.myform.submit();
}

// page top
$(function() {
	$('.pgtop a[href*=#]').click(function() {
	
		var target = $(this.hash);
		target = target.length && target;
		var targetOffset = (target.length)? target.offset().top: 0;
		
		$('html,body')
			.animate(
				{scrollTop: targetOffset}, 
				{duration: 800, easing:"easeOutExpo"}
			);
			
		return false;
	});
});

// photo window
$(function() {
	$('.pinFL a, .pinFR a, .pinL a, .pinC a, .pinR a').click(function() {
	
		window.open(
			this.getAttribute('href','2'),
			'photo',
			'width=630, height=630, toolbar=0, menuber=0, scrollbars=0, status=0, resizable=0, top=0, left=0'
			);
			
		return false;
	});
});


