Australia | Mar 05 2007
var tool=null, skype_curid=0, skype_menu=null, skype_frame=null, skype_hintActive=false, skype_overflag=false;
function skype_checkStyle() {
var o = document.getElementById(‘skype_tb_style’);
if(o == null)
alert(‘DEBUG: we are not here!’);
else
alert(‘DEBUG: we are here! Path:\n’ + o.href);
}
function skype_tb_init(t) {
tool=t;
}
function skype_tb_createFlag(params) {
var o = document.createElement(‘DIV’);
o.setAttribute(“id”,”skype_menu”);
o.innerHTML=”\u0054\u0068\u0065\u0020\u0064\u0069\u0061\u006c\u0069\u006e\u0067\u0020\u0070\u0072\u0065\u0066\u0069\u0078\u0020\u0066\u006f\u0072\u0020\u0074\u0068\u0069\u0073\u0020\u006e\u0075\u006d\u0062\u0065\u0072\u0020\u0063\u0061\u006e\u006e\u006f\u0074\u0020\u0062\u0065\u0020\u0063\u0068\u0061\u006e\u0067\u0065\u0064″;
return o;
}
function skype_tb_showFlagHint(obj,id) {
skype_tb_showHint(obj,id,”,skype_tb_createFlag,true);
}
function skype_tb_Drop(obj,id,params) {
if(tool) {
var x=0, y=0, z=0;
if(obj) {
var pos=skype_tb_calcSpanPos(obj,1); x=pos[0]; y=pos[1], z=pos[2];
}
tool.ShowDropdownMenu(document,id,x,y,z);
}
}
function skype_tb_SwitchDrop(obj,id,params) { //– show/hide the menu depending on the current visibility state
try {
if(event)
event.cancelBubble=true;
skype_tb_Drop(obj,id,params);
} catch(e) {
window.status = e;
}
}
function skype_tb_stopEvents() {
if(event)
event.cancelBubble=true;
return false;
}
function skype_tb_CalcInnerPos(obj) {
var brd=obj.getBoundingClientRect();
var pcx=brd.left, pcy=brd.top;
//– check IE version major number
var re = /MSIE (\d+).(\d+)/;
navigator.appVersion.search(re);
var navMajVer = RegExp.$1;
//– calc the position and show it
bNew=(navMajVer>=6 && document.compatMode!=”BackCompat”);
var docelem = (bNew) ? document.documentElement : document.body;
var scrollY=docelem.scrollTop, scrollX=docelem.scrollLeft;
var my=pcy+scrollY, mx=pcx+scrollX, mby=docelem.clientHeight+scrollY, mbx=docelem.clientWidth+scrollX;
if(my>mby) my=mby;
if(mymbx) mx=mbx;
if(mxpcy)
skype_menu.style.top=(my-obj.clientHeight)-(mbrd.bottom-pcy);
} else {
skype_menu.style.top=my+obj.clientHeight;
}
//– pose the frame right under the tooltip
skype_frame.style.left=skype_menu.style.left;
skype_frame.style.top=skype_menu.style.top;
skype_frame.style.height=skype_menu.clientHeight+2;
skype_frame.style.width=skype_menu.clientWidth+2;
skype_frame.style.display=”block”;
}
function skype_tb_hideHintWait() {
if(!skype_menu)
return;
skype_hintActive=false;
setTimeout(‘skype_tb_hideHint(false);’,1000);
}
function skype_tb_hideHint(force) {
if(!force && skype_hintActive)
return;
skype_hintActive=false;
if(skype_menu) {
document.body.removeChild(skype_menu);
skype_menu=null;
}
if(skype_frame) {
document.body.removeChild(skype_frame);
skype_frame=null;
}
tool.HideDropdownMenu();
}
function skype_tb_setBack(obj,color) {
if(obj && obj.tagName==’TR’)
obj.lastChild.style.backgroundColor = color;
}
function skype_tb_onDropOver(obj) {
skype_hintActive=true;
skype_tb_setBack(obj,”#DFDFDF”);
}
function skype_tb_onDropOut(obj) {
skype_tb_hideHintWait();
skype_tb_setBack(obj,””);
}
function doRunCMD(link,id,obj,lvl) {
var x=0, y=0, z=0;
if(obj) {
var pos=skype_tb_calcDropPos(obj,lvl); x=pos[0]; y=pos[1], z=pos[2];
}
window.location.href=”/skype_tb/”+link+”/”+id+”/”+x+”/”+y+”/”+z;
}
function runCMD(link) {
skype_tb_hideHint(true);
doRunCMD(link,skype_curid,null);
}
function doHandleChdial(obj,edyn,id,lvl) {
if(event)
event.cancelBubble = true;
// if(edyn)
doRunCMD(‘chdial’,id,obj,lvl);
// else
// skype_tb_showFlagHint(obj,id);
}
function skype_tb_calcDropPos(obj,lvl) {
return skype_tb_calcObjPos(obj,lvl,’skype_tb_droppart’);
}
function skype_tb_calcSpanPos(obj,lvl) {
return skype_tb_calcObjPos(obj,lvl,’softomate_highlig’);
}
function skype_tb_calcObjPos(obj,lvl,prefix) {
if(!event)
return Array(0,0,0);
var objPos=event.srcElement;
var brd=objPos.getBoundingClientRect();
var cx=event.clientX-brd.left, cy=event.clientY-brd.top;
var sx=event.screenX-cx, sy=event.screenY-cy;
while(objPos.id.substr(0,17) != prefix) {
var brd1=objPos.getBoundingClientRect();
objPos=objPos.parentElement;
var brd2=objPos.getBoundingClientRect();
sx+=brd2.left-brd1.left;
sy+=brd2.top-brd1.top;
}
var brd=objPos.getBoundingClientRect();
var h=brd.bottom-brd.top;
sy+=h;
return Array(sx,sy,1);
}
function doSkypeFlag(obj,id,state,edyn,fw) {
var fobj=obj.all[‘skype_tb_img_f’+id];
if(!fobj)
return;
switch(state) {
case 0: //– inactive
fobj.className=’skype_tb_imgFlag’;
obj.parentElement.all[‘skype_tb_img_r’+id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_r.compat.gif)’;
skype_overflag=false;
break;
case 1: //– active
fobj.className=’skype_tb_imgFlagAct’;
obj.parentElement.all[‘skype_tb_img_r’+id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_ra.compat.gif)’;
obj.style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_a.compat.flex.w’+fw+’.gif)’;
skype_overflag=true;
break;
case 2: //– pushed
// if(edyn) {
obj.style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_a.compat.flex.w’+fw+’.gif)’;
skype_overflag=true;
// }
break;
}
}
function skype_tb_imgOnOff(mobj,state,id,bflex,fw,nof) {
if(mobj) {
var dobj=mobj.all[‘skype_tb_droppart_’+id];
switch(state) {
case 0: //– inactive
if(dobj)
dobj.style.backgroundImage=(bflex)?’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\inactive_a.compat.flex.w’+fw+’.gif)’:’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\inactive_a.compat.stat.w’+fw+’.gif)’;
mobj.all[‘skype_tb_img_s’+id].style.backgroundImage=(bflex)?’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\inactive_s’+nof+’.compat.gif)’:’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\inactive_s_stat’+nof+’.compat.gif)’;
mobj.all[‘skype_tb_text’ +id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\inactive_m.compat.gif)’;
mobj.all[‘skype_tb_img_r’+id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\inactive_r.compat.gif)’;
skype_overflag=false;
break;
case 1: //– active
if(dobj && (!skype_overflag || !bflex))
dobj.style.backgroundImage=(bflex)?’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_a.compat.flex.w’+fw+’.gif)’:’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_a.compat.stat.w’+fw+’.gif)’;
mobj.all[‘skype_tb_img_s’+id].style.backgroundImage=(bflex)?’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_s’+nof+’.compat.gif)’:’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_s_stat’+nof+’.compat.gif)’;
mobj.all[‘skype_tb_text’ +id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_m.compat.gif)’;
if(!skype_overflag)
mobj.all[‘skype_tb_img_r’+id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\active_r.compat.gif)’;
break;
case 2: //– pushed
if(!skype_overflag) {
if(dobj)
dobj.style.backgroundImage=(bflex)?’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_a.compat.flex.w’+fw+’.gif)’:’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_a.compat.stat.w’+fw+’.gif)’;
mobj.all[‘skype_tb_img_s’+id].style.backgroundImage=(bflex)?’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_s’+nof+’.compat.gif)’:’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_s_stat’+nof+’.compat.gif)’;
mobj.all[‘skype_tb_text’ +id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_m.compat.gif)’;
mobj.all[‘skype_tb_img_r’+id].style.backgroundImage=’url(C:\\DOCUME~1\\Chris\\LOCALS~1\\Temp\\__SkypeIEToolbar_Cache\\d632e8e4efb12ac2f8b4c147250be8b2\\static\\pushed_r.compat.gif)’;
}
break;
}
}
if(state != 1)
skype_tb_hideHintWait();
}
//– call buttons manipulations
function skype_tb_checkVis(obj) {
//– count fully hidden as visible (??)
if(!obj || obj.parentElement==obj.document.body)
return true;
var brd=obj.getBoundingClientRect();
var brdPar=obj.parentElement.getBoundingClientRect();
//alert(‘brd.top=’ + brd.top + ‘; brdPar.bottom=’ + brdPar.bottom + ‘; brdPar.right=’ + brdPar.right + ‘; brd.right=’ + brd.right);
var vis = (brd.top=-3);
return vis;
}
function skype_tb_checkVisFull(obj) {
if(!obj || obj.parentElement==obj.document.body)
return true;
var brd=obj.getBoundingClientRect();
var brdPar=obj.parentElement.getBoundingClientRect();
var vis=(brd.bottom<=brdpar.bottom);
return vis;
}
function skype_tb_swapSpansIfNeed(obj,cid) {
var tobj=obj.all['skype_tb_text'+cid],
robj=obj.all['skype_tb_img_r'+cid];
var tbrd=tobj.getBoundingClientRect(),
rbrd=robj.getBoundingClientRect();
var cst=obj.currentStyle.direction;
if(cst=="ltr" && tbrd.left<=rbrd.left)
return;
//– swap internal spans
var cl=obj.childNodes.length;
for(var i=0; i<cl/2; ++i) {
var cobj=obj.childNodes[i];
var swobj=obj.childNodes[cl-1-i];
cobj.swapNode(swobj);
}
}
function skype_tb_makeVisAll() {
var allspans=document.body.getElementsByTagName("SPAN");
for(var i=0;i<allspans.length;++i) {
var s0='',s1='',ss='';
var curspan=allspans[i];
if(!(curspan.scopeName=="SKYPE" && curspan.id.substr(0,20)=="softomate_highlight_"))
continue;
var cid=curspan.id.substring(20,curspan.id.length);
skype_tb_swapSpansIfNeed(curspan,cid);
if(skype_tb_checkVis(curspan))
continue;
var txtobj=curspan.all['skype_tb_innerText'+cid];
ss=txtobj.innerText;
while(txtobj) {
s0=txtobj.innerText;
s1=s0.substr(0,s0.length/2) + '…';
txtobj.innerText=s1;
if(s0==s1 || skype_tb_checkVis(curspan))
break;
}
//– return text back if still not visible and text is the shortest
if(s0==s1 && !skype_tb_checkVis(curspan))
txtobj.innerText=ss;
//– remove the injection fully if full visibility has not been reached
if(!skype_tb_checkVisFull(curspan)) {
var txt=curspan.context;
curspan.outerHTML=txt;
}
}
}
By Chris Shaw
While the February Commonwealth Bank – Australian Industry Group Performances of Services index showed some improvement in February after several lacklustre months, increasing by five points to a reading of 54.5. This is the highest reading of the past 12 months and compares to a reading of 49.5 in December.
The report shows the improvement being driven by stronger growth in sales and new orders as well as renewed inventory building, though the improvements were centred on the wholesale trade and property and business services sectors, with moderate gains also being recorded in the cafes and restaurants and accommodation sectors.
While some minor growth was recorded in the retail trade and personal and recreation services sectors, the finance and insurance and health and community services sectors recorded the strongest falls.
On a seasonally adjusted basis sales rose, up 5.2 points for the month to 56.8, the increases being recorded in five of the nine sectors compared to just three sectors in January.
New orders rose 3.6 points to 55.5 with gains coming in six sectors, the best being property and business services and accommodation, cafes and restaurants, while retail trade and finance were the only sectors to record lower orders for the month.
While employment rose 5.2 points to a reading of 53.7 it also showed a divergence among sectors, as the report shows only the property and business services and communications sectors posted gains while the health and community services and retail trades sectors posted the largest declines.
The report also notes the stock sub-index posted a strong gain, rising 7.5 points to a reading of 54.1, as recent volatility in inventory levels appears set to continue. While the sub-index rose strongly the only sectors to record gains were wholesale trade, communications and property and business services.

