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

jQuery.noConflict();
jQuery.fn.cycle.defaults.timeout = 6000;
jQuery(document).ready(function () {
    var imgArr  = new Array();
     jQuery('#s3 img').each( function (i,el){
            imgArr[i]   = el;
     });
     
    jQuery('#s3').html('');
    for(i=0;i<imgArr.length;i++){
        jQuery('#s3').append(imgArr[i]);
    }
    jQuery('#s3').cycle({
        fx:    'fade',
        sync:   0,
        delay: -1000
    });


     jQuery('img').each(function(i,el){
        var req_url    = jQuery(el).attr('src');
        if(req_url=='See_Benefits_Button.jpg' || req_url=='Select_Flights_Button.jpg'){
            var parentEl    = jQuery(el).parent();
            jQuery(parentEl).click(
                function(ev){
                    ev.preventDefault();
                    popit(jQuery(parentEl).attr('href'));
                }
            );
            //url = jQuery(parentEl).attr('href');
        }
    })

});

function hello(e){
    alert('s');
    alert(e);
}
function popit(url) {
 newwindow=window.open(url,'name','height=480,width=570');
 if (window.focus) {newwindow.focus()}
 return false;
}
document.write("<style>.pics{width:423px; height:192px; overflow:hidden;}</style>");