flies

Facts about flies

// 0) {
thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);
thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top);
with (menu[targetNum][0].ref) {
left = parseInt(thisX + menu[targetNum][0].x);
top = parseInt(thisY + menu[targetNum][0].y);
visibility = ‘visible’;
}
}
}
function popOut(menuNum, itemNum) {
if ((menuNum == 0) && !menu[menuNum][itemNum].target)
hideAllBut(0)
else
popTimer = setTimeout(‘hideAllBut(0)’, 500);
}
function getTree(menuNum, itemNum) {

itemArray = new Array(menu.length);

while(1) {
itemArray[menuNum] = itemNum;

if (menuNum == 0) return itemArray;
itemNum = menu[menuNum][0].parentItem;
menuNum = menu[menuNum][0].parentMenu;
}
}

function changeCol(changeArray, isOver) {
for (menuCount = 0; menuCount < changeArray.length; menuCount++) {
if (changeArray[menuCount]) {
newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;
// Change the colours of the div/layer background.
with (menu[menuCount][changeArray[menuCount]].ref) {
if (isNS4) bgColor = newCol;
else backgroundColor = newCol;
}
}
}
}
function hideAllBut(menuNum) {
var keepMenus = getTree(menuNum, 1);
for (count = 0; count < menu.length; count++)
if (!keepMenus[count])
menu[count][0].ref.visibility = ‘hidden’;
changeCol(litNow, false);
}

function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {

this.isVert = isVert;

this.popInd = popInd

this.x = x;
this.y = y;
this.width = width;

this.overCol = overCol;
this.backCol = backCol;

this.borderClass = borderClass;
this.textClass = textClass;

this.parentMenu = null;
this.parentItem = null;

this.ref = null;
}

function Item(text, href, frame, length, spacing, target) {
this.text = text;
this.href = href;
this.frame = frame;
this.length = length;
this.spacing = spacing;
this.target = target;

this.ref = null;
}

function writeMenus() {
if (!isDOM && !isIE4 && !isNS4) return;

for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {

var str = ”, itemX = 0, itemY = 0;

for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
var itemID = ‘menu’ + currMenu + ‘item’ + currItem;

var w = (isVert ? width : length);
var h = (isVert ? length : width);

if (isDOM || isIE4) {
str += ‘

<div id=”‘ + itemID + ‘” style=”position: absolute; left: ‘ + itemX + ‘; top: ‘ + itemY + ‘; width: ‘ + w + ‘; height: ‘ + h + ‘; visibility: inherit; ‘;
if (backCol) str += ‘background: ‘ + backCol + ‘; ‘;
str += ‘” ‘;
}
if (isNS4) {
str += ”;

str += ‘

‘;
if (target > 0) {

menu[target][0].parentMenu = currMenu;
menu[target][0].parentItem = currItem;

if (popInd) str += ‘

‘;
}
str += ‘

‘ + ‘‘ : ‘>’) + text + ‘ ‘ + popInd + ‘

‘ + (isNS4 ? ” : ‘

‘);
if (isVert) itemY += length + spacing;
else itemX += length + spacing;
}
if (isDOM) {
var newDiv = document.createElement(‘div’);
document.getElementsByTagName(‘body’).item(0).appendChild(newDiv);
newDiv.innerHTML = str;
ref = newDiv.style;
ref.position = ‘absolute’;
ref.visibility = ‘hidden’;
}

if (isIE4) {
document.body.insertAdjacentHTML(‘beforeEnd’, ‘

‘);
ref = getSty(‘menu’ + currMenu + ‘div’);
}

if (isNS4) {
ref = new Layer(0);
ref.document.write(str);
ref.document.close();
}

for (currItem = 1; currItem ‘, 0, 22, 90, defOver, defBack, ‘itemBorder’, ‘itemText’);
menu[1][1] = new Item(‘butterflies’, ‘butterflies.htm’, ”, defLength, 0, 0);
menu[1][2] = new Item(‘beetles’, ‘beetles1.htm’, ”, defLength, 0, 0);
// Non-zero target means this will trigger a popout — menu[4] which is the ‘Reopen’ menu.
menu[1][3] = new Item(‘moths’, ‘moths1.htm’, ”, defLength, 0, 4);
menu[1][4] = new Item(‘dragonflies’, ‘dragonflies1.htm’, ”, defLength, 0, 0);
menu[1][5] = new Item(‘bugs’, ‘bugs1.htm’, ”, defLength, 0, 0);
menu[1][6] = new Item(‘cicadas’, ‘cicadas.htm’, ”, defLength, 0, 0);
menu[1][7] = new Item(‘mantids’, ‘mantises1.htm’, ”, defLength, 0, 0);
menu[1][8] = new Item(‘caterpillars’, ‘caterpillars.htm’, ”, defLength, 0, 0);
menu[1][9] = new Item(‘grasshoppers’, ‘grasshoppers1.htm’, ”, defLength, 0, 0);
menu[1][10] = new Item(‘flies’, ‘flies.htm’, ”, defLength, 0, 0);
menu[1][11] = new Item(‘ants’, ‘ants.htm’, ”, defLength, 0, 0);
menu[1][13] = new Item(‘spiders’, ‘spiders1.htm’, ”, defLength, 0, 0);
menu[1][12] = new Item(‘others’, ‘others1.htm’, ”, defLength, 0, 6);

// Others menu.
menu[6] = new Array();
menu[6][0] = new Menu(true, ‘>’, 85, 0, 120, ‘#333366’, ‘#666699’, ‘crazyBorder’, ‘crazyText’);
menu[6][1] = new Item(‘various’, ‘others1.htm’, ”, defLength, 0, 0);
menu[6][2] = new Item(‘reptiles’, ‘snakes.htm’, ”, defLength, 0, 0);
menu[6][3] = new Item(‘amphibians’, ‘snakes.htm’, ”, defLength, 0, 0);
menu[6][4] = new Item(‘microscopic’, ‘microscope.htm’, ”, defLength, 0, 0);

// Edit menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, ‘>’, 0, 22, 100, defOver, defBack, ‘itemBorder’, ‘itemText’);
menu[2][1] = new Item(‘new pictures’, ‘newadd.htm’, ”, defLength, 0, 0);
menu[2][2] = new Item(‘bug of the week’, ‘bugoftheweek.htm’, ”, defLength, 0, 0);
menu[2][3] = new Item(‘pick of the pix’, ‘selection2.htm’, ”, defLength, 0, 0);
menu[2][4] = new Item(‘a bugs life’, ‘bugs life.htm’, ”, defLength, 0, 0);
menu[2][5] = new Item(‘insect art’, ‘insect_art.htm’, ”, defLength, 0, 0);

// Help menu
menu[3] = new Array();
menu[3][0] = new Menu(true, ”, 85, 0, 120, ‘#333366’, ‘#666699’, ‘crazyBorder’, ‘crazyText’);
menu[7][1] = new Item(‘cicadas’, ‘Articles/cicada facts.htm’, ”, defLength, 0, 0);
menu[7][2] = new Item(‘tiger beetles’, ‘Articles/tiger_beetles.htm’, ”, defLength, 0, 0);
menu[7][3] = new Item(‘fire flies’, ‘Articles/fireflies.htm’, ”, defLength, 0, 0);
menu[7][4] = new Item(‘mosquitoes’, ‘Articles/amazing_mosquito_facts.htm’, ”, defLength, 0, 0);
menu[7][5] = new Item(‘caterpillars’, ‘Articles/catfacts.html’, ”, defLength, 0, 0);
menu[7][6] = new Item(‘flies’, ‘Articles/flyfacts.htm’, ”, defLength, 0, 0);
menu[7][7] = new Item(‘grasshoppers’, ‘Articles/grasshoppers.htm’, ”, defLength, 0, 0);
menu[7][8] = new Item(‘mantids’, ‘Articles/mantids.htm’, ”, defLength, 0, 0);
menu[7][9] = new Item(‘spiders’, ‘Articles/spiders.htm’, ”, defLength, 0, 0);
menu[7][10] = new Item(‘other facts’, ‘facts.htm’, ”, defLength, 0, 0);

// Reopen menu
menu[4] = new Array();
// This is across but not down… a horizontal popout (with crazy stylesheets :)
menu[4][0] = new Menu(true, ‘>’, 85, 0, 120, ‘#333366’, ‘#666699’, ‘crazyBorder’, ‘crazyText’);
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[4][1] = new Item(‘Saturniidae’, ‘/mothssat.htm’, ”, defLength, 0, 0);
menu[4][2] = new Item(‘Noctuidae’, ‘mothowls.htm’, ”, defLength, 0, 0);
menu[4][3] = new Item(‘Geometridae’, ‘mothsgeo.htm’, ”, defLength, 0, 0);
menu[4][4] = new Item(‘Sphingidae’, ‘hawks.htm’, ”, defLength, 0, 0);
menu[4][5] = new Item(‘Arctiidae’, ‘/mothsArct.htm’, ”, defLength, 0, 0);
menu[4][6] = new Item(‘Zygaenidae’, ‘mothszygs.htm’, ”, defLength, 0, 0);
menu[4][7] = new Item(‘Lymentriidae’, ‘mothslym.htm’, ”, defLength, 0, 0);
menu[4][8] = new Item(‘Other macros’, ‘mothsmacro.htm’, ”, defLength, 0, 0);
menu[4][9] = new Item(‘Micros’, ‘moths1a.htm’, ”, defLength, 0, 0);
menu[4][10] = new Item(‘Unidentified’, ‘moths1c.htm’, ”, defLength, 0, 0);
menu[4][11] = new Item(‘Selection’, ‘Pik of moths/showthem.htm’, ”, defLength, 0, 0);

// Help About popout
menu[5] = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
menu[5][0] = new Menu(true, ‘>’, -85, -17, 80, defOver, defBack, ‘itemBorder’, ‘itemText’);
menu[5][1] = new Item(‘cicadas’, ‘cicadaspecs.htm’, ”, defLength, 0, 0);
menu[5][2] = new Item(‘butterflies’, ‘checklist.htm’, ”, defLength, 0, 0);
menu[5][3] = new Item(‘moths’, ‘mothspeclist.htm’, ”, defLength, 0, 0);
menu[5][4] = new Item(‘beetles’, ‘beetlelist.htm’, ”, defLength, 0, 0);
menu[5][5] = new Item(‘dragonflies’, ‘odonatespecs.htm’, ”, defLength, 0, 0);

var popOldWidth = window.innerWidth;
nsResizeHandler = new Function(‘if (popOldWidth != window.innerWidth) location.reload()’);

if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function clickHandle(evt)
{
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
}

function moveRoot()
{
with(menu[0][0].ref) left = ((parseInt(left) Some interesting facts about flies

  • There are more than 120,000 species of flies worldwide.
  • They are highly sensitive to movement. They have two eyes each with over 4,000 lenses.
  • Flies have a smelling distance of over 750 yards.
  • A fly’s feeding range is usually limited to two miles.
  • A single garbage can, if not emptied, can be the breeding ground for 30,000 flies.
  • Before they fly they must jump up and move backwards then forward.
  • Deer flies do not have piercing/sucking mouthparts like mosquitoes. They bite a hole in your skin with their strong mandibles, put a little saliva-like material in the wound to keep the blood from clotting and lap up the blood with a sponge-like proboscis . The deer fly usually buzzes silently around your head in ever-tightening circles. Eventually, it will find an exposed portion of your hand, arm or upper leg. The bite  usually results in a red welt that will disappear in a day or so (but itches like hell).
  • Male deer flies (and horse flies) drink nectar from flowers. Only the females feed on blood;
  • The house fly “hums” in the key of F and beats its wings over 20,000 times a minute
  • Beginning with one pair of house flies in April, there would be a total of 191,000,000,000,000,000,000 flies by August if all the descendants of this pair lived and reproduced normally.
  • Long-legged flies’ wings beat several hundred times per second- they achieve their highly complex aerial manoeuvres with only one pair of wings, the other having being converted into a gyroscope.
  • Adult house flies usually live 15 to 25 days.
  • House flies at an Everest base camp at 5000 metres are another sign of climate change.
  • House flies taste with their feet, which are 10 million times more sensitive to sugar than the human tongue
  • House flies tend to stay within 1-2 miles of where they were born but will travel up to 20 miles to find food.

Leave a comment