window.addEvent('domready', function() {

	// jQuery.noConflict();
	
	if (Browser.Platform.win) {
	
		$(document.body).setStyle('font-size', '12px');
		
		if ($('rite')) {
			$('rite').setStyle('font-size', '10px');
		}
		
		if ($('side')) {
			$('side').setStyle('font-size', '10px');
		}
		
		if ($(document.body).className.indexOf('home') != -1) {
			// nothing to see here...
		}
		else {
			if (Browser.Engine.trident4) {
				$('foot').setStyle('padding-bottom', '231px');
			}
		}
	}
	
	if ($(document.body).className.indexOf('homepage') != -1) {

		if (Browser.Engine.gecko) { // if is firefox
		
			if (JSON.parse) { // if version 3.5 or newer
				// nothing to see here...
			}
			else { // if older than version 3.5
				
				// new Asset.javascript('js/tilted.js');
				
				$('left').getFirst().setStyles({'width': 585, 'padding': '140px 50px 15px 45px'});
				$('photos').setStyle('margin', '-15px 0px 0px 0px');
				$('foot').setStyle('padding-top', 8);
				
				(function () {
					addTilt();
				}).delay(250);
				
				(function () {
					$('photos').getFirst().getNext().setStyle('margin-top', -70);
				}).delay(500);
			}
		
		}
	
	}
	
	var pageurl = document.location.toString().toLowerCase();
    
    if (pageurl.indexOf('/photos/') != -1) {
    	var theh = $('content').getElement('h1');
    	
    	theh.addEvent('click', function() {
    		location.href = '/photos/';
    	});
    	theh.setStyle('cursor', 'pointer');
    }
    
    if (pageurl.indexOf('/news/') != -1) {
    	var theh = $('content').getElement('h1');
    	
    	theh.addEvent('click', function() {
    		location.href = '/news/';
    	});
    	theh.setStyle('cursor', 'pointer');
    }
	
	$('note').fade(0.5);
	
	$('hours').addEvent('mouseenter', function() {
		$('note').fade(1.0);
	})
	.addEvent('mouseleave', function() {
		$('note').fade(0.5);
	});
	
	if ($('content')) {
		var mainH = $('main').getSize().y;
		
		if (mainH < 893) {
			$('content').setStyle('height', 782);
		}
	}

});

var shutterSettings = {
	msgLoading: "L O A D I N G",
	msgClose: "Click to Close",
	imageCount: "1"
};




