/* Fireworks Forever JS 1.0 */

$j(function() {
  
	 var menus = $j('.wpsc_categories');
	   		
	 menus.superfish({ 
	            delay:       1000,                            // one second delay on mouseout 
	            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
	            speed:       10,                          // faster animation speed 
	            autoArrows:  false,                           // disable generation of arrow mark-up 
	            dropShadows: false                            // disable drop shadows 
	        });
	  
	 /*
$j('.wpsc_second_level_categories').each(function(){
	 
	 	var height = $j(this).outerHeight();
	 	$j(this).css('top',(-(height/2))-10);
	 	
	 	if($j(this).html().search('li') > 0){

	 		$j(this).prepend('<span class="ltriangle">1</span>');
	 		$j(this).children('span').css('border-top-width',height/2);
	 		$j(this).children('span').css('border-bottom-width',height/2);
	 		
	 		$j(this).parent().addClass('parent');

	 	} });
*/
	 
	
	 
	 
	 
	 $j('a.printWishlist').live('click',function(){
	 
	 	$j('.widget_wpsc_shopping_cart').printElement({
	 	
	 	printMode:'popup',
	 	leaveOpen:true,
	 	overrideElementCSS:['/wp-content/themes/fireworks_forever/print.css'],
	 	pageTitle:'Fireworks Forever Wishlist'
	 	
	 	});
	 	return false;
	 
	 });
	 
	 
	$j('.wishlist_btn').hover(
	function(){
		$j(this).addClass('over');
	},
	function(){
		$j(this).removeClass('over');
	})
	
	$j('.cart_btn').hover(
	function(){
		$j(this).addClass('over');
	},
	function(){
		$j(this).removeClass('over');
	})
	
	$j('#wholesaleBox input[type=text]').focus(function() {
     	 	t = $j(this).val();
     	 	if(t=="Username..."){
     	 	$j(this).val('');
     		}
     		if(t=="Password..."){
     	 	$j(".pwd_remove").after('<input type="password" id="pwd" name="pwd" />');
			$j(".pwd_remove").remove();
			$j("#pwd").focus();

     		}
     });
     
     $j('.newsletter input[type=text]').focus(function() {
     	 	t = $j(this).val();
     	 	if(t=="Email..."){
     	 	$j(this).val('');
     		}
     		
     });
  });  	 	


