/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

  var highlightLink = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                try{
                    if(document.getElementById('Brides')!=null)
                        document.getElementById('Brides').style.backgroundColor = '';
                 }catch(err){

                }try{
                    if(document.getElementById('Grooms')!=null)
                        document.getElementById('Grooms').style.backgroundColor = '';
                   }catch(err){
               //==================================================================
                }try{
                    if(document.getElementById('AllGroupM')!=null)
                        document.getElementById('AllGroupM').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupA')!=null)
                        document.getElementById('AllGroupA').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupFS')!=null)
                        document.getElementById('AllGroupFS').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupJ')!=null)
                        document.getElementById('AllGroupJ').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupP')!=null)
                        document.getElementById('AllGroupP').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupRE')!=null)
                        document.getElementById('AllGroupRE').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupR')!=null)
                        document.getElementById('AllGroupR').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupS')!=null)
                        document.getElementById('AllGroupS').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupW')!=null)
                        document.getElementById('AllGroupW').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                try{
                    if(document.getElementById('Women looking for Men')!=null)
                        document.getElementById('Women looking for Men').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Women looking for Women')!=null)
                        document.getElementById('Women looking for Women').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Men looking for Women')!=null)
                        document.getElementById('Men looking for Women').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Men looking for Men')!=null)
                        document.getElementById('Men looking for Men').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Friendship')!=null)
                        document.getElementById('Friendship').style.backgroundColor = '';
                }catch(err){

                }
                //===========================================================================
                try{
                    if(document.getElementById('Animals')!=null)
                        document.getElementById('Animals').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Art - Collectibles')!=null)
                        document.getElementById('Art - Collectibles').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Books - Magazines')!=null)
                        document.getElementById('Books - Magazines').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Cameras')!=null)
                        document.getElementById('Cameras').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('CDs Records')!=null)
                        document.getElementById('CDs Records').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Cell Phones')!=null)
                        document.getElementById('Cell Phones').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Clothing')!=null)
                        document.getElementById('Clothing').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Computer-Software')!=null)
                        document.getElementById('Computer-Software').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Computer-Hardware')!=null)
                        document.getElementById('Computer-Hardware').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('DVD')!=null)
                        document.getElementById('DVD').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Home - Garden')!=null)
                        document.getElementById('Home - Garden').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Jewelry - Watches')!=null)
                        document.getElementById('Jewelry - Watches').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Musical Instruments')!=null)
                        document.getElementById('Musical Instruments').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Tickets')!=null)
                        document.getElementById('Tickets').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Others')!=null)
                        document.getElementById('Others').style.backgroundColor = '';
                }catch(err){

                }
                //==============================================================================
                try{
                    if(document.getElementById('Apartments/Houses for Rent')!=null)
                        document.getElementById('Apartments/Houses for Rent').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Apartments/Houses for Sale')!=null)
                        document.getElementById('Apartments/Houses for Sale').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Commercial/Office Space for Rent')!=null)
                        document.getElementById('Commercial/Office Space for Rent').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Commercial/Office Space for Sale')!=null)
                        document.getElementById('Commercial/Office Space for Sale').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Land/Empty Space/Plot')!=null)
                        document.getElementById('Land/Empty Space/Plot').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Rooms for Rent - Shared')!=null)
                        document.getElementById('Rooms for Rent - Shared').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Vacation Rentals')!=null)
                        document.getElementById('Vacation Rentals').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Others')!=null)
                        document.getElementById('Others').style.backgroundColor = '';
                }catch(err){

                }
                //==============================================================================
                try{
                    if(document.getElementById('Bikes')!=null)
                        document.getElementById('Bikes').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Cars')!=null)
                        document.getElementById('Cars').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Motorcycles')!=null)
                        document.getElementById('Motorcycles').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Other')!=null)
                        document.getElementById('Other').style.backgroundColor = '';
                }catch(err){

                }

                //==============================================================================
                try{
                    if(document.getElementById('Babysitter')!=null)
                        document.getElementById('Babysitter').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Beauty')!=null)
                        document.getElementById('Beauty').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Computer')!=null)
                        document.getElementById('Computer').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Event')!=null)
                        document.getElementById('Event').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Fitness')!=null)
                        document.getElementById('Fitness').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Health')!=null)
                        document.getElementById('Health').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Moving')!=null)
                        document.getElementById('Moving').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Repair')!=null)
                        document.getElementById('Repair').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Other')!=null)
                        document.getElementById('Other').style.backgroundColor = '';
                }catch(err){

                }

                //==============================================================================
                try{
                    if(document.getElementById('Resume Writing')!=null)
                        document.getElementById('Resume Writing').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Resume upload')!=null)
                        document.getElementById('Resume upload').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Wishlist')!=null)
                        document.getElementById('Wishlist').style.backgroundColor = '';
                }catch(err){

                }
                //==============================================================================
                element.style.backgroundColor = colour;
                active = element;

          //for loading panel
               //var loadingPanel = new yuiLoadingPanel();

                //loadingPanel.show();
                //loadingPanel.show("Processing...");
                //loadingPanel.hide();

            }
        };
    }();

    var highlightLink1 = function () {

        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {

                if (active)active.style.backgroundColor = '';
               //==================================================================
               try{
                    if(document.getElementById('AllGroupM1')!=null)
                        document.getElementById('AllGroupM1').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupJ1')!=null)
                        document.getElementById('AllGroupJ1').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
               try{
                    if(document.getElementById('Accounting Jobs')!=null)
                        document.getElementById('Accounting Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Advertising Jobs')!=null)
                        document.getElementById('Advertising Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Arts Jobs')!=null)
                        document.getElementById('Arts Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Administrative Jobs')!=null)
                        document.getElementById('Administrative Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Customer Service Jobs')!=null)
                        document.getElementById('Customer Service Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Computer Jobs')!=null)
                        document.getElementById('Computer Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Education Jobs')!=null)
                        document.getElementById('Education Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Engineering Jobs')!=null)
                        document.getElementById('Engineering Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Finance Jobs')!=null)
                        document.getElementById('Finance Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Healthcare Jobs')!=null)
                        document.getElementById('Healthcare Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Human Resource Jobs')!=null)
                        document.getElementById('Human Resource Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Legal Jobs')!=null)
                        document.getElementById('Legal Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Manual Labor Jobs')!=null)
                        document.getElementById('Manual Labor Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Marketing Jobs')!=null)
                        document.getElementById('Marketing Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Non-Profit Jobs')!=null)
                        document.getElementById('Non-Profit Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Real Estate Jobs')!=null)
                        document.getElementById('Real Estate Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Restaurant Jobs')!=null)
                        document.getElementById('Restaurant Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Retail Jobs')!=null)
                        document.getElementById('Retail Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Technology Jobs')!=null)
                        document.getElementById('Technology Jobs').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('Other')!=null)
                        document.getElementById('Other').style.backgroundColor = '';
                }catch(err){

                }
                //==============================================================================

                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink2 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
               try{
                    if(document.getElementById('AllGroupA2')!=null)
                        document.getElementById('AllGroupA2').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupJ2')!=null)
                        document.getElementById('AllGroupJ2').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupP2')!=null)
                        document.getElementById('AllGroupP2').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupRE2')!=null)
                        document.getElementById('AllGroupRE2').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink3 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
                try{
                    if(document.getElementById('AllGroupM3')!=null)
                        document.getElementById('AllGroupM3').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupJ3')!=null)
                        document.getElementById('AllGroupJ3').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupP3')!=null)
                        document.getElementById('AllGroupP3').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupRE3')!=null)
                        document.getElementById('AllGroupRE3').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink4 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
                try{
                    if(document.getElementById('AllGroupP4')!=null)
                        document.getElementById('AllGroupP4').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupRE4')!=null)
                        document.getElementById('AllGroupRE4').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink5 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
                try{
                    if(document.getElementById('AllGroupM5')!=null)
                        document.getElementById('AllGroupM5').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupJ5')!=null)
                        document.getElementById('AllGroupJ5').style.backgroundColor = '';
                }catch(err){

                }try{
                    if(document.getElementById('AllGroupP5')!=null)
                        document.getElementById('AllGroupP5').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink6 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
                try{
                    if(document.getElementById('AllGroupP6')!=null)
                        document.getElementById('AllGroupP6').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink7 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
                try{
                    if(document.getElementById('AllGroupP7')!=null)
                        document.getElementById('AllGroupP7').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();

    var highlightLink8 = function () {
        var active = null, colour = '#E6E6FA';
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = '';

                //==================================================================
                try{
                    if(document.getElementById('AllGroupP8')!=null)
                        document.getElementById('AllGroupP8').style.backgroundColor = '';
                }catch(err){

                }
               //==================================================================
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();





