var dt_sf_clicked_dd = 0;

document.getElementById("dt_drop_down2").style.height = document.getElementById("dt_drop_down").offsetHeight + "px";

function dt_sf_tab() {

if (dt_sf_clicked_dd == 0) {

dt_sf_open_dd();

document.getElementById("dt_open").style.visibility = 'hidden';
document.getElementById("dt_open").style.height = 0 + 'px';
document.getElementById("dt_open").style.display = 'none';
document.getElementById("dt_closed").style.visibility = 'visible';
document.getElementById("dt_closed").style.display = 'block';

}

else {

dt_sf_close_dd();

document.getElementById("dt_closed").style.visibility = 'hidden';
document.getElementById("dt_closed").style.height = 0 + 'px';
document.getElementById("dt_closed").style.display = 'none';
document.getElementById("dt_open").style.visibility = 'visible';
document.getElementById("dt_open").style.display = 'block';

}

}


function dt_sf_open_dd() {

window.setTimeout('dt_sf_increase()',1);

}


function dt_sf_increase() {

if (dt_sf_dd_top < (dt_sf_user_speed + 1)*-1) {

dt_sf_dd_top = dt_sf_dd_top + dt_sf_user_speed;
dt_sf_tab_top = dt_sf_tab_top + dt_sf_user_speed;

document.getElementById("dt_drop_down").style.top = (dt_sf_dd_top) +'px';
document.getElementById("dt_drop_down2").style.top = (dt_sf_dd_top) +'px';
document.getElementById("dt_drop_down_tab").style.top = (dt_sf_tab_top) +'px';


dt_sf_open_dd();

}

else {

document.getElementById("dt_drop_down").style.top = 0 +'px';
document.getElementById("dt_drop_down2").style.top = 0 +'px';
document.getElementById("dt_drop_down_tab").style.top = dt_sf_tab_set -2 +'px';
dt_sf_clicked_dd = 1;

}

}

function dt_sf_close_dd() {

window.setTimeout('dt_sf_decrease()',1);

}


function dt_sf_decrease() {

if (dt_sf_dd_top > (document.getElementById("dt_drop_down").offsetHeight * -1)) {

document.getElementById("dt_drop_down").style.top = (dt_sf_dd_top) +'px';
document.getElementById("dt_drop_down2").style.top = (dt_sf_dd_top) +'px';
document.getElementById("dt_drop_down_tab").style.top = (dt_sf_tab_top) +'px';
dt_sf_dd_top = dt_sf_dd_top - dt_sf_user_speed;
dt_sf_tab_top = dt_sf_tab_top - dt_sf_user_speed;

dt_sf_close_dd();

}

else {

document.getElementById("dt_drop_down").style.top = ((document.getElementById("dt_drop_down").offsetHeight * -1) + 2) +'px';
document.getElementById("dt_drop_down2").style.top = ((document.getElementById("dt_drop_down").offsetHeight * -1) + 2) +'px';
document.getElementById("dt_drop_down_tab").style.top = -2 + 'px';
dt_sf_clicked_dd = 0;

}

}


var dt_sf_drop_down_height = document.getElementById("dt_drop_down").offsetHeight;

		var dt_sf_drop_down_top = (dt_sf_drop_down_height - 2) * -1;

		document.getElementById("dt_drop_down").style.top = dt_sf_drop_down_top + 'px';
		document.getElementById("dt_drop_down2").style.top = dt_sf_drop_down_top + 'px';
		document.getElementById("dt_drop_down_tab").style.top = -1 + 'px';
		document.getElementById("dt_drop_down_tab").style.left = ((document.documentElement.clientWidth/2) - 90) + 'px';
		document.getElementById("dt_drop_down_tab").style.display = 'block';
		
		