document.observe("dom:loaded", function(){
	/*
    if ($('specialoffer')) {
    $('specialoffer').show();
    jQuery('#specialoffer').cycle({ 
	    fx:     'fade', 
	    speed:  'slow', 
	    timeout: 3000, 
	    next:   '#specialoffernext', 
	    prev:   '#specialofferprev' 
    });
    };

    if ($('randomtextFare')) {
    $('randomtextFare').show();
    jQuery('#randomtextFare').cycle({ 
        fx:     'turnDown', 
        speed:  'slow', 
        timeout: 3200, 
        next:   '#randomtextFareNext', 
        prev:   '#randomtextFarePrev' 
    });
    };
    if ($('randomtextProduct')) {
    $('randomtextProduct').show();
    jQuery('#randomtextProduct').cycle({ 
        fx:     'turnUp', 
        speed:  'slow', 
        timeout: 3200, 
        next:   '#randomtextProductNext', 
        prev:   '#randomtextProductPrev' 
    });
    };
    */
    /*
    if ($('supriseFares')) {
    $('supriseFares').show();
    jQuery('#supriseFares').cycle({ 
        fx:     'fade', 
        speed:  'slow', 
        timeout: 3200, 
        next:   '#supriseFaresNext', 
        prev:   '#supriseFaresPrev' 
    });
    };
    */
    var elements = $$("div").reject(function(el){ return el.className.indexOf("cycle_") != 0 });
    // bind ke listener
    elements.each(function(el){
        cn = el.className;
        cn = cn.split('_');
        n = '#' + el.className + 'Next';
        p = '#' + el.className + 'Prev';
        el.show();
        jQuery(el).cycle({ fx: cn[1], speed: cn[2], timeout: cn[3], next: n, prev: p });
    });
    
});