$(document).ready(function(){getGoogleBuzz('etel.good',8,$('#buzzwidget'));function getGoogleBuzz(username,n,div){var data={q:'http://buzz.googleapis.com/feeds/'+username+'/public/posted',num:n,output:'json',v:'1.0'};$.ajax({url:'http://ajax.googleapis.com/ajax/services/feed/load',data:data,dataType:'jsonp',success:function(json){if(json.responseStatus!=200){div.html('<b style="color:red">'+json.responseDetails+'</b>');return};var entries=json.responseData.feed.entries;var length=entries.length;if(length==0)return;var ul=$('<ul class="gb" style="display:none"></ul>').appendTo(div.html(''));for(var i=0;i<length;i++){var pDate=new Date(entries[i].publishedDate);var snippet=entries[i].contentSnippet;snippet=snippet.replace(/\b(https?\:\/\/\S+)/gi,' <a href="$1">$1</a>');ul.append('<li>'+'<span class="gb-content">'+snippet+'</span>'+'<span class="gb-meta">'+'<a href="'+entries[i].link+'">'+pDate.toLocaleString()+'</a>'+'</span>'+'</li>')};ul.show('slow')}})}$("#video1").click(function(){$.fancybox({'padding':0,'autoScale':false,'transitionIn':'elastic','transitionOut':'none','title':this.title,'width':640,'height':360,'overlayOpacity':.7,'overlayColor':000,'href':this.href.replace(new RegExp("watch\\?v=","i"),'v/'),'type':'swf','swf':{'wmode':'transparent','allowfullscreen':'true'}});return false});$("#video2").click(function(){$.fancybox({'padding':0,'autoScale':false,'transitionIn':'elastic','transitionOut':'none','title':this.title,'width':640,'height':360,'overlayOpacity':.7,'overlayColor':000,'href':this.href.replace(new RegExp("watch\\?v=","i"),'v/'),'type':'swf','swf':{'wmode':'transparent','allowfullscreen':'true'}});return false});$("#video3").click(function(){$.fancybox({'padding':0,'autoScale':false,'transitionIn':'elastic','transitionOut':'none','title':this.title,'width':640,'height':360,'overlayOpacity':.7,'overlayColor':000,'href':this.href.replace(new RegExp("watch\\?v=","i"),'v/'),'type':'swf','swf':{'wmode':'transparent','allowfullscreen':'true'}});return false});$("#video4").click(function(){$.fancybox({'padding':0,'autoScale':false,'transitionIn':'elastic','transitionOut':'none','title':this.title,'width':640,'height':360,'overlayOpacity':.7,'overlayColor':000,'href':this.href.replace(new RegExp("watch\\?v=","i"),'v/'),'type':'swf','swf':{'wmode':'transparent','allowfullscreen':'true'}});return false});$("#video5").click(function(){$.fancybox({'padding':0,'autoScale':false,'transitionIn':'elastic','transitionOut':'none','title':this.title,'width':640,'height':360,'overlayOpacity':.7,'overlayColor':000,'href':this.href.replace(new RegExp("watch\\?v=","i"),'v/'),'type':'swf','swf':{'wmode':'transparent','allowfullscreen':'true'}});return false});$('#chineselink a img').hover(function(){$(this).animate({paddingTop:'+=70px'},200)},function(){$(this).animate({paddingTop:'-=70px'},500)});$('#logobottom img').hover(function(){$(this).animate({paddingLeft:'+=160px'},800)},function(){$(this).animate({paddingLeft:'-=160px'},800)});$('#homeBtn').hover(function(){$('#homeIcon .jump').animate({top:"-10px"},200).animate({top:"0px"},100).animate({top:"-6px"},100).animate({top:"0px"},80).animate({top:"-3px"},80).animate({top:"0px"},30)},function(){});$('div.high').hover(function(){$(this).addClass('highme')},function(){$(this).removeClass('highme')});$('tr.high').hover(function(){$(this).addClass('highmeB')},function(){$(this).removeClass('highmeB')});$('#productBtn').hover(function(){$('#productIcon .jump').animate({top:"-10px"},200).animate({top:"0px"},100).animate({top:"-6px"},100).animate({top:"0px"},80).animate({top:"-3px"},80).animate({top:"0px"},30)},function(){});$('#supportBtn').hover(function(){$('#supportIcon .jump').animate({top:"-10px"},200).animate({top:"0px"},100).animate({top:"-6px"},100).animate({top:"0px"},80).animate({top:"-3px"},80).animate({top:"0px"},30)},function(){});$('#accountBtn').hover(function(){$('#accountIcon .jump').animate({top:"-10px"},200).animate({top:"0px"},100).animate({top:"-6px"},100).animate({top:"0px"},80).animate({top:"-3px"},80).animate({top:"0px"},30)},function(){});$('#eClubBtn').hover(function(){$('#eClubIcon .jump').animate({top:"-10px"},200).animate({top:"0px"},100).animate({top:"-6px"},100).animate({top:"0px"},80).animate({top:"-3px"},80).animate({top:"0px"},30)},function(){});$("a.grouped_elements").fancybox();$('a#inline').fancybox({'hideOnContentClick':true})});
