// Browser safe opacity handling function

function setOpacity( value ) {
 document.getElementById("styled_popup").style.opacity = value / 10;
 document.getElementById("styled_popup").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyPopup() {
 for( var i = 0 ; i <= 100 ; i++ )
   setTimeout( 'setOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyPopup() {
 for( var i = 0 ; i <= 100 ; i++ ) {
   setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 8 * i );
 }

 setTimeout('closeMyPopup()', 800 );
}

function closeMyPopup() {
 document.getElementById("styled_popup").style.display = "none"
}

function fireMyPopup() {
 setOpacity( 0 );
 document.getElementById("styled_popup").style.display = "block";
 fadeInMyPopup();
}
function showhide(id){
                                if (document.getElementById){
                                        obj = document.getElementById(id);
                                        if (obj.style.display == "none"){
                                                obj.style.display = "";
                                                return './resources/templates/aymax01/dEsign-ImagEs/-.gif';
                                        } else {
                                                obj.style.display = "none";
                                                return './resources/templates/aymax01/dEsign-ImagEs/+.gif';
                                        }
                                }
}

