/* Popular phrases - DIRECTTVS - 11:33:3, Thu Feb 9, 2012 */
__SLI_ClientDefaults =
[
    ['ShowBrandingFooter', false ],

];
var asPhrases=new Array ('3d tv','led tv','samsung ue40d5520','internet tv','50 inch tv','panasonic','sony 40','samsung','tl868b','toshiba','tv stands','samsung ue40d8000','3d glasses','freeview hd recorder','philips 3d','kdl40ex723','42gt30','3d tv bundles','d8000','sound bar','d6530','3d led tv','kdl32cx52','ue40d','3d','tx-p50st30b','samsung 3d','32 inch lcd','samsung ue40d6530','samsung 40 inch tv','32 led tv','ue40d500','sony tv','sub461','sony','ue22d500','6530','ue46d7000','samsung led','hdmi cable','50 3d tv','txp50c3b','samsung 59','txp42gt30','42 tv','led','32 tv','ue37d6530wkxx','tx-p50ut3','txp46gt30','hd recorders','32 inch tv','sony 46','46gt30','smts7800','gecko','philips','kdl40ex723b','led 3d','internet','stands','samsung d8000','ex723','19 tv','ue40d8000','ue-40d8000yuxxu','kdl46nx723','lg bd670','lg 3d','sony led','lg','passive 3d','freesat recorder','tx p42u30b','50 inch plasma tv','40','42lv3','panasonic 46','ue40d5520','40 inch tv','txl42e3b','ue46d6','26 inch led','lc40le831','42-pw450t','42 inch 3d tv','ue46d6530','lw550t','tx-p50gt30b','media streamer','vt30','samsung tv','46 led tv','lg 42','42 inch tv','46tl868','samsung ps51d450','ue40d6530','40d8000','freesat','sony 3d','led 32','d7000','tx-p42gt30b','samsung ue37d6100','ue37d','txp42st30','lg 42lv355t','gt30b','home cinema system','samsung ue40d6100','monitor','ps51d450','panasonic tx-p42g30','32lv35','ue-55d7000luxxu','32','ue40d6100','ue32d6530','samsung 51','ue32d6100skxxu','samsung ue40d5003','recorders','samsung ue46d6530','panasonic 50','samsung d7000','samsung led 46','freesat box','plasma tv','ue46d8000','lg 50 inch','46 inch led tv','dmr','d6100','32in tv','bd670','40 led tv','50gt30','8000','gt30','pvr','tx-p50vt30b','42pw45','txp50gt30','kdl65hx92','32bv701','ue60d8000','samsung ue55d6530','50 tv','42vt30','5520','p42st30b','toshiba glasses','ue46d700','humax','ue40d5003','ipod','ue55d7000','samsung 7000','samsung ue40','panasonic 50 plasma','42-yl863b','samsung freesat','32 lcd','lw550','samsung ue32d6100','kdl46ex723','ue37d6100','samsung ue40d6510w led 3d tv 40','toshiba 3d','ue-32d6530wkxxu','kdl-40ex723bu','elcd32tsehd','skype','lcd','samsung bdd8200','200hz','panasonic 42gt30','42 inch 3d','hx923','42g30','lw450','samsung 6530','ue-37d6100skxxu','kdl-32ex523bu','tx-p50ut30','panasonic tx-p46st30b','el402b','samsung le40','dvd recorders','ue40d5520r','47pfl7666','lg 42pw450t','tx-l32c4','ps3','kdl40ex52','kdl40ex523','brackets','panasonic tx-l32','kdl-40hx723bu','60','sc-bft800','ue37d6530wk','samsung 5520','ue40d5','ue46d8000yu','dvd player','panasonic tx-p50st30b','sony 40ex723','tx p50ut30b','bluray player 3d','sharp lc40le831e','ue46d7000lu','37d6100skxxu','lg 42 led','lg st600 smart tv upgrader','le19d450g1wxx','fptag02g','plasma','3d blu ray','samsung ue55d7000luxxu','le-2201fhdvd','dmr-hw100eb','50','samsung ue32d5000','46 led','sony kdl-40hx723','ue46d5000pw','ue40d6100sk','blu ray player','32 inch','42 led tv','tx-p42g30b','kdl32ex523b','47lw45','42wl863b 42 inch internet 3d led tv','sound','samsung ue46d6530 46 inch 400hz 3d led tv','samsung blu ray player','sub401','panasonic txp42gt30','txp50g30','samsung ue46d8000','ue-37d6530wkxxu','46','42lw450u','22 lcd tv','emt-850cb-blk','42in','le32d','le831e','samsung ue40d6510 40','sony internet','cosmetic damage','ue32d6100','ps51','samsung 120w air-track soundbar','ue32d','toshiba 3d glasses','txp50vt30','55 inch led tv','ue19d400','42','pw450t','lg 32lv355t','sharp 3d','ue40d6530wkxx','60 inch 3d','bdv-l60','sony kdl46hx923','tv with built in dvd','ue46d8000yux','40 inch','ag-s25','samsung ue37','780','32 1080 led','lg cinema','ue-40d5520rkxxu','led 42','sony home cinema','100hz','ue-26d4003','hdmi','toshiba 3d led tv','panasonic tv','samsung ue46d7000','toshiba active 3d glasses','3d monitor','sony 40ex523','canon eos 5d mark ii','kdl22ex310','ue40','40ex','sony 32 led tv','42lw550t 42 inch cinema 3d led tv','bdx','lg blu ray','samsung 26 lcd','sender','tx-p46st30b','samsung 32','50 plasma','46 inch','evotel','pfl7666t','le26d450g1w','foxsat','32-bv701b','toshiba bdx3200kb 3d blu-ray dvd player','tx-p46st3','ue32d5000pw','samsung le19 d450','anc1100 3-gr','60 inch tv','450u','panasonic tx-l42e3b','ue37','32 inch 1080p tv','p42vt30','panasonic 50 inch','32el833','100hz led tv','bdps380','cb970 3-blk','6510','46st30','lc-46le831e','kdl22ex320','freeview hd tv','panasonic led tv','alphason','kdl40hx723','samsung le32d550','lg 3d led tv','samsung 46','white','samsung ue32','lg tv','samsung ue32d6530','toshiba tv','ue37d5520rkxx','wmn2000a','samsung 40 inch led','wmn-2000c','toshiba lcd','tl868','freeview recorder','wall mounts','bundles','projector','50 inch 3d','toshiba 46','wmn2000','tx-p','hd pvr','samsung wall bracket','p42st','kdl46hx','kdl22ex31','ps51d8000','le-32d580k2kxxu','samsung ue40d5520r','47-pfl7666t','22 tv','37 inch','le-22d450g1wxxu','digihome','le32d40','tx-p42g3','hwd350','toshiba dongle','toshiba 22','46 tv','pfl9664h','cy-swr1','lg 32lv355','ptv-u1000-100uks','19d450g1wxxu','panasonic txl24c3','40bv801','32 inch freeview led tv','868','42-pt353k','nx723','sub46','22 inch','humax recorder','white samsung tv','40 tv','kdl40','panasonic tx-p50g30','sony kdl46nx','42 3d','lg smart tv','bdd6900m','paws411 bk','32 inch led 3d tv','lg 47lw450','el800b','3d player','42rl853b','ue37d5520','40 inch led tvs','kdl55ex72','hannspree','pdl7906t','32 lcd tv','toshiba 3d blu-ray player','st30b','waterproof','ue22d50','a-1','lc-19le510k','le40d550k1wxx','sub-461su','bd-d6900','optical cable','samsung 46d','cinema','bowers and wilkins','9724 eo','toshiba 40','le-32d400','ue40d5000','txp46st30','bdx-1200kb','47-lw450u','sony 40 inch','samsung 40 led','toshiba bdx3200kb','tx-l42e','glasses','bdx3200kb','ue40d6100skx','passive 3d tv','radio','22 inch led','sony kdl-40ex523','46d8000yuxxu','el400b','humax fox','bun tx-p42gt30b 6789','sl863b','46-tl868b','p42gt30','55d7000','sony 22 inch tv','ue55d6530wkx','led tv wall bracket','ue40d6510','panasonic 3d tv','an-wf10','3d internet led tv','lg lv550t','grade','lc-40le831e','le-32d450g1wxxu','ue46d7000lux','sony smp-n200','sony uwa-br100','bdvl600','panasonic st30b','lg 42pw450t 42 inch 3d plasma tv','lg 32 tv','optimum','sony bdvl600 2.1','western digital','ref800','ue19d4000nwxx','toshiba 32 led','panasonic tx-p50','65hx923','1080p','ue32d5000','full hd','hm-ta2eb','lg 2.1ch 3d blu-ray home cinema','51 tv','ue32d6530wkxx','sony kdl32cx520bu','toshiba 46tl868b','40d7000','toshiba 46wl863b','40d6510','46hx923','tx-p50','65hx923bu','47lk530','d5003','ps-59d550c1kxxu','aql-s-52','sony kdl','panasonic txp50u30b','1080p 22','le40','ab-s123','46d5000','ab m222ts','sd card','hpc-0006','sony stand','p50gt30b','bdx-1250kb','portable dvd','bd-d550','55 led','st30','kdl-22ex310bu','toshiba 3d 40','20 inch','led 3d bundles','50vt30','tx-p46','samsung 55d7000','40-bv801b','usb record','6100','led 27','d450','400hz','50-pz950t','abrd800','txp46st','se32l','37 inch 3d tv','ue22d5000','37 3d','100hz led','installation','speakers','55-yl863b','dvd hd recorder','panasonic plasma tv','55 led 3d','55 3d','42in led','samsung 8000','d6510','46yl863','ps-59d6900dkxxu','lc40le831e 40 inch 3d quattron led tv','pz950','dmc s3eb-wa','kdl46nx','dmc s3eb-ka','kdl22','43','43d490a1wxxu','digihome 32','tx-l','panasonic gt30','humax foxsat','le22d450','txp50gt','lg home cinema','ex723bu','wireless tv sender','ue60d8000yu','p42gt30b','toshiba 3d tv','lg 42pt353','l37e30b','media player','panasonic plasma','42yl863','bun tx-p50st30b 6790','37e30','bdv','tx p42gt30b','panasonic 32','46gt30b','55 inch led 3d tv','bd-d820','bdx1250k','19','46ex723','txp42gt','lg plasma','alphason stand','ue32','46d7000','3d bundles','60 inch','ps59d550c1kx','freeview box','cabinet','lg 3d tv','el404b','slws-350 bk','plasma 42 tv','5','toshiba 32bv701b','ps43d490a1w','bd-660','ue40d6510wkxx','ps59d550','3d dvd player','60 in','oak','record tv','p50gt30','white 22 inch','40d65','27','toshiba 32sl863b','lg 47','tv soundbars','tv sender','ue60d6505vkxx','ereader','computer monitors','ps59d550c1k','sony e880','sony home theatre','toshiba fpt-ag02g active 3d glasses','55 led tv','3daccybund2ti','cash back','ta2','origin','teac sr100i','ue60d6505','dmp-bdt10','hx906pa','65','lg 37','philips 42pfl','samsung bundle','p50st30','lg 37 led','50st','toshiba fpt-ag02g','ue32d4000nwxx','lg hr600','tx-50gt30b','tx-l42','37d5000pwxxu','panasonic hdmi cable','htd4200','lg led 47','32 3d tv','panasonic sc-htb10 120w 2.1-channel home cinema speaker','lumix fs18','l19e3b','rg1000 3lo','sony bdv-l600','gecko reflect','32 inch 100hz','hdc-sd80','hdd recorders','samsung 46 led 3d','1080 led tv','19le510k','optimum edge','dmp-b200','lg 2.1ch 3d blu-ray home cinema system','cinema 3d tvs','lg 55 3d','grade a2','hdd tv recorder','mc-544bt','775','lg 32 led','cloudy with a chance of meatballs monster house open season 3d blu-ray triple pack','tv aerial','camcorder','sony cinema system','32ex523','sony blu ray','w550t','ipod docking station','toshiba 26dl833b','edg-e1150','dmw-phh13','samsung ue40d6510','40in 3d tv','le46d580','p46st30b','samsung ue60d8000','s30b','st30 46','wi','lg 19lv250u','lg ag s250','samsung plasma tvs','p50vt30b','lg 3d 47 led tv','lg bd660','samsung ue40d6100skxxu','sharp 3d glasses','panasonic sc-btt270ebk','32 led freeview hd','40in tv','kdl46','sony 32 tv','panasonic tx-l42e3b 42','hd camcorder','lg 60pz570t','optical','hx906p','sony tv ex723','p50gt','sony media','sony bdv','p42vt30b','lens','panasonic tx-l42e30','650','sony bdve380.cek','panasonic 42 tv','samsung 2.1ch blu-ray home theatre system','sony kdl-22ex320','samsung 19','l42e3b','20 tv','sony bdv e280','kitchen','46pfl860','samsung ue40d5520 40','lg 550','aerial','vt30b','vesa','av sender','p50st30b','sc-btt','txp46gt','ue60d6505vk','e30','panasonic bundles','l24','samsung 60','d800','red','wlan tv','sony sr750h','samsung ps51d8000 51 full hd plasma 3d tv','s380','sony kdl46hx923b','ht-is100','lg led','ec-st30zzbp','cmt-cx5b','1080p plasma','7606','digital camera','samsung 37 ue37d6530','bd-d','panasonic 3d','panasonic dmp-bd75eb-k blu-ray player','sony kdl55','s780','46 d5000 led tv','sony lcd','ipod speakers','panasonic tx-p50c3b 50 inch freeview hd plasma tv','40 3d tv','2.1','l37dt30','panasonic 42 led','panasonic blu ray home cinema','samsung blu ray','40in led tv','panasonic sc-btt262 2.1ch 3d blu-ray home cinema','720p','sony kdl32ex523bu','mp4','hdc-hs900','ps43','samsung ue37d6100 37 inch 200hz 3d led tv','lg lv355u','sony 3d bluray','p46gt','schc05ebk','sony blu-ray','lc-40le511e','samsung black 2.1ch 3d blu-ray home theate system','lg ag-s250 3d active shutter glasses','tx-42','mbm1000','screen','samsung 19 inch','520','lg lcd','ex52','lg ht806th','samsung bd-d6900','panasonic blu ray recorder','panasonic 46 plasma','samsung tv 19','ex773','ue19','lg 32 inch tv','samsung white 2.1ch 3d blu-ray home theate system','3d internet tv','lg 32 inch lcd tv','pews320 bk','txp46g','scbft 800','lg glasses','samsung d6500','lg 42lw','lg 55 inch','panasonic tx-p42gt20','sony 923','42 led 3d','lg 37 inch','lg 37ld450','32 tv stand','panasonic tx-37e3b','panasonic hdc-tm900','samsung ue60d6505','lg 60pv250k 60 inch 600hz plasma tv','sony freeview hd','ucover','46hx','50c3','print email lg 47lw650t 47 full hd led 3d tv','lg bx580','lg 990','samsung 580','50vt','42vt','sony kdl-46hx823 46','p42gt20b','6500','sony hx923 tv','sony 5.1','tv pre delivery inspection','32ex','samsung 3d 55 led','sony 32in','samsung 550','le19d450','sony 3d led tvs','samsung cy-stc1100','lg d2342p-pn','5d','panasonic bluray player','slr','1920x1080','panasonic tx-p42s31b 42 plasma tv','l24e3b','l24c3b','tx 32u3b','samsung 3d dvd player','p50u30b','l42','tx p-55vt30','32 hd','tx p50gt30','sony kdl32ex523b 32 inch freeview hd edge led tv','sony kdl32 cx523 32','samsung bd-p4600','50in 3d','lg 3d player','sony bdp-s780','lg 47le5500','samsung 46 lcd','50pt','samsung recorder','smp','panasonic 46 3d tv','samsungle40c750','sony wireless','peerless bracket pawv150 bk','lg lv375t tv 42 inch','panasonic dmc ft2','lg 32lw450u 32in full hd led cinema 3d tv 400hz','lg 50 led','samsung 3d cinema','14','lg 19','samsung ue46d','lg22lv250u','samsung bluray','sony kdl46ex713u','sony white','sony strda5500es','sony kdl-46ex723 46 3d led tv','samsung 5200','59d6900','pawv150 bk','lg 37 le4900','sony 19 inch tv','samsung 5100','samsung 40 3d','samsung cy-smn1000dxxc led floor stand','samsung tv bracket','lg 37le4500','lg 42lx6900','panasonic 46gt30','sony kdl40z5500','40-wl768b','samsung ue40d5','samsung bd-c5900','sony bdps570b','sony camcorders','panasonic tx-l32x20b','pk102','lg 37lf66','lw5','panasonic 46 inch 3d freeview hd plasma tv tx-p46st30b','lg lh 7000','lv250','samsung ht-d5200','450','samsung 43 3d','821','samsung bd-c8200m','samsung bracket','ue32c5','sony kdl46ex503','lglx6900','samsung s7800','sony blu ray home cinema','lg 42lx6900 42 inch freeview hd led 3d tv','32 in','lg sl','samsung 3d 50 tv','37 6530','4gb','32ld','lumix zx3','lg 42 lx6900','lg full hd 32','samsung c530','sony 37 lcd','panasonic blu-ray','sony bdp s780','samsung bd-c5300 network ready blu-ray player','sony kdl22bx20d','32le','sony40','panasonic tx-p46s20','panasonic sc-btt775ebk 5.1ch blu-ray 3d theatre system','samsung bd-c6500','lg 42l','p42s10','590','32in white tv','sony kdl37ex401','530f','lg26','lg 32le','42 lw','3d system','46 nx713','sony kdl 46','6800','panasonic dmp-bd45','80','str','sony with freesat','sony kdl-40v5810','46vt20b','panasonic lumix tz8','samsung 530','samsung 3d lcd','lg 790','5810','6730','55 led tvs','32 tv blu-ray','samsung le55c650','samsung ue32c5100 32 inch led tv','lg 350','samsung 3d 50 inch','server','821e','lg ld950','700','42c450','samsung ue40c7000 40','sony 1080p','streaming','sony 100hz','46nx','philips bdp7500','lg rht497h digital tv recorder with 160gb hard disc drive dvd recorder','le22','st1000','lg pj350','panasonic tx-p46vt20','panasonic 37 white','lg 50in','panasonic hifi','sony kdl32ex403 32 inch freeview hd lcd tv','46c530','sony kdl 32ex301','sony kdl32ex','panasonic d28','sony kdl55ex503u','panasonic dmp-bd60eb-k','42 1080','samsung dvd','lg 3300','32 samsung 1080','sony ex 403','sony 46 503','sony z5500','samsung 100hz','sd700','9760','sony kdl32ex503 32','46c700','sony kdl 32ex403u','sony 52z5500','lg 42lh2000','sony lcd 55 inch','32 100 hz','panasonic sc-btt755ebk 3d home cinema system','sony bdv e670w','sharp 2.1','txp42v','samsung 3dtv','lg 32 le3300','samsung c5900','samsung 46 c8000','lg le5300 42','sony kdl 52hx903','l37d28b','lg 50px990 50 inch 3d plasma tv','3000','sharp lc46','s10','sony kdl-40we5','52z5500','tx-46','panasonic p50vt20','sony 903','lg 19le3300');
/* $Revision: 3828 $
 *
 */

if(typeof(_sli_init )!='object'){var _sli_init=new Array();}
if(typeof(sli_init )!='function'){function sli_init(){ for(var x=0;x<_sli_init.length;x++) _sli_init[x]();}}
if(typeof(asPhrases)!='object'){ var asPhrases = new Array(); }
if(typeof(__SLI_customisations)!='object'){var __SLI_customisations = new Object();}
if(typeof(__SLI_ClientDefaults)!='object'){ var __SLI_ClientDefaults=[]; }
if(typeof(__SLI_validSearchBoxes)!='object'){ var __SLI_validSearchBoxes = new Array(); }
if(typeof(__SLI_asug_used_flag)!='object'){ var __SLI_asug_used_flag = false; }
if(typeof(__SLI_width)!='object'){ var __SLI_width = 0; }
if(typeof(sli_targeturl)!='object'){ var sli_targeturl = ""; }


    __AutoComplete = new Object(); //namespace...
    __AutoComplete_mouseMoved=false;

    // Basic UA detection
    isIE = document.all ? true : false;
    isGecko = navigator.userAgent.toLowerCase().indexOf('gecko') != -1;
    isOpera = navigator.userAgent.toLowerCase().indexOf('opera') != -1;

    /* defaults and options */

    var __SLI_ApplicationName = 'AutoSuggest';
        __SLI_customisations[ 'AutoSuggest' ] =
                {
                    'ShowBrandingFooter' : true
                    ,
                    'TextBoxIDPrefix' : 'sli_search_'
                    ,
                    'BrandingFooterImagePath' : 'http://assets.resultspage.com/autosuggest/sli_systems-powered_150_15.gif'
                    ,
                    'BrandingFooterTitleTooltip' : 'AutoSuggest Powered by SLI Systems'
                    ,
                    'DropListMinWidth' : 150
                    ,
                    'MaxListItems' : 10
                    ,
                    'Alignment' : true
                    ,
                    'TextBoxIDCustom' : []
                    ,
                    'ValidSearchBoxes' : false 
                    ,
                    'IE6SelectBox' : false 
                    ,
                    'IE6SelectBoxPadding' : 0
                    ,
                    'TargetURL' : ''
                    ,
                    'IframeAlignment' : false
                    ,
                    'AlignmentBorderBug' : false
                    ,
                    'IE6OnFocus' : false
                };
    /* 0 = keyname, 1 = value */
    for( defaultValuePair in __SLI_ClientDefaults )
    {
        __SLI_customisations[__SLI_ApplicationName][__SLI_ClientDefaults[defaultValuePair][0]]=__SLI_ClientDefaults[defaultValuePair][1];
    }

    /* pre-fetch branding footer image if being used...
     */
    if( __SLI_customisations[ __SLI_ApplicationName ][ 'ShowBrandingFooter' ] )
    {
        
        if(location.protocol == "https:")
        {
            __SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterImagePath' ] = __SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterImagePath' ].replace(/http:/i, 'https:');
        }
    
        var __AutoCompleteBranding = new Image();
        __AutoCompleteBranding.src=__SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterImagePath' ];
    }


    function AutoComplete_init()
    {
        if(!isOpera)
        {
            var oldonresize=function(){};
            if(typeof(window.onresize)=='function')
                oldonresize = window.onresize;//play nicely with other people's toys
            window.onresize= function(){ oldonresize(); AutoComplete_HideAll(); AutoComplete_Create( asPhrases ); }

            AutoComplete_Create( asPhrases );
            
            var els = document.getElementsByTagName('input');
            if(els)
            {
               for ( i = 0; i < els.length; i++ )
               {
                  if(els[i].name == "asug")
                  {
                     els[i].disabled = true;
                  }
               }
            }
        }
    }




    /**
    * Attachs the autocomplete object to a form element. Sets
    * onkeypress event on the form element.
    *
    * @param string formElement Name of form element to attach to
    * @param array  data        Array of strings of which to use as the autocomplete data
    */
    //function AutoComplete_Create (id, data)
    /*
     * iterate over 'sli_search_*' assumes one or more search boxes numbered from 1...
    */
    function AutoComplete_Create( data )
    {
        var idx=1, e, id, searchBoxPrefix=__SLI_customisations[ __SLI_ApplicationName ][ 'TextBoxIDPrefix' ];
        while( e = document.getElementById(searchBoxPrefix+idx) )
        {
            AutoComplete_AttachHandlers(e, data);
            if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
            {
                __SLI_validSearchBoxes.push(searchBoxPrefix+idx);
            }
            idx++;
        }
        
        
        //this array comes from the customised list
        var otherTextBoxIdList = __SLI_customisations[ __SLI_ApplicationName ][ 'TextBoxIDCustom' ];
        if( otherTextBoxIdList)
        {
            for(idx=0;idx<otherTextBoxIdList.length;idx++)
            {
                e = document.getElementById(otherTextBoxIdList[idx]);
                if(e)
				{
					if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
                	{
	                    __SLI_validSearchBoxes.push( otherTextBoxIdList[idx] );
                	}
					AutoComplete_AttachHandlers(e, data);
				}
            }
        }
        
    } 

    function AutoComplete_AttachHandlers(e, data){
        var iframe,id;
        id=e.id;


        __AutoComplete[id] = {'data':data,
                              'isVisible':false,
                              'element':document.getElementById(id),
                              'dropdown':null,
                              'highlighted':null};

        __AutoComplete[id]['element'].setAttribute('autocomplete', 'off');
        __AutoComplete[id]['element'].onkeydown = function(e) {if (!e) e = window.event; return AutoComplete_KeyDown(this.getAttribute('id'), e);}
        __AutoComplete[id]['element'].onkeyup = function(e) {if (!e) e = window.event; return AutoComplete_KeyUp(this.getAttribute('id'), e);}
        // The function call on the next line was changed by Andrew Grieve April 2008
        __AutoComplete[id]['element'].onkeypress = function(e) {if (!e) e = window.event; return AutoComplete_KeyPress(this.getAttribute('id'), e);}
        __AutoComplete[id]['element'].onclick = function(e)
        {
            if( __SLI_customisations[ __SLI_ApplicationName ][ 'IE6OnFocus' ] )
            {
                __AutoComplete[id]['element'].focus();
            }
            if (!e) e = window.event; e.cancelBubble = true; e.returnValue = false;
        }



        // Hides the dropdowns when document clicked
        var docClick = function()
        {
            if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
            {
               for(var i=0; i < __SLI_validSearchBoxes.length; i++)
               {
                   if(document.getElementById(__SLI_validSearchBoxes[i]))
                   {
                       AutoComplete_HideDropdown(__SLI_validSearchBoxes[i]);
                   }
               }
            }
            else
            {
                for (id in __AutoComplete)
                {
                   AutoComplete_HideDropdown(id);
                }
            }
        }

        if (document.addEventListener) {
            document.addEventListener('click', docClick, false);
        } else if (document.attachEvent) {
            document.attachEvent('onclick', docClick, false);
        }


        // Max number of items shown at once
        if (arguments[2] != null) {
            __AutoComplete[id]['maxitems'] = arguments[2];
            __AutoComplete[id]['firstItemShowing'] = 0;
            __AutoComplete[id]['lastItemShowing'] = arguments[2] - 1;
        }

        AutoComplete_CreateDropdown(id);

        // Prevent select dropdowns showing thru
        if (isIE) {
            iframe = document.createElement('iframe');
            __AutoComplete[id]['iframe'] = iframe;
                iframe.id = id +'_iframe';
                iframe.style.position = 'absolute';
                iframe.style.top = '0';
                iframe.style.left = '0';
                iframe.style.width = '0px';
                iframe.style.height = '0px';
                iframe.style.zIndex = '98';
                iframe.style.visibility = 'hidden';
                
                if(location.protocol == "https:")
                {
                   iframe.src = 'https://assets.resultspage.com/autosuggest/blank.html';
                }
                
                if( __SLI_customisations[ __SLI_ApplicationName ][ 'IE6SelectBox' ] )
                {
                  iframe.style.width = __SLI_width  + __SLI_customisations[ __SLI_ApplicationName ][ 'IE6SelectBoxPadding'];
                }

            if( __SLI_customisations[ __SLI_ApplicationName ][ 'IframeAlignment' ] )
            {
                document.body.insertBefore( iframe );
            }
            else
            {
                __AutoComplete[id]['element'].parentNode.insertBefore( iframe, __AutoComplete[id]['element'] );
            }
        }
    }

    /**
    * Creates the dropdown layer
    *
    * @param string id The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_CreateDropdown(id)
    {
        var theSearchbox = __AutoComplete[id]['element'];
        var theDropDown;
        var left_top = AutoComplete_getPos( theSearchbox );
        var left  = left_top[0];
        var top   = left_top[1] + theSearchbox.offsetHeight;
        var width = theSearchbox.offsetWidth;

        if ( width < __SLI_customisations[ __SLI_ApplicationName ][ 'DropListMinWidth' ] )
        {
            width = __SLI_customisations[ __SLI_ApplicationName ][ 'DropListMinWidth' ];
        }

        theDropDown = document.createElement('div');
        theDropDown.className = 'autocomplete'; // Don't use setAttribute()


        if(__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == true && document.body)
        {
            theDropDown.style.position = 'absolute';
            document.body.insertBefore(theDropDown, document.body.nextSibling);
            
            // Position it
            theDropDown.style.visibility = 'hidden';
            theDropDown.style.left       = left + 'px';
            theDropDown.style.top        = top + 'px';
            theDropDown.style.width      = width + 'px';
            theDropDown.style.zIndex     = '99999';
        }
        else if(__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == "offsetrelative" && document.body)
        {
          theSearchbox.parentNode.insertBefore(theDropDown, theSearchbox);
          // Position it
          if(sli_getStyle(theSearchbox.offsetParent, 'position') != "absolute")
          {
            theSearchbox.offsetParent.style.position = 'relative';
          }
          theDropDown.style.position = 'absolute';
          theDropDown.style.left = (theSearchbox.offsetLeft) + 'px';
          theDropDown.style.top = (theSearchbox.offsetTop + theSearchbox.offsetHeight) + 'px';
          theDropDown.style.width = (theSearchbox.clientWidth) + 'px';
          theDropDown.style.visibility = 'hidden';
          theDropDown.style.zIndex     = '99999999';
        }
        else
        {
            theSearchbox.parentNode.insertBefore(theDropDown, theSearchbox);
            // Position it
            theDropDown.style.visibility = 'hidden';
            theDropDown.style.left       = left + 'px';
            theDropDown.style.top        = top + 'px';
            theDropDown.style.width      = width + 'px';
            theDropDown.style.zIndex     = '99999';
        }
        

        __AutoComplete[id]['dropdown'] = theDropDown;
        __SLI_width = width;
    }

    function /* array [ left, top ] */ AutoComplete_getPos( obj )
    {
        var curleft = curtop = 0;
        var sli_flag = 0;

        if (obj.offsetParent)
        {
           do
           {
              if ( __SLI_customisations[ __SLI_ApplicationName ][ 'AlignmentBorderBug' ] )
              {         
                
                if(sli_flag == 1)
                {
                    var clientTop = (obj.offsetHeight - obj.clientHeight) / 2;
                    curtop += clientTop;

                    var clientLeft = (obj.offsetWidth - obj.clientWidth) / 2;
                    curleft += clientLeft;
                }
                sli_flag = 1;
              }
           
              curleft += obj.offsetLeft;
              curtop += obj.offsetTop;
           }
           while (obj = obj.offsetParent);
        }
        return [curleft,curtop];
    }

    /**
    * Shows the dropdown layer
    *
    * @param string id The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_ShowDropdown(id)
    {

        AutoComplete_HideAll();



        var value = __AutoComplete[id]['element'].value;
        var toDisplay = new Array();
        var newDiv    = null;
        var text      = null;
        var numItems  = __AutoComplete[id]['dropdown'].childNodes.length;

        __AutoComplete_mouseMoved=false;
        // SLI Code Modification - Start - Andrew Grieve April 08
        // Trim the textbox so that if is starts with a space then the feature will still work
        //value = value.replace(/^\s+|\s+$/g,"");
        value = value.replace(/^\s+/g,"");

        if(value.length == "")
        {
            // If Textbox length is nothing (after the trim) then don't show dropdown.
            return;
        }
        // SLI Code Modification - End

        // Remove all child nodes from dropdown
        while (__AutoComplete[id]['dropdown'].childNodes.length > 0) {
            __AutoComplete[id]['dropdown'].removeChild(__AutoComplete[id]['dropdown'].childNodes[0]);
        }


        var count=0;
        // Go thru data searching for matches
        for (i=0; i<__AutoComplete[id]['data'].length; ++i)
        {
            // SLI Code Modification - Start - Andrew Grieve April 08 - Added lower casing
            if (__AutoComplete[id]['data'][i].substr(0, value.length).toLowerCase() == value.toLowerCase())
            {
                // SLI Code Modification - End
                toDisplay[toDisplay.length] = __AutoComplete[id]['data'][i];
                count++;
                /* how many to display? */
                if(count == __SLI_customisations['AutoSuggest']['MaxListItems'] ) /* Code inserted to keep list to a maximum of 10 values (was 20 or 30) */
                {
                    break;
                }
            }
        }

        // No matches?
        if (toDisplay.length == 0) {
            AutoComplete_HideDropdown(id);
            return;
        }



        // Add data to the dropdown layer
        for (i=0; i<toDisplay.length; ++i) {
            newDiv = document.createElement('div');
            newDiv.className = 'autocomplete_item'; // Don't use setAttribute()
            newDiv.setAttribute('id', 'autocomplete_item_' + i);
            newDiv.setAttribute('index', i);
            newDiv.style.zIndex = '99999';

             // Scrollbars are on display ?
            if (toDisplay.length > __AutoComplete[id]['maxitems'] && navigator.userAgent.indexOf('MSIE') == -1) {
                newDiv.style.width = __AutoComplete[id]['element'].offsetWidth - 22 + 'px';
            }

            newDiv.onmouseover =
        function()
        {
            if( __AutoComplete_mouseMoved )
                AutoComplete_HighlightItem(__AutoComplete[id]['element'].getAttribute('id'), this.getAttribute('index'));
        };

            newDiv.onclick     =    function()
                                    {
                                    	  __SLI_asug_used_flag = true;
                                                                           
                                        AutoComplete_SetValue(__AutoComplete[id]['element'].getAttribute('id'));
                                        AutoComplete_HideDropdown(__AutoComplete[id]['element'].getAttribute('id'));
                                        AutoComplete_submitForm(id);
                                    }



            text   = document.createTextNode(toDisplay[i]);
            newDiv.appendChild(text);
            newDiv.title='Search for ' + toDisplay[i];

            /* ellipsis for IE only */
            if( isIE )
            {
                newDiv.style.textOverflow = 'ellipsis';
                newDiv.style.width = '100%';
                newDiv.style.whiteSpace = 'nowrap';
                newDiv.style.overflow = 'hidden';

            }
            __AutoComplete[id]['dropdown'].appendChild(newDiv);
        }
        /*
         * append DIV containing footer branding...
         */
        if(__SLI_customisations['AutoSuggest']['ShowBrandingFooter'])
        {
            i = toDisplay.length;
            newDiv = document.createElement('div');
            newDiv.className = 'autocomplete_footer'; // Don't use setAttribute()
            newDiv.setAttribute('id', 'autocomplete_item_' + i);
            newDiv.setAttribute('index', i);
            newDiv.style.zIndex = '99999';
            newDiv.innerHTML = '<a href="http://www.sli-systems.com/powered-by.php" title="' +
                                __SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterTitleTooltip' ] +
                                '"><img class="autocomplete_footer_branding" src="'+__AutoCompleteBranding.src+'" /></a>';

            __AutoComplete[id]['dropdown'].appendChild(newDiv);
        }


        // Too many items?
        if (toDisplay.length > __AutoComplete[id]['maxitems']) {
            __AutoComplete[id]['dropdown'].style.height = (__AutoComplete[id]['maxitems'] * 15) + 2 + 'px';

        } else {
            __AutoComplete[id]['dropdown'].style.height = '';
        }


        /**
        * Set left/top in case of document movement/scroll/window resize etc
        */
        if(__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == "true" || __SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == "false")
        {
            var left_top = AutoComplete_getPos( __AutoComplete[id]['element'] );
            __AutoComplete[id]['dropdown'].style.left = left_top[0];
            __AutoComplete[id]['dropdown'].style.top  = left_top[1] + __AutoComplete[id]['element'].offsetHeight;
        }


        // Show the iframe for IE
        if (isIE) {
            
            if(!__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == true)
            {
               __AutoComplete[id]['iframe'].style.width  = __AutoComplete[id]['dropdown'].offsetWidth;
            }
            
            
            __AutoComplete[id]['iframe'].style.top    = __AutoComplete[id]['dropdown'].style.top;
            __AutoComplete[id]['iframe'].style.left   = __AutoComplete[id]['dropdown'].style.left;
            __AutoComplete[id]['iframe'].style.height = __AutoComplete[id]['dropdown'].offsetHeight;

            __AutoComplete[id]['iframe'].style.visibility = 'visible';
        }

    e =  __AutoComplete[id]['dropdown'];

    e.onmousemove =
        function()
        {
            if(!__AutoComplete_mouseMoved){__AutoComplete_mouseMoved=true;}
            this.onmousemove = null;
        }

        // Show dropdown
        if (!__AutoComplete[id]['isVisible']) {
            __AutoComplete[id]['dropdown'].style.visibility = 'visible';
            __AutoComplete[id]['isVisible'] = true;
        }


        // If now showing less items than before, reset the highlighted value
        if (__AutoComplete[id]['dropdown'].childNodes.length != numItems) {
            __AutoComplete[id]['highlighted'] = null;
        }
    }



    /**
    * Hides the dropdown layer
    *
    * @param string id The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_HideDropdown(id)
    {
        if (__AutoComplete[id]['iframe'])
        {
            __AutoComplete[id]['iframe'].style.visibility = 'hidden';
        }
        
        if (__AutoComplete[id]['dropdown'])
        {
            __AutoComplete[id]['dropdown'].style.visibility = 'hidden';
        }

        __AutoComplete[id]['highlighted'] = null;
        __AutoComplete[id]['isVisible']   = false;
    }


    /**
    * Hides all dropdowns
    */
    function AutoComplete_HideAll()
    {
         if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
         {
               for(var i=0; i < __SLI_validSearchBoxes.length; i++)
               {
                   if(document.getElementById(__SLI_validSearchBoxes[i]))
                   {
                       AutoComplete_HideDropdown(__SLI_validSearchBoxes[i]);
                   }
               }
         }
         else
         {
                for (id in __AutoComplete)
                {
                   AutoComplete_HideDropdown(id);
                }
         }
    }


    /**
    * Highlights a specific item
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    * @param int    index The index of the element in the dropdown to highlight
    */
    function AutoComplete_HighlightItem(id, index) // mouseover, index is the list element index, zero-based
    {
        if (__AutoComplete[id]['dropdown'].childNodes[index]) {
            for (var i=0; i<__AutoComplete[id]['dropdown'].childNodes.length; ++i) {
                if (__AutoComplete[id]['dropdown'].childNodes[i].className == 'autocomplete_item_highlighted') {
                    __AutoComplete[id]['dropdown'].childNodes[i].className = 'autocomplete_item';
                }
            }

            __AutoComplete[id]['dropdown'].childNodes[index].className = 'autocomplete_item_highlighted';
            __AutoComplete[id]['highlighted'] = index;

            //also see below...
            //__AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[index].innerHTML;
            //AutoComplete_SetValue(id);
        }
    }


    /**
    * Highlights the menu item with the given index
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    * @param int    index The index of the element in the dropdown to highlight
    */
    function AutoComplete_Highlight(id, index) // keyboard up/down - index is the direction of travel, 1==down,-1=up
    {
        var childNodes = __AutoComplete[id]['dropdown'].childNodes;
        if(childNodes.length)
        {
	        var lastItem = ( ( childNodes[ childNodes.length - 1 ].className != 'autocomplete_footer' ) ? childNodes.length - 1 : childNodes.length - 2 );

            // Out of bounds checking
            //if (index == 1 && __AutoComplete[id]['highlighted'] == __AutoComplete[id]['dropdown'].childNodes.length - 1) {
            if (index == 1 && __AutoComplete[id]['highlighted'] == lastItem ) {
                childNodes[__AutoComplete[id]['highlighted']].className = 'autocomplete_item';
                __AutoComplete[id]['highlighted'] = null;

            } else if (index == -1 && __AutoComplete[id]['highlighted'] == 0) {
                childNodes[0].className = 'autocomplete_item';
                __AutoComplete[id]['highlighted'] = lastItem;
                index = 0;//hack!
            }

            // Nothing highlighted at the moment
            if (__AutoComplete[id]['highlighted'] == null) {

                childNodes[0].className = 'autocomplete_item_highlighted';
                __AutoComplete[id]['highlighted'] = 0;
                newIndex = 0;
                
            } else {

                if (childNodes[__AutoComplete[id]['highlighted']]) {
                
                    childNodes[__AutoComplete[id]['highlighted']].className = 'autocomplete_item';
                }

                var newIndex = parseInt( __AutoComplete[id]['highlighted'] ) + parseInt(index);

                if (childNodes[newIndex]) {

                    childNodes[newIndex].className = 'autocomplete_item_highlighted';

                    __AutoComplete[id]['highlighted'] = newIndex;
                }
            }

            //populate textbox with currently highlighted term...
            //__AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[newIndex].innerHTML;
            AutoComplete_SetValue(id);
        }
    }


    /**
    * Sets the input to a given value
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_SetValue(id)
    {
        __AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[__AutoComplete[id]['highlighted']].innerHTML.replace(/&amp;/, "&");
    }


    /**
    * Checks if the dropdown needs scrolling
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_ScrollCheck(id)
    {
        // Scroll down, or wrapping around from scroll up
        if (__AutoComplete[id]['highlighted'] > __AutoComplete[id]['lastItemShowing']) {
            __AutoComplete[id]['firstItemShowing'] = __AutoComplete[id]['highlighted'] - (__AutoComplete[id]['maxitems'] - 1);
            __AutoComplete[id]['lastItemShowing']  = __AutoComplete[id]['highlighted'];
        }

        // Scroll up, or wrapping around from scroll down
        if (__AutoComplete[id]['highlighted'] < __AutoComplete[id]['firstItemShowing']) {
            __AutoComplete[id]['firstItemShowing'] = __AutoComplete[id]['highlighted'];
            __AutoComplete[id]['lastItemShowing']  = __AutoComplete[id]['highlighted'] + (__AutoComplete[id]['maxitems'] - 1);
        }

        __AutoComplete[id]['dropdown'].scrollTop = __AutoComplete[id]['firstItemShowing'] * 15;
    }


    /**
    * Function which handles the keypress event
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_KeyDown(id, e)
    {
        var result = true;

       var event;
       event = e;
       if(!event) event = window.event;

        var keyCode = event.keyCode;

        switch (keyCode) {

            // Return/Enter
            case 13:
                if (__AutoComplete[id]['highlighted'] != null) {
                    AutoComplete_SetValue(id);
                    AutoComplete_HideDropdown(id);
					
                    __SLI_asug_used_flag = true;
					
                    if( e = __AutoComplete[id]['element'].form['asug'] )
                    {
                        
                        e.disabled=false;
                        e.value = __AutoComplete[id]['asug'];
                    }

                }

                result = AutoComplete_submitForm(id);

                break;

            // Escape
            case 27:
                AutoComplete_HideDropdown(id);
                event.returnValue = false;
                event.cancelBubble = true;
                break;

            // Up arrow
            case 38:
                if (!__AutoComplete[id]['isVisible']) {
                    AutoComplete_ShowDropdown(id);
                }

                AutoComplete_Highlight(id, -1);
                AutoComplete_ScrollCheck(id, -1);
                
                if( e = __AutoComplete[id]['element'].form['asug'] )
                {
                   e.disabled=false;
                   e.value = __AutoComplete[id]['asug'];
                }

                                
                result = false;
                break;

            // Tab
            case 9:
                if (__AutoComplete[id]['isVisible']) {
                    AutoComplete_HideDropdown(id);
                }
                return;

            // Down arrow
            case 40:

                if (!__AutoComplete[id]['isVisible']) {
                    AutoComplete_ShowDropdown(id);
                }

                AutoComplete_Highlight(id, 1);
                //AutoComplete_ScrollCheck(id, 1);

                if( e = __AutoComplete[id]['element'].form['asug'] )
                {
                   e.disabled=false;
                   e.value = __AutoComplete[id]['asug'];
                }

                result = false;
                break;
        }
        return result;
    }


    /**
    * Function which handles the keyup event
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_KeyUp(id, e)
    {
       var event;
       event = e;
       if(!event) event = window.event;

        var keyCode = event.keyCode;

        switch (keyCode) {
            case 13:
                event.returnValue = false;
                event.cancelBubble = true;
                
                break;

            case 27:
                AutoComplete_HideDropdown(id);
                event.returnValue = false;
                event.cancelBubble = true;
                break;

            case 38:
            case 40:
                return false;
                break;

            default:
                AutoComplete_ShowDropdown(id);
                
                __AutoComplete[id]['asug']=__AutoComplete[id]['element'].value;

                if( e = __AutoComplete[id]['element'].form['asug'] )
                {
                   e.disabled=true;
                   e.value = "";
                }  
                
                break;
        }
    }

    /**
    * Function which handles the keypress event
    * This function added April 2008 by Andrew Grieve
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */

    // SLI Code Modification - Start - Andrew Grieve April 08
    function AutoComplete_KeyPress(id, e)
    {
        var event = e;
        if(!event) event = window.event;
        var keyCode = event.keyCode;

        if (keyCode == 13 && isGecko || isOpera)
        {
            return false;
        }
        
        if( __SLI_customisations[ __SLI_ApplicationName ][ 'TargetURL' ] )
        {
            if (keyCode == 13 && isIE)
            {
                return false;
            }
        }
        
    }
    // SLI Code Modification - End

    /**
    * Returns whether the dropdown is visible
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_isVisible(id)
    {
        return __AutoComplete[id]['dropdown'].style.visibility == 'visible';
    }

    function AutoComplete_submitForm(id)
    {
        var e, f, result=true;
        if( f = __AutoComplete[id]['element'].form )
        {
            if( __AutoComplete[id]['element'].value != '' )
            {
            	if(__SLI_asug_used_flag == true)
            	{
                   if( e = f['asug'])
                   {
                      e.value = __AutoComplete[id]['asug'];
                      e.disabled=false;
                   }
                }
                
                if( __SLI_customisations[ __SLI_ApplicationName ][ 'TargetURL' ] )
                {
                	asugvar = "";
                	if(__SLI_asug_used_flag == true)
                	{
                	  asugvar = '&asug=' + __AutoComplete[id]['asug'];
                  	}
                    
                    sliRegex = /resultsdemo\.com/;
                    if(sliRegExArray = sliRegex.exec(document.domain))
                    {
                    	sliRegex = /^http:\/\/(.*)\//;
                    	sliTargetDomain = sliRegex.exec(__SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ]);
                    	__SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ] = __SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ].replace(sliTargetDomain[1], document.domain);
                    }
                    
                	document.location.href = __SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ] + __AutoComplete[id]['element'].value + asugvar;
                }
                else
                {
                	f.submit();
                }
                
                AutoComplete_HideAll();
            }
            else
                result = false;
        }
        return result;
    }
    
    // get the style that will be applied by the browser, including stylesheets
    function sli_getStyle(el,styleProp)
    {
      if (el.currentStyle)
        var y = el.currentStyle[styleProp];
      else if (window.getComputedStyle)
        var y = document.defaultView.getComputedStyle(el,null).getPropertyValue(styleProp);
      return y;
    }

    // register with onLoad(er...
    _sli_init.push( AutoComplete_init );
    
    function sli_addEvent(obj, evType, fn) {
    	if (obj.addEventListener) {
    		obj.addEventListener(evType, fn, false);
    		return true;
    	} else if (obj.attachEvent) {
    		var r = obj.attachEvent("on" + evType, fn);
    		return r;
    	} else {
    		return false;
    	}
    }
    
    function sli_load()
    {
    	sli_addEvent(window, 'load', sli_init);
    }
