<!--
// This code is from Dynamic Web Coding www.dyn-web.com 
// Copyright 2002 by Sharon Paine Permission granted to use this code as long as this entire notice is included.
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

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;

var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

if (nodyn) { event = "nope" }
var tipFollowMouse	= true;	
var tipWidth		= 550;
var offX		 	= 12;	// how far from mouse to show tip
var offY		 	= 12; 
var tipFontFamily 	= "Verdana, arial, helvetica, sans-serif";
var tipFontSize		= "8pt";
var tipFontColor		= "#000000";
var tipBgColor		= "#DDECFF"; 
var origBgColor 		= tipBgColor; // in case no bgColor set in array
var tipBorderColor 	= "#000080";
var tipBorderWidth 	= 2;
var tipBorderStyle 	= "ridge";
var tipPadding	 	= 0;

var messages = new Array();
messages[0] = new Array('FP1',0,'Mark D\'Amato is a respected structural engineer with more than 25 years of experience. His design experience includes post-tensioned and conventional concrete, as well as steel, masonry, and complex wood structures.  D\'Amato manages and designs for clients in the commercial, medical, residential, and industrial sectors, and has engineered numerous over-water structures.  He has experience designing deep excavation shoring systems as well as diverse pile-supported foundations.  His experience in specialized building design includes seismic retrofit and the design of brick cladding systems.','Mark D\'Amato');

messages[1] = new Array('FP2',1,'Guy Conversano has worked as chief structural designer and senior project manager on a variety of high-rise, parking, medical, residential, long term care facility, commercial, municipal, industrial, and marine projects. His design philosophy prescribes that structures be economical, and that constructability be foremost in mind. Conversano has valuable experience in the implementation of economical designs. He has participated in competitive "design build" construction teams, and uses this knowledge to help win significant projects. Conversano believes that using "state-of-the-art" engineering design procedures and using the latest in computer technology and design software are paramount to providing the best service to clients. His ability to work closely with the design team and contractor has helped keep projects on schedule and within budget.','Guy Conversano');

messages[2] = new Array('BD1',2,'Mark Aden has established a reputation for designing innovative and cost-effective structures that incorporate the latest in construction technology. He has been responsible for the structural design of a wide variety of private and public projects including high-rise buildings, long-span structures, and multi-story parking structures. Aden has over 20 years of design experience with all types of construction materials, and has designed projects throughout the Western United States and beyond, including Puerto Rico, Hawaii, and Guam. Aden has been responsible for all aspects of project design and management. His design philosophy is characterized by close attention to the constructability and efficiency of structural systems, especially as they impact schedule and budget. His early experiences in construction and his history with fast-track design build projects have given him a unique perspective on the importance of creative structural design. Aden\'s project management experience, coupled with his resolve to bring even the most challenging projects in on time and under budget, make him a valuable member of any design team.','Mark Aden');
messages[3] = new Array('BD2',3,'Roger Heeringa has provided project and client management, as well as, structural engineering design on multi-million dollar residential, retail, office, industrial and municipal projects utilizing all combinations of concrete, wood, steel and masonry.  His personal attention to the design and management of each project assures the client that their project will receive the best possible service.  His knowledge of all construction types enables him to provide innovative solutions that optimize the advantages of different framing systems for individual projects.  Heeringa\'s experience in the design of economical structures has earned DCI many loyal, repeat clients among contractors, architects and developers.  His expertise ranges from the design of multiple tower, high rise residential projects to office buildings and multi-level parking garages.  He has designed projects throughout the United States as well as in Mexico and Canada.  His goal is to contribute throughout the design process so that each member of the team considers each project a success.','Roger Heeringa');
messages[4] = new Array('BD3',0,'Mark SEE 0',''); 
messages[5] = new Array('BD4',1,'Guy SEE 1','');

messages[6] = new Array('BD5',6,'Troy Bean has more than twenty years of engineering experience and has designed a variety of municipal, industrial, commercial, residential, and agricultural building projects using wood, concrete, masonry, and light gauge and structural steel construction materials. Bean has been the DCI Engineers Everett, Washington Branch Manager and the Engineer of Record on all projects within the State of Washington prepared in that office since its inception.  He maintains an ongoing line of communication between the owner and/or contractor from inception through completion of a project with emphasis on attention to design detail and project constructability. His ability to understand the owner\'s and contractor\'s needs makes him a valuable part of a design and construction team.','Troy Bean');

messages[7] = new Array('SMT1',3,'rOGER hEERINGASEE 3','');
messages[8] = new Array('',8,'Tom Xia is a principal and technical director at DCI. He has over 20 years of working experience covering a wide range of projects including high rise, office and parking, commercial and residential, hospital, education, and industrial projects.  Mr. Xia serves on numerous local and national technical committees for building codes and standards and is highly respected in the engineering community. Mr. Xia is deeply committed to bring values to a project team by paying close attention to design details and constructability, pursuing creative engineering solutions, and providing the best services possible.  He has extensive experience with significant large-scale and multiuse projects that have challenge in design, cost, and schedules.  He has been responsible for all aspects of project design and management including preliminary design, cost study, value engineering, peer review, field investigation, and construction support. Mr. Xia is known for working closely with the design team and contractor to meet and exceed the client\'s expectations. His past award winning projects include NPIC Office Building in 1996; South Park Commercial Development Project in 2001; the Overlake Hospital Garage in 2002; 5th and Jackson Office Building in 2003, and Ashwood Residential Tower in 2006','Tom Xia');
messages[9] = new Array('SMT3',9,'Grant Buckingham is a valued member of the DCI Team with more than 14 years of experience in designing structures using concrete, wood, masonry, and steel. Buckingham has designed a variety of commercial, residential, and industrial building projects.  His ability to understand and fulfill the needs of the owner and contractor make him a valuable part of the design team.','Grant Buckingham');
messages[10] = new Array('SMT4',2,'Mark Aden see 2','');
messages[11] = new Array('SMT5',6,'Troy Bean see 6','');
messages[12] = new Array('',12,'Harry Jones has a rich background in seismic and structural engineering that encompasses a variety of project types.  With more than 20 years of experience, he has worked for the commercial, institutional, and industrial sectors throughout the Western United States, including Alaska and Guam. His project management experience includes seismic rehabilitation, historic preservation, medical, educational, commercial and industrial facilities, using a wide range of construction materials. Jones\' extensive experience with seismic retrofit, rehabilitation and historical preservation includes evaluations, peer reviews, and retrofits, as well as familiarity with unreinforced masonry and non-ductile concrete buildings.  He has worked closely with owners, faculty and administrative staff to creatively reach the intended goals of each project.  Jones has also worked with different types of owners, including municipal agencies, as a consultant on a variety of projects.','Harry Jones ');

messages[13] = new Array('PB1',0,'Mark SEE 0',''); 
messages[14] = new Array('PB2',1,'Guy SEE 1','');
messages[15] = new Array('PB3',3,'rOGER hEERINGASEE 3','');
messages[16] = new Array('PB4',8,'Tom Xia see 8','');
messages[17] = new Array('PB5',9,'Grant Buckingham SEE 9.','');
messages[18] = new Array('PB6',18,'John Tessem has successfully designed and managed the structural engineering on a wide variety of significant projects over the past twenty-two years.  His projects include high-rise residential, hotels, and office towers, convention centers, hospitals, medical office buildings, parking structures, aircraft hangars, and retail.  His experience includes public, private, national and international projects.  He has extensive experience managing the design of large-scale, multiple tower, and phased construction projects. Tessem has earned a strong reputation for excellence in design of efficient and cost effective structures.  He is particularly effective in the early stages of projects with structural frame layout and systems selection, where his expertise is in high demand.  He works closely with the design team often producing the most efficient structural frame the first time thereby minimizing the need for future VE exercises. ','John Tessem');
messages[19] = new Array('PB7',19,'Greg Gilda has more than 20 years of experience in structural engineering and project management including the design for commercial, educational, residential, religious, and public projects comprised of concrete, steel, masonry and wood.  Greg is an active member of the Associated Builders and Contractors Framers Council and is the current chair of City of Seattle Construction Code Advisory Board.  He has also served on the Board of Directors for the Seattle Chapter of the Structural Engineers Association of Washington and has provided post-earthquake building evaluation training (ATC-20) to local engineers and government personnel. Greg graduated from Cornell University with a B.S. in Civil Engineering and completed graduate coursework in Construction Management at the University of Washington.','Greg Gilda');

messages[20] = new Array('PSK1',2,'Mark Aden see 2','');

messages[21] = new Array('PSK2',21,'Damon Smith has over 22 years of civil engineering experience in design and construction.  His experience covers both the public and private sector.  Smith worked for three years exclusively in the commercial and industrial development business where he served as a project engineer and project manager on a variety of commercial, municipal and industrial projects. He provides planning, schematic design, conceptual design, project analysis, feasibility studies and cost estimating.  He also provides site planning, layout and design, project schedule and budget management as well as construction management and administration. His design philosophy prescribes that projects be well planned and economical.  Smith believes in using new and progressive engineering design procedures.  He thinks that the use of the latest in computer technology and design software is paramount to providing the best service to clients.  His leadership skills and emphasis on teamwork bring positive results to the outcome of projects.','Damon Smith');

messages[22] = new Array('PSK3',22,'Craig Crowley joined DCI Engineers in 1997 as a structural engineer in the Bellevue office.  In August of 1998, he moved to Spokane shortly after the Spokane office was opened and in March of 2008, was promoted to Principal. Crowley, a registered engineer in Washington, Idaho, and California, has designed projects in the commercial, residential, educational, governmental, and retail sectors utilizing concrete, steel, masonry, and wood construction materials.  He has extensive experience on large and small projects, design-build and design-bid project formats, and has worked on projects up and down the West Coast.  Crowley has built a reputation for being an innovative designer using the newest construction technologies to deliver cost-effective design solutions.  He takes a team approach to design and construction and is known for his responsiveness.  Crowley is responsible for all aspects of design, project management, and construction administration. He attends several continuing education seminars each year, has served as a Project Liaison for Gonzaga University\'s senior design class, is actively involved in several professional organizations, and was voted by Inland Business Catalyst magazine as one of the "Top 20 Under 40" in the Inland Northwest in 2008.','Craig Crowley');

messages[23] = new Array('PEV1',6,'Troy Bean see 6','');

messages[24] = new Array('PPD1',12,'Harry Jones SEE 12','');
messages[25] = new Array('PPD2',25,'Wade Younie has worked as a consulting engineer in Portland for over 20 years. He specializes in structural design of new commercial, retail, and industrial projects; structural investigations; and renovation of existing buildings.   His hands-on project approach creates a team atmosphere, encouraging coordination and communication among team members from start to finish on each project.   Younie strives to develop the most innovative solutions, helping meet the client\'s goals for each project. Younie\'s extensive experience with seismic retrofit, rehabilitation, structural repairs and historical preservation has encompassed a wide verity of existing structures.  As a member of ASCE Standards Committee on Seismic Rehabilitation of Buildings, Mr. Younie is familiar with the latest technology and research regarding existing building upgrades.','Wade Younie');

messages[26] = new Array('PSD2',26,'Richard Hemmen has extensive experience in the design, project management, and building evaluation of structures.  Mr. Hemmen has provided project management and structural designs for governmental, commercial, residential, and institutional buildings.  His projects have included new construction, along with tenant improvements and renovations of existing buildings.  Mr. Hemmen is extremely knowledgeable about the codes for seismic upgrades to existing buildings, and of various construction types in areas of high seismicity.  He is also skilled in the utilization of modern evaluation and upgrade methodologies.  In addition, he has used and developed applications for innovative technologies; including energy dissipation and has lectured on seismic topics for both community and professional groups.','Richard Hemmen');

messages[27] = new Array('PAU1',27,'Steve Davidow has established a well-earned reputation for designing innovative and cost-effective structures that incorporate the latest in construction technology. He has been responsible for the structural design of a wide variety of private and public projects including high-rise buildings, long-span structures, and multi-story parking structures. Davidow has design experience with all types of construction materials, and has designed projects throughout the United States. Davidow has been responsible for all aspects of project design and management. His design philosophy is characterized by close attention to the constructability and efficiency of structural systems, especially as they impact schedule and budget. His background in construction and his experience on fast-track design-build projects has given him a unique perspective on the importance of creative structural design. Davidow\'s project management experience, coupled with his resolve to bring even the most challenging projects in on time and under budget, make him a valuable member of any design team.','Steve Davidow');

messages[28] = new Array('PSD1',12,'Harry Jones has a rich background in seismic and structural engineering that encompasses a variety of project types.  With more than 20 years of experience, he has worked for the commercial, institutional, and industrial sectors throughout the Western United States, including Alaska and Guam. His project management experience includes seismic rehabilitation, historic preservation, medical, educational, commercial and industrial facilities, using a wide range of construction materials. Jones\' extensive experience with seismic retrofit, rehabilitation and historical preservation includes evaluations, peer reviews, and retrofits, as well as familiarity with unreinforced masonry and non-ductile concrete buildings.  He has worked closely with owners, faculty and administrative staff to creatively reach the intended goals of each project.  Jones has also worked with different types of owners, including municipal agencies, as a consultant on a variety of projects.','Harry Jones ');

messages[29] = new Array('AS1',29,'Brent Robinson has 18 years of structural engineering design experience on a wide variety of projects. His experience ranges from office buildings and single and multi-family residential projects to specialty items such as pedestrian bridges and canopies.  He is a creative, flexible team worker who establishes excellent rapport with colleagues, clients, contractors and consultants.','Brent Robinson');
messages[30] = new Array('AS2',30,'Bruce Zhong has worked on a wide variety of public and private sector projects, including industrial, commercial, and institutional buildings.  He has practical hands-on consulting experience on new building design, existing building additions and retrofit, post-design construction administration and value engineering.   Zhong maintains an ongoing line of communication between the owner and / or contractor from a project\'s inception through its completion, and emphasizes the attention to design detail and project constructability.   His international education and working experience also prove to be a great asset to any team.','Bruce Zhong');
messages[31] = new Array('AS3',31,'Chun Lau has more than 25 years of experience and has worked on a variety of challenging projects both domestic and international, with projects ranging from high rise towers, sport facilities to one story residential projects.  Among many other organizations, Lau is currently serving as a Board member on the Washington State Board of Registration for Professional Engineers and Land Surveyors and is an Educational Counselor for the MIT Education Council.','Chun Lau');
messages[32] = new Array('AS4',32,'Jeff Brink has more than ten years of experience designing steel, concrete, cold-formed steel and wood framing systems.  His knowledge of typical construction techniques assures that the structural system best suited for the project type and project goals will be utilized.  His focus on team collaboration ensures constructability, sustainability and value are achieved while creating successful projects for the development and the design teams.','Jeff Brink');
messages[33] = new Array('AS5',33,'Mark Moorleghen is an Associate and Senior Project Manager having over 28 years of structural design and project engineering experience.  For the last ten years he has been with DCI Engineers leading the structural design of projects in commercial office, medical, retail, mixed use, industrial and senior housing. Mark was a contributing author to EERI\'s <i>Scenario for a Magnitude 6.7 Earthquake on the Seattle Fault</i> and is on the Board of Directors of the Structural Engineers Association of Washington (SEAW).  In addition, he teaches the SEAW Refresher Class in Structural Steel design and is a member of SEAW, AISC and ASCE.','Mark Moorleghen');
messages[34] = new Array('AS6',34,'Paul Rogness has been a valued member of the DCI Engineers team for more than 10 years.  He has provided project management and structural design for a number of hotels, multi-family, office, retail, mixed-use and mid to high-rise buildings of all material types.  His responsibilities include project management, project design, coordination with the design team, and construction support services.  Rogness works to provide the owner with cost effective, efficient designs and attends to each client\'s needs in a timely manner.','Paul Rogness');
messages[35] = new Array('AS7',35,'Anish Talati is registered Professional Engineer (PE) and Structural Engineer (SE) in the state of Washington, USA with over 15 years of experience in gravity design, seismic and wind analysis and design, tenant improvement and construction administration. His experience includes a diverse range of projects such as low-rise and high-rise hotel, office and residential buildings, retail spaces, educational buildings, multiuse buildings, parking garages and sport stadiums.  Talati also serves as a member of the SEAW Building Engineering Committee.','Anish Talati');
messages[36] = new Array('AS8',36,'Darren Simpson currently manages the Civil Department in DCI\'s Bellevue office. In aggregate he has more than 20 years of professional experience with registrations in Washington, Arizona, and Alaska.  The majority of his Washington work experience has been preparation of commercial development plans for permitting and construction within most all of the major jurisdictions. His technical capabilities cover a full spectrum of services from site feasibility analysis and site design through construction monitoring and contract administration. His expertise includes design of storm and sanitary sewer systems, retention / detention systems, water distribution systems, site grading, earthwork balancing, and code analysis.','Darren Simpson');
messages[37] = new Array('AS9',37,'Debbie Wick-Harris has more than 20 years of roadway, traffic, site development and construction engineering experience.  She has a unique combination of experience that she brings to all her projects.  Wick-Harris has led projects with budgets ranging from $5,000 to over $15 million for roadway, roundabouts, traffic calming, traffic studies, site development, intersection improvements, street illumination, and traffic signal projects. Her primary professional experience is in roadway design and traffic studies and municipal streets and highway systems.  She has worked with our clients and regulating agencies to assure that the plans packages, traffic studies and technical reports are per standards, constructible, and safe to use.','Debbie Wick-Harris');
messages[38] = new Array('AS10',38,'Mark Seiser has more than 24 years of experience drafting steel, concrete, cold-formed steel and wood framing systems using AutoCAD and more than 15 years experience in CAD management. Mark manages the company wide Structural CAD Standards and Structural drafting department in the Seattle office.','Mark Seiser');
messages[39] = new Array('ASSP1',39,'Mr. Giordano, a registered P.E. and S.E. in the state of Washington, has design experience in a variety of structural types including concrete, wood, masonry, and steel construction materials.  His project experience includes commercial, retail, recreational, governmental, hotel, and residential projects throughout the Pacific Northwest and beyond.  Mr. Giordano is responsible for project design, coordinating construction documents, value engineering, and construction administration.  He pays particular attention to constructability and economy of the structural system. He is responsible when issues arise in the construction process, and tends to clients\' needs in a timely manner.','Dave Giordano');
messages[40] = new Array('ASSP2',40,'Mr. Cook is responsible for all phases of projects from schematic design through construction.  He has experience as a conventional consultant as well as a design-build team member.  Mr. Cook is an innovative designer who puts a high priority on value engineering, meeting deadlines and prompt responses during construction.  Design experience in commercial, educational, and government projects encompassing all types of construction materials gives Justin a wide base of experience to draw from.  Mr. Cook is currently managing projects in both design and construction that total over 100 million dollars.','Justin Cook');
messages[41] = new Array('ASSP3',41,'Wade Gelhausen has more than 12 years of experience in civil design of medical, retail, and commercial building projects.  He also has experience in land development, planning, and road and utility design.  Mr. Gelhausen believes strongly in maintaining strong client relationships by providing quality work in a timely fashion.  He also strives to communicate constantly with the client and development team members in order to help the project proceed smoothly.','Wade Gelhausen');
messages[42] = new Array('ASSD1',42,'Ryan Slaybaugh has over 13 years of experience providing structural engineering services for the design and construction administration of many different types of projects; including hospitality, parking, multi-family residential and mixed-use projects.  Mr. Slaybaugh has successfully managed many high-profile projects and specializes in the design of large cast-in-place concrete and post-tensioned concrete multi-family residential structures and hotels.  He is also extremely knowledgeable about current building codes and construction practices in both Washington and California.','Ryan Slaybaugh');
messages[43] = new Array('ASPT1',43,'Shirley Chalupa is a valued member of DCI Engineers\' structural team.  Her project experience includes work with the health care, educational, commercial, residential, and industrial sectors, throughout the Pacific Northwest and California, as well as New York and Washington D.C. With over 12 years of design experience, Shirley has worked on a variety of high profile multi-story cultural and governmental projects. Shirley is an effective team leader and player, understanding the importance of communication in a successful project.  Her experience in all stages of the design process has brought her great success in building strong relationships with both architects and contractors.','Shirley Chalupa');

messages[44] = new Array('SMT6',44,'Donald Tuttle is DCI Engineers\' Director of Business Development.  With more than 20 years of experience, Tuttle\'s depth of expertise in the A/E/C industry is significant.  He is an engaging, self-motivated business developer and marketer who works collaboratively with firm leadership and staff to secure sought-after clients and projects to meet revenue and growth goals. Tuttle is an innovative and strategic client advocate with excellent communication and interpersonal skills which help him to thoroughly understand project requirements and create positive client journeys.','Don Tuttle');
messages[45] = new Array('SMT2',21,'Damon Smith see 21','');

if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = 'BIG_' + messages[i][0] + '.gif';
  }
}

//var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var startStr = '<table border="0" cellpadding="0" cellspacing="0" width="550" style="background:url(http://www.dci-engineers.com/assets/leadership/popoutrepeat.gif) repeat-y" ><tr><td><img src="\/assets\/leadership\/spacer.gif" width="550" height="1" border="0" alt="" \/></\td><td><img src="\/assets\/leadership\/spacer.gif" width="1" height="1" border="0" alt="" \/><\/td><\/tr><tr >';
//var midStr = '" border="0"></td></tr><tr><td valign="top">';
var midStr = '<td style="background:url(http:\/\/www.dci-engineers.com\/assets\/leadership\/BIG_#imageName#.gif) no-repeat"  width="550" border="0" id="textDetails" alt="" ><div id="theName">#theName#</div>#theContent#';
//var endStr = '</td></tr></table>';
var endStr = '<\/td><td><img src="\/assets\/leadership\/spacer.gif" width="1" border="0" alt="" \/><\/td></\tr><tr><td><img name="bottom" src="\/assets\/leadership\/bottom.gif" width="550" height="24" border="0" id="bottom" alt="" \/><\/td><td><img src="\/assets\/leadership\/spacer.gif" width="1" height="24" border="0" alt="" \/><\/td><\/tr><\/table>';

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;

var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function getRowOf(sfind){
	var iGetCounter;
	var iGetValue = -1;
	for (iGetCounter=0;iGetCounter<=messages.length;iGetCounter++){
		if (messages[iGetCounter][0]==sfind){
			iGetValue = iGetCounter;
			break;
		}
	}
	return iGetValue;
}
function doTooltip(evt,scode) {
	if (!tooltip) return;
	var num = getRowOf(scode);
	num = messages[num][1];
	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 = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
		tooltip.write(tip);
		tooltip.close();
	} else if (ie4||ie5||ns5) {
		var tip = startStr +  midStr.replace('#imageName#',scode).replace('#theContent#', messages[num][2] ).replace('#theName#',messages[num][3] ) + 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);
}

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);
	if(Left(tipcss.top,1)=='-')tipcss.top='5px';
//	alert(tipcss.top);
}
function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}
function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}
//-->

