$(function(){$(".tb_close").click(function(){tb_remove();});$(window).resize(positionPlaylist);var img = $(document.createElement("img")).attr("src", "/css/images/playlistHeader.png");var img2 = $(document.createElement("img")).attr("src", "/css/images/playlistBG.png");$(".tooltip").tooltip({delay: 0,showURL: false,bodyHandler: function(){return $(".content", this).html();},track: true,top: 10});});function positionPlaylist(){$("#container").css({"top": ($(window).height() / 2) - 71,"left": ($(window).width() / 2) - 480 });}function showCalendar(){positionPlaylist();$("#container").css({"z-index": 100,"display": "block"});$(".playlistContainer").jScrollPane({scrollbarWidth: 15,showArrows: true});if($.browser.msie){var offset = jQuery.inArray($(".today")[0], $(".viewmode tbody").children()) * 20;$.jScrollPane.active[0].scrollTo(offset, true);}else $.jScrollPane.active[0].scrollTo(".today", true);}function hideCalendar(){$("#container").css("z-index", -1);}function showPlaylist(){$("#container").css({"z-index": 100});}