        function doEmail() {
            /*<![CDATA[*/

            /***********************************************
             * Encrypt Email script- Please keep notice intact
             * Tool URL: http://www.dynamicdrive.com/emailriddler/
             * *********************************************
            <!-- Encrypted version of: info [at] *******.*** //-->*/

            var emailriddlerarray=[105,110,102,111,64,97,108,45,109,101,100,97,46,99,111,109]
            var encryptedemail_id82='' //variable to contain encrypted email
            for (var i=0; i<emailriddlerarray.length; i++) {
                encryptedemail_id82+=String.fromCharCode(emailriddlerarray[i])
            }

            window.open('mailto:'+encryptedemail_id82+'?subject=Inquiry from Al-Meda website');

            /*]]>*/
        }

        // PageLoad function
        // This function is called:
        // 1. after calling $.historyInit();
        // 2. after calling $.historyLoad();
        // 3. after pushing "Go Back" button of a browser
        function pageload(hash) {
            // hash doesn't contain the first # character.
            if(hash) {
                cur_hash = hash;
            } else {
                // start page
                cur_hash = 'main';
            }
            // restore ajax loaded state
            $("#Post-body").load(cur_hash + ".php?noheader=true&" +
                window.location.search.substring(1) +
                window.location.search.substring(2),
            null, contentLoaded);
        }

        $(document).ready(function(){
            // Initialize history plugin.
            // The callback is called at once by present location.hash.
            $.historyInit(pageload);
            // set onlick event for buttons
            $("a[rel='history']").click(linkClick);
        });

        var cur_hash;

        function linkClick() {
            cur_hash = this.href;
            cur_hash = cur_hash.replace(/^.*#/, '');
            // moves to a new page.
            // pageload is called at once.
            $.historyLoad(cur_hash);
            return false;
        }

        function contentLoaded() {
            // for each page, make any links that go to that page
            // use the hash-mark href instead and have rel='history'
            // so that they use the jquery history plugin to process
            // and load their content through ajax instead of a link
            $.each(pages, function(i, val) {
                $('a[href*=' + val['hash'] + '.php]')
                .attr('rel', 'history')
                .attr('href', '#' + val['hash'])
                .click(linkClick);
            });

            if(cur_hash) {
                cur_hash = cur_hash.replace(/^.*#/, '');
                $("a[rel='history']").removeClass('active');
                $('#l_' + cur_hash).addClass('active');
            }
        }
