$(function() {
    $(".arthemia-carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        vertical: true,
        hoverPause:true, 
        visible: 6,
        auto:1000,
        speed:1000             
    });
	
});

	$(document).ready(function(){
		$("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 20, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: false /* true/false */
		});		

	
	$('textarea.expanding').autogrow(); /* your new */

		
});
	
	$(function() {		
		$( "#example_2" ).accessNews({
	        headline : "Φωτορεπορτάζ",
	        speed : "slow",
			slideBy : 3
	    });		
	});
	
function register(){
		$.ajax({
		type: "POST",
		url: "newsletter_process.php",
		data: 	"email=" + document.getElementById("email").value,
		success: function(html){
			$("#response").html(html);
		}
		});				
} 	

function visitors(){
		$.ajax({
		type: "POST",
		url: "comment_visitor.php",
		data: 	"comment=" + document.getElementById("comment").value,
		success: function(html){
			$("#response").html(html);
		}
		});				
} 	


function image(w,h,webaddress) 
{
var viewimageWin = window.open(webaddress,'New_Window','toolbar=no location=no,directories=no,status=no,menubar=no,scrollbars=no, resizable=no,copyhistory=no,width='+w+',height='+h); viewimageWin.moveTo(screen.availWidth/2-(w/2),screen.availHeight/2-(h/2));
}


function goToDetails(thisEvent) {
document.jump_to_details.event.value=thisEvent
document.jump_to_details.submit()
}
