



var tuijs = (function(parent, $, window, document, undefined){

    parent.showHideFlash = function(path){
        var $flash = $('#' + path);
        $flash.hide();
        var id = $flash.parents('div.tuislider').attr('id');
        $('#paging li a').click(function(){
            var link = $(this).attr('href').substring(1);
            if (link === id) {
                $flash.hide().delay(500).show();
            }
            else {
                $flash.show().delay(500).hide();
            }
        });
    }
    
    parent.reutersSlideShow = function(path){
        /* Example from C4 site js
         var m = { xml_url: url },
         o = { salign: "top", allowFullScreen: "false", bgcolor: "#FFFFFF", allowScriptAccess: "always", wmode: "opaque" },
         n = { id: "homepage-flash" };
         swfobject.embedSWF("/static/swf/homeflash.swf", "homepage-flash-container", 646, 327, "9.0.115", "/static/swf/expressInstall.swf", m, o, n);
         */
        swfobject.embedSWF(path, "flashdemo", "640", "360", "8.0.0", "/video/expressInstall.swf");
    }
    
    
    return parent
    
})(tuijs || {}, jQuery, this, this.document);







