/* home.js, polarrose.com, johanb@polarrose.com */

/* behaviors */
Event.addBehavior({
    '.stack:mouseover': function(){
        this.addClassName('hover');
    },
    '.stack:mouseout': function(){
        this.removeClassName('hover');
    },/* OLD script here for frontpage
    '#rose:mouseover': function(){
        this.src = "/images/general/rose_icon-large-red.png";
        $("face_box").show();
    },
    '#rose:mouseout': function(){
        if($("plugin_dummy").visible() == false){
            this.src = "/images/general/rose_icon-small-red.png";
        }
        $("face_box").hide();
    },
    '#rose:click': function(){
        $("plugin_dummy").toggle();
        if($("plugin_dummy").visible()){
            this.src = "/images/general/rose_icon-large-red.png";
        }
    },
    '#plugin_close:click': function(){
        $("plugin_dummy").toggle();
        if($("plugin_dummy").visible() == false){
            $("rose").src = "/images/general/rose_icon-small-red.png";
        }        
        return false;
    },
    '#plugin_input:click': function(){
        $("plugin_dummy").toggle();
        window.location = "/account/create/"
    },*/
    /*New photobullets*/
    '.photobullet:mouseover': function(){
    	
    	$("photo").src='/images/content/home/thumbnail-'+this.rel+'.jpg';
    }
})

/* dom ready */
document.observe("dom:loaded", function(){
   /* if(window.ie_6) {
        if($("rose")){
            $("rose").hide();
        }
        if($("note_click")){
            $("note_click").hide();
        }
    }*/
});