// testimonials cycle

$(document).ready(function(){
$('#testmid').cycle({
	fx:      'fade', 
	speed:   700,
	random:  1,
	timeout: 10000,
	pause:   1 
	});	 
});


if (document.images) {
	hom_off = new Image();	hom_off.src = "images/home_off.gif";
	hom_on = new Image();	hom_on.src = "images/home_on.gif";
	abo_off = new Image();	abo_off.src = "images/about_off.gif";
	abo_on = new Image();	abo_on.src = "images/about_on.gif";
	ser_off = new Image();	ser_off.src = "images/services_off.gif";
	ser_on = new Image();	ser_on.src = "images/services_on.gif";
	ind_off = new Image();	ind_off.src = "images/industries_off.gif";
	ind_on = new Image();	ind_on.src = "images/industries_on.gif";
	tec_off = new Image();	tec_off.src = "images/technotes_off.gif";
	tec_on = new Image();	tec_on.src = "images/technotes_on.gif";
	eve_off = new Image();	eve_off.src = "images/events_off.gif";
	eve_on = new Image();	eve_on.src = "images/events_on.gif";
	car_off = new Image();	car_off.src = "images/career_off.gif";
	car_on = new Image();	car_on.src = "images/career_on.gif";
	con_off = new Image();	con_off.src = "images/contact_off.gif";
	con_on = new Image();	con_on.src = "images/contact_on.gif";
	
	ci_vis = new Image();	ci_vis.src = "images/hook_visible.jpg";
	ci_dry = new Image();	ci_dry.src = "images/hook_dry.jpg";
	ci_wet = new Image();	ci_wet.src = "images/hook_wet.jpg";
	ci_flo = new Image();	ci_flo.src = "images/hook_flour.jpg";
	
	arv_on = new Image();	arv_on.src = "images/arrowvis_on.gif";
	arv_off = new Image();	arv_off.src = "images/arrowvis_off.gif";
	ard_on = new Image();	ard_on.src = "images/arrowdry_on.gif";
	ard_off = new Image();	ard_off.src = "images/arrowdry_off.gif";
	arw_on = new Image();	arw_on.src = "images/arrowwet_on.gif";
	arw_off = new Image();	arw_off.src = "images/arrowwet_off.gif";
	arf_on = new Image();	arf_on.src = "images/arrowflo_on.gif";
	arf_off = new Image();	arf_off.src = "images/arrowflo_off.gif";
}

function swapem (sname,lname) {
	sname.src = lname.src;
}

//drop-down menu code

if (!document.layers&&!document.all&&!document.getElementById)
event="test"
function showtip(current,e,text){

if (document.all||document.getElementById){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i]
current.title=thetitles
}
else
current.title=text
}

else if (document.layers){
document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility="show"
}
}
function hidetip(){
if (document.layers)
document.tooltip.visibility="hidden"
}

function change(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}


