
<!--
 	
function topbar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#FFFFFF';
				
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#FF5500';
				
		}
	}
}


// end


//-->


<!--
 	
function topbar2( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#FF5500';
				
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#FFFFFF';
				
		}
	}
}


// end


//-->




function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

<!-- Begin
function blockError(){return true;}
window.onerror = blockError;
//  End -->

// split the image name from the url
    var ns = (navigator.appName == "Netscape") ? true : false;
       
    /* this function will be called when the image has been loaded and it
     * will resize the image and turns on the visibility for the layer. */
    function change()
    {
        iheight = ns ? window.innerHeight : document.body.clientHeight;
        iwidth = ns ? window.innerWidth : document.body.clientWidth;
        imwidth = document.images[0].width;
        imheight = document.images[0].height;
        iheight -= 200;        
        iwidth -= 40;
        portrait = imwidth < imheight ? true : false;
        newwidth = 0; 
        if(portrait)
        {
            if(imwidth * (iheight / imheight) > iwidth)
            {
                document.images[0].height = imheight * (iwidth / imwidth);
                newwidth = document.images[0].width = iwidth;
            }
            else
            {
                document.images[0].height = iheight;
                newwidth = document.images[0].width = 
                    imwidth * (iheight / imheight);
            }
        }
        else
        {
            if(imheight * (iwidth / imwidth) > iheight)
            {
                document.images[0].height = iheight;
                newwidth = document.images[0].width = 
                    imwidth * (iheight / imheight);
            }
            else
            {
                document.images[0].height = imheight * (iwidth / imwidth);
                newwidth = document.images[0].width = iwidth;
            }
        }
        //document.getElementById('wait').style.visibility = 'hidden';
        document.getElementById('resizeme').style.visibility = 'visible';
        document.getElementById('resizeme').style.top = 5;
        document.getElementById('resizeme').style.left = iwidth / 2 - (newwidth / 2);
    }


<!--

function launchSearch(lang,site,words)   
{
   url = "";
   switch(site)
   {
   	case "google":
			url="http://images.google.com/images?q="+word+"&hl=en&btnG=Google+Search";
									
   		break;
   
   	case "yahoo":
   		url="http://images.search.yahoo.com/search/images?p="+word;
   		break;
   	
   	   
   	case "altavista":         
   		url="http://www.altavista.com/image/results?q="+word+"&kgs=0&kls=0";
   		break;

   	    		
   	case "lycos":         
	   		url="http://multimedia.lycos.com/results.asp?component=MorePictures&query="+word+"&x=16&y=7&agree=1";
   		break;
			
   	case "picsearch":
          url = "http://www.picsearch.com/search.cgi?q="+word+"";  		
    		break;
         
      		
   		
   	case "alltheweb":
   		url="http://www.alltheweb.com/search?cat=img&cs=utf8&q="+word+"&rys=0&_sb_lang=pref";
   		break;
   }

        OpenWin = window.open(url, "", "")         
}

function runSearch(lang,data)        
{
   arr1 = new Array("alltheweb","google","yahoo","altavista","lycos","picsearch");
   arr2 = new Array("google","arabvista","yahoo","webshots","alltheweb");	
	if (lang=='e')	
		arr= arr1;
	else
		arr=arr2;	
   word = data.words.value;
   form2 = document.search;
   
   for (i=0;i<6;i++)
   {
      if (data.siteName[i].checked){
         site = arr[i];
         break;
      }   
   }
   data.words.value="";
   data.siteName.value=""; 
   launchSearch(lang,site,word);
   
}
// end


//-->