﻿function fnObeyLink(url) {
            //alert(url);
            window.location = url;
        }
        function clickclear(thisfield, defaulttext) {
            if (thisfield.value == defaulttext) {
                thisfield.value = "";
            }
        }

        function clickrecall(thisfield, defaulttext) {
            if (thisfield.value == "") {
                thisfield.value = defaulttext;
            }
        }

      function searchresult(sitename,domainName){
      //alert(document.frmSearch);
document.frmSearch.action=sitename+'/'+domainName+'/search/1/1/'
document.frmSearch.submit()
return false}	    

        function MM_preloadImages() { //v3.0
            var d = document; if (d.images) {
                if (!d.MM_p) d.MM_p = new Array();
                var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
                 for (i = 0; i < a.length; i++)
                    if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
            }
        }

        function MM_swapImgRestore() { //v3.0
            var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
        }

        function MM_findObj(n, d) { //v4.01
            var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
                d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
            }
            if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
            for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
            if (!x && d.getElementById) x = d.getElementById(n); return x;
        }

        function MM_swapImage() { //v3.0
            var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
                if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
        }

               
        function openWindow(catid, itemid, pid, catname, lang, sitename, domainName) {

            var curlink = window.document.location.toString();
                window.open( sitename + "/"+ domainName +  '/Referlink/' + catid + "/" + itemid + "/" + pid + "/" + catname + "/" + lang + "/", 'popupTIPS', 'width=500,height=700,scrollbars=no');
            
        }
        
       function addToFavorite(favTitle)
              { 
                  var title=favTitle; 
                  var url=location.href; 

                  if(window.sidebar){ 
                                      window.sidebar.addPanel(title, url,""); 
                                     }
                  else if( window.opera && window.print )
                                    { 
                                        var mbm = document.createElement('a'); 
                                        mbm.setAttribute('rel','sidebar'); 
                                        mbm.setAttribute('href',url); 
                                        mbm.setAttribute('title',title); 
                                        mbm.click(); 
                                    }
                                    else if(document.all){ 
                                        window.external.AddFavorite( url, unescape(favTitle)); 
                                } 
                  } 
                  
          function searchmouseover()
          {
              document.getElementById("btnsok").style.background = "url(media/sok_btn_bg_mo.png)";
          }
          
           function searchmouseout()
          {
              document.getElementById("btnsok").style.background = "url(media/sok_btn_bg.png)";
          }          
               
          function setover(id,img)
          {
            document.getElementById(id).src=img;
           }   
          
           function hideover(id,img)
          {
            document.getElementById(id).src=img;
          }        
                  
         function showDiv(detid,lstid)
         {
           document.getElementById(detid).style.display = "block";
           document.getElementById(lstid).style.display = "none";
           
         }  
         
         function hideDiv(detid,lstid)
         {
           document.getElementById(lstid).style.display = "block";
            document.getElementById(detid).style.display = "none";
         }

         function changeDivImagelvl1_1(catid) {

             document.getElementById("levelone" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function showitemcolor(id) {
             document.getElementById(id).style.backgroundColor = "#FCE7FC";
         }

         function showitemnocolor(id) {
             document.getElementById(id).style.backgroundColor = "Transparent";
         }

         function changeDivImagelvl1_2(catid) {

             document.getElementById("levelone" + catid).src = "media/l1_bullet.jpg";
         }

         function changeDivImageright_1(catid) {

             document.getElementById("rightitem" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImageright_2(catid) {

             document.getElementById("rightitem" + catid).src = "media/l1_bullet.jpg";
         }

         function changeDivImagerightcat_1(catid) {

             document.getElementById("rightcat" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImagerightcat_2(catid) {

             document.getElementById("rightcat" + catid).src = "media/l1_bullet.jpg";
         }

        
         function changeDivImageright1_1(catid) {

             document.getElementById("rightitem1_" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImageright1_2(catid) {

             document.getElementById("rightitem1_" + catid).src = "media/l1_bullet.jpg";
         }

         function changeDivImagerightcat1_1(catid) {

             document.getElementById("rightcat1_" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImagerightcat1_2(catid) {

             document.getElementById("rightcat1_" + catid).src = "media/l1_bullet.jpg";
         }

        


         function changeDivImagemblm1(catid) {

             document.getElementById("lesmer" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImagemblm2(catid) {

             document.getElementById("lesmer" + catid).src = "media/l1_bullet.jpg";
         }

         function changeDivImagemblm1_r(catid) {

             document.getElementById("lesmer_r" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImagemblm2_r(catid) {

             document.getElementById("lesmer_r" + catid).src = "media/l1_bullet.jpg";
         }

         function changeDivImageartlm1(catid) {

             document.getElementById("artlesmer" + catid).src = "media/l1_bullet_mo.jpg";

         }

         function changeDivImageartlm2(catid) {

             document.getElementById("artlesmer" + catid).src = "media/l1_bullet.jpg";
         }

         //Gallary //


         var currentImgCount = 0;
         var nextImgCount = 1;
         var prevImgCount = -1;
         var prevnum = 0;
         var i = 0;
         var timeDelay;
         var IsSlideShow = 0;
         var htmlresult;
         var ingHtml = "<div id='ingressDiv' style='visibility: hidden;' ><div id='ctl00_middleSection_ctl00_Image_Ingress1' class='btmIngree' runat='server' ></div></div>"

         function FetchMediumImage(img_name, imgextn, imgcount, imgdescr, obj, txtid) // onclick Thumb rotator img
         {
            
             //  window.location.hash="#deta";    
             // alert("medium");
             var p_para = img_name + imgextn;

             //GetMediumImage.GetImage_Medium(p_para,imgcount,imagepath,imgdescr,OnWSRequestComplete, OnWSRequestFailed);
             nextImgCount = imgcount + 1;
             currentImgCount = imgcount;
             prevImgCount = imgcount - 1;

             IsSlideShow = 0;
             i = currentImgCount;
             var tid = "txt_" + currentImgCount;
             //alert(document.getElementById(tid));
             if (nextImgCount >= imagepath.length) {
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_right').css('cursor', 'default');
                     $('#ctl00_middleSection_ctl01_img_right').css('cursor', 'default');
                     $("#Rightbutton").hide();
                 });
             }
             else {
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_right').css('cursor', 'pointer');
                     $('#ctl00_middleSection_ctl01_img_right').css('cursor', 'pointer');
                     $("#Rightbutton").show();
                 });
             }


             if (prevImgCount < 0) {
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_left').css('cursor', 'default');
                     $('#ctl00_middleSection_ctl01_img_left').css('cursor', 'default');
                     $("#leftbutton").hide();
                 });
             }
             else {
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_left').css('cursor', 'pointer');
                     $('#ctl00_middleSection_ctl01_img_left').css('cursor', 'pointer');
                     $("#leftbutton").show();
                 });
             }            

             document.getElementById("txt_" + prevnum).style.textDecoration = "none";

             document.getElementById("txt_" + currentImgCount).style.textDecoration = "underline";
             //alert(document.getElementById("txt_" + currentImgCount));
             prevnum = currentImgCount
             var str_GalleryImg = "";

             var prevGal = "";


             for (var i = 0; i <= imgcount - 1; i++) {
                 prevGal += " " + limage[i];

             }

             //alert(limage.length);

             for (var i = imgcount + 1; i < limage.length; i++) {
                 str_GalleryImg += " " + limage[i];

                 //alert(str_GalleryImg[i]);
             }

             var currentHtml = imgstr[currentImgCount].replace(',', '');

             htmlresult = prevGal + imgstr[currentImgCount] + str_GalleryImg;

             var hashValue = "#deta";
             //window.location.hash = hashValue;
             //alert(prevGal);
             if (document.getElementById("Image_Container_1") != null) {
                 jQuery(document).ready(function ($) {
                     if (eff == "fade") {
                         //jQuery('#photo1' + currentImgCount).css("left", (($('#Image_Container_1').width()) - ($('#photo1' + currentImgCount).width())) / 2);
                         //jQuery('#ingressDiv').css("left", (($('#Image_Container_1').width()) - ($('#photo1' + currentImgCount).width())) / 2);
                         jQuery('#Image_Container_1 a img').fadeOut('2000');
                         jQuery('#photo1' + currentImgCount).fadeIn('80');
                     }
                     else {
                         jQuery("#Image_Container_1").html(ingHtml + htmlresult);
                     }
                     fadeTargetId = 'photo1' + currentImgCount;
                     f1(currentImgCount);
                 });
             }

             if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1") != null) {

                 if (imageIngress[currentImgCount] == "") {
                     document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "hidden";
                 } else {
                     document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "visible";
                     document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").innerHTML = ingHtml + decodeURIComponent(imageIngress[currentImgCount]);
                 }
                 //alert(imageIngress[currentImgCount]);
             }
             
             if (document.getElementById("ctl00_middleSection_ctl00_imgTitle") != null) {
                 if (imagetitle[currentImgCount] == "") {
                     document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = "";
                 } else {
                     document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = decodeURIComponent(imagetitle[currentImgCount]);
                 }
             }

             jQuery(document).ready(function ($) {
                 $('#Image_Container_1 a img').load(function () {
                     $('#Image_Container_1').width($('#Image_Container_1 a img').width());
                     $('#Image_Container_1').height($('#Image_Container_1 a img').height());
                     $('.btmIngree').width($('#Image_Container_1 a img').width() - 11);

                     $('.btmIngree').css({ top: ($('#Image_Container_1 a img').height() - ($('#ingressDiv div').height() + 22)) });
                     $('#ingressDiv').css('visibility', 'visible');
                 });
             });
             jQuery(document).ready(function ($) {
                 var curImgW = $('#photo1' + currentImgCount).width();
                 var curImgH = $('#photo1' + currentImgCount).height();
                 //$('#Image_Container_1').width(curImgW);
                 $('#Image_Container_1').height(curImgH);
                 $('.btmIngree').width(curImgW - 11);
                 $('#ingressDiv').css('visibility', 'visible');
                 $('.btmIngree').css({ top: (curImgH - ($('#ingressDiv div').height() + 22)) });
             });
         }


         function GetNextImage()     //Function To Show Next Image
         {
             if (nextImgCount >= imagepath.length - 1) {
                 // jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_right').css('cursor', 'default');
                     $('#ctl00_middleSection_ctl01_img_right').css('cursor', 'default');
                     $("#Rightbutton").hide();
                 });
             }
             else {
                 // jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_right').css('cursor', 'pointer');
                     $('#ctl00_middleSection_ctl01_img_right').css('cursor', 'pointer');
                     $("#Rightbutton").show();
                 });
             }


             if (prevImgCount + 1 < 0) {
                 //    jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_left').css('cursor', 'default');
                     $('#ctl00_middleSection_ctl01_img_left').css('cursor', 'default');
                     $("#leftbutton").hide();
                 });
             }
             else {
                 //    jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_left').css('cursor', 'pointer');
                     $('#ctl00_middleSection_ctl01_img_left').css('cursor', 'pointer');
                     $("#leftbutton").show();
                 });
             }
             if (nextImgCount < imagepath.length) {

                 //GetMediumImage.GetImage_Next(currentImgCount,imagepath,imageIngress,OnWSRequestComplete, OnWSRequestFailed);

                 nextImgCount += 1;
                 currentImgCount += 1;
                 prevImgCount += 1;

                 IsSlideShow = 0;
                 i = currentImgCount;

                 var str_GalleryImg = "";

                 var prevGal = "";

                 for (var i = 0; i <= currentImgCount - 1; i++) {
                     prevGal += " " + limage[i];
                     //alert(prevGal[i]);
                 }

                 //alert(limage.length);

                 for (var i = currentImgCount + 1; i < limage.length; i++) {
                     str_GalleryImg += " " + limage[i];

                     //alert(str_GalleryImg[i]);
                 }
                 //alert(width[nextImgCount]);
                 htmlresult = prevGal + imgstr[currentImgCount] + str_GalleryImg
                 var hashValue = "#deta";
                 //window.location.hash = hashValue;

                 //alert(htmlresult);
                 if (document.getElementById("Image_Container_1") != null) {
                     jQuery(document).ready(function ($) {
                         if (eff == "fade") {
                             //jQuery('#photo1' + currentImgCount).css("left", (($('#Image_Container_1').width()) - ($('#photo1' + currentImgCount).width())) / 2);
                             jQuery('#Image_Container_1 a img').fadeOut('2000');
                             jQuery('#photo1' + currentImgCount).fadeIn('80');
                         }
                         else {
                             jQuery("#Image_Container_1").html(ingHtml + htmlresult);
                         }
                         fadeTargetId = 'photo1' + currentImgCount;
                         f1(currentImgCount);
                     });
                 }
                 


                 if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1") != null) {
                     if (imageIngress[currentImgCount] == "") {
                         document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "hidden";
                     } else {
                         document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "visible";
                         document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").innerHTML = ingHtml + decodeURIComponent(imageIngress[currentImgCount]);
                     }
                 }
                 
                 if (document.getElementById("ctl00_middleSection_ctl00_imgTitle") != null) {
                     if (imagetitle[currentImgCount] == "") {
                         document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = "";
                     } else {
                         document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = decodeURIComponent(imagetitle[currentImgCount]);
                     }
                 }

             }
             jQuery(document).ready(function ($) {
                 $('#Image_Container_1 a img').load(function () {
                     $('#Image_Container_1').width($('#Image_Container_1 a img').width());
                     $('#Image_Container_1').height($('#Image_Container_1 a img').height());
                     $('.btmIngree').width($('#Image_Container_1 a img').width() - 11);
                     //$('.btmIngree').css({ top: -($('#ingressDiv div').height() + 22) });
                     $('.btmIngree').css({ top: ($('#Image_Container_1 a img').height() - ($('#ingressDiv div').height() + 22)) });
                     $('#ingressDiv').css('visibility', 'visible');
                 });
             });
             jQuery(document).ready(function ($) {
                 var curImgW = $('#photo1' + currentImgCount).width();
                 var curImgH = $('#photo1' + currentImgCount).height();
                 //$('#Image_Container_1').width(curImgW);
                 $('#Image_Container_1').height(curImgH);
                 $('.btmIngree').width(curImgW - 11);
                 $('#ingressDiv').css('visibility', 'visible');
                 $('.btmIngree').css({ top: (curImgH - ($('#ingressDiv div').height() + 22)) });
             });
         }

         function GetPrevImage()    //Function To Show Previous Image
         {
             if (nextImgCount - 1 >= imagepath.length) {
                 //   jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_right').css('cursor', 'default');
                     $('#ctl00_middleSection_ctl01_img_right').css('cursor', 'default');
                     $("#Rightbutton").hide();
                 });
             }
             else {
                 //   jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_right').css('cursor', 'pointer');
                     $('#ctl00_middleSection_ctl01_img_right').css('cursor', 'pointer');
                     $("#Rightbutton").show();
                 });
             }


             if (prevImgCount < 1) {
                 //   jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_left').css('cursor', 'default');
                     $('#ctl00_middleSection_ctl01_img_left').css('cursor', 'default');
                     $("#leftbutton").hide();
                 });
             }
             else {
                 //    jQuery.noConflict();
                 jQuery(document).ready(function ($) {
                     $('#ctl00_middleSection_ctl00_img_left').css('cursor', 'pointer');
                     $('#ctl00_middleSection_ctl01_img_left').css('cursor', 'pointer');
                     $("#leftbutton").show();
                 });
             }
             if (prevImgCount != -1) {
                 //GetMediumImage.GetImage_Previous(currentImgCount,imagepath,imageIngress,OnWSRequestComplete, OnWSRequestFailed);

                 nextImgCount -= 1;
                 prevImgCount -= 1;
                 currentImgCount -= 1;
                 IsSlideShow = 0;
                 i = currentImgCount;

                 var str_GalleryImg = "";

                 var prevGal = "";


                 for (var i = 0; i <= currentImgCount - 1; i++) {
                     prevGal += " " + limage[i];
                     //alert(prevGal[i]);
                 }

                 //alert(limage.length);

                 for (var i = currentImgCount + 1; i < limage.length; i++) {
                     str_GalleryImg += " " + limage[i];

                     //alert(str_GalleryImg[i]);
                 }

                 htmlresult = prevGal + imgstr[currentImgCount] + str_GalleryImg
                 var hashValue = "#deta";
                 //window.location.hash = hashValue;

                 //alert(htmlresult);
                 if (document.getElementById("Image_Container_1") != null) {
                     jQuery(document).ready(function ($) {
                         if (eff == "fade") {
                             //jQuery('#photo1' + currentImgCount).css("left", (($('#Image_Container_1').width()) - ($('#photo1' + currentImgCount).width())) / 2);
                             jQuery('#Image_Container_1 a img').fadeOut('2000');
                             jQuery('#photo1' + currentImgCount).fadeIn('80');
                         }
                         else {
                             jQuery("#Image_Container_1").html(ingHtml + htmlresult);
                         }
                         fadeTargetId = 'photo1' + currentImgCount;
                         f1(currentImgCount);
                     });
                 }
                 
                 if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1") != null) {
                     if (imageIngress[currentImgCount] == "") {
                         document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "hidden";
                     } else {
                         document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "visible";
                         document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").innerHTML = ingHtml + decodeURIComponent(imageIngress[currentImgCount]);
                     }
                 }
                 

                 if (document.getElementById("ctl00_middleSection_ctl00_imgTitle") != null) {
                     if (imagetitle[currentImgCount] == "") {
                         document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = "";
                     } else {
                         document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = decodeURIComponent(imagetitle[currentImgCount]);
                     }
                 }
             }
             jQuery(document).ready(function ($) {
                 $('#Image_Container_1 a img').load(function () {
                     $('#Image_Container_1').width($('#Image_Container_1 a img').width());
                     $('#Image_Container_1').height($('#Image_Container_1 a img').height());
                     $('.btmIngree').width($('#Image_Container_1 a img').width() - 11);
                     //$('.btmIngree').css({ top: -($('#ingressDiv div').height() + 22) });
                     $('.btmIngree').css({ top: ($('#Image_Container_1 a img').height() - ($('#ingressDiv div').height() + 22)) });
                     $('#ingressDiv').css('visibility', 'visible');
                 });
             });
             jQuery(document).ready(function ($) {
                 var curImgW = $('#photo1' + currentImgCount).width();
                 var curImgH = $('#photo1' + currentImgCount).height();
                 //$('#Image_Container_1').width(curImgW);
                 $('#Image_Container_1').height(curImgH);
                 $('.btmIngree').width(curImgW - 11);
                 $('#ingressDiv').css('visibility', 'visible');
                 $('.btmIngree').css({ top: (curImgH - ($('#ingressDiv div').height() + 22)) });
             });
         }

         function SlideShow(para)      //Function To Show Slideshow
         {
             if (para == undefined) {
                 IsSlideShow = (IsSlideShow == 0) ? 1 : 0;
             }

             if (IsSlideShow == 1) {

                 var str_GalleryImg = "";

                 var prevGal = "";

                 for (var j = 0; j <= currentImgCount; j++) {
                     prevGal += " " + limage[j];
                     //alert(prevGal[i]);
                 }

                 //alert(limage.length);

                 for (var k = currentImgCount + 2; k < limage.length; k++) {
                     str_GalleryImg += " " + limage[k];

                     //alert(str_GalleryImg[i]);
                 }


                 if (i <= imagepath.length - 1) {
                     //GetMediumImage.GetImage_slideshow(i,imagepath,imageIngress, OnWSRequestComplete,OnWSRequestFailed);  


                     currentImgCount = i;
                     prevImgCount = i - 1;
                     nextImgCount = i + 1;
                     i++;

                     //prevGal1[i]=limage[i];

                     //str_GalleryImg1[i]=limage[i];
                     //alert(i);

                     htmlresult = prevGal + imgstr[currentImgCount] + str_GalleryImg

                     var hashValue = "#deta";
                     //window.location.hash = hashValue;
                     //alert(htmlresult);
                     if (document.getElementById("Image_Container_1") != null) {
                         jQuery(document).ready(function ($) {
                             if (eff == "fade") {
                                 //jQuery('#photo1' + currentImgCount).css("left", (($('#Image_Container_1').width()) - ($('#photo1' + currentImgCount).width())) / 2);
                                 jQuery('#Image_Container_1 a img').fadeOut('2000');
                                 jQuery('#photo1' + currentImgCount).fadeIn('80');
                             }
                             else {
                                 jQuery("#Image_Container_1").html(ingHtml + htmlresult);
                             }
                             fadeTargetId = 'photo1' + currentImgCount;
                             f1(currentImgCount);
                         });
                     }
                     if (document.getElementById("Image_Container_1") != null) {
                         document.getElementById("Image_Container_1").innerHTML = htmlresult;

                         fadeTargetId = 'photo1' + currentImgCount;

                         f1(currentImgCount);
                     }


                     timeDelay = setTimeout("SlideShow(0)", 4000);

                     
                     if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1") != null) {
                         if (imageIngress[currentImgCount] == "") {
                             document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "hidden";
                         } else {
                             document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").style.visibility = "visible";
                             document.getElementById("ctl00_middleSection_ctl00_Image_Ingress1").innerHTML = ingHtml + decodeURIComponent(imageIngress[currentImgCount]);
                         }
                     }
                     

                     if (document.getElementById("ctl00_middleSection_ctl00_imgTitle") != null) {
                         document.getElementById("ctl00_middleSection_ctl00_imgTitle").innerHTML = decodeURIComponent(imagetitle[currentImgCount]);
                     }

                 }

                 if (i == imagepath.length) {
                     i = 0;
                     clearTimeout(timeDelay);
                 }
             }
             else {
                 IsSlideShow = 0;
                 clearTimeout(timeDelay);
             }
         }     
     
      
      
     //Dynamic font Size
     
     
     var min=12;
var max=16;
function increaseFontSize() {
   var p = document.getElementsByTagName('a');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('a');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

function changeFontSize(inc)
{
  var p = document.getElementsByTagName('a');
  for(n=0; n<p.length; n++) {
    if(p[n].style.fontSize) {
       var size = parseInt(p[n].style.fontSize.replace("px", ""));
    } else {
       var size = 12;
    }
    p[n].style.fontSize = size+inc + 'px';
    }
}


function setleftbulletover(bulletid) {
    document.getElementById(bulletid).src = "media/firstlevel_bullet_mo.png";

}

function setleftbulletout(bulletid) {
    document.getElementById(bulletid).src = "media/firstlevel_bullet.png";
}

function setleftbulletover_sel(bulletid) {
    document.getElementById(bulletid).src = "media/firstlevel_bullet_sel_mo.png";
}

function setleftbulletout_sel(bulletid) {
    document.getElementById(bulletid).src = "media/firstlevel_bullet_sel.png";
}

function setlesmerOver(id1) {  //,id2) {
    document.getElementById(id1).src = "media/mboxlesmer_bullet_mo.jpg";
    //document.getElementById(id2).style.color = '#A0CEE8';
}

function setlesmerOut(id1) {   //,id2) {
    document.getElementById(id1).src = "media/mboxlesmer_bullet.jpg";
    //document.getElementById(id2).style.color = '#4E5054';
}

function setartlesmerOver(id1) {  //,id2) {
    document.getElementById(id1).src = "media/artlesmer_bullet_mo.png";
    //document.getElementById(id2).style.color = '#A0CEE8';
}

function setartlesmerOut(id1) {   //,id2) {
    document.getElementById(id1).src = "media/artlesmer_bullet.png";
    //document.getElementById(id2).style.color = '#4E5054';
}      
   
