$(document).ready(function(){	
						   
	 $(document).pngFix();
	 
	$("input:checkbox").uniform();
	
	$(".logo").hide();

	$(".logo").fadeIn(2500);
	$('#social-network').css({'top': '-400px'});



	$('#social-network').animate({
		top : 0+'px'}, 2000
	);

	//social network hand movement
	
	var pulsestate = true;
	pulser = setInterval(pulseSocial,2000);
	function pulseSocial() {
		if(pulsestate){
			$('.socialhand').animate({
				marginLeft : 5+'px', 
				marginTop : 0 +'px'}, 400
			);
			pulsestate = false;
		}
		
		if(!pulsestate){
			$('.socialhand').animate({
				marginLeft : 0+'px', 
				marginTop : 0+'px'}, 400
			);
			pulsestate = true;
		}
		
	}

	//buttons
	$('#buttons a').hover(function(){
		$(this).children('img').stop(true, true).animate({'opacity': 0});
	}, function(){
		$(this).children('img').stop(true, true).animate({'opacity': 1});
	}); 


	//drop downs
    if (!$.browser.opera) {

        $('select.select, .gallery_selector select').each(function(){
            var title = $(this).attr('title');
            if( $('option:selected', this).val() != ''  ) title = $('option:selected',this).text();
            $(this)
                .css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
                .after('<span class="select">' + title + '</span>')
                .change(function(){
                    val = $('option:selected',this).text();
                    $(this).next().text(val);
                    })
        });

        $('select.select-long').each(function(){
            var title = $(this).attr('title');
            if( $('option:selected', this).val() != ''  ) title = $('option:selected',this).text();
            $(this)
                .css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
                .after('<span class="select-long">' + title + '</span>')
                .change(function(){
                    val = $('option:selected',this).text();
                    $(this).next().text(val);
                    })
        });
    };
	

	


		
});

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
			thisfield.value = "";
		}
	}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}
	
	

