

function easeInOut(minValue,maxValue,totalSteps,actualStep,powr){
	var delta = maxValue - minValue;
	var stepp = minValue+(Math.pow(((1 / totalSteps)*actualStep),powr)*delta);
	return Math.ceil(stepp)
}
function doHeightChangeMem(elem,startHeight,endHeight,steps,intervals,powr) { 
//Height changer with Memory by www.hesido.com
    if (elem.heightChangeMemInt)
	window.clearInterval(elem.heightChangeMemInt);
    var actStep = 0;
    elem.heightChangeMemInt = window.setInterval(
	function() { 
	  elem.currentHeight = easeInOut(startHeight,endHeight,steps,actStep,powr);
	  elem.style.height = elem.currentHeight + "px"; 
	  actStep++;
	  if (actStep > steps) window.clearInterval(elem.heightChangeMemInt);
	} 
	,intervals)
}
// START Top Nav Rollover Scripts
function swap(myElement,img) {
	document.getElementById(myElement).src = 'images/'+img;
}
// END Top Nav Rollover Scripts

// START Telescoping Functions

function showItem(id) {
	document.getElementById("item"+id).className = "itemList_expanded";
	document.getElementById("plus"+id).className = "hideBtn";
	document.getElementById("minus"+id).className = "showBtn";
}
function hideItem(id) {
	document.getElementById("item"+id).className = "itemList_collapsed";
	document.getElementById("plus"+id).className = "showBtn";
	document.getElementById("minus"+id).className = "hideBtn";
}

// END Telescoping Functions


/*
Some additional JavaScript
*/

function open_print(gohere) {
    window.open(gohere, "print", config="height=400,width=600,scrollbars=yes,toolbar=no,menubar=yes,resizable=yes,top=0,left=0")
}

function open_email(gohere) {
    window.open(gohere, "email", config="height=475,width=500,scrollbars=yes,toolbar=no,menubar=yes,resizable=yes,top=0,left=0")
}

function open_faq(gohere) {
    window.open(gohere, "faq", config="height=475,width=500,scrollbars=yes,toolbar=no,menubar=yes,resizable=yes,top=0,left=0")
}

function confirmSubmit() {
    var agree=confirm("Do you really want to mark this prospect as in the database?");

    if (agree) return true ;
    else return false ;
}

function toggle_display(display_area) {
    if (document.getElementById(display_area)) { 
        var display_element = document.getElementById(display_area);
        display_element.style.display = display_element.style.display == "none" ? "block":"none"; 
    }
}

function show_block(block)
{
	//alert(block);
	document.getElementById(block).style.display = "block";
}

function open_me(gohere)
{
	window.open(gohere, "popup", config="width=475,height=450,scrollbars=yes,toolbar=no,menubar=yes,resizable=no,top=0,left=0");
}

function printMe(gohere)
{
	window.open(gohere, "print", config="width=600,height=450,scrollbars=yes,toolbar=no,menubar=yes,resizable=no,top=0,left=0");
}
function emailMe(gohere)
{
	window.open(gohere, "print", config="width=600,height=450,scrollbars=yes,toolbar=no,menubar=yes,resizable=no,top=0,left=0");
}