                var menu = {
                
                         appear: function(menuIndex){

                		 var ItemSet = document.getElementById('content-'+menuIndex);

                		 if( navigator.appVersion.indexOf('MSIE 7.0') ==-1 )
                		     ItemSet.setAttribute("class","subMenu");
                		 else
                		     ItemSet.setAttribute("className","subMenu");

                		 },

                        disappear: function(menuIndex){

                		 var ItemSet = document.getElementById('content-'+menuIndex);

                		 if( navigator.appVersion.indexOf('MSIE 7.0')==-1)
                		     ItemSet.setAttribute("class","subMenuHidden");
                		 else
                		     ItemSet.setAttribute("className","subMenuHidden");


                		 },
                		 

                         subMenu: function(mode,menuID,menuIndex){

                                        var ItemSet = document.getElementById('subcontent-'+menuID+'-'+menuIndex);

                                        switch(mode){

                                              case "appear":

                                        		 if( navigator.appVersion.indexOf('MSIE 7.0') ==-1)
                                                            ItemSet.setAttribute("class","subMenuInner");
                                        		 else
                                                            ItemSet.setAttribute("className","subMenuInner");

                                  	      break;

                                              case "disappear":

                                        		 if(navigator.appVersion.indexOf('MSIE 7.0')==-1)
                                                            ItemSet.setAttribute("class","subMenuInnerHidden");
                                        		 else
                                                            ItemSet.setAttribute("className","subMenuInnerHidden");

                                              break;
                                    	   }


                          }

                };

                
               var searchItems = {

                           onEnter: function(source, e){

                                            var characterCode;
                                            var searchParam = document.getElementById('searchBox').value;

                                            if(e && e.which){ //if which property of event object is supported (NN4)
                                            e = e
                                            characterCode = e.which //character code is contained in NN4's which property
                                            }
                                            else{
                                            e = event
                                            characterCode = e.keyCode //character code is contained in IE's keyCode property
                                            };



                                             if(characterCode==13)
                                                   window.location=source+"/searchResult--"+searchParam;

                           },
                          init: function(source){
                          
                                 var searchParam = document.getElementById('searchBox').value;
                                 window.location=source+"/searchResult--"+searchParam;
                          }


               }
