/* * Thickbox 2.1 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2006 cody lindley * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * Thickbox is built on top of the very light weight jQuery library. */ //on page load call TB_init $(document).ready(TB_init); //add thickbox to href elements that have a class of .thickbox function TB_init(){ $("a.thickbox").click(function(){ var t = this.title || this.name || null; var g = this.rel || false; TB_show(t,this.href,g); this.blur(); return false; }); } function TB_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link try { if (document.getElementById("TB_HideSelect") == null) { $("body").append("
"); $("#TB_overlay").click(TB_remove); } if(caption==null){caption=""}; $(window).scroll(TB_position); TB_overlaySize(); $("body").append("