(function(){jQuery.fn.columnview=function(d){var f=jQuery.extend({},jQuery.fn.columnview.defaults,d);if(!jQuery(".containerobj").get(0)){jQuery("head").prepend('      <style type="text/css" media="screen">        .containerobj {          border: 1px solid #ccc;          height:5em;          overflow-x:auto;          overflow-y:hidden;          white-space:nowrap;          position:relative;        }        .containerobj div {          height:100%;          overflow-y:scroll;          overflow-x:hidden;          position:absolute;        }        .containerobj a {          display:block;          clear:both;          white-space:nowrap;          min-width:150px;        }        .containerobj a canvas{          padding-left:1em;        }        .containerobj .feature {          min-width:200px;        }        .containerobj .feature a {          white-space:normal;        }        .containerobj .hasChildMenu {        }        .containerobj .active {          background-color:#3671cf;          color:#fff;        }        .containerobj .inpath {          background-color:#d0d0d0;          color:#000;        }        .containerobj .hasChildMenu .widget{          color:black;          position:absolute;          right:0;          text-decoration:none;          font-size:0.7em;        }      </style>')}jQuery(this).hide();var g=jQuery(this).children("li");var c=jQuery("<div/>").addClass("containerobj").attr("id","cv"+Math.floor(Math.random()*100000000000)).insertAfter(this);var e=jQuery('<div class="top"></div>').appendTo(c);if(jQuery.browser.msie){jQuery(".top").width("200px")}jQuery.each(g,function(h,k){var j=jQuery(":eq(0)",k).clone().data("sub",jQuery(k).children("ul")).appendTo(e);if(jQuery(j).data("sub").length){jQuery(j).addClass("hasChildMenu");if(jQuery.browser.safari){jQuery(j).css({"margin-right":"15px"})}b(j)}});jQuery("a",c).live("click",function(){var i=jQuery(this).parents(".containerobj");var m=jQuery("div",i).index(jQuery(this).parents("div"));jQuery("div:gt("+m+")",i).remove();jQuery("div:eq("+m+") a",i).removeClass("active").removeClass("inpath");jQuery(".active",i).addClass("inpath");jQuery(this).addClass("active");if(jQuery(this).data("sub").children("li").length){a(i,this)}else{if(f.last_child==="link"){window.location.href=jQuery(this).attr("href")}else{var l=jQuery("<a/>").attr({href:jQuery(this).attr("href")}).text(jQuery(this).attr("title")?jQuery(this).attr("title"):jQuery(this).text());var j=jQuery("<div/>").html(l).addClass("feature").appendTo(i);var h=0;jQuery.each(jQuery(i).children("div").slice(0,-1),function(n,o){h+=jQuery(o).width()});var k=jQuery(i).width()-h;jQuery(j).css({top:0,left:h}).width(k).show()}}return false});jQuery("a",c).live("keydown",function(h){switch(h.which){case (37):jQuery(this).parent().prev().children(".active").focus().click();break;case (38):jQuery(this).prev().focus().click();break;case (39):if(jQuery(this).hasClass("hasChildMenu")){jQuery(this).parent().next().children("a:first").focus().click()}break;case (40):jQuery(this).next().focus().click();break;case (13):jQuery(this).dblclick();break}})};function a(c,f){var d=0;jQuery.each(jQuery(c).children("div"),function(j,h){d+=jQuery(h).width()});var e=jQuery("<div/>").css({top:0,left:d}).appendTo(c);if(jQuery.browser.msie){jQuery(e).width("200px")}var g=jQuery(f).data("sub").children("li");jQuery.each(g,function(k,j){var h=jQuery(":eq(0)",j).clone().data("sub",jQuery(j).children("ul")).appendTo(e);if(jQuery(h).data("sub").length){jQuery(h).addClass("hasChildMenu");if(jQuery.browser.safari){jQuery(h).css({"margin-right":"15px"})}b(h)}})}function b(f,c){var g=jQuery(f).height();var d=jQuery("<canvas></canvas>").attr({height:g,width:10}).addClass("widget").prependTo(f);if(!c){c=jQuery(d).css("color")}d=jQuery(d).get(0);if(d.getContext){var e=d.getContext("2d");e.fillStyle=c;e.beginPath();e.moveTo(3,(g/2-3));e.lineTo(10,(g/2));e.lineTo(3,(g/2+3));e.fill()}else{jQuery("<span>&#9658;</span>").addClass("widget").css({height:g,width:10}).prependTo(f)}}jQuery.fn.columnview.defaults={last_child:"title"}})(jQuery);