var arrPageButtonIDs = ["#menubuttonp1_l1","#menubuttonp2_l1","#menubuttonp3_l1","#menubuttonp4_l1","#menubuttonp5_l1","#menubuttonp7_l1","#menubuttonp8_l1"]; var arrPages = [{"id":"1","file":"index.php","title":"Home","keywords":"AAFAB","changedate":"2013-08-15 15:16:39","languagenumber":"1"},{"id":"2","file":"overAafab.php","title":"Over Aafab","keywords":"AAFAB","changedate":"2014-09-04 07:50:54","languagenumber":"1"},{"id":"3","file":"deBlokfluit.php","title":"De Blokfluit","keywords":"AAFAB, blokfluit","changedate":"2016-08-10 16:43:45","languagenumber":"1"},{"id":"4","file":"winkelen.php","title":"Webshop","keywords":"AAFAB, winkelen, webshop","changedate":"2015-08-12 09:04:27","languagenumber":"1"},{"id":"5","file":"onderhoud.php","title":"Onderhoud","keywords":"AAFAB, onderhoud","changedate":"2016-06-29 18:33:55","languagenumber":"1"},{"id":"7","file":"contact.php","title":"Contact","keywords":"AAFAB, Contact","changedate":"2017-03-07 11:50:27","languagenumber":"1"},{"id":"8","file":"links.php","title":"De Blokfluitist","keywords":"hyperlinks","changedate":"2017-04-03 17:39:35","languagenumber":"1"}]; var arrSubpages = [{"id":"15","languagenumber":"1","tite":"Geschiedenis van de Blokfluit","text":"","pagenumber":"3","sequencenumber":"1"},{"id":"14","languagenumber":"1","tite":"Houtsoorten","text":"","pagenumber":"3","sequencenumber":"3"},{"id":"9","languagenumber":"1","tite":"Over Aafab","text":"","pagenumber":"2","sequencenumber":"0"},{"id":"16","languagenumber":"1","tite":"Het maken van een studie-blokfluit","text":"","pagenumber":"3","sequencenumber":"3"},{"id":"20","languagenumber":"1","tite":"Prijslijsten","text":"","pagenumber":"4","sequencenumber":"0"},{"id":"21","languagenumber":"1","tite":"Verzendkosten en voorwaarden","text":"","pagenumber":"4","sequencenumber":"0"},{"id":"10","languagenumber":"1","tite":"Onderhoud","text":"","pagenumber":"5","sequencenumber":"1"},{"id":"11","languagenumber":"1","tite":"Contact","text":"","pagenumber":"7","sequencenumber":"0"},{"id":"13","languagenumber":"1","tite":"Garantie en Servicebeurt","text":"","pagenumber":"5","sequencenumber":"2"},{"id":"18","languagenumber":"1","tite":"Aafab in de media","text":"","pagenumber":"2","sequencenumber":"0"},{"id":"19","languagenumber":"1","tite":"Grepentabel","text":"","pagenumber":"5","sequencenumber":"5"}]; function initMouseOverMenus( ) { for( var i = 0; i < arrPageButtonIDs.length; ++i ) { var page = arrPages[i]; var bttnId = arrPageButtonIDs[i]; $(bttnId).data( "submenu", "#submenuForPage"+page.id ) .mouseover( function() { $($(this).data("submenu")).css( { "top": $(this).position().top + $(this).height() } ); $($(this).data("submenu")).css({"visibility":"visible"}); } ) .mouseout( function() { $($(this).data("submenu")).css({"visibility":"hidden"}); } ); } }