// JavaScript Document jQuery(document).ready(function(){ jQuery('.header').css({'z-index':'1000'}); jQuery('.tweet').tweet({ join_text: 'auto', username: 'ProforceJobClub', avatar_size: 48, count: 3, auto_join_text_default: '', auto_join_text_ed: '', auto_join_text_ing: '', auto_join_text_reply: '', auto_join_text_url: '', /* auto_join_text_ed: 'we', auto_join_text_ing: 'we were', auto_join_text_reply: 'we replied', auto_join_text_url: 'we were checking out',*/ loading_text: 'loading tweets...' }); // Link to twitter account jQuery('.tweetWrapper .buttonViewAll, .tweetWrapper .buttonViewAllFr').click(function(){ window.open('http://www.twitter.com/ProforceJobClub'); }); setTimeout('flushTwitterLink();', 2000); }); function flushTwitterLink(){ // twitter like jQuery('.clearBoth iframe').css({'width':'72px'}); jQuery('.tweetWrapper a').addClass('newWindow'); refreshNewWindowLink(); } // Main menu hover operation jQuery(document).ready(function(){ // Main menu hover effect jQuery('.mainMenu > ul > li').hover( function(){ jQuery(this).children('ul').css({'height':'auto'}); var height = jQuery(this).children('ul').height(); jQuery(this).children('ul').css({'height':'0'}); jQuery(this).children('ul').css({'left':jQuery(this).position().left+'px', 'top':'30px'}); jQuery(this).children('ul').animate({'height':height+'px'},200); }, function(){ jQuery(this).children('ul').animate({'height':'0'},100,function(){ jQuery(this).css({'left':'-5000px'}); }); } ); // Set expand icon jQuery('.category > ul > li > ul li').each(function(){ if(jQuery('ul',jQuery(this)).length > 0){ jQuery(this).prepend(''); }else{ jQuery(this).css({'padding-left':'33px'}); } }); }); // Rss feeds popup window jQuery(document).ready(function(){ jQuery('.buttonRss').removeClass('newWindow'); jQuery('.buttonRss').click(function(){ return false; }); jQuery('.buttonRss').parent().hover( function(){ restoreHeight(jQuery('.rssBox'),200); }, function(){ jQuery('.rssBox').stop().animate({'height':0},200); } ); });