	jQuery.fn.wait = function(time, type) {
	        time = time || 1000;
	        type = type || "fx";
	        return this.queue(type, function() {
	            var self = this;
	            setTimeout(function() {
	            jQuery(self).dequeue();
	        }, time);
	    });
	};
	


	jQuery.noConflict();
	jQuery(document).ready(function(){

		// Fix background image caching problem
		if (jQuery.browser.msie) {
			try { 
				document.execCommand("BackgroundImageCache", false, true); 
			} catch(err) {}
		}
		
/*
		jQuery("ul#l1menu > li").hover(function(){
			jQuery('div.submen',this).stop(true,true);
			jQuery('div.submen',this).slideDown();
			}, function() {
			jQuery('div.submen',this).slideUp("normal",function() {
				jQuery('div.submen',this).stop(true,true);
			});
		});
		jQuery("div#l1men > span").hover(function(){
			jQuery('div.submen',this).stop(true,true);
			jQuery('div.submen',this).slideDown();
			}, function() {
			jQuery('div.submen',this).slideUp();
		});
*/
		jQuery("ul#l1menu > li").hover(function(){
				jQuery('div.submen',this).wait(300);
				jQuery('div.submen',this).slideDown("normal",function(){
					jQuery('div.submen',this).stop(true, true);});
				
			}, function() {
				jQuery('div.submen',this).stop(true,true);
				jQuery('div.submen',this).slideUp("fast",function(){
					jQuery('div.submen',this).wait(300);});
		});


		jQuery("div#l1men > span").hover(function(){
				jQuery('div.submen',this).wait(300);
				jQuery('div.submen',this).slideDown("normal",function(){
					jQuery('div.submen',this).stop(true, true);});
				
			}, function() {
				jQuery('div.submen',this).stop(true,true);
				jQuery('div.submen',this).slideUp("fast",function(){
					jQuery('div.submen',this).wait(300);});
		});		

		jQuery(".csc-mailform input").focus(function(){
				jQuery(this).select();
				});

	});
