	function fnDisplayColExp()
	{

		document.getElementById('collOff').style.display="none";
		document.getElementById('collExp').style.display=""

	}
	function fnDisplayColOff()
	{

		document.getElementById('collOff').style.display="";
		document.getElementById('collExp').style.display="none"

	}

    

function fnShowCaseStudies1(divId1,id,id1,previd,nextid){
        var obj=document.getElementById(divId1);
        var next=document.getElementById(nextid);
        var previous=document.getElementById(previd);
        alert("===1==="+id);
        showCaseStudiesCount=1;
        showPrevCaseStudiesCount=1;
        if (divId1=="pagn"+id){
            showCaseStudiesCount=1;
            showPrevCaseStudiesCount=1;
            obj.innerHTML="<img src=\"images/dot_blue.gif\" width=\"6\" height=\"6\"/>"

            var k=0;
            for (var i=1;i<=id1;i++){
                if (i!=id) {
                    document.getElementById('pagn'+i).innerHTML="<img src=\"images/dot_grey.gif\" width=\"6\" height=\"6\"/>"
                    document.getElementById('pagn'+i).innerHTML="<img src=\"images/dot_grey.gif\" width=\"6\" height=\"6\"/>"
                    document.getElementById('caseStudy'+i).style.display="none"
                    document.getElementById('caseStudy'+i).style.display="none"
                }else{
                    document.getElementById('caseStudy'+id).style.display=""
                }
            }
        if (showCaseStudiesCount<id1){
           next.innerHTML="<img src=\"images/icon_next.gif\" onClick=\"fnShowNextPrevCaseStudy('next'," + id1 + ");\" width=\"7\" height=\"14\"/>"
        }else{
           next.innerHTML="<img src=\"images/icon_next_grey.gif\" width=\"7\" height=\"14\"/>" 
        }
       
        next.innerHTML="<img src=\"images/icon_next.gif\" onClick=\"fnShowNextPrevCaseStudy('next'," + id1 + ");\" width=\"7\" height=\"14\"/>"
        previous.innerHTML="<img onClick=\"fnShowNextCaseStudycopy1('3');\" src=\"images/icon_previous_grey.gif\" width=\"7\" height=\"14\"/>"
        }
    }


function fnShowNextCaseStudycopy1(showCSCountvalue,previd,nextid,datatype,aa,bb) {
        var showCaseStudiesCount=aa;
	var showPrevCaseStudiesCount=bb;
         var next = document.getElementById(nextid);
        var previous = document.getElementById(previd);
    var showCaseStudiesCountCopppy = showCaseStudiesCount;
    var casevalue = false;
    for (var i = 0; i <= showCSCountvalue; i++) {

  //      var obj = document.getElementById('pagn' + i);
        if (casevalue == true) {
  //          obj.innerHTML = "<IMG height=6 src=\"images/dot_blue.gif\" width=6>"
            casevalue = false;
        } else {
   //         obj.innerHTML = "<IMG height=6 src=\"images/dot_grey.gif\" width=6>"
        }
        if (i == showCaseStudiesCountCopppy && casevalue == false) {
            showCaseStudiesCount = showCaseStudiesCount + 1;
            showPrevCaseStudiesCount = showPrevCaseStudiesCount + 1;
            casevalue = true;
            document.getElementById(datatype + showCaseStudiesCount).style.display = ""
      //      next.innerHTML = "<img src=\"images/icon_next.gif\" onClick=\"fnShowNextCaseStudycopy1(" + showCSCountvalue + ");\" width=\"9\" height=\"15\"/>"
        }
        else if (showCaseStudiesCount == showCSCountvalue && casevalue == false) {
            showCaseStudiesCount = showCSCountvalue;
            showPrevCaseStudiesCount = showCSCountvalue;
            casevalue = true;
            document.getElementById(datatype + showCaseStudiesCount).style.display = ""
 //           obj.innerHTML = "<IMG height=6 src=\"images/dot_blue.gif\" width=6>"
            if (i<showCSCountvalue){
                aa = aa+1;
                next.innerHTML = "<img alt=\"blue\" src=\"images/icon_next.gif\" width=\"7\" height=\"14\"/>"
            }else{
                next.innerHTML = "<img alt=\"grey\" src=\"images/icon_next_grey.gif\" width=\"7\" height=\"14\"/>"
            }

        } else {
            document.getElementById(datatype + showCaseStudiesCountCopppy).style.display = "none";
      //      next.innerHTML = "<img src=\"images/icon_next.gif\" onClick=\"fnShowNextCaseStudycopy1(" + showCSCountvalue + ");\" width=\"9\" height=\"15\"/>"
            next.innerHTML = "<img alt=\"blue\" src=\"images/icon_next.gif\" onClick=\"fnShowNextCaseStudycopy1(" + showCSCountvalue + ",'"+previd.toString()+"','"+nextid.toString()+"','"+datatype+"',"+showCaseStudiesCount+","+showPrevCaseStudiesCount+");\" width=\"7\" height=\"14\"/>"
        }
        if (i>0){

            previous.innerHTML = "<img alt=\"blue\" onClick=\"fnShowPrevCaseStudyCopy1(" + showCSCountvalue + ",'"+previd.toString()+"','"+nextid.toString()+"','"+datatype+"',"+showCaseStudiesCount+","+showPrevCaseStudiesCount+");\" src=\"images/icon_previous.gif\" width=\"7\" height=\"14\"/>"

        }else{
            previous.innerHTML = "<img alt=\"grey\" onClick=\"fnShowPrevCaseStudyCopy1(" + showCSCountvalue + ",'"+previd.toString()+"','"+nextid.toString()+"','"+datatype+"',"+showCaseStudiesCount+","+showPrevCaseStudiesCount+");\" src=\"images/icon_previous_grey.gif\" width=\"7\" height=\"14\"/>"
        }

    }
}


    function fnShowPrevCaseStudyCopy1(showCSCountvalue,previd1,nextid1,datatype,aa,bb) {
        var showCaseStudiesCount=aa;
        var showPrevCaseStudiesCount=bb;
        //alert("nextid 1111=="+nextid1);
         var next1 = document.getElementById(nextid1);
       // alert('next=='+next1);
       // alert("previd1111=="+previd1);
        var previous1 = document.getElementById(previd1);
      //  alert('previous=='+previous1);

        var showCaseStudiesCountCopppy = showPrevCaseStudiesCount;
        var casevalue = false;
        for (var j = showCSCountvalue; j > 0; j--) {
  //          var obj1 = document.getElementById('pagn' + j);
  //          obj1.innerHTML = "<IMG height=6 src=\"images/dot_grey.gif\" width=6>"
        }
      //  alert('showCaseStudiesCount=='+showCaseStudiesCount);
      //  alert('showPrevCaseStudiesCount==='+showPrevCaseStudiesCount);
        if (showPrevCaseStudiesCount > 1) {
        //    alert('IF showPrevCaseStudiesCount');
            for (var i = showCSCountvalue; i > 0; i--) {
          //      alert('FOR LOOP');
          //      alert('I Value=='+i);
   //             var obj = document.getElementById('pagn' + (i - 1));
    //            if (obj != null) {
            //        alert('Object is NOT NULL');
                    if (showCaseStudiesCount == 1 && casevalue == false) {
              //          alert('IF ')
                        showCaseStudiesCount = 1;
                        showPrevCaseStudiesCount = 1;
                        casevalue = true;
                        document.getElementById(datatype + showPrevCaseStudiesCount).style.display = ""
      //                  obj.innerHTML = "<IMG height=6 src=\"images/dot_blue.gif\" width=6>"
                        if (i==0){
                            previous1.innerHTML = "<img  alt=\"blue\" src=\"images/icon_previous.gif\" width=\"7\" height=\"14\"/>"
                        }else{
                            previous1.innerHTML = "<img alt=\"grey\" src=\"images/icon_previous_grey.gif\" width=\"7\" height=\"14\"/>"
                        }
                    } else if (i <= showCaseStudiesCountCopppy && casevalue == false) {
                //        alert('ELSE IF ')
                        showCaseStudiesCount = showCaseStudiesCount - 1;
              //          alert(showCaseStudiesCount)
                        showPrevCaseStudiesCount = showPrevCaseStudiesCount - 1;
               //         alert(showPrevCaseStudiesCount)
                        casevalue = true;

                        document.getElementById(datatype + showCaseStudiesCount).style.display = ""
               //         alert('caseStudy' + showCaseStudiesCount)
                        if (showCaseStudiesCount==1){
                  //          alert('IFFFF')
                            previous1.innerHTML = "<img alt=\"grey\" src=\"images/icon_previous_grey.gif\" width=\"7\" height=\"14\"/>"
                        }else{
                  //          alert('ELSEEEE')
                  //          alert(showCSCountvalue)
                  //          alert(previd1)
                  //          alert(nextid1)
                            previous1.innerHTML = "<img onClick=\"fnShowPrevCaseStudyCopy1(" + showCSCountvalue + ",'"+previd1+"','"+nextid1+"','"+datatype+"',"+showCaseStudiesCount+","+showPrevCaseStudiesCount+");\" src=\"images/icon_previous.gif\" width=\"7\" height=\"14\"/>"
                        }
                   //     obj.innerHTML = "<IMG height=6 src=\"images/dot_blue.gif\" width=6>"
                  //      alert('Last ELSE IF')
                    } else {
                 //       alert('ELSE ')
                        document.getElementById(datatype + showCaseStudiesCountCopppy).style.display = "none";
               //         previous.innerHTML = "<img onClick=\"fnShowPrevCaseStudyCopy1(" + showCSCountvalue + ");\" src=\"images/icon_previous.gif\" width=\"9\" height=\"15\"/>"
   //                     obj.innerHTML = "<IMG height=6 src=\"images/dot_grey.gif\" width=6>"
                    }
                     if (i<showCSCountvalue){
                        next1.innerHTML = "<img alt=\"blue\" src=\"images/icon_next.gif\" onClick=\"fnShowNextCaseStudycopy1(" + showCSCountvalue + ",'"+previd1+"','"+nextid1+"','"+datatype+"',"+showCaseStudiesCount+","+showPrevCaseStudiesCount+");\" width=\"7\" height=\"14\"/>"
                     }else{
                        next1.innerHTML = "<img alt=\"grey\" src=\"images/icon_next_grey.gif\" onClick=\"fnShowNextCaseStudycopy1(" + showCSCountvalue + ",'"+previd1+"','"+nextid1+"','"+datatype+"',"+showCaseStudiesCount+","+showPrevCaseStudiesCount+");\" width=\"7\" height=\"14\"/>"
                     }
      //          }
            }
        }else{
            previous1.innerHTML = "<img alt=\"grey\" src=\"images/icon_previous_grey.gif\" width=\"7\" height=\"14\"/>"
        }

    }



