var fixStyle = "<style>* html #tools ul{ background:url(/common/images/arrow-down-green.gif) 186px 2px no-repeat #FFF; border:1px solid #939393; } * html #tools li a{ float:inherit; clear:none; width:180px;  } * html #tools li ul{ float:none; padding-top:4px; display:none; clear:both; background:#FFF;} * html #tools ul ul li{ float:none; display:block; clear:both;} * html #tools ul ul li a{padding-bottom:5px; border-top:1px solid #F0F0F0 ; text-decoration:none; } * html #tools ul ul li a:hover{ background:#F0F0F0; color:#505050;} * html #tools li ul{position:absolute; z-index:1000; border:1px solid #939393; } #tools li.sfhover ul { position:absolute;  z-index:1000;}</style>"

document.write(fixStyle);

function fix() {
	if (window.attachEvent){
		var sfEls = document.getElementById("tools").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}


function TipAFriend()
{
    window.open('TipAFriend.aspx','TipAFriend', 'scrollbars=yes, toolbar=no, resizable=no,top=100,left=100, width=300,height=300');
}

function buildFlash (divId, swfLoc, swfName, lang){
    var flashVersion = 7;
    var swfWidth = 440;
    if (swfLoc.indexOf("Geo_Ops") > 1){
        var swfHeight = 270;
    }else{
        var swfHeight = 400;
    }
    var so = new SWFObject(swfLoc, swfName, swfWidth, swfHeight, flashVersion, "#FFFFFF");
    so.addParam("wmode", "transparent");
    so.addParam("scale", "noscale");
    so.addVariable("lang", lang);
    so.write(divId);
}


function clearText(thefield){
    if (thefield.defaultValue==thefield.value)
    thefield.value = ""
} 