function randomPhoto($totalpics){
	return (Math.floor(Math.random()*$totalpics))
	}




function hidestatus(){
	var statusmsg=""
	window.status=statusmsg
	return true
}


var myGallery;
	function startGallery() {
		
	myGallery = new gallery($('myGallery'), {
	timed: false,
	//showCarousel: false,
	defaultTransition: "fade"
	// showArrows: false,
	 // embedLinks: false
	 });
}




function ajaxStart() {
	alert ("OK");
	$('random').addEvent('click', function(e) {
	e = new Event(e).stop();
 
	var url = "http://localhost/sashosite3/index.html";
 
	/**
	 * The simple way for an Ajax request, use onRequest/onComplete/onFailure
	 * to do add your own Ajax depended code.
	 */
	new Ajax(url, {
		method: 'get',
		update: $('log')
	}).request();
	});
}

function bigAlert() {
	
	var CCC = $$('.carouselContainer') //an array of all anchor tags with the class "myClass"
}

		
		
