$(document).ready(function(){
	 $("#tweets").tweet({
        username: "fusionmonarch",
        join_text: "auto",
        avatar_size: 32,
        count: 4,
        auto_join_text_default: "we said,",
        auto_join_text_ed: "we",
        auto_join_text_ing: "we were",
        auto_join_text_reply: "we replied to",
        auto_join_text_url: "we were checking out",
        loading_text: "loading tweets..."
    });
    
     $("#tweets2").tweet({
        username: "rackfm",
        join_text: "auto",
        avatar_size: 32,
        count: 4,
        auto_join_text_default: "we said,",
        auto_join_text_ed: "we",
        auto_join_text_ing: "we were",
        auto_join_text_reply: "we replied to",
        auto_join_text_url: "we were checking out",
        loading_text: "loading tweets..."
    });
    
	$('input[type="text"]').focus(function() {
        if (this.value == this.defaultValue) this.value = '';
    });
    $('input[type="text"]').blur(function() {
        if (this.value == '') this.value = (this.defaultValue ? this.defaultValue : ''); 
    });
    
 	$('#password-clear').show();
	$('#password').hide();
 
	$('#password-clear').focus(function() {
	    $('#password-clear').hide();
	    $('#password').show();
	    $('#password').focus();
	});
	$('#password').blur(function() {
	    if($('#password').val() == '') {
	        $('#password-clear').show();
	        $('#password').hide();
	    }
	});
   	
    preloadImages = [
    	'/images/facebook-hover.png',
    	'/images/twitter-hover.png',
    	'/images/myspace-hover.png',
    	'/images/youtube-hover.png',
    	'/images/rss-hover.png'
    ];
    
    for (var i=0; i<preloadImages.length; i++) {
    	$('<img>').attr('src', preloadImages[i]);
    }
    
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
