var $j = jQuery.noConflict();

$j(document).ready(function() {

	$j('.clearField').clearField();

    $j('ul.sf-menu').superfish({ 
        delay:       1000,                            // one second delay on mouseout 
        animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
        speed:       'fast',                          // faster animation speed 
        autoArrows:  false,                           // disable generation of arrow mark-up 
        dropShadows: false                            // disable drop shadows 
    });
    
    //click to hide and show divs
    $j('.togglerselect').change(function() {
	$j('.toggleme').toggle(300);
    });
    
    //form validation
    $j(".form").validate();
 
        //animation on first tab
        //SmokeEffect.makeEffect("tab1", 620, 50);
	//SmokeEffect.imgLocation = "";
	//SmokeEffect.smokeWidth = 59;
	//SmokeEffect.smokeHeight = 66;
	
	setTimeout('$j("#sap").fadeIn(800)', 200);
	//setTimeout('$j("#sap-text").fadeIn(1000)', 1400);
	//setTimeout('$j("#sap-learnmore").fadeIn(500)', 2400);

	var zIndexNumber = 1000;
	/* order divs to make dropdown work in IE */
		$j('div').each(function() {
			$j(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 10;
	});

});

