var engine = {
			utils: { 
					past_events : function() { 
						$('.date-of-event, .booking-list').hide();
					},
					isLoggedin : function() { 
						if( islog == '1') {
							$('.login-form-secure').hide();
							$('.login-success').show();
						}
					},
                                        business_directory : function() { 
                                            //$('#myList li').unwrap();
                                            $('.members-directory-search .cardbox2, .business-number').remove();
									        if(jQuery("#myList li").length == 0){
												jQuery("#myList").html("No members listed.");
											}
                                            /*if(window.location.pathname.indexOf('members-directory') != -1){
                                                  $("form[name='catcustomcontentform21697']").submit();
                                            }*/
											if($('#card ul li').length >= 16){
												$('#card').pajinate({ 
													 items_per_page : 16,
														   item_container_id: '.alt_content'
												});
											 }
                                        },
                                        anouncement_list : function() { 
                                           $('.bottomarea .latest-news:first').addClass('first');
                                            $('.bottomarea .latest-news:eq(2)').addClass('right').removeClass('left');
                                        },
                                        membership_type_select : function() { 
                                            if(jQuery("#myList li").length == 0){
												jQuery("#myList").html("No members listed.");
											}
                                            $('.contact-new-number').remove();
                                            $('.cardbox10').hide();
                                            if(window.location.pathname == '/business-directory.htm'){
                                                  $("form[name='catcustomcontentform21697']").submit();
                                            }
                                           $(".member-profile-list-css").parent("li").each(function(){
                                                $(this).prependTo("#myList");
                                            });
                                           $(".full-listing-css").parent("li").each(function(){
                                               if($(".member-profile-list-css").parent('li:last').length != 0){
                                               $(this).insertAfter($(".member-profile-list-css").parent("li:last"));
                                               }
                                               else{
                                                        $(this).prependTo("#myList");
                                                }
                                           });
						if($('#card ul li').length >= 16){
	$('#card').pajinate({ 
		 items_per_page : 16,
               item_container_id: '.alt_content'
	});
 }
											
                                        },
                                        secure_style : function() { 
                                             $('.content h1.h1-content').remove();
                                             var getListing = $.trim($('.list-edit-type').html());
                                             if (getListing != 'No items found.') { 
                                                   $("li#add-item").remove(); 
                                                   $("li#update-item").show(); 
                                             }
                                             else{ 
                                                   $("li#add-item").show(); 
                                                   $("li#update-item").remove();   }
                                            $('.secure-menu ul li:last').css('border-right','none');
                                        },
                                        confirm_message_update : function() { 
                                             $('li#add-item').hide();
                                             var getV1 = $.trim($('.zoneName a').html());
                                             if ( getV1 == "Full Business Profile" ) { 
                                                   $(".full-secure-menu").show();
                                                   $(".free-secure-menu").remove();
                                                   $(".member-business-menu").remove(); 
                                             }
                                             if ( getV1 == "Free Business Profile" ) { 
                                                   $(".free-secure-menu").show();
                                                   $(".full-secure-menu").remove();
                                                   $(".member-business-menu").remove(); 
                                             }
                                             if ( getV1 == "SCOC Membership" ) { 
                                                  $(".member-business-menu").show(); 
                                                  $(".free-secure-menu").remove();
                                                  $(".full-secure-menu").remove();
                                             }
                                        }, 
                                        secure_edit_direct : function() { 
                                              window.location = jQuery(".edit-this-url a").attr("href");
                                        },
                                        secure_menu : function() { 
                                             var getMenu = $('.secure-menu').html();
                                              $('.secure-menu2').html(getMenu);
												jQuery('.secure-menu2 ul li a').each(function(){
														jQuery(this).hover(function(){
															jQuery(this).stop().animate({'backgroundPosition': '4px center'}, 100)
														},function(){
															jQuery(this).stop().animate({'backgroundPosition': '0px center'}, 100)
														});
													
												});
                                        }
			}
}
jQuery(function() { 			
engine.utils.anouncement_list();
});

