// stoo slideShow 1.1
// (c)2006 Stoo - http://www.glitch.co.nz
//
// Credit where credit is due: Inspiration from JonDesign's SmoothGallery (http://www.jondesign.net/)
// and of course Valerio's mootools (http://mootools.net/)
// --------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------


// ---------------------------------------------------
// variables
var screenW = (screen.width>1024)?'1280':'1024';

// ---------------------------------------------------
// bac image
function getBac() {

	var path = '../imgs/home';
	new Ajax('php/bacImage.php',{ postBody:'path='+path, onComplete:showBac }).request();
}
function showBac(request) {
	//alert(request);
	var img = ( screenW>1024 )? request : 'resizer.php?imgfile=' + request + '&max_width=' + screenW;
	$('bac').setStyles("background-image: url('"+img+"')");
}

// ---------------------------------------------------
// init
function run() {
	//Window.disableImageCache(); // Trying to disable the imageCache to fix IE6 issues
	
	getBac();
	domRollover();
	emailCloak()
	//new Png();
}

Window.onDomReady(run);

// --------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------

