/** Bundle Created: Thu Mar  4 22:08:30 2010 **/
/** Concatted Files:  /js/showwatched.jq.comp.js /js/calpopups.jq.comp.js **/


/** Concatted File (Extension: js): /js/showwatched.jq.comp.js Last Modified: Sun Oct 18 16:06:07 2009 File Size: 821b **/
function do_watched(){$.post($(this).attr("href"),{x:"1",urid:$(this).attr("id")},function(a){it=$("#"+a);it.text("<");it.attr({href:it.attr("href").replace(/\/watched\//i,"/unwatched/")});it.removeClass("isunwatched");it.addClass("iswatched");xt=$("#j_"+a.substring(2));xt.addClass("showwatched");it.unbind("click");it.click(do_un_watched)});return false}function do_un_watched(){$.post($(this).attr("href"),{x:"1",urid:$(this).attr("id")},function(a){it=$("#"+a);it.text(">");it.attr({href:it.attr("href").replace(/\/unwatched\//i,"/watched/")});it.removeClass("iswatched");it.addClass("isunwatched");xt=$("#j_"+a.substring(2));xt.removeClass("showwatched");it.unbind("click");it.click(do_watched)});return false}$(document).ready(function(){$("a.isunwatched").click(do_watched);$("a.iswatched").click(do_un_watched)});

/** Concatted File (Extension: js): /js/calpopups.jq.comp.js Last Modified: Tue Oct 20 07:58:34 2009 File Size: 1021b **/
var cache=new Array();var qstr=undefined;var xhr=undefined;function position_show(){pop=$("div#pop");overlay=$("div#click_overlay");w_h=$(window).height();w_w=$(window).width();opr=$("#"+qstr).offset();if((opr.top+25+pop.height())<=w_h){opr.top+=25}else{opr.top-=(pop.height())}if((opr.left+25+pop.width())<=w_w){opr.left+=50}else{opr.left-=(pop.width())}$("body").css("cursor","default");$("#"+qstr).css("cursor","pointer");pop.css(opr);overlay.show();pop.show()}function abort_inprogress(){if(xhr!=undefined){xhr.abort()}}$(document).ready(function(){$("div#click_overlay").click(function(){pop=$("div#pop");pop.hide();$(this).hide()});$("a.eplink").click(function(){qstr=$(this).attr("id");if(cache[qstr]==undefined){abort_inprogress();$("body").css("cursor","progress");$(this).css("cursor","progress");xhr=$.get("query.php",{q:qstr},function(a){$("div#pop").html(a);cache[qstr]=a;position_show();qstr=undefined})}else{abort_inprogress();$("div#pop").html(cache[qstr]);position_show();qstr=undefined}return false})});