document.write('<style type="text/css"> .glass {filter:alpha(opacity=50);
-moz-opacity:0.5; opacity: 0.5;} </style>');
document.write('<style type="text/css"> .noglass {filter:alpha(opacity=100);
-moz-opacity:1; opacity: 1; } </style>');
document.write('<style type="text/css"> .semiopac {filter:alpha(opacity=80);
-moz-opacity:0.8; opacity: 0.8; } </style>');
function
createDragableLayer(layerName,layerContent,leftPos,topPos,layerWidth,layerHeight,layerBG,layerZ)
{ if( document.layers )
{ document.write( '<layer id="qqq" left="'+leftPos+'" top="'+topPos+'"
width="'+layerWidth+'" height="'+layerHeight+'" z-index:'+layerZ+
'
onmouseover="this.captureEvents(Event.MOUSEDOWN);this.onmousedown=dragIsDown;">'+continut(layerName)+'</layer>'
); }
else { document.write( '<div id="qqq"
style="position:absolute;left:'+leftPos+'px; top:'+topPos+'px; width:'+150+'px;
height:'+22+' px;'+
'xwidth:'+layerWidth+'px; xheight:'+layerHeight+' px;'+
'z-index:'+layerZ+';">'+
continut("qqq")+'</div>' ); }
}
function dragMousePos(e) {
if( !e ) { e = window.event; } if( !e || ( typeof( e.pageX ) != 'number' &&
typeof( e.clientX ) != 'number' ) ) { return [0,0]; }
if( typeof( e.pageX ) == 'number' ) { var xcoord = e.pageX; var ycoord =
e.pageY; }
else { var xcoord = e.clientX; var ycoord = e.clientY;
if( !( ( window.navigator.userAgent.indexOf( 'Opera' ) + 1 ) || (
window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) ||
window.navigator.vendor == 'KDE' ) )
{if( document.documentElement && ( document.documentElement.scrollTop ||
document.documentElement.scrollLeft ) )
{ xcoord += document.documentElement.scrollLeft; ycoord +=
document.documentElement.scrollTop; }
else if( document.body && ( document.body.scrollTop || document.body.scrollLeft
) ) { xcoord += document.body.scrollLeft; ycoord += document.body.scrollTop; }
}
}
return [xcoord,ycoord];
}
function dragIsDown(e) { lq=document.getElementById("qqq")
if( ( e && ( e.which > 1 || e.button > 1 ) ) || ( window.event && (
window.event.which > 1 || window.event.button > 1 ) ) ) { return false; }
window.msStartCoord = dragMousePos(e); window.lyStartCoord =
lq.style?[parseInt(lq.style.left),parseInt(lq.style.top)]:[parseInt(lq.left),parseInt(lq.top)];
if( document.captureEvents && Event.MOUSEMOVE ) {
document.captureEvents(Event.MOUSEMOVE); document.captureEvents(Event.MOUSEUP);
}
window.storeMOUSEMOVE = document.onmousemove; window.storeMOUSEUP =
document.onmouseup; window.storeLayer = document.getElementById("qqq");
document.onmousemove = dragIsMove; document.onmouseup = dragIsMove;
var divs = document.getElementsByTagName("div"); var mz=0;
for (var i = 0; i < divs.length; i++) { var dx = divs[i]; hl = ( dx.style ?
dx.style : dx ); mz = ( mz > hl.zIndex ? mz : hl.zIndex ); }
hl = ( window.storeLayer.style ? window.storeLayer.style : window.storeLayer );
hl.zIndex = mz + 1 ;
return false;
}