function hideAllModules(){
	if(navigator.appName == "Netscape"){
		new Effect.Fade('all_modules',{duration:0.2});
	}else{
		new Effect.BlindUp('all_modules');
	}
}
function showGalleryModule(){
	if(navigator.appName == "Netscape"){
		new Effect.Appear('gallery_module');
	}else{
		new Effect.BlindDown('gallery_module');
	}
}
function closeVideoGallery(){
	if(navigator.appName == "Netscape"){
		new Effect.Fade('gallery_module',{duration:0.2});
	}else{
		new Effect.BlindUp('gallery_module');
	}
}
function showAllModules(){
	if(navigator.appName == "Netscape"){
		new Effect.Appear('all_modules');
	}else{
		new Effect.BlindDown('all_modules');
	}
}
function showTellForm(){
	var theForm = document.getElementById('tellAFirend');
	if (theForm.style.display =='none') {
		theForm.style.display='block';
	}else{
		theForm.style.display='none';
	}
}
function validateComment(content_id){
	alert(content_id);
	var name = document.getElementById('name').value;	
	var comment = document.getElementById('comment').value;
	
	if ((name == "") && (comment == ""))
	{
		alert("Inserite i vostri dati!");
	}else{
		new Ajax.Updater('comment_view', '/frontend_dev.php/comment/update/content_id/'+content_id+'/name/'+name+'/comment/'+comment, {asynchronous:true, evalScripts:false}); return false;
	}
}


function targetBlank (url) {
  blankWin = window.open(links[thisimg],'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=yes,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
}


var imgs = new Array(); var links = new Array();
var imgcnt = 0; var thisimg = 0;
links[imgcnt] = 'http:\/\/www.formretail.it\/';
imgs[imgcnt++] = 'theme/arkimedia/images\/formretail.jpg';
links[imgcnt] = 'http:\/\/tvmps.eu-softing.com\/';
imgs[imgcnt++] = 'theme/arkimedia/images\/kitv.jpg';
links[imgcnt] = 'http:\/\/www.denaro.it\/';
imgs[imgcnt++] = 'theme/arkimedia/images\/denaro.jpg';

function rotate() {
if (document.images) {
thisimg++;
if (thisimg >= imgcnt) thisimg = 0;
document.rollimg.src = imgs[thisimg];
setTimeout("rotate();",10000);
}
}
setTimeout("rotate();",10000); 