Your IP : 216.73.217.9


Current Path : /home2/reformindiaorg/www/wp-content/plugins/captcha/bws_menu/js/
Upload File :
Current File : //home2/reformindiaorg/www/wp-content/plugins/captcha/bws_menu/js/bws_menu.js

(function($) {
	$(document).ready( function() {
		/* new version */
		var product = $( '.bws_product' ),
			max = 0;
		$( product ).each( function () {
			if ( $( this ).outerHeight( true ) > max )
				max = $( this ).outerHeight( true );
		});
		$( '.bws_product' ).css( 'height', max + 'px' );

		var product_links = $( '.bws_product_links' );
		max = 0;
		$( product_links ).each( function () {
			if ( $( this ).innerHeight() > max )
				max = $( this ).innerHeight();
		});
		max = max - parseInt( $( '.bws_product_links' ).css( 'padding-top' ) ) - parseInt( $( '.bws_product_links' ).css( 'padding-bottom' ) );
		$( '.bws_product_links' ).css( 'height', max + 'px' );		
			
		$( '.bws_product_box' ).hover( function() {
			if ( $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).length > 0 ) {
				$( this ).children( '.bws_product' ).addClass( 'bws_product_pro' );
				$( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).css( 'display', 'block' );
				$( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_icon' ).css( 'display', 'none' );
				$( this ).children( '.bws_product' ).children( '.bws_product_button' ).css( 'display', 'inline-block' );
			}
		}, function() {			
			if ( $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).length > 0 ) {
				$( this ).children( '.bws_product' ).removeClass( 'bws_product_pro' );
				$( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).css( 'display', 'none' );
				$( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_icon' ).css( 'display', 'block' );
				$( this ).children( '.bws_product' ).children( '.bws_product_button' ).css( 'display', 'none' );
			}
		});

		/* old version */
		if ( $( 'input[name="bwsmn_form_email"]' ).val() == '' ) {
			$( '.bws_system_info_meta_box .inside' ).css( 'display', 'none' );
		}

		$( '.bws_system_info_meta_box .hndle' ).click( function() {
			if ( $( '.bws_system_info_meta_box .inside' ).is( ':visible' ) ) {
				$( '.bws_system_info_meta_box .inside' ).css( 'display', 'none' );
			} else {
				$( '.bws_system_info_meta_box .inside' ).css( 'display', 'block' );
			}					
		});
		
		$( '.bws_system_info_meta_box .handlediv' ).click( function() {
			if ( $( '.bws_system_info_meta_box .inside' ).is( ':visible' ) ) {
				$( '.bws_system_info_meta_box .inside' ).css( 'display', 'none' );
			} else {
				$( '.bws_system_info_meta_box .inside' ).css( 'display', 'block' );
			}					
		});
	});
})(jQuery);