// $RCSfile: general.js,v $
// $Source: /cvs/pinnacleweb/templates/pinnacle/javascript/general.js,v $, $Revision: 1.4 $, $Date: 2009/09/28 08:34:01 $, $State: Exp $

// mootools 1.2 version

if(window.addEvent) { // mootools loaded
    window.addEvent('domready', function() { // i.e. runs document.onload
            bpToolTip ("rectip1", "rectext1");
            bpToolTip ("rectip2", "rectext2");
            bpToolTip ("rectip3", "rectext3");
            bpToolTip ("rectip4", "rectext4");
            bpToolTip ("rectip5", "rectext5");
    });
} // otherwise don't bother

function bpToolTip(attach, content) {
    var elt = $(attach);
    if(elt) {
        elt.store('tip:text', $(content).innerHTML);
        return new Tips(elt, {
                        className: 'dannas-tooltip',
                        offset: {x:25, y:0},
                        fixed: true
                    });
    }
    return null;
}

function bpToolTipEdge(attach, content) {
    var elt = $(attach);
    if(elt) {
        elt.store('tip:text', $(content).innerHTML);
        return new Tips(elt, {
                        className: 'dannas-tooltip',
                        offset: {x:-210, y:0},
                        fixed: true
                    });
    }
    return null;
}

function bpToolTipTop(attach, content) {
    var elt = $(attach);
    if(elt) {
        elt.store('tip:text', $(content).innerHTML);
        return new Tips(elt, {
                        className: 'dannas-tooltip',
                        offset: {x:-215, y:-130},
                        fixed: true
                    });
    }
    return null;
}

function bpToolTipLeftTop(attach, content) {
    var elt = $(attach);
    if(elt) {
        elt.store('tip:text', $(content).innerHTML);
        return new Tips(elt, {
                        className: 'dannas-tooltip',
                        offset: {x:25, y:-125},
                        fixed: true
                    });
    }
    return null;
}
/***
function bpToolTip1(attach, content, $){
	new Tip(attach,
					$(content).innerHTML,
					{className: 'dannas-tooltip',
                     effect: false,
						closeButton: false,
						showOn: 'mousemove',
						fixed: true,
                        duration: 0.3,
						hideOn: 'mouseout',
                        hideOthers: true,
                        delay: 0,
                        offset: {x:25, y:0}} );
}	

function bpToolTipEdge1(attach, content, $){
	new Tip(attach,
					$(content).innerHTML,
					{className: 'dannas-tooltip',
                     effect: false,
						closeButton: false,
						showOn: 'mousemove',
						fixed: true,
                        duration: 0.3,
						hideOn: 'mouseout',
                        hideOthers: true,
                        delay: 0,
                        offset: {x:-210, y:0}} );
}	
	
function bpToolTipTop1(attach, content, $){
	new Tip(attach,
					$(content).innerHTML,
					{className: 'dannas-tooltip',
                     effect: false,
						closeButton: false,
						showOn: 'mousemove',
						fixed: true,
                        duration: 0.3,
						hideOn: 'mouseout',
                        hideOthers: true,
                        delay: 0,
                        offset: {x:-215, y:-130}} );
}	
	
function bpToolTipLeftTop(attach, content, $){
	new Tip(attach,
					$(content).innerHTML,
					{className: 'dannas-tooltip',
                     effect: false,
						closeButton: false,
						showOn: 'mousemove',
						fixed: true,
                        duration: 0.3,
						hideOn: 'mouseout',
                        hideOthers: true,
                        delay: 0,
                        offset: {x:25, y:-125}} );
}
***/
