// works with mootools
jQuery.noConflict();

window.addEvent('domready', function() {
	var numImgs = 3;
	var headImg = $('headImg');
	if(!headImg){
		var currentTime = new Date()
		var headImg = currentTime.getMilliseconds();
		headImg = (headImg % numImgs)+1;
		setImg(headImg);
	}else{
		setImg(headImg);
	}

});

function setImg(imgName){
	var src = "/templates/subaqva/images/header/header" + imgName + ".jpg"; 
	$('art-header-jpeg').setStyle('backgroundImage', 'url(' + src +')');
};


jQuery(document).ready(function() {
/*
	jQuery("#art-sheet").dropShadow();
	jQuery("div.pathway").dropShadow();
	jQuery(".art-post").dropShadow();
	jQuery(".art-post-bottom").dropShadow();
	jQuery(".art-block").dropShadow();
	jQuery(".art-nav").dropShadow();
*/
jQuery("#art-sheet, div.pathway, .art-post, .art-post-bottom, .art-block, .art-nav ").shadowOn({
    imagepath: "images", 
    imageset: "8" 
});
});
