$(document).ready(function(){
	$('img.ssshhhh').mouseover(function(){
		var src = $(this).attr('src');
		src = src.replace(/(\d)\.jpg$/g,'$1s.jpg');
		$(this).attr('src',src);
	})

	$('img.ssshhhh').mouseout(function(){
		var src = $(this).attr('src');
		src = src.replace(/(\d)s\.jpg$/g,'$1.jpg');
		$(this).attr('src',src);
	})
  
  $('#morebutton').click(function(){
    $('#morebutton').fadeOut();
    $('#dhtext1').fadeOut();
    $('#dhtext2').fadeIn();
  });
})

function fixFormLabels(){
	var labels;

	// enable for IE and Safari
	if( document.all || navigator.userAgent.indexOf("Safari") > 0){
		labels = document.getElementsByTagName("label");
		for(i=0; i<labels.length; i++){
			labels[i].onclick = function(){
				var target = document.getElementById(this.getAttribute('for'));
				// Checkboxes or radio button labels
				if(target.type == 'checkbox' || target.type == 'radio')
					target.checked = target.checked == false ? true : false;
				else // Textareas and input fields, Select elements
					target.focus();
			};
		}
	}
}

var win;
function openPersonDescr()
{
	win=window.open("person_descr.html", 'win', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=340');
}


function fixIE6flicker(fix) {
	try {
		document.execCommand("BackgroundImageCache", false, fix);
	} catch(err) { }
}
fixIE6flicker(true);


