$(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#header a[@href$="' + path + '"]').attr('class', 'selected');
	 
	    var path = location.pathname.substring(1);
   if ( path )
     $('#menu a[@href$="' + path + '"]').attr('class', 'selected');
	 
	 	    var path = location.pathname.substring(1);
   if ( path )
     $('#colleft a[@href$="' + path + '"]').attr('class', 'selected');
	 
 });

//sfHover = function() {
//    var sfEls = document.getElementById("dd").getElementsByTagName("li");
//    for (var i=0; i<sfEls.length; i++) {
//        sfEls[i].onmouseover=function() {
//            this.className+=" sfhover";
//        }
//        sfEls[i].onmouseout=function() {
//            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
//        }
//    }
//}
//if (window.attachEvent) window.attachEvent("onload", sfHover);
$.fn.cycle.defaults.timeout = 6000;
$(function() {
$('#s2').cycle({
    fx:     'fade',
speed:  3000,
    timeout: 8000,
    next:   '#next2',
    prev:   '#prev2'
});
});

 $(document).ready(function(){

$("#colleft ul li:first-child").attr('class', 'first');


   $("#dd li ul").addClass("jqhide");
    
   $("#dd li").hover(
   	function(){
	  $(this).children("ul").show();
	},
	function(){
	  $(this).children("ul").hide();
	});

 




 });
 
 
 
