/* Plugin Name: AllWebMenus WordPress Menu Plugin Plugin URI: http://www.likno.com/addins/wordpress-menu.html Description: WordPress plugin for the AllWebMenus PRO Javascript Menu Maker - Create stylish drop-down menus or sliding menus for your blogs! Version: 1.1.6 Author: Likno Software Author URI: http://www.likno.com/ */ /* NOTE: This plugin is licensed under the GNU General Public License (GPL). As such, you may use the source code of this plugin as you wish. This plugin is used as a bridge to a non-GPL licensed software (AllWebMenus PRO) that is a property of Likno Software. The license of AllWebMenus PRO states that a WordPress Menu (a menu which structure is retrieved using this plugin and compiled with AllWebMenus PRO using the WordPress Add-In) can be used in **one single domain**. Thus, the part of the code below that confirms that the menu is used only in one domain **cannot** be changed/removed. */ /* *These are all the javascript functions that the software uses. * **/ var AWM_TOTAL_TABS_JS; if(!Array.indexOf){ Array.prototype.indexOf = function(obj){ for(var i=0; i50) && elem.value.length > 0 ){ if (elem.value<1) elem.value = 1 if (elem.value>50) elem.value = 50 document.getElementById('awm_max_value_notice_'+i).style.color = "red"; setTimeout("document.getElementById('awm_max_value_notice_'+tI).style.color = '';" ,3000); } if ( elem.value.length == 0){ document.getElementById('awm_max_value_notice_'+i).style.color = "red"; setTimeout("document.getElementById('awm_max_value_notice_'+tI).style.color = '';" ,3000); } } function awm_disable_value(elem,e){ var key; if(window.event) { key = e.keyCode; isCtrl = window.event.ctrlKey } else if(e.which) { key = e.which; isCtrl = e.ctrlKey; } if (isNaN(String.fromCharCode(key))) return false; return true; } function awm_menu_position(value, i){ document.getElementById('awm_custom_menu_position_' + i).style.display = "none"; document.getElementById('awm_widget_menu_position_' + i).style.display = "none"; document.getElementById('awm_theme_menu_position_' + i).style.display = "none"; if (value == 0 ){ document.getElementById('awm_custom_menu_position_' + i).style.display = "block"; } else if (value == "awm_widget") document.getElementById('awm_widget_menu_position_' + i).style.display = "block"; else document.getElementById('awm_theme_menu_position_' + i).style.display = "block"; } function awm_form_validate(){ var i=0; var j=0; var errorMsg=''; var exclude = new Array(); for (i=0; i 0){ errorMsg+= message + message2 + ". Names must be unique for each menu.\n"; exclude[exclude.length] = document.getElementById("AWM_menu_name_"+i).value; } } if (errorMsg.length>0) alert("The following error(s) occured: \n" +errorMsg) else document.theform.submit(); }