var search_val='';
var mouse_prev = 0;
var cur_sld

function new_freecap()
{
	// loads new freeCap image
	if(document.getElementById)
	{
		// extract image name from image source (i.e. cut off ?randomness)
		thesrc = document.getElementById("freecap").src;
		thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
		// add ?(random) to prevent browser/isp caching
		document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
	} else {
		alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
	}
}

$(document).ready(function() {
	
	$("input[name='cap_prot']").val('1');
	
	var maxH = 0;
	$('.accents .applications,.accents .about,.accents .contacts').each(function(){
	    if($(this).height()>maxH){maxH = $(this).height()}
	})
	
	$('.accents .applications,.accents .about,.accents .contacts').each(function(){
	   $(this).height(maxH);
	})

	
});
