/* ======= MOOTOLS ======= */
window.addEvent('domready',function(e){
    //initImageZoom();
    $$('div.sections-overlay').each(function(div){
        div.set('opacity',0.0);
        div.set('morph', {
            duration:'600'
        });
    })
    $$('div.thumbnail-div').each(function(div){
        div.set('tween', {
            duration: '1000'
        });
        div.addEvents({
            'mouseover': function(){
                $(this).tween('marginTop', '0px');
                $(this).getElements('div.sections-overlay').each(function(d){
                    d.morph({
                        opacity: 0.70, 
                        backgroundPosition: "0px 0px"
                    });
                });
            },
            'mouseout': function(){
                $(this).tween('marginTop', '0px');
                $(this).getElements('div.sections-overlay').each(function(d){
                    d.morph({
                        opacity: 0.0, 
                        backgroundPosition: "0px 0px"
                    });
                });
            }
        });

    });
});

/* ======= JQUERY ======= */
jQuery(document).ready(function(){

    jQuery("a#archiveButton").click(function(){
        jQuery("#archiveContainer").show("slow,");
        jQuery("#archiveButton").hide();
    });
    jQuery("a#moreButton").click(function(){
        jQuery("#moreContainer").show("slow,");
        jQuery("#moreButton").hide();
    });
	

    jQuery('.partners').hover(
        function() {
            jQuery(this).find('span').stop().fadeTo('normal',1);
        }, function() {
            jQuery(this).find('span').stop().fadeTo('normal',0);
        }
        );

});





Cufon.replace('li', {
    hover: true
});
Cufon.replace('.trajan');
Cufon.replace('h1');


