﻿
jQuery(function($) {
    var $ticker = $('.ticker');
    //setup the gross marquee (options are managed on the tage)
    if ($ticker.length != 0)
        $ticker.find('div').marquee();
    
    $('select.links').change(function(e){
       if (this && makePopup) {
           //call the makePopup function and set it's *this* reference to the link
           this.href = $(this).attr('value');
           makePopup.call(this, e);
       }
    });
    
    // popup links in body of iCustomer articles
    $('.basic .externalContent a').click(function(e) {
        // if this is already a javascript link, then leave it alone
        if (this.href.indexOf('javascript') >= 0) return;

        e.preventDefault(); //don't follow the link
        
        makePopup.call(this, e);
    });
});