<!----------------//
/*
this is a simple direct application
@_jcacct = the account of record 1000 is default
@_jccolo = background and font colors color #8c90c2,white,black is default
@_jcwide = width 250px is default
@_jcmode = currently How and Why as default
@_jcgrad = background gradiant default is turquoise
@_jchigh = high default = ''
@_jcfon1 = left font 
@_jcfon2 = right font 
*/

var jcd = document; var jcl = location; var jcw = window; 
var jcn = navigator; var jcs = screen;	var jch = history; 
var pagevars=''; co1=''; co2=''; co3=''; cospl='';
var jclink = "http://www.jesuscentral.com/apis";
var djlink = "http://www.jesuscentral.com/dj/widgets.php";

var embedimg = jclink+"/apiimages/embed.gif";
var recong = jclink+"/apiimages/j101.gif";
var gdrust = jclink+"/apiimages/rust.gif";
var gdblue = jclink+"/apiimages/blue.gif";
var gdgold = jclink+"/apiimages/gold.gif";
var gdturquoise = jclink+"/apiimages/turquoise.gif";
var bgblend = jclink+"/apiimages/blend.gif";
var bgline = jclink+"/apiimages/line.gif";

inttopxl = function (int){
	return int+'px';
}

pxltoint = function (a){
	if(!a){ return '0'; }
	var r = a.replace(/[a-zA-Z]/g,"");
	var int = parseInt(r);
	return int;
}

if(jcw._jcacct){ var jcacct = _jcacct; }else{ var jcacct = '1000'; }
if(jcw._jccolo){ var jccolo = _jccolo; }else{ var jccolo = '#8c90c2'; }
if(jcw._jcwide){ var jcwide = _jcwide; }else{ var jcwide = '250px'; }
if(jcw._jcmode){ var jcmode = _jcmode; }else{ var jcmode = 'Why'; }
if(jcw._jcgrad){ var jcgrad = _jcgrad; }else{ var jcgrad = 'turquoise'; }
if(jcw._jchigh){ var jchigh = _jchigh; }else{ var jchigh = ''; }
if(jcw._jcfon1){ var jcfon1 = _jcfon1; }else{ 
	if(jcmode == 'Why'){ var jcfon1 = '12pt';  }
	if(jcmode == 'How'){ var jcfon1 = '11pt';  }
}
if(jcw._jcfon2){ var jcfon2 = _jcfon2; }else{ 
	if(jcmode == 'Why'){ var jcfon2 = '12pt';  }
	if(jcmode == 'How'){ var jcfon2 = '11pt';  }
}


jcwide = pxltoint(jcwide);

if(jccolo.match(",")){
	
	cospl = jccolo.split(",");
	if(cospl.length>=4){
		co1 = "#8c90c2"; co2 = "white"; co3 = "black";
	}else if(jccolo.match("rgb")||jccolo.match("hsv")||jccolo.match("cymk")){
		co1 = "#8c90c2"; co2 = "white"; co3 = "black";
	}else if(jccolo.match("alpha")||jccolo.match("filter")){
		co1 = "#8c90c2"; co2 = "white"; co3 = "black";
	}else{
		co1 = cospl[0]; co2 = cospl[1]; co3 = cospl[2];
	}
	if(co1.length<=2){ co1 = "#8c90c2"; }
	if(co2.length<=2){ co2 = "white"; }
	if(co3.length<=2){ co3 = "black"; }
	jccolo = '';
	jccolo = co1;
}

function sendRequest(url,callback,postData,obj) {

	if (jcw.XMLHttpRequest) { 
	   var  req = new XMLHttpRequest();
	} else if (jcw.ActiveXObject) { 
		var req = createXMLHTTPObject();
	}

	if (!req){ return; }
	var method = (postData) ? "POST" : "GET";
	req.open(method,url,true);
	req.setRequestHeader('User-Agent','XMLHTTP/1.0');
	if (postData){ req.setRequestHeader('Content-type','application/x-www-form-urlencoded'); }

	req.onreadystatechange = function () {
		if (req.readyState != 4) return;
		if (req.status != 200 && req.status != 304) {
			alert('HTTP error ' + req.status);
			return;
		}
		callback(req,obj);
	}
	if (req.readyState == 4) return;
	req.send(postData);
}

var XMLHttpFactories = [
	function () {return new XMLHttpRequest()},
	function () {return new ActiveXObject("Msxml2.XMLHTTP")},
	function () {return new ActiveXObject("Msxml3.XMLHTTP")},
	function () {return new ActiveXObject("Microsoft.XMLHTTP")}
];

function createXMLHTTPObject() {
	var xmlhttp = false;
	for (var i=0;i<XMLHttpFactories.length;i++) {
		try {
			xmlhttp = XMLHttpFactories[i]();
		}
		catch (e) {
			continue;
		}
		break;
	}
	return xmlhttp;
}

if(jcd.all){
	jcd.write('<link rel="stylesheet" type="text/css" href="http://www.jesuscentral.com/apis/ieStyle.css" />');
	extrapad = "";
	extrapad2 = "";
}else{
	jcd.write('<link rel="stylesheet" type="text/css" href="http://www.jesuscentral.com/apis/ffStyle.css" />');
	extrapad = "<img src=http://www.jesuscentral.com/images/spacer.gif width=10 height=10>";
	extrapad2 = "<img src=http://www.jesuscentral.com/images/spacer.gif width=35 height=10>";
}

insertAfter = function(parent, node, referenceNode) {
	parent.insertBefore(node, referenceNode.nextSibling);
}

setwidth = function(jcwide){
	return '90%';
}

	var jcbuttonjorm = "<li><font size=2 face=arial color=black>We would like to help you on your journey to learn from Jesus, love like Jesus and live with Jesus. ";
	jcbuttonjorm += "<font color=red>So please provide the following:</font></font>";
	jcbuttonjorm += '<p style="margin-top:5px"><form name=jcForm" id="jcForm">';
	jcbuttonjorm += '<div align=center id="jcLC" style="width:'+setwidth(jcwide)+'">';
	jcbuttonjorm += '<div class="jcIPContainer" id="jcfn1" nowrap>';
	jcbuttonjorm += '	<span class="jcLeftS jclables">First Name:'+extrapad+'</span><span class="jcRightS"><input class="jcDropDown" type="text" name="jcfn" id="jcfn" value=""></span>';
	jcbuttonjorm += '</div>';
	jcbuttonjorm += '<div class="jcIPContainer" id="jcln1" nowrap>';
	jcbuttonjorm += '	<span class="jcLeftS jclables">Last Name:'+extrapad+'</span><span class="jcRightS"><input class="jcDropDown" type="text" name="jcln"  id="jcln" value=""></span>';
	jcbuttonjorm += '</div>';
	jcbuttonjorm += '<div class="jcIPContainer" id="jcem1" nowrap>';
	jcbuttonjorm += '	<span class="jcLeftS jclables">eMail:'+extrapad2+'</span><span class="jcRightS"><input class="jcDropDown" type="text" name="jcem"  id="jcem" value=""></span>';
	jcbuttonjorm += '</div>';
	jcbuttonjorm += '<div class="jcIPContainer" style="padding:5px">';
	jcbuttonjorm += '	<span class="jcLeftS jclables">&nbsp;</span><span><input onClick="sendJC()" type="button" value="Send"></span>';
	jcbuttonjorm += '</div>';
	jcbuttonjorm += '</div>';
	jcbuttonjorm += '<div style="font-size:8pt;font-family:arial" align=right>close <input onClick="opacity(\'jcDropDown\', 100, 0, 1000);" class="jcxSmall" type=button value="x"></div>';
	jcbuttonjorm += '</form>';

	var simply_text = "<font size=2 face=arial color=black><font color=red>Simply say a prayer to Jesus like the following…</font>";
	simply_text += "<p>Dear Jesus, ";
	simply_text += "<li>I gratefully accept your invitation to walk in a loving relationship with God and to follow His great plan for my life. ";
	simply_text += "<li>I admit to falling short of God’s standard of perfection, and that my disobedience has separated me from God. ";
	simply_text += "<li>I believe God asked you to die on the cross to pay the penalty for my imperfections, to permanently restore my relationship with God. ";
	simply_text += "<li>I believe God raised you from the dead, so I too can live forever! ";
	simply_text += "<li>I believe God put you in charge of all things, and now turn over control of my life to you. ";
	simply_text += "<li>I ask you now to be my Lord, Forgiver, Guide, and best Friend forever. ";
	simply_text += "<li>Now that I am your follower, help me to learn from you, to love like you and to live with you!</font>";
	simply_text += "<p align=center><font face=arial size=3 color=green><b>Do you pray this to Jesus?...</b></font>";
	simply_text += "<p><center><input onClick=nextStep('How') style='font-size:16pt' type='button' value='YES'></center>";
	simply_text += '<div style="font-size:8pt;font-family:arial" align=right>close <input onClick="opacity(\'jcDropDown\', 100, 0, 1000);" class="jcxSmall" type=button value="x"></div>';

	var prayer_txt = "<li><font size=2 face=arial color=black><font color=red>Pray something like the following...</font> ";
	prayer_txt += "''Lord Jesus, I'm ready to begin my relationship of love with you and our heavenly Father. I believe you, as the Son of God, died on the cross to pay the penalty for my imperfections, and that you won victory over death. Please forgive me and give me the gift of eternal life. I ask you into my life and heart to be my Lord, Forgiver, Guide and Friend. I choose to serve you always.''</font>";

	var goodnews_text = "<li><font size=2 face=arial color=black><font color=red>The good news is...</font> God deeply desires to walk in a loving relationship with you and to show you His great plan for your life. ";
	goodnews_text += "<li><font color=red>The problem is...</font> Our disobedience separates us from God, as even the best person falls short of God's standards of perfection. ";
	goodnews_text += "<li><font color=red>The solution is...</font> God asked Jesus, His only Son, to die on the cross to pay the penalty for our imperfections and to permanently restore our relationship with God. ";
	goodnews_text += "<li><font color=red>The victory is...</font> God raised Jesus from the dead, so we too can live forever! ";
	goodnews_text += "<li><font color=red>Jesus' reward is...</font> God put Jesus in charge of all things on heaven and earth, including your life. ";
	goodnews_text += "<li><font color=red>Your choice is...</font> To become a follower of Jesus, making Jesus your Forgiver, Guide, and best Friend forever ";
	goodnews_text += "</font>";
	goodnews_text += "<p align=center><font size=3 color=green><b>Do you choose to become a follower of Jesus?...</b></font>";
	goodnews_text += "<p><center><input onClick=nextStep('Why') style='font-size:16pt' type='button' value='YES'></center>";
	goodnews_text += '<div style="font-size:8pt;font-family:arial" align=right>close <input onClick="opacity(\'jcDropDown\', 100, 0, 1000);" class="jcxSmall" type=button value="x"></div>';

	var congrats = "<center><div style=\"width:220px\" align=center valign=middle>";
	congrats += "<a href='http://www.jesuscentral.com/j101/' target=_blank><img src='"+recong+"' width=200 height=296 border=0></a></div></center>";


if(jcmode == 'How'){

	if(jcwide <= 350){ var text1 = "How to become a follower of Jesus"; }
	else if(jcwide <= 300){ var text1 = "How to become a follower<br>of Jesus"; }
	else if(jcwide <= 250){ var text1 = "How to become<br>a follower of Jesus"; }
	else { var text1 = "How to become a follower of Jesus"; }
	var text2 = "Click Here";
	var content_html = simply_text;

}else{

	var text1 = "Why Choose Jesus? ";
	var text2 = "Click Here";
	var content_html = goodnews_text;

}

nextStep = function(toggle){
	
	ddbox = jcd.getElementById('jcDropDown');
	ddbox.innerHTML = '';
	if(toggle == 'Why'){
		ddbox.innerHTML = prayer_txt+jcbuttonjorm;
	}else if(toggle == 'How'){
		ddbox.innerHTML = jcbuttonjorm;
	}
	
	logJCYes(toggle);
}

function jchighlight(field) {
	field.focus();
	field.select();
}

/////////////////////////////////////////////

if(jcd.all){ var fffixes = "";  }
else{ 
	if(jchigh == "25px"){ jchigh = "40px"; }
	if(jchigh == "30px"){ jchigh = "40px"; }
	if(jchigh == "35px"){ jchigh = "40px"; }
	if(jchigh == "40px"){ jchigh = "40px"; }
	if(jchigh == "45px"){ jchigh = "40px"; }

	var fffixes = "style='height:"+jchigh+"'";

}


var embedded = "<form style='margin:0' name=eb><textarea name=EmbedBox onClick='jchighlight(this)' readonly=readonly WRAP=OFF style='width:"+(jcwide-20)+";font-size:7pt;letter-spacing:-1px;word-spacing:-1px' rows=4 >";
embedded += "<div id=\"jccontainer\"></div>\n";
embedded += "<script src=\"http://www.jesuscentral.com/apis/jcbuttons.js\" type=\"text/javascript\"></script>\n";
embedded += "<script>jcButtons();</script>\n";
embedded += "</textarea></form>";
embedded += '<div style="font-size:8pt;font-family:arial"><a href='+djlink+' target=_blank border=0><font size=1>Advanced Options</font></a> close <input onClick="opacity(\'jcDropDown\', 100, 0, 1000);" class="jcxSmall" type=button value="x"></div>';

var text6 = "Your request was received";
var button = "<table width=100% "+fffixes+"><tr><td class='jcButton_textL' style='width:80%' nowrap><span id=lbu>"+text1+"</span></td><td id=rbu class='jcButton_textR' style='width:20%'>"+text2+"</td></tr></table>";
var jcbuttonmessage = "<span class='jcDD_textT'>"+content_html+"</span>";


logJCYes = function(obj){
	var pagevars = "&yes=YES";
	pagevars += "&href="+escape(jcl.href);
	pagevars += "&acct="+jcacct;
	pagevars += "&referrer="+escape(jcd.referrer);
	pagevars += "&type="+obj;
	pagevars += "&title="+escape(jcd.title);
	var fram = jcw.frames['saveForm']
	fram.location="http://www.jesuscentral.com/apis/requests.php?"+pagevars;
}

sendJCRequest = function(obj){

	pagevars = "&acct="+jcacct;
	pagevars += "&href="+escape(jcl.href);
	pagevars += "&hostname="+escape(jcl.hostname);
	pagevars += "&host="+jcl.host;
	pagevars += "&domain="+jcd.domain;
	pagevars += "&referrer="+escape(jcd.referrer);
	pagevars += "&title="+escape(jcd.title);
	postdata = obj+pagevars;

	if(jcd.all){
		sendRequest(jclink+'/requests.php',reviewJCRequest,postdata);
	}else{
		var fram = jcw.frames['saveForm']
		fram.src="http://www.jesuscentral.com/apis/requests.php?"+obj+pagevars;
		var ttt = jcd.getElementById("saveForm").innerHTML;
		reviewJCRequest();
	}

}

reviewFade = function(req){
	my_div = jcd.getElementById("jcDropDown");
	my_div.innerHTML='';
	opacity('jcDropDown', 100, 0, 2000);
	if(timerjc){ clearTimeout(timerjc); }
}

reviewJCRequest = function(req){
	my_div = jcd.getElementById("jcDropDown");
	my_div.innerHTML=congrats;
	//my_div.innerHTML=text6;
	timerjc = setTimeout("reviewFade()",10000);
}

sendJC = function(){
	var a, b, c;
	if(jcd.all){
		a = jcd.jcForm.jcfn;
		b = jcd.jcForm.jcln;
		c = jcd.jcForm.jcem;
	}else{
		a = jcd.getElementById('jcfn');
		b = jcd.getElementById('jcln');
		c = jcd.getElementById('jcem');
	}
	if(a.value == ''){
		alert('please enter your First Name');
		jcd.getElementById('jcfn1').style.backgroundColor="yellow";
		a.focus();
	}
	else if(b.value == ''){
		alert('please enter your last Name');
		jcd.getElementById('jcln1').style.backgroundColor="yellow";
		b.focus();
	}
	else if(c.value == ''){
		alert('please enter your email');
		jcd.getElementById('jcem1').style.backgroundColor="yellow";
		c.focus();
	}else{
		obj = "fn="+a.value+"&ln="+b.value+"&em="+c.value;
		sendJCRequest(obj);
	}
}

jcButtons = function() {

	var fDiv=jcd.createElement("div");
	fDiv.setAttribute("name", "jcButton");
	fDiv.setAttribute("id", "jcButton");

	var eDiv=jcd.createElement("div");
	eDiv.setAttribute("name", "jcEmbed");
	eDiv.setAttribute("id", "jcEmbed");
	eDiv.style.position='relative';
	eDiv.style.zIndex='988';

	/*var emwide = pxltoint(jcwide);*/
	/*var embedw = -42;*/
	/*var emright = emwide+embedw;*/

	if(jcd.all){ 

		eDiv.setAttribute("onclick",function(){ addEmbed(); }); 
		eDiv.style.cursor='hand';
		fDiv.setAttribute("onclick",function(){ addElement(); });  
		fDiv.setAttribute("onmouseover",function(){ changeOpac(90, 'jcButton'); });  
		fDiv.setAttribute("onmouseout",function(){ changeOpac(100, 'jcButton'); });  
		fDiv.setAttribute("className", "background_violet");
		eDiv.style.top='15px';
		eDiv.style.width='42px';
	}
	else{ 
		eDiv.setAttribute("onclick", "addEmbed()"); 
		eDiv.style.cursor='default';
		fDiv.setAttribute("onclick", "addElement()"); 
		fDiv.setAttribute("onmouseover", "changeOpac(90, 'jcButton')");
		fDiv.setAttribute("onmouseout", "changeOpac(100, 'jcButton')");
		fDiv.setAttribute("class", "background_violet");
		eDiv.style.width='40px';
		if(jchigh){ 
			fDiv.style.height=jchigh;
			eDiv.style.top='15px'; 
		}else{
			if(jcwide >= 350 || jcmode == 'Why'){ fDiv.style.height="30px"; eDiv.style.top='15px'; }
			else if(jcwide >= 300){ fDiv.style.height="30px"; eDiv.style.top='15px'; }
			else if(jcwide >= 250){ fDiv.style.height="30px"; eDiv.style.top='15px'; }
			else { fDiv.style.height="30px"; eDiv.style.top='15px'; }
		}
	}
	
	/*alert(jcwide);*/
	var leftembed = jcwide-43;
	eDiv.style.right=-leftembed+'px';
	eDiv.style.backgroundColor='white';
	eDiv.style.padding='1px';
	eDiv.style.fontSize='8pt';
	eDiv.innerHTML = '<img src="'+embedimg+'">';

	if(jccolo){ fDiv.style.backgroundColor=jccolo; }
	if(jcwide){ fDiv.style.width=inttopxl(jcwide); }


	if(jcgrad == 'none'){ fDiv.style.backgroundImage="none"; }
	if(jcgrad == 'rust'){ fDiv.style.backgroundImage="url("+gdrust+")"; }
	if(jcgrad == 'blue'){ fDiv.style.backgroundImage="url("+gdblue+")"; }
	if(jcgrad == 'gold'){ fDiv.style.backgroundImage="url("+gdgold+")"; }
	if(jcgrad == 'turquoise'){ fDiv.style.backgroundImage="url("+gdturquoise+")"; }
	if(jcgrad == 'corner'){ 
		fDiv.style.backgroundImage="url("+bgblend+")"; 
		fDiv.style.backgroundPosition="bottom right"; 
		fDiv.style.backgroundRepeat="no-repeat"; 
	}
	if(jcgrad == 'triangle'){ 
		fDiv.style.backgroundImage="url("+bgblend+")"; 
		fDiv.style.backgroundPosition="top left"; 
		fDiv.style.backgroundRepeat="repeat"; 
	}
	if(jcgrad == 'line'){ 
		fDiv.style.backgroundImage="url("+bgline+")"; 
		fDiv.style.backgroundPosition="top left"; 
		fDiv.style.backgroundRepeat="repeat"; 
	}

	fDiv.innerHTML = button;
	var jcloc = jcd.getElementById('jccontainer');
	var parentDiv = jcloc.parentNode;
	insertAfter(parentDiv, fDiv,jcloc);
	insertAfter(parentDiv, eDiv,jcloc);

	if(co2){ jcd.getElementById('lbu').style.color=co2; }
	if(co3){ jcd.getElementById('rbu').style.color=co3; }
	if(jcfon1){ jcd.getElementById('lbu').style.fontSize=jcfon1; }
	if(jcfon2){ jcd.getElementById('rbu').style.fontSize=jcfon2; }

	var oDiv=jcd.createElement("iframe");
	oDiv.setAttribute("name", "saveForm");
	oDiv.setAttribute("id", "saveForm");
	oDiv.style.position="absolute";
	oDiv.style.zIndex="999";
	oDiv.style.border="0px";
	oDiv.style.left="800px";
	oDiv.style.width="0px";
	oDiv.style.height="0px";
	oDiv.style.padding="0px";
	oDiv.style.visibility="visible";
	var parentDiv = fDiv.parentNode;
	insertAfter(parentDiv, oDiv, fDiv);

	pagevars = "href="+escape(jcl.href);
	pagevars += "&acct="+jcacct;
	pagevars += "&hostname="+jcl.hostname;
	pagevars += "&host="+jcl.host;
	pagevars += "&domain="+jcd.domain;
	pagevars += "&referrer="+escape(jcd.referrer);
	pagevars += "&title="+escape(jcd.title);
	pagevars += "&CodeName="+jcn.appCodeName;
	pagevars += "&MinorVersion="+jcn.appMinorVersion;
	pagevars += "&Name="+jcn.appName;
	pagevars += "&Version="+jcn.appVersion;
	pagevars += "&CookieEnabled="+jcn.cookieEnabled;
	pagevars += "&CPUClass="+jcn.cpuClass;
	pagevars += "&OnLine="+jcn.onLine;
	pagevars += "&Platform="+jcn.platform;
	pagevars += "&UA="+jcn.userAgent;
	pagevars += "&BrowserLanguage="+jcn.browserLanguage;
	pagevars += "&SystemLanguage="+jcn.systemLanguage;
	pagevars += "&UserLanguage="+jcn.userLanguage;
	pagevars += "&screenH="+jcs.availHeight;
	pagevars += "&screenW="+jcs.availWidth;
	pagevars += "&history="+jch.length;

	var fram = jcw.frames['saveForm']
	fram.src="http://www.jesuscentral.com/apis/requests.php?"+pagevars;
	fram.location="http://www.jesuscentral.com/apis/requests.php?"+pagevars;

}
addEmbed = function(req){

	if(jcd.getElementById("jcDropDown")){
		var oDiv=jcd.getElementById("jcDropDown");
		oDiv.style.zIndex="200";
		oDiv.style.visibility="visible";
		opacity('jcDropDown', 70, 100, 1000);
		oDiv.innerHTML = '';
		oDiv.innerHTML=embedded;
	}else{
		my_div = jcd.getElementById("jcButton");
		var oDiv=jcd.createElement("DIV");
		oDiv.setAttribute("id", "jcDropDown");
		oDiv.style.position="absolute";
		oDiv.style.visibility="visible";
		oDiv.style.zIndex="200";
		if(jcmode == 'Why'){ oDiv.style.width=inttopxl(jcwide); }
		if(jcmode == 'How'){ oDiv.style.width=inttopxl(jcwide); }
		oDiv.style.padding="5px";
		oDiv.style.border="solid 1px silver";
		oDiv.style.backgroundColor="white";
		oDiv.innerHTML = '';
		oDiv.innerHTML=embedded;
		var parentDiv = my_div.parentNode;
		opacity('jcDropDown', 70, 100, 1000);
		insertAfter(parentDiv, oDiv, my_div);
	}
}

addElement = function(){
	
	if(jcd.getElementById("jcDropDown")){
		var oDiv=jcd.getElementById("jcDropDown");
		oDiv.style.zIndex="200";
		oDiv.style.visibility="visible";
		opacity('jcDropDown', 70, 100, 1000);
		oDiv.innerHTML = '';
		oDiv.innerHTML=jcbuttonmessage;
	}else{
		my_div = jcd.getElementById("jcButton");
		var oDiv=jcd.createElement("DIV");
		oDiv.setAttribute("id", "jcDropDown");
		oDiv.style.position="absolute";
		oDiv.style.visibility="visible";
		oDiv.style.zIndex="200";
		if(jcmode == 'Why'){ oDiv.style.width=inttopxl(jcwide); }
		if(jcmode == 'How'){ oDiv.style.width=inttopxl(jcwide); }
		oDiv.style.padding="5px";
		oDiv.style.border="solid 1px silver";
		oDiv.style.backgroundColor="white";
		oDiv.innerHTML = '';
		oDiv.innerHTML=jcbuttonmessage;
		var parentDiv = my_div.parentNode;
		opacity('jcDropDown', 70, 100, 1000);
		insertAfter(parentDiv, oDiv, my_div);
	}
}

disShim = function(){ 
	var myf = jcd.getElementById('jcDropDown');
	myf.style.zIndex="0";
	myf.style.visibility="hidden";
}

function opacity(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
		disShim();
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

function changeOpac(opacity, id) { 
	var object = jcd.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 
//---------------->