Cufon.replace('h1');
Cufon.replace('span.headerlike');
Cufon.replace('h2.larger');

$(document).ready(function(){
    $('#wrapper').find('.toggle').hide();
    
    $("#trialform").validate();
    $("#contactform").validate();
    $("#frm_resetpassword").validate();
    $("#frm_newsletter").validate();
    $("#frm_registerpapers").validate();
    
    

    
    $('.do_toggle').click(function(){
        var theID = $(this).attr( 'id' );
        $('#wrapper').find('#dt-' + theID ).toggle();
    })
    
    $('div#pcivideo').flash({
        src: '/videos/pcivideo.swf',
        width: 643,
        height: 526
    });
    
    $('div#homeflashbanner').flash({
        src: '/videos/homebanner.swf',
        width: 643,
        height: 187,
        wmode: 'transparent'
    });
    $('div#homeflashbanner2').flash({
        src: '/videos/cf-roidoc.swf',
        wmode: 'transparent', 
        width: 643,
        height: 187
    });

})

