function HideFlashMap(strVisibleHidden, divID){
    if(document.getElementById(divID)){
        if(strVisibleHidden == 'visible'){
            //alert('asd');
            setTimeout('TimeDelayHide('+strVisibleHidden+', '+divID+')', 1000);
        }else{
            TimeDelayHide(strVisibleHidden, divID);
        }
    }
    
    RemoveAllControls();
}

function TimeDelayHide(strVisibleHidden, divID){
    document.getElementById(divID).style.display = strVisibleHidden;
}
// Show hide html elements
function showhide(id) {
    if(document.getElementById(id).style.display == 'none'){
        document.getElementById(id).style.display = 'block';
     }
     else {
        document.getElementById(id).style.display = 'none';
     }
}
function ShowArt(artDivID, showhide){
    if(showhide == 'show'){
        document.getElementById('artist_wrapper').style.display = 'none';
        document.getElementById('artist_image_wrapper').style.display = 'block';
        document.getElementById(artDivID).style.display = 'block';
        document.getElementById('artist-gallery-div').style.display = 'none';
        document.getElementById('artist-gallery-info-div').style.display = 'block';
        document.getElementById('info_'+artDivID).style.display = 'block';
        document.getElementById('selectedart').value = artDivID;
    }else{
        document.getElementById('artist_wrapper').style.display = 'block';
        document.getElementById('artist_image_wrapper').style.display = 'none';
        document.getElementById(artDivID).style.display = 'none';
        document.getElementById('artist-gallery-div').style.display = 'block';
        document.getElementById('artist-gallery-info-div').style.display = 'none';
        document.getElementById('info_'+artDivID).style.display = 'none';
       // document.getElementById(artDivID).id = 'back';
        //alert(document.getElementById('back').id);
    }
}
function PopUp(url, title, width, height){
    
}

function RemoveAllControls() {
    
    $("[name=Qform__FormControl]:not([Qform__FormControl]:first)").each(function() { $(this).replaceWith('');});
    $("[name=Qform__FormEvent]:not([Qform__FormEvent]:first)").each(function() { $(this).replaceWith('');});
    $("[name=Qform__FormParameter]:not([Qform__FormParameter]:first)").each(function() { $(this).replaceWith('');});
    $("[name=Qform__FormCallType]:not([Qform__FormCallType]:first)").each(function() { $(this).replaceWith('');});
    $("[name=Qform__FormUpdates]:not([Qform__FormUpdates]:first)").each(function() { $(this).replaceWith('');});
    $("[name=Qform__FormCheckableControls]:not([Qform__FormCheckableControls]:first)").each(function() { $(this).replaceWith('');});
    
}
