/**
 * Created by JetBrains PhpStorm.
 * User: clark
 * Date: 11-09-24
 * Time: 4:28 PM
 * To change this template use File | Settings | File Templates.
 */



jQuery(document).ready(function() {

    jQuery('li.page-item-30 > a').attr("href", "#");
    jQuery('.page-item-30 > a').click(function() {
        jQuery.blockUI({
        message: '<h1><img style="vertical-align: bottom; padding-right: 10px;" src="/wp-content/themes/Architect/images/ajax-loader.gif" />Loading Our Listings</h1>',
        showOverlay: false,
        css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            'border-radius': '10px',
            opacity: .7,
            color: '#fff'
        } });

        setTimeout(function() {
            jQuery.unblockUI({
                onUnblock: function(){ window.location = "http://www.searchcalgarylistings.ca/results.aspx?UserID=all"; }
            });
        }, 2000);
    });

    jQuery('li.page-item-134 > a').attr("href", "#");
    jQuery('.page-item-134 > a').click(function() {
        jQuery.blockUI({
        message: '<h1><img style="vertical-align: bottom; padding-right: 10px;" src="/wp-content/themes/Architect/images/ajax-loader.gif" />Loading Our Listings</h1>',
        showOverlay: false,
        css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            'border-radius': '10px',
            opacity: .7,
            color: '#fff'
        } });

        setTimeout(function() {
            jQuery.unblockUI({
                onUnblock: function(){ window.location = "http://www.searchcalgarylistings.ca/results.aspx?UserID=all"; }
            });
        }, 2000);
    });

    jQuery('li.page-item-131 > a').attr("href", "#");
    jQuery('.page-item-131 > a').click(function() {
        jQuery.blockUI({
        message: '<h1><img style="vertical-align: bottom; padding-right: 10px;" src="/wp-content/themes/Architect/images/ajax-loader.gif" />Loading Search</h1>',
        showOverlay: false,
        css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            'border-radius': '10px',
            opacity: .7,
            color: '#fff'
        } });

        setTimeout(function() {
            jQuery.unblockUI({
                onUnblock: function(){ window.location = "http://www.searchcalgarylistings.ca/results.aspx?guide=_Calgary&andlocs=1&sort=popularity"; }
            });
        }, 2000);
    });

    jQuery('li.searchTab > a').attr("href", "#");
    jQuery('.searchTab > a').click(function() {
        jQuery.blockUI({
        message: '<h1><img style="vertical-align: bottom; padding-right: 10px;" src="/wp-content/themes/Architect/images/ajax-loader.gif" />Loading Search</h1>',
        showOverlay: false,
        css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            'border-radius': '10px',
            opacity: .7,
            color: '#fff'
        } });

        setTimeout(function() {
            jQuery.unblockUI({
                onUnblock: function(){ window.location = "http://www.searchcalgarylistings.ca/results.aspx?guide=_Calgary&andlocs=1&sort=popularity"; }
            });
        }, 2000);
    });

});



