jQuery.noConflict();

function form_input_classes(){
    jQuery('input[type="text"]').addClass('text');
    jQuery('input[type="password"]').addClass('text');
    jQuery('input[type="checkbox"]').addClass('checkbox');
    jQuery('input[type="radio"]').addClass('radiobutton');
    jQuery('input[type="submit"]').addClass('submit');
    jQuery('input[type="image"]').addClass('buttonImage');
}

function form_labelize(){  jQuery(".labelize input:text").clearingInput(); }   

function type_set() {

Cufon.replace('h1, h2, #nav li a, .button a, #home-impact, #side-impact, .date, #footer-nav, #footer p, #form-contain .submit', {
	hover: true
});
}

function tool_tip() {
    jQuery("#home-impact .tooltipSet").tooltip({ position: "center right", relative: 'true', offset: [5, 20] });
    jQuery("#side-impact .tooltipSet").tooltip({ position: "bottom center", relative: 'true', offset: [130, 170] });
}

function create_column() {jQuery('ul#res-list').makeacolumnlists({cols:2,colWidth:420,equalHeight:false,startN:1});
}

function cancel_links() {

    jQuery('.tooltipSet').click(function() {
       return false   
    });
}

function set_clock() {

    // Once the dom loads...     
    jQuery('#count-down-clock').epiclock({
         mode: EC_COUNTDOWN, 
         target: 'September 23, 2010 00:00:00'
    });

			    
    jQuery.epiclock(EC_RUN);
    
    jQuery('.epiclock-spacer').remove();    
    jQuery('#count-down-clock div:nth-child(1), #count-down-clock div:nth-child(2)').appendTo('#count-down-clock-days')
    jQuery('#count-down-clock div:nth-child(1), #count-down-clock div:nth-child(2)').appendTo('#count-down-clock-hours')
    jQuery('#count-down-clock div:nth-child(1), #count-down-clock div:nth-child(2)').appendTo('#count-down-clock-minutes')
}

jQuery(document).ready(function() {
    form_input_classes();
    form_labelize();
    type_set();
    tool_tip();
    create_column();   
    cancel_links();
    set_clock();
});