google.load('jquery', '1'); google.setOnLoadCallback(function() { $(document).ready(function() { // phrases var proPhrases = [ '', //Sunday 'The best thing about the future is that it only comes one day at a time.', //Monday 'Life can only be understood backwards; but it must be lived forwards.', //Tuesday 'If love is the answer, could you rephrase the question?', //Wednesday 'I love hugs!', //Thursday 'Love all, trust a few.', //Friday 'Trust yourself. You know more than you think you do.' //Saturday ]; proSetPhrase = function(id) { if (proPhrases[id].length > 0) { $('#proText').html('„'+proPhrases[id]+'“'); } } proSelectPhrase = function() { //var rndNum = Math.floor(Math.random()*proPhrases.length); //proSetPhrase(rndNum); var nowTime = new Date(); var selNum = nowTime.getDay(); proSetPhrase(0); //selNum); } proSelectPhrase(); proPageSwitch = function(obj) { $(obj).unbind('click'); $('#proPanel').fadeOut('fast', function() { $('#proRight').hide(); $('#proPage').show('scale', function() { $('#proPanel').hide(); $('#proRight, #twitterBird').fadeIn('slow'); $('#proMail').fadeIn('slow'); $('#proMail').stop().fadeTo('slow', 0.7, function() { $(this).hover( function() { $(this).stop().fadeTo('slow', 1); }, function() { $(this).stop().fadeTo('slow', 0.7); } ).click(function() { document.location = 'mailto:'+$('#mininav-avname').text()+'@imvu.at'; }); $('#youtube').slideDown(); }); }); }); return false; } $('.proNotifyInfo').click(function() { $(this).fadeOut(); }); $('#proSpecials').hover( function() { $(this).addClass('proSpecialsNoBG'); $('#proSpecials img').stop().fadeTo('fast', 0.2); }, function() { $(this).removeClass('proSpecialsNoBG'); $('#proSpecials img').stop().fadeTo('normal', 0.0); } ); $('#proSpecials img').each(function(elem) { if (elem == 0) { $(this).hover( function() { $(this).stop().fadeTo('fast', 0.8); if ($('#proPreviewLu').length == 0) { $('#proRight').prepend( $('') .attr('src', 'http://pro0510.dev.bp.la/img/amo.jpg') .attr('id', 'proPreviewLu') .hide() ); } $('#proPreviewLu').show(); }, function() { $(this).stop().fadeTo('normal', 0.2); $('#proPreviewLu').hide(); } ); } else if (elem == 2) { $(this).hover( function() { $(this).stop().fadeTo('fast', 0.8); if ($('#proPreviewCher').length == 0) { $('#proRight').prepend( $('') .attr('src', 'http://pro0510.dev.bp.la/img/bbb.png') .attr('id', 'proPreviewCher') .hide() ); } $('#proPreviewCher').show(); }, function() { $(this).stop().fadeTo('normal', 0.2); $('#proPreviewCher').hide(); } ); } else { $(this).hover( function() { $(this).stop().fadeTo('fast', 0.8); }, function() { $(this).stop().fadeTo('normal', 0.2); } ); } }); $('#proSend').click(function() { IMVU.messagePopupShow({force_recipient_id:11750782}); }); $('#youtube').appendTo('#proRightContainer'); $('#badges_panel_body').appendTo('#proBadges'); $('#proLoading').fadeOut(1500, function() { $('#proPanel, #proContentWelcome, #proDuctions, #proText, #proButton').hide(); $('#proPanel').fadeIn('scale', function() { $('#proContentWelcome').show('scale', function() { $('#proDuctions').fadeIn(1000, function() { $('#proText').fadeIn(300, function() { //window.setTimeout('wonderPage();', 1000); $('#proButton a').click(function() { return proPageSwitch(this); }); $('#proButton').fadeIn(2000, function() { $('#proBox').fadeOut(9999); }); }); }); }); }); }); }); });