// JavaScript Document

function tmenuover(a){
	for(var i=1; i<=6; i++){
		if(i == a){
			if (document.getElementById('tmenu'+i) != null){
				document.getElementById('tmenu'+i).className = "act";
			}
			if(document.getElementById('subtmenu'+i) != null){
				document.getElementById('subtmenu'+i).style.display = "block";
			}
		}else{
			if(document.getElementById('tmenu'+i) != null){
				document.getElementById('tmenu'+i).className = "nact";
			}
			if(document.getElementById('subtmenu'+i) != null){
				document.getElementById('subtmenu'+i).style.display = "none";
			}
		}
	}
}

function tmenuout(a){
	if(document.getElementById('tmenu'+a) != null){
	document.getElementById('tmenu'+a).className = "nact";
	}
	if(document.getElementById('subtmenu'+a) != null){
	document.getElementById('subtmenu'+a).style.display = "none";
	}
}

function htmenuout(a){
	if (document.getElementById('tmenu'+a) != null){
	document.getElementById('tmenu'+a).className = "hig";
	}
	if (document.getElementById('subtmenu'+a) != null){
	document.getElementById('subtmenu'+a).style.display = "none";
	}
	}

 function mycarousel_initCallback(carousel)
                                {
                                    carousel.buttonNext.bind('click', function() {
                                        carousel.startAuto(0);
                                    });
                                    carousel.buttonPrev.bind('click', function() {
                                        carousel.startAuto(0);
                                    });
                                
                                    carousel.clip.hover(function() {
                                        carousel.stopAuto();
                                    }, function() {
                                        carousel.startAuto();
                                    });
                                };
                                
                                // jQuery(document).ready(function() {
                                //                         jQuery('#mycarousel').jcarousel({
                                //                             auto: 2,
                                //                             wrap: 'last',
                                //                             initCallback: mycarousel_initCallback
                                //                         });
                               // });
