$(document).ready( function() {
    
    // hide show text in input and textarea

    $('.hidde').focus(function() {
			// clear value if current value is the default
			if($(this).val() === this.defaultValue) {
				$(this).val("").removeClass('hell');
			}
		})
		.blur(function() {
			// restore to the default value if current value is empty
			if($(this).val() == "") {
				$(this).addClass('hell').val(this.defaultValue);
			}
			else {
				$(this).removeClass('hell');
			}
		});
		
		// simpel image gallery
		$(".thumb a").click(function() {
			$("#replace img").attr("src", $(this).attr("href"));
			$('.hidde').toggleClass('hidde');
			$(this).parent().toggleClass('hidde');
			
			return false;
		});
		
		if($('.thumb li').length > 3){
			$('.thumb li:first').addClass('hidde');
		}
		/*$('#replace img').click(function(){
			var nextImg = $('li.act-thumb').next('li').find('a');
			showImage(nextImg.length ? nextImg.get(0) : $('li.act-thumb').parent().find('li:first a').get(0));
			return false;
		});*/
	 
		// flash logo
    
    $('#fla').html('<object type="application/x-shockwave-flash" data="/misc/logo.swf" width="150" height="110">'+
        '<param name="movie" value="/misc/logo.swf" />'+
        '<param name="quality" value="high" />'+
        '<param name="wmode" value="transparent">'+
        '<img src="spacer.gif" width="150" height="110" alt="No FLASH Player installed" /></object>');
});