if(typeof jQuery=="undefined")jQuery=function(){};if(typeof jQuery.classBehaviours=="undefined")jQuery.classBehaviours=function(){};if(typeof jQuery.classBehaviours.handlers=="undefined")jQuery.classBehaviours.handlers=function(){};jQuery.classBehaviours.handlers.makeStylesheet={name:"makeStylesheet",styleSheet:"",referenceCss:"",start:function(a){this.styleSheet="\t/* "+document.location.href.split("/")[document.location.href.split("/").length-1]+" */\n";this.styleSheet+="\thtml {}\n";this.styleSheet+=document.body.getAttribute("class")!=null?"\t\tbody."+document.body.className.replace(/ /gi,".")+" {}\n":"\t\tbody {}\n";this.makeReferenceCss();a.onclick=this.showNodeClasses},makeReferenceCss:function(){for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].cssRules)for(var b=0;b<document.styleSheets[a].cssRules.length;b++)this.referenceCss+=document.styleSheets[a].cssRules[b].selectorText+" {}\n\t"},isFormElement:function(a){return"input,select,textarea,button,INPUT,SELECT,TEXTAREA,BUTTON".indexOf(a)>-1},isClassBehaviours:function(b){foundHandler=false;if(typeof b=="string")for(var a=0;a<jQuery.classBehaviours.handlers.length;a++)foundHandler=b.indexOf(jQuery.classBehaviours.handlers[a].name)>-1?true:foundHandler;return foundHandler},isInStylesheet:function(a,b){foundStyle=false;a=a.replace(/\t/gi,"").replace(" {}\n","").replace(",","");foundStyle=this.styleSheet.indexOf(a)>-1;foundStyle=this.referenceCss.indexOf(a)>-1&&b?true:foundStyle;return foundStyle},filterNodeClasses:function(d){for(var b=[],c=d.split(" "),a=0;a<c.length;a++)if(c[a].indexOf("_")<0)b[b.length]=c[a];return d==""?"":b.join(" ")},filterNodeId:function(c){var b=false;for(a in jQuery.classBehaviours.handlers)b=c.indexOf(jQuery.classBehaviours.handlers[a].name)>-1?true:b;return b?"":c},getNodeClasses:function(n,i,m,j,k){for(var c,a,b,g,h,d="\t\t",l=0;l<=i;l++)d+="\t";for(var f=n.childNodes,e=0;e<f.length;e++){childNode=f[e];c=childNode.nodeName.indexOf("#")<0?childNode.nodeName:"";a=childNode.id?"#"+childNode.getAttribute("id"):"";a=this.filterNodeId(a);b=childNode.className?"."+childNode.getAttribute("class"):"";b=this.filterNodeClasses(b);typePrefix="";newPrefix="";g="";h="";if(c!=""){c=childNode.nodeName.toLowerCase();a=!this.isClassBehaviours(a)&&!this.isFormElement(c)?a:"";b=b.replace(/^\s+|\s+$/g,"").replace(/ /g,".");typePrefix=typePrefix!=""?"[type="+typePrefix+"]":"";newPrefix=m+" "+c+typePrefix+a+b;newPrefix=newPrefix.split("#").length>1&&k?"#"+newPrefix.split("#")[newPrefix.split("#").length-1]:newPrefix;g=d+newPrefix+" {}\n";h=c=="a"?d+newPrefix+":link,\n"+d+newPrefix+":visited {}\n"+d+newPrefix+":hover,\n"+d+newPrefix+":active {}\n":""}if(!this.isInStylesheet(g,j))this.styleSheet+=g+h;f[e].childNodes.length>0&&this.getNodeClasses(f[e],i+1,newPrefix,j,k)}},showNodeClasses:function(c){var b=typeof this.nodeName=="undefined"?c:this,a=jQuery.classBehaviours.handlers.makeStylesheet;document.body.style.textAlign="left";document.body.style.background="#ffffff none";document.body.style.color="#000000";document.body.style.fontFamily="Sans Serif";document.body.style.fontSize="10pt";onlyChanges=jQuery.classBehaviours.utilities.getClassParameter(b,"changesOnly","yes")=="yes";simplified=jQuery.classBehaviours.utilities.getClassParameter(b,"simplified","yes")=="yes";documentRoot=simplified?document.body:document;a.getNodeClasses(documentRoot,0,"",onlyChanges,simplified);document.body.innerHTML=navigator.userAgent.indexOf("MSIE 6")>-1?'<textarea style="width:720px;height:480px;border:solid 1px #000000;">'+a.styleSheet+"</textarea>":'<textarea style="position:absolute;left:5%;top:5%;width:90%;height:90%;border:solid 1px #000000;">'+a.styleSheet+"</textarea>";return false}};if(typeof jQuery.fn!="undefined"){jQuery.fn.makeStylesheet=function(){return this.each(function(){jQuery.classBehaviours.handlers.makeStylesheet.start(this)})};$(document).ready(function(){$(".makeStylesheet").makeStylesheet()})}