jQuery.noConflict();
jQuery(document).ready(function(){ 
    jQuery("ul.sf-menu").supersubs({ 
        minWidth:    12,                                // minimum width of sub-menus in em units 
        maxWidth:    27,                                // maximum width of sub-menus in em units 
        extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over 
                                                        // due to slight rounding differences and font-family 
    }).superfish({ 
        delay:       400,                               // delay on mouseout 
        animation:   {opacity:'show',height:'show'},    // fade-in and slide-down animation 
        speed:       'fast',                            // faster animation speed 
        autoArrows:  true,                             // disable generation of arrow mark-up 
        dropShadows: false                              // disable drop shadows 
    }); 
	 // submit form
 	jQuery('#myForm').ajaxForm(function(data) {
            if (data==1){
                jQuery('#success').fadeIn("slow");
                 jQuery('#myForm').slideUp("slow");
                jQuery('#myForm').resetForm();
            }
            else if (data==2){
                jQuery('#badserver').fadeIn("slow");
            }
            else if (data==3)
            {
                jQuery('#bademail').fadeIn("slow");
                setTimeout(function() { 
  				jQuery('#bademail').fadeOut("slow"); 
				}, 10000);
            }
        });

		jQuery('#ss ul').innerfade({
				speed: 4000,
				timeout: 10000,
				type: 'random',
				containerheight: '245px'
		});
		
		// Expand dt
		jQuery('dl#faq').find('dd').hide().end().find('dt').append('<span class="open">&#8595;</span>').toggle(function(){
					jQuery(this).find('span').attr('class','close').html('&uarr;').end().next('dd').fadeIn();
				},function(){
					jQuery(this).find('span').attr('class','open').html('&#8595;').end().next('dd').fadeOut(); 
				});

});

