function fnObeyLink(url) {
            //alert(url);
            window.location = url;
        }
        
     function clickclear(thisfield, defaulttext)
{

  if (thisfield.value == defaulttext) 
   {
      thisfield.value = "";
   }
}
     function setprintbulletover(bulletid)
              {
                 document.getElementById(bulletid).src="media/print.png";
               
                   
              }
                            
                function setprintbulletout(bulletid)
              {
                 document.getElementById(bulletid).src="media/printred.png";
                 
                   
              }
         function setreferbulletover(bulletid)
              {
                 document.getElementById(bulletid).src="media/tips.png";
              
                   
              }
                 
                 function setreferbulletout(bulletid)
              {
                 document.getElementById(bulletid).src="media/tipsred.png";
               
                   
              }
                          
             
function clickrecall(thisfield, defaulttext) 
{
   if (thisfield.value == "") 
   {
      thisfield.value = defaulttext;
    }
 }
 
     function searchresult(sitename,domainName){
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 setmouseover(top,mid,bullet,bot,txtid)   
               {
                document.getElementById(top).style.backgroundImage = "url(media/bg_acttop_sel.jpg)";
                document.getElementById(top).style.backgroundPosition="top";
                document.getElementById(top).style.backgroundRepeat ="no-repeat";
                document.getElementById(mid).style.backgroundImage = "url(media/bg_actsel_mid.jpg)";
                document.getElementById(mid).style.backgroundRepeat ="no-repeat";
                document.getElementById(mid).style.backgroundPosition="bottom";
                document.getElementById(mid).style.backgroundColor = "#FBB528" ;
                 document.getElementById(mid).style.borderLeft="0px solid";
                document.getElementById(mid).style.borderRight="0px solid";
                 document.getElementById(mid).style.width="346px";
                document.getElementById(bullet).src="media/bulletact_sel.png";
                document.getElementById(bot).style.backgroundImage = "url(media/bg_actbot_sel.jpg)";
                document.getElementById(bot).style.backgroundRepeat ="no-repeat"
                document.getElementById(bot).style.backgroundPosition="bottom";
                document.getElementById(txtid).style.color="#ffffff";
               }
               
               function setmouseout(top,mid,bullet,bot,txtid)   
               {
                document.getElementById(top).style.backgroundImage = "url(media/bg_acttop.jpg)";
                document.getElementById(top).style.backgroundPosition="top";
                document.getElementById(top).style.backgroundRepeat ="no-repeat";
                document.getElementById(mid).style.backgroundImage = "url(media/bg_actmid.jpg)";
                document.getElementById(mid).style.backgroundRepeat ="repeat-x";
                document.getElementById(mid).style.backgroundPosition="top";
                document.getElementById(mid).style.borderLeft="#DDDDDD 1px solid";
                document.getElementById(mid).style.borderRight="#DDDDDD 1px solid";
                 document.getElementById(mid).style.width="344px";
                document.getElementById(mid).style.backgroundColor = "#ffffff" ;
                document.getElementById(bullet).src="media/actbullet.png";
                document.getElementById(bot).style.backgroundImage = "url(media/bg_actbot.jpg)";
                document.getElementById(bot).style.backgroundRepeat ="no-repeat"
                document.getElementById(bot).style.backgroundPosition="bottom";
                 document.getElementById(txtid).style.color="#000000";
               }
              
                         
                 function leftsetmouseover1(topid,mid,bullet,txtid,botid)
              {
                document.getElementById(topid).style.backgroundImage = "url(media/bg_toplevel1.jpg)";
                document.getElementById(topid).style.backgroundPosition="top";
                document.getElementById(topid).style.backgroundRepeat ="no-repeat";
                document.getElementById(mid).style.backgroundColor = "#003C5E";
                document.getElementById(bullet).src = "media/img_level1bulletsel.jpg";
                document.getElementById(botid).style.backgroundImage = "url(media/bg_botlevel1.jpg)";
                document.getElementById(botid).style.backgroundPosition="bottom";
                document.getElementById(botid).style.backgroundRepeat ="no-repeat";
                document.getElementById(txtid).style.color="#ffffff";
              }
              
              function leftsetmouseoout1(topid,mid,bullet,txtid,botid)
              {
               document.getElementById(topid).style.backgroundImage = "url(media/transbg.gif)";
                document.getElementById(topid).style.backgroundPosition="top";
                document.getElementById(topid).style.backgroundRepeat ="no-repeat";
                document.getElementById(mid).style.backgroundColor = "#ffffff";
                document.getElementById(bullet).src="media/img_level1bullet.jpg";
                document.getElementById(botid).style.backgroundImage = "url(media/transbg.gif)";
                document.getElementById(botid).style.backgroundPosition="bottom";
                document.getElementById(botid).style.backgroundRepeat ="no-repeat";
                document.getElementById(txtid).style.color="#035D8A";
              }
              
              function setleftbulletover(bulletid)
              {
                 document.getElementById(bulletid).src="media/leftarrowdown.png";
               
              }
                            
                function setleftbulletout(bulletid)
              {
                 document.getElementById(bulletid).src="media/leftarrow.jpg";
                  
              }
                 function setleftbulletover1(bulletid)
              {
                 document.getElementById(bulletid).src="media/leftarrowsingledown.png";
                
              }
                            
                function setleftbulletout1(bulletid)
              {
                 document.getElementById(bulletid).src="media/leftarrowsingleblack.png";
                  
              }
                  function setleftbulletover2(bulletid)
              {
                 document.getElementById(bulletid).src="media/leftarrowsingleblackdown.png";
                
              }
                            
                function setleftbulletout2(bulletid)
              {
                 document.getElementById(bulletid).src="media/leftarrowsingle.png";
                 
              }
              
                      function setmboxbulletover(bulletid)
              {
            
                 document.getElementById(bulletid).src="media/mboxarrowred.png";
                
              }
                            
                function setmboxbulletout(bulletid)
              {
                 document.getElementById(bulletid).src="media/mboxarrow.png";
                  
              }
                  
                  
           function setlesmerOver(id)
           {
               document.getElementById(id).src="media/btn_seedetailmo.jpg";
            
           }
           
           function setlesmerOut(id)
           {
               document.getElementById(id).src="media/btn_seemore.jpg";
           }
           
           
           
           
      //Gallary //
      
      
        var currentImgCount=0;
        var nextImgCount=1;
        var prevImgCount=-1;
        var i=0;
        var timeDelay;
        var IsSlideShow = 0;
        var htmlresult;
       
	     
    function FetchMediumImage(img_name,imgextn,imgcount,imgdescr,obj) // 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 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(htmlresult);
	           if (document.getElementById("Image_Container_1") !=null)
                {
                
                
                
                document.getElementById("Image_Container_1").innerHTML=htmlresult;
                
                fadeTargetId='photo1' + currentImgCount;
                            
//                       if (hashValue == window.location.hash)
//                 {
//                    window.location.hash = new String((new Date().getMilliseconds()));
//                 }
                 
                

                     fadeInit();
                }
         var stringress = decodeURI(imageIngress[currentImgCount]);
	    
	  
	     if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress") !=null)
	      {
	     
	        document.getElementById("ctl00_middleSection_ctl00_Image_Ingress").innerHTML = stringress.replace("'+'","");
	      }
	      else
	      {
	        document.getElementById("ctl00_ctl13_Image_Ingress").innerHTML = stringress.replace("'+'","");
	      }
	      
	      
	   } 
   
    
    function GetNextImage()     //Function To Show Next Image
    {
        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]);
                }
               
               htmlresult=prevGal+imgstr[currentImgCount]+str_GalleryImg
	        var hashValue = "#deta"; 
	      window.location.hash = hashValue;
	    
	    //alert(htmlresult);
	           if (document.getElementById("Image_Container_1") !=null)
                {
                
                   
                   
                   //alert(currentImgCount);
                   
                document.getElementById("Image_Container_1").innerHTML=htmlresult;
       
                  fadeTargetId='photo1' + currentImgCount;
                            
//                       if (hashValue == window.location.hash)
//                 {
//                    window.location.hash = new String((new Date().getMilliseconds()));
//                 }
//                 
               

                     fadeInit();
                }

           
           
           
          if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress") !=null)
	      {
	        document.getElementById("ctl00_middleSection_ctl00_Image_Ingress").innerHTML = decodeURI(imageIngress[currentImgCount]).replace("+","");
	      }
	      else
	      {
	        document.getElementById("ctl00_ctl13_Image_Ingress").innerHTML = decodeURI(imageIngress[currentImgCount]).replace("+","");
	      }
                    
       }
    }
        
    function GetPrevImage()    //Function To Show Previous Image
    {
        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)
                {
                
                  
                   
                   //alert(currentImgCount);
                   
                document.getElementById("Image_Container_1").innerHTML=htmlresult;
       
                  fadeTargetId='photo1' + currentImgCount;
                            
//                       if (hashValue == window.location.hash)
//                 {
//                    window.location.hash = new String((new Date().getMilliseconds()));
//                 }
                 
                
                     fadeInit();
                }

	       
	       
	        if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress") !=null)
	      {
	        document.getElementById("ctl00_middleSection_ctl00_Image_Ingress").innerHTML = decodeURI(imageIngress[currentImgCount]).replace("+","");
	      }
	      else
	      {
	        document.getElementById("ctl00_ctl13_Image_Ingress").innerHTML = decodeURI(imageIngress[currentImgCount]).replace("+","");
	      }
        }
    }
    
   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)
                {
                
                 
                   
                   //alert(currentImgCount);
                   
                document.getElementById("Image_Container_1").innerHTML=htmlresult;
       
                  fadeTargetId='photo1' + currentImgCount;
                            
//                       if (hashValue == window.location.hash)
//                 {
//                    window.location.hash = new String((new Date().getMilliseconds()));
//                 }
                 
                

                     fadeInit();
                }

                
                timeDelay=setTimeout("SlideShow(0)",4000);
                
          if (document.getElementById("ctl00_middleSection_ctl00_Image_Ingress") !=null)
	      {
	        document.getElementById("ctl00_middleSection_ctl00_Image_Ingress").innerHTML = decodeURI(imageIngress[currentImgCount]).replace("+","");
	      }
	      else
	      {
	        document.getElementById("ctl00_ctl13_Image_Ingress").innerHTML = decodeURI(imageIngress[currentImgCount]).replace("+","");
	      }
             }
         
             if (i==imagepath.length)
             { 
               i=0;       
               clearTimeout(timeDelay);
             }
         }
         else
         {
             IsSlideShow=0;
             clearTimeout(timeDelay);
         }
      }
  
  
  
   




