// $Id$
(function() {
    var url = typeof squawk_url == 'string' ? squawk_url : window.location.href;
    msg = "<iframe src='http://dev.flightaware.com/squawks/squawkbox_embedded.rvt?url=" + encodeURIComponent(url) 
    msg += typeof squawk_title != 'string' ? '' : "&title=" + encodeURIComponent(squawk_title) 
    msg += typeof squawk_category != 'string' ? '' : "&category=" + encodeURIComponent(squawk_category)
    msg += typeof squawk_description != 'string' ? "" : '&description=' + encodeURIComponent(squawk_description)
    msg += "' height=60 width=60 frameborder='0' scrolling='no'></iframe>"
    document.write(msg);
})()
