. */ var dom = (document.getElementById) ? true : false; var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false; var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false; var ns4 = (document.layers && !dom) ? true : false; var ie4 = (document.all && !dom) ? true : false; var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false; // resize fix for ns4 var origWidth, origHeight; if (ns4) { origWidth = window.innerWidth; origHeight = window.innerHeight; window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); } } // avoid error of passing event object in older browsers if (nodyn) { event = "nope" } /////////////////////// CUSTOMIZE HERE //////////////////// // settings for tooltip // Do you want tip to move when mouse moves over link? var tipFollowMouse= true; // Be sure to set tipWidth wide enough for widest image var tipWidth= 160; var offX= 20; // how far from mouse to show tip var offY= 12; var tipFontFamily= "Verdana, arial, helvetica, sans-serif"; var tipFontSize= "8pt"; // set default text color and background color for tooltip here // individual tooltips can have their own (set in messages arrays) // but don't have to var tipFontColor= "#000"; var tipBgColor= "#c0c0c0"; var tipBorderColor= "#000"; var tipBorderWidth= 3; var tipBorderStyle= "solid"; var tipPadding= 4; // tooltip content goes here (image, description, optional bgColor, optional textcolor) var messages = new Array(); // multi-dimensional arrays containing: // image and text for tooltip // optional: bgColor and color to be sent to tooltip messages[0] = new Array('samboa.jpg','Samboa',"#eaf1fa"); messages[1] = new Array('patch.jpg','Patch',"#eaf1fa"); messages[2] = new Array('millie.jpg','Millie',"#eaf1fa"); messages[3] = new Array('dacor.jpg','Dacor',"#eaf1fa"); messages[4] = new Array('irvine.jpg','Irvine',"#eaf1fa"); messages[5] = new Array('grendale.jpg','Grendale',"#eaf1fa"); messages[6] = new Array('montag.jpg','Montag',"#eaf1fa"); messages[7] = new Array('queen.jpg','Queen',"#eaf1fa"); messages[8] = new Array('mundi.jpg','Mundi',"#eaf1fa"); messages[9] = new Array('daily.jpg','Daily',"#eaf1fa"); messages[10] = new Array('lily.jpg','Lily',"#eaf1fa"); messages[11] = new Array('mywind.jpg','My Wind',"#eaf1fa"); messages[12] = new Array('frost.jpg','Frost',"#eaf1fa"); messages[13] = new Array('paraiso.jpg','Paraíso',"#eaf1fa"); messages[14] = new Array('beveler.jpg','Beveler',"#eaf1fa"); messages[15] = new Array('berlim.jpg','Berlim',"#eaf1fa"); messages[16] = new Array('recomeco.jpg','Recomeço',"#eaf1fa"); messages[17] = new Array('eclipse.jpg','Eclipse',"#eaf1fa"); messages[18] = new Array('savoy.jpg','Savoy',"#eaf1fa"); messages[19] = new Array('fokus.jpg','Fokus',"#eaf1fa"); messages[20] = new Array('crocked.jpg','Crocked',"#eaf1fa"); messages[21] = new Array('prophecy.jpg','Prophecy',"#eaf1fa"); messages[22] = new Array('dubai.jpg','Dubai',"#eaf1fa"); messages[23] = new Array('korea.jpg','Korea',"#eaf1fa"); messages[24] = new Array('elite.jpg','Elite',"#eaf1fa"); messages[25] = new Array('liberty.jpg','Liberty',"#eaf1fa"); messages[26] = new Array('silver.jpg','Silver',"#eaf1fa"); messages[27] = new Array('face.jpg','Face',"#eaf1fa"); messages[28] = new Array('dualcolor.jpg','Dual Color',"#eaf1fa"); messages[29] = new Array('diva.jpg','Diva',"#eaf1fa"); messages[30] = new Array('vizah.jpg','Vizah',"#eaf1fa"); messages[31] = new Array('split.jpg','Split',"#eaf1fa"); messages[32] = new Array('floresemvoce.jpg','Flores em você',"#eaf1fa"); messages[33] = new Array('anubis.jpg','Anubis',"#eaf1fa"); messages[34] = new Array('highway.jpg','Highway',"#eaf1fa"); messages[35] = new Array('traveltoparis.jpg','Travel to Paris',"#eaf1fa"); messages[36] = new Array('sinita.jpg','Sinita',"#eaf1fa"); messages[37] = new Array('sakura.jpg','Sakura',"#eaf1fa"); messages[38] = new Array('abstrato.jpg','Abstrato',"#eaf1fa"); messages[39] = new Array('andora.jpg','Andora',"#eaf1fa"); messages[40] = new Array('sintese.jpg','Síntese',"#eaf1fa"); messages[41] = new Array('divina.jpg','Divina',"#eaf1fa"); messages[42] = new Array('quimeras.jpg','Quimeras',"#eaf1fa"); messages[43] = new Array('candy.jpg','Candy',"#eaf1fa"); messages[44] = new Array('singela.jpg','Singela',"#eaf1fa"); messages[45] = new Array('illusive.jpg','Illusive',"#eaf1fa"); messages[46] = new Array('creative.jpg','Creative',"#eaf1fa"); messages[47] = new Array('agatha.jpg','Agatha',"#eaf1fa"); messages[48] = new Array('ferraza.jpg','Ferraza',"#eaf1fa"); messages[49] = new Array('florata.jpg','Florata',"#eaf1fa"); messages[50] = new Array('keep_smiling.jpg','Keep Smiling',"#eaf1fa"); messages[51] = new Array('chains.jpg','Chains',"#eaf1fa"); messages[52] = new Array('vetorial.jpg','Vetorial',"#eaf1fa"); messages[53] = new Array('across.jpg','Across',"#eaf1fa"); messages[54] = new Array('silvestre.jpg','Silvestre',"#eaf1fa"); messages[55] = new Array('idol.jpg','Idol',"#eaf1fa"); messages[56] = new Array('nuance.jpg','Nuance',"#eaf1fa"); messages[57] = new Array('allude.jpg','Allude',"#eaf1fa"); messages[58] = new Array('sombras.jpg','Sombras',"#eaf1fa"); messages[59] = new Array('retro.jpg','Retrô',"#eaf1fa"); messages[60] = new Array('elise.jpg','Elisé',"#eaf1fa"); messages[61] = new Array('basque.jpg','Basque',"#eaf1fa"); messages[62] = new Array('astral.jpg','Astral',"#eaf1fa"); messages[63] = new Array('vectorcity.jpg','Vector City',"#eaf1fa"); messages[64] = new Array('points.jpg','Points',"#eaf1fa"); messages[65] = new Array('marroquina.jpg','Marroquina',"#eaf1fa"); messages[66] = new Array('porsha.jpg','Porsha',"#eaf1fa"); messages[67] = new Array('party.jpg','Party',"#eaf1fa"); messages[68] = new Array('brooklyn.jpg','Brooklyn',"#eaf1fa"); messages[69] = new Array('cronicas.jpg','Crônicas',"#eaf1fa"); messages[70] = new Array('musical.jpg','Musical',"#eaf1fa"); messages[71] = new Array('bemine.jpg','Be Mine',"#eaf1fa"); messages[72] = new Array('sincera.jpg','Sincera',"#eaf1fa"); messages[73] = new Array('mistica.jpg','Mística',"#eaf1fa"); messages[74] = new Array('timetosee.jpg','Time to see',"#eaf1fa"); messages[75] = new Array('orion.jpg','Orion',"#eaf1fa"); messages[76] = new Array('borboletas.jpg','Borboletas',"#eaf1fa"); messages[77] = new Array('amareto.jpg','Amareto',"#eaf1fa"); messages[78] = new Array('glassy.jpg','glassy',"#eaf1fa"); messages[79] = new Array('maliby.jpg','Maliby',"#eaf1fa"); messages[80] = new Array('malvinas.jpg','Malvinas',"#eaf1fa"); messages[81] = new Array('duena.jpg','Dueña',"#eaf1fa"); messages[82] = new Array('north.jpg','North',"#eaf1fa"); messages[83] = new Array('ornaments.jpg','ornaments',"#eaf1fa"); messages[84] = new Array('estrelar.jpg','Estrelar',"#eaf1fa"); messages[85] = new Array('ancient1.jpg','Ancient 1',"#eaf1fa"); messages[86] = new Array('ancient2.jpg','Ancient 2',"#eaf1fa"); messages[87] = new Array('fotografia.jpg','Fotografia',"#eaf1fa"); messages[88] = new Array('magia.jpg','Magia',"#eaf1fa"); messages[89] = new Array('belisk.jpg','Belisk',"#eaf1fa"); messages[90] = new Array('florais.jpg','Florais',"#eaf1fa"); messages[91] = new Array('best.jpg','Best',"#eaf1fa"); messages[92] = new Array('fly.jpg','Fly',"#eaf1fa"); //////////////////// END OF CUSTOMIZATION AREA /////////////////// // preload images that are to appear in tooltip // from arrays above if (document.images) { var theImgs = new Array(); for (var i=0; i'; var endStr = ''; //////////////////////////////////////////////////////////// // initTip - initialization for tooltip. // Global variables for tooltip. // Set styles for all but ns4. // Set up mousemove capture if tipFollowMouse set true. //////////////////////////////////////////////////////////// var tooltip, tipcss; function initTip() { if (nodyn) return; tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null; tipcss = (ns4)? document.tipDiv: tooltip.style; if (ie4||ie5||ns5) { // ns4 would lose all this on rewrites tipcss.width = tipWidth+"px"; tipcss.fontFamily = tipFontFamily; tipcss.fontSize = tipFontSize; tipcss.color = tipFontColor; tipcss.backgroundColor = tipBgColor; tipcss.borderColor = tipBorderColor; tipcss.borderWidth = tipBorderWidth+"px"; tipcss.padding = tipPadding+"px"; tipcss.borderStyle = tipBorderStyle; } if (tooltip&&tipFollowMouse) { if (ns4) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = trackMouse; } } window.onload = initTip; ///////////////////////////////////////////////// // doTooltip function // Assembles content for tooltip and writes // it to tipDiv ///////////////////////////////////////////////// var t1,t2; // for setTimeouts var tipOn = false; // check if over tooltip link function doTooltip(evt,num) { if (!tooltip) return; if (t1) clearTimeout(t1); if (t2) clearTimeout(t2); tipOn = true; // set colors if included in messages array if (messages[num][2]) var curBgColor = messages[num][2]; else curBgColor = tipBgColor; if (messages[num][3]) var curFontColor = messages[num][3]; else curFontColor = tipFontColor; if (ns4) { var tip = '
'+ startStr + messages[num][0] + midStr + '' + messages[num][1] + '' + endStr + '
'; tooltip.write(tip); tooltip.close(); } else if (ie4||ie5||ns5) { var tip = startStr + messages[num][0] + midStr + '' + messages[num][1] + '' + endStr; tipcss.backgroundColor = curBgColor; tooltip.innerHTML = tip; } if (!tipFollowMouse) positionTip(evt); else t1=setTimeout("tipcss.visibility='visible'",100); } var mouseX, mouseY; function trackMouse(evt) { mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft; mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop; if (tipOn) positionTip(evt); } ///////////////////////////////////////////////////////////// // positionTip function // If tipFollowMouse set false, so trackMouse function // not being used, get position of mouseover event. // Calculations use mouseover event position, // offset amounts and tooltip width to position // tooltip within window. ///////////////////////////////////////////////////////////// function positionTip(evt) { if (!tipFollowMouse) { mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft; mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop; } // tooltip width and height var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth; var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight; // document area in view (subtract scrollbar width for ns) var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft; var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop; // check mouse position against tip and window dimensions // and position the tooltip if ((mouseX+offX+tpWd)>winWd) tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px"; else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px"; if ((mouseY+offY+tpHt)>winHt) tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px"; else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px"; if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100); } function hideTip() { if (!tooltip) return; t2=setTimeout("tipcss.visibility='hidden'",100); tipOn = false; } //-->
e5)? tooltip.clientHeight: tooltip.offsetHeight; // document area in view (subtract scrollbar width for ns) var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft; var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop; // check mouse position against tip and window dimensions // and position the tooltip if ((mouseX+offX+tpWd)>winWd) tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px"; else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px"; if ((mouseY+offY+tpHt)>winHt) tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px"; else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px"; if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100); } function hideTip() { if (!tooltip) return; t2=setTimeout("tipcss.visibility='hidden'",100); tipOn = false; } //-->