"use strict";$(function(){(function rotate_artists(){var list,URL=window.location.protocol+'//'+window.location.host+window.location.pathname;URL=URL.substring(0,URL.lastIndexOf('/'))+'/files/artists/artists-list.xml';$.ajax({url:URL,type:'GET',dataType:'xml',error:function(){$('#jinx_artist').attr('src','files/artists/blink182.png');},success:function(xml){var $list=$('artist',$(xml)),rindex=Math.floor(Math.random()*$list.length);$('#jinx_artist').attr('src','files/artists/'+$($list[rindex]).text());}});}());(function add_weather_widget(){$('#weather_widget').html('loading weather <img src="imgs/loaderdark.gif" alt="loading..." />');$.ajax({url:'http://www.google.com/ig/api?weather=67156&hl=en',type:'GET',dataType:'xml',error:function(){$("#weather_widget").html("<strong>The Weather feature is temporarly disabled.</strong>");},success:function(xml){var $xml=$(xml),temp=$('current_conditions > temp_f',$xml).attr('data'),condition=$('current_conditions > condition',$xml).attr('data'),icon='http://google.com'+$('current_conditions > icon',$xml).attr('data');$('#weather_widget > img').html('<img src="'+icon+'" alt="'+condition+'" />'+'<em>'+temp+'&deg;</em>'+'<span>'+condition+'</span>');}});}());});
