this.imagePreview=function(){xOffset=10;yOffset=30;$("a.preview").hover(function(e){this.t=this.title;this.title="";var c=(this.t!="")?"<br/>"+this.t:"";$("body").append("<p id='preview'><img src='"+this.href+"' width='300' alt='Image preview' />"+c+"</p>");$("#preview").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("fast");},function(){this.title=this.t;$("#preview").remove();});$("a.preview").mousemove(function(e){$("#preview").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px");});};$(document).ready(function(){imagePreview();try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}$("li.headlink").hover(function(){$("ul",this).css("display","block");},function(){$("ul",this).css("display","none");});$(function(){$("#tabs").tabs();});var prev=null;$(".showhide").bind("click",null,function(event){var next=$(event.target).next();next.toggle();if(next.is(":visible")){$(event.target).removeClass("showhide");$(event.target).addClass("showhideopen");}else{$(event.target).removeClass("showhideopen");$(event.target).addClass("showhide");}return false;});var elements=$(".showhide");for(var i=0;i<elements.length;i++){ele=$(elements[i]);ele.next().hide();}if($("td.para-img:has(div.moredesc)")){$(".moredesc").hide();$(".morelink").show();$(".lesslink").hide();}$(".morelink").click(function(){$(".moredesc").show();$(".morelink").hide();$(".lesslink").show();$(".moredesc").attr("style","float : none;");$(".moredesc").attr("style","display : inline;");});$(".lesslink").click(function(){$(".moredesc").hide();$(".morelink").show();$(".lesslink").hide();});});
