$(document).ready(function() {
    /* for presentation only 
     * all game logic is handled on the photopage
    */
    $('.uiBackground').click(function() {
        $('#uiBackgroundSelection').find('.uiBackgroundSelected').removeClass('uiBackgroundSelected');
        $(this).addClass('uiBackgroundSelected');
        
        return false;
    });
    
    $('#uiArrowUp, #uiArrowLeft, #uiArrowRight, #uiArrowDown').hover(function() {
        $('#uiDirectionNotice').css({'background' : '#f68328'});
    }, function() {
        $('#uiDirectionNotice').css({'background' : '#545454'});
    });
    
    /* ppa resend */
    $('#showSendPhoto').click(function() {
        $('#sendYourPhoto').fadeIn();
        
        return false;
    });
    
    $('#sendYourPhotoClose').click(function() {
        $(this).parent().fadeOut('fast');
        
        return false;
    });
});

var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=700,width=850,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
	if (window.focus) {newwindow.focus()}
}
