function hide(cnt,present){  
    if (present==str_structure) {
        for(var i= cnt; i<TDMolViewerCnt; i++){
            var molid = "str-" + i;
            $("#"+molid).css("display","none");
        }
    } else if (present==str_scaffold) {
        for(var i= cnt; i<TDMolViewerCnt; i++){
            var molid = "scaf-" + i;
            $("#"+molid).css("display","none");
        }
    } else if (present==str_alignment) {
        for(var i= cnt; i<6; i++){
            var molid = "alig-" + i;
            $("#"+molid).css("display","none");
        }
    } else if (present==str_drugs) {
        for(var i= cnt; i<TDMolViewerCnt; i++){
            var molid = "drugs-" + i;
            $("#"+molid).css("display","none");
        }
    }
}
// hide the div when number of molecules less than 15

hide the div when number of molecules less than 15
hide the div when number of molecules less than 15
function hide(cnt,present){  
    if (present==str_structure) {
        for(var i= cnt; i<TDMolViewerCnt; i++){
            var molid = "str-" + i;
            $("#"+molid).css("display","none");
        }
    } else if (present==str_scaffold) {
        for(var i= cnt; i<TDMolViewerCnt; i++){
            var molid = "scaf-" + i;
            $("#"+molid).css("display","none");
        }
    } else if (present==str_alignment) {
        for(var i= cnt; i<6; i++){
            var molid = "alig-" + i;
            $("#"+molid).css("display","none");
        }
    } else if (present==str_drugs) {
        for(var i= cnt; i<TDMolViewerCnt; i++){
            var molid = "drugs-" + i;
            $("#"+molid).css("display","none");
        }
    }
}
function hide ( cnt , present ) { if ( present == str_structure ) { for ( var i = cnt ; i < TDMolViewerCnt ; i ++ ) { var molid = "str-" + i ; $ ( "#" + molid ) . css ( "display" , "none" ) ; } } else if ( present == str_scaffold ) { for ( var i = cnt ; i < TDMolViewerCnt ; i ++ ) { var molid = "scaf-" + i ; $ ( "#" + molid ) . css ( "display" , "none" ) ; } } else if ( present == str_alignment ) { for ( var i = cnt ; i < 6 ; i ++ ) { var molid = "alig-" + i ; $ ( "#" + molid ) . css ( "display" , "none" ) ; } } else if ( present == str_drugs ) { for ( var i = cnt ; i < TDMolViewerCnt ; i ++ ) { var molid = "drugs-" + i ; $ ( "#" + molid ) . css ( "display" , "none" ) ; } } }
hide the div when number of molecules less than 15
hide the div when number of molecules less than 15