// JavaScript Document
var disableImageCheck = false;
function DisableImageCheck()
{
	disableImageCheck = true;
}
function IsImageOk(img)
{
   
    if(navigator.userAgent.indexOf("Opera")!=-1)
    {
        var versionindex=navigator.userAgent.indexOf("Opera")+6
        if (parseInt(navigator.userAgent.charAt(versionindex))>=8)
        return true;
    }
	
    if(img.className == 'nohide') return true;
    // During the onload event, IE correctly identifies any images that
    // weren't downloaded as not complete. Others should too. Gecko-based
    // browsers act like NS4 in that they report this incorrectly.
    if (!img.complete)
        return false;

    // However, they do have two very useful properties: naturalWidth and
    // naturalHeight. These give the true size of the image. If it failed
    // to load, either of these should be zero.
    if (typeof img.naturalWidth != "undefined" && img.naturalWidth == 0)
        return false;

    // No other way of checking: assume it's ok.
    return true;
}
AddEvent(window, "load", function()
{
   
    for (var i = 0; i < document.images.length; i++)
        if (!IsImageOk(document.images[i]))
	{
            //document.images[i].style.visibility = "hidden";
            if(document.images[i].className == "uimgs")  document.images[i].src = "../../UserAsset/noimage_s.gif";
            else if(document.images[i].className == "uimg")  document.images[i].src = "../../UserAsset/noimage.gif";
            else if(document.images[i].className == "map")  document.images[i].src = "../Assets/map_unavail.gif";
            else
            {
		        document.images[i].src = "../Assets/image_not_available.gif";
		        document.images[i].className = "notAvail";
		    }
		//document.images[i].style.border-color = "#f4f4f4";
	}
			
})


AddEvent(window, "load", function()
{
DestroyGoogleToolBar()
    self.setTimeout("DestroyGoogleToolBar()", 500)
          self.setTimeout("DestroyGoogleToolBar()", 1000)
 self.setTimeout("DestroyGoogleToolBar()", 5000)
			  
})

function DestroyGoogleToolBar()
{
           // document.forms[0].focus = function()
          //  {
                
           // }
            var LEN = document.forms[0].length;
      
            for(var i = 0  ; i < LEN ; i++)
            {
             
                 var item = document.forms[0][i];
                 if(item.type == 'text')
                 {
                 if(item.style.backgroundColor != "#581b0c"&& item.style.backgroundColor != "")
                 {
                       item.style.backgroundColor = "#581b0c"
                 }
               }
             
            }
}

