var cmbIndex=0;
initContactMe();
function isCmbInit(){
var initted = true;
if( document.getElementById("cmbInit").getAttribute("value") == "false" ){
document.body.className += " yui-skin-sam";
document.write("
");
initted = false;
document.getElementById("cmbInit").setAttribute("value", "true" );
}
return initted;
}
function findPos(obj) {
var curleft = curtop = 0;
if (obj.offsetParent) {
curleft = obj.offsetLeft
curtop = obj.offsetTop
while (obj = obj.offsetParent) {
curleft += obj.offsetLeft
curtop += obj.offsetTop
}
}
return [curleft,curtop];
}
function initYahoo() {
cmbIndex = getIndex();
YAHOO.namespace("contactmebutton");
YAHOO.contactmebutton.panel = new YAHOO.widget.Panel("contactMePanel" , { xy: [0,0], width:"240px", visible:false, constraintoviewport:true } );
YAHOO.contactmebutton.panel.render();
for( i=0; i"+dName+"";
document.getElementById("contactMePanelBody").innerHTML = "";
myPos = findPos(document.getElementById('contactmeimage_' + index))
x = myPos[0]
y = myPos[1]+20
YAHOO.contactmebutton.panel.cfg.setProperty("xy",[x,y]);
YAHOO.contactmebutton.panel.show();
}
if(!isCmbInit()){
YAHOO.util.Event.addListener(window, "load", initYahoo);
}