var tipwidth='450px' //default tooltip width
var tipbgcolor='#FFFFCC'  //tooltip bgcolor
var disappeardelay=250  //tooltip disappear speed onMouseout (in miliseconds)
var vertical_offset="0px" //horizontal offset of tooltip from anchor link
var horizontal_offset="-3px" //horizontal offset of tooltip from anchor link

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+';background-color:'+tipbgcolor+';color:#FF0000"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, tipwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function fixedtooltip(g, obj, e, tipwidth){

if (g == "sizzler_trans") //this is the text for streetfight transmissions!!!
	menucontents = "<strong>Sizzler® Transmissions</strong> -<br>Ideal for vehicles powered by engines producing 300 horsepower...<br>click to read more"

else if (g == "streetfighter_trans") //this is the text for streetfight transmissions!!!
	menucontents = "<strong>StreetFighter® Transmissions</strong> -<br>Ideal for vehicles powered by engines producing 450 horsepower...<br>click to read more"
	
else if (g == "superstreetfighter_trans") //this is the text for streetfight transmissions!!!
	menucontents = "<strong>Super StreetFighter™ Transmissions</strong> -<br>Ideal for vehicles powered by engines producing 600 horsepower...<br>click to read more"	

else if (g == "sizzler_conv") //this is the text for streetfighter converters!!!
	menucontents = "Sizzler® Converter -<br>Ideal for stock to 260° advertised camshaft duration, stock to 3:23 rear end gearing... - click to read more"

else if (g == "streetfighter_conv") //this is the text for superstreetfighter converters!!!
	menucontents = "StreetFighter® Converter -<br>Ideal for 280° to 310° advertised camshaft duration, 3:73 to 4:88 rear end gearing... - click to read more"	

else if (g == "superstreetfighter_conv") //this is the text for superstreetfighter converters!!!
	menucontents = "Super StreetFighter™ Converter -<br>Ideal for 280° to 310° advertised camshaft duration, 3:73 to 4:88 rear end gearing... - click to read more"
	
else if (g == "saturdaynspecial_conv") //this is the text for superstreetfighter converters!!!
	menucontents = "Saturday Night Special® Converter -<br>Ideal for stock to 265° advertised camshaft duration, stock to 3:23 rear end gearing... - click to read more"
	
else if (g == "breakaway_conv") //this is the text for superstreetfighter converters!!!
	menucontents = "Breakaway® Converter -<br>Ideal for 265° to 280° advertised camshaft duration, 3:00 to 3:23 rear end gearing... - click to read more"
	
else if (g == "ultimatestreetfighter_conv") //this is the text for superstreetfighter converters!!!
	menucontents = "Ultimate StreetFighter™ Converter -<br>Suited for street/strip cars up to 1200 Hp, ideal for 290°+ advertised camshaft duration, 3:55 to 4:56 rear end gearing... - click to read more"
	
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidetip()
dropmenuobj=document.getElementById? document.getElementById("fixedtipdiv") : fixedtipdiv
dropmenuobj.innerHTML=menucontents

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", tipwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
}

function hidetip(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidetip(){
if (ie4||ns6)
delayhide=setTimeout("hidetip()",disappeardelay)
}

function clearhidetip(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function toolTipColor(f) {
var nodeObj = document.getElementById(f)
nodeObj.style.backgroundColor = '#FFFFCC';
nodeObj.style.color = '#FF0000';
}

function toolTipReverse(f) {
var nodeObj = document.getElementById(f)
nodeObj.style.backgroundColor = '#FFFFCC';
nodeObj.style.color = '#FF0000';
}


