$(function () {

//SWAP VALUES
    swapValues = [];
    $(".text").each(function(i){
        swapValues[i] = $(this).val();
        $(this).focus(function(){
            if ($(this).val() == swapValues[i]) {
                $(this).val("");
            }
        }).blur(function(){
            if ($.trim($(this).val()) == "") {
                $(this).val(swapValues[i]);
            }
        });
    });
	
//FILE TYPES

$('div.post a[href*="zip"]').attr('class','zip');
$('div.post a[href*="pdf"]').attr('class','pdf');
$('div.post a[href*="doc"]').attr('class','doc');
$('div.post a[href*="txt"]').attr('class','txt');
$('div.post a[href*="jpg"]').attr('class','img');
$('div.post a[href*="png"]').attr('class','img');
$('div.post a[href*="zip"]').attr('class','zip');	

	
	
});	


						   					   


