//Multiple Show and Hide
function cll2(v2,eftype){
	if( $(v2).visible() ) {
		return;
	} else {
		if(eftype==null){ $(v2).setStyle({ display: 'block' }); }
		if(eftype=='1'){ new Effect.Appear( v2, { duration: 0.5 } ); }
		if(eftype=='2'){ new Effect.BlindDown( v2, { duration:0.5, delay: 0.5 } ); }
	}
}	
function cll(v1,eftype){
	var vB = vA.without(v1);
	new $A(vA).each(
		function(e){
			if( $(e).visible() ) {
				if(eftype==null){ $(e).hide(); }
				if(eftype=='1'){ new Effect.Fade( e, { duration:0.5 } ); }
				if(eftype=='2'){ new Effect.BlindUp( e , {duration:0.5 } ); }
			}
		}
	);
	cll2(v1,eftype);
}

//Single Show and Hide
showEl = function(id_of_element) {
	if( $(id_of_element).visible() ) {
		$(id_of_element).hide();
	} else {
		$(id_of_element).setStyle({ display: 'block' });
	}
}

//Ajax after Shot
function callpro() {
	$('camera').hide();
	var url = 'ajax_newshot.php';
	var pars = 'But=jaja';
	var target = 'cont';
	var myAjax = new Ajax.Updater({ success: 'cont' }, url, {method: 'post', parameters: pars });
}

//Scroll vertical
Scrl = function(id_of_element) {
	new Effect.ScrollTo(id_of_element);
}

//Highlight
SoHigh = function(id_of_element) {
	if( $(id_of_element).visible() ) {} else {
		$(id_of_element).setStyle({ display: 'block' });
	}
	new Effect.Highlight(id_of_element);
}