function pageInit(){
    //initial sifr replacements
    flashTitles();
    $('.styledSelect').sSelect();
    $('.newList').each(function(){
    $(this).children('li:first').hide();
    });
    //*** to unselect last search item in IE!!!!!
        
    //Search clear text handling
    $('#txtKeyword').attr('value','Keyword')
    .click(
        function() {
            if (this.value == 'Keyword') {
            this.value = '';
            $('#txtKeyword').addClass('active');
            }
        }
    )
    .blur(
        function() {
            if (this.value == '') {
            this.value = 'Keyword';
            $('#txtKeyword').removeClass('active');
            }
        }
    );
}


function flashTitles(){
    $.sifr({ build: 436, version: 3, path: '/flash/' , save: true});
    $('h1').sifr({font: 'helvetica_n_light_pink', width: 400});
    $('#clientLogos h1').sifr({font: 'helvetica_n_light_pink', width: 280});
}
function testimonials(){
    //client logos
    $('#clientLogos li').each(function(e){
        $(this).css('z-index',(100+e));
        //create new wrapper
        $(this).contents().wrapAll('<div class="tWrapper hidden"></div>');
        
        //add bubbles
        $(this).append('<div class="tBubbles"></div>');
        
        $('.tWrapper').corner();
        
        //take img outside of new wrapper
        $(this).children('div').children('img').prependTo($(this));
        
        var src = $(this).children('img').attr('src');
        var ff = src.split('/');
        var active = '/images/ui/clients/active/'+ff[4];
        
        if (e==0 || e==3){$(this).addClass('firstCol');}
        $(this).show();
        $(this).hover(
            function(){
                $(this).css('z-index',(900+e));
                $(this).children('div').removeClass('hidden');
                var h = $(this).children('div.tWrapper').height();
                h = h + 35;
                $(this).children('div.tWrapper').css('top', '-'+h+'px');
                $(this).children('div.tBubbles').css('top', '-100px').show();
                $(this).children('img').attr('src',active);
            },
            function(){
                $(this).css('z-index',(100+e));
                $(this).children('div').addClass("hidden");
                $(this).children('img').attr('src',src);
            }
        );
    });
}
