﻿

function onAfter() {
    var txt = $('.cap', this).html();  //"<div style='width: 440px; float: left;'><p><span style='font-size: 120%;'>12345 Nice Property Lane</span><br />Springfield, MO 65810<br /><span style='font-size: 80%; color: #999999;'>Presented by:</span> Jeff Frye</p></div><div style='width: 220px; float: left;'><p><span style='font-size: 120%;'>$148,000</span><br />3 Beds, 2 Baths<br />2400 Sq Ft, 2 Garage</p></div>";
    var bcolor = $('.opt', this).css('backgroundColor');
    var fcolor = $('.opt', this).css('color');
    $('#caption').slideUp('slow', function () {
        $('#caption').html(txt).css({ 'background-color': bcolor, 'color': fcolor });
        $('#caption').slideDown('slow', function () {

        });
    });
};
$(document).ready(function () {
    $('#ss').mouseenter(function () {
        $('#imgnav').show('fast');
    }).mouseleave(function () {
        $('#imgnav').hide('fast');
    });
    $('#homeSlider').cycle({
        timeout: 8000,  // milliseconds between slide transitions (0 to disable auto advance) 
        speed: 600,  // speed of the transition (any valid fx speed value) 
        next: '#next',  // id of element to use as click trigger for next slide 
        prev: '#prev',  // id of element to use as click trigger for previous slide 
        before: null,  // transition callback (scope set to element to be shown) 
        after: onAfter,  // transition callback (scope set to element that was shown) 
        height: 'auto', // container height 
        sync: 1,     // true if in/out transitions should occur simultaneously 
        fit: 0,     // force slides to fit container 
        pause: 1,     // true to enable "pause on hover" 
        delay: -2000,     // additional delay (in ms) for first transition (hint: can be negative) 
        slideExpr: null   // expression for selecting slides (if something other than all children is required) 
    });
    $('#test').cycle({
        timeout: 10000,  // milliseconds between slide transitions (0 to disable auto advance) 
        speed: 600,  // speed of the transition (any valid fx speed value) 
        before: null,  // transition callback (scope set to element to be shown) 
        after: null,  // transition callback (scope set to element that was shown) 
        height: 'auto', // container height 
        sync: 1,     // true if in/out transitions should occur simultaneously 
        fit: 0,     // force slides to fit container 
        pause: 1,     // true to enable "pause on hover" 
        delay: -2000,     // additional delay (in ms) for first transition (hint: can be negative) 
        slideExpr: null   // expression for selecting slides (if something other than all children is required) 
    });

});
    
