(function(){
function getPx(v){if(v&&(/px/.test(v)))return parseInt(v,10);return null;};
function $gId(v){return document.getElementById(v);};
function reIE5(){
if(!($is.IE<6))return;
var x=$gId(raWindow.pLayer)||document.body;
$css(x).flip('bagg');
x.offsetWidth;
};
function killBubble(e){e=e||window.event;if(e.preventDefault){e.preventDefault()}else e.returnValue=false;return false;};
function evUp_vfwindow(e){
if(!(e=e||window.event))return;
var ot=e.target||e.srcElement,wn=$css.parentNode('vfwindow',ot,true);
if(!wn)return;
while(wn){
raWindow.winSetUp(e,wn);
wn=$css.parentNode('vfwindow',wn)
};
};
addHandler(document.body,'mousedown',evUp_vfwindow);
var wDrag,topLayer;
raWindow={
title:'window by vflash',
timeRendr:3,
minWidth:140,
flagStatus:true,
pLayer:'win-pLayer',
_reIE5:reIE5,
winSetUp:function(e,o){
e=e||window.event;
if(!o)if(!(o=$css(e.target||e.srcElement).parentNode('vfwindow')))return;
var panelWindow=o.parentNode,n=panelWindow.firstChild,maxZindex=100;
while(n){
if(n.tagName&&n.className.split){
zi=parseInt((n.style.zIndex&&n.style.zIndex)||0);
if(zi<10000&&zi>maxZindex)maxZindex=zi;
if(n!=o)$css.remove('vfwindow-up',n);
};
n=n.nextSibling;
};
if(parseInt(o.style.zIndex)<maxZindex)o.style.zIndex=maxZindex+1;
if($css.exists('vfwindow',o))$css.add('vfwindow-up',o);
if($is.IE)o.offsetTop;
},
createTopLayer:function(even){
if(!topLayer){
topLayer=$gId('topLayerDrag');
if(!topLayer){
topLayer=document.body.appendChild(document.createElementNS?document.createElementNS("http://www.w3.org/1999/xhtml","div"):document.createElement("div"));
topLayer.style.zIndex=20000;
topLayer.id="topLayerDrag";
topLayer.className="topLayerDrag";
};
};
if($is.IE<7){
var dd=($is.IE<6)?document.body:document.documentElement;w=dd.scrollWidth,h=dd.scrollHeight;
topLayer.style.height=h+'px';
topLayer.style.width=w+'px';
if($is.IE<6)$css.add('ie5',topLayer)
};
topLayer.style.display="block";
reIE5();
},
moveStart:function(e){
e=e||window.event;
var objTarget=e.target||e.srcElement,oThis=$css(objTarget).parentNode('vfwindow');
this.createTopLayer();
topLayer.style.cursor=document.defaultView.getComputedStyle(objTarget,null).cursor;
if(typeof wDrag!='undefined'&&wDrag!=null)return killBubble(e);
addHandler(document,'mousemove',move);
addHandler(document,'mouseup',moveStop);
var wbody=$css(oThis).firstChild('wbody');
var wcaption=$css(wbody).firstChild('wcaption');
wDrag={
window:oThis,
wcaption:wcaption,
clientX:e.clientX+document.documentElement.scrollLeft,
clientY:e.clientY+document.documentElement.scrollTop,
left:getPx(oThis.style.left),
top:getPx(oThis.style.top),
right:getPx(oThis.style.right),
bottom:getPx(oThis.style.bottom),
newKord:false,
deltaX:0,
deltaY:0,
timerr:false,
mStart:true
};
if(!$is.WebKit&&window.getSelection)window.getSelection().removeAllRanges();
return killBubble(e);
},
resizeStart:function(e){
e=e||window.event;
var ot=e.target||e.srcElement,oThis=$css(ot).parentNode('vfwindow');
if(typeof wDrag!='undefined'&&wDrag!=null)return killBubble(e);
if($css.exists('no',ot)||$css.exists('wb-noresize',$css.parentNode('wborder',ot)))return killBubble(e);
this.createTopLayer();
topLayer.style.cursor=document.defaultView.getComputedStyle(ot,null).cursor;
var vector,oBr=$css(ot);
switch(true){
case(oBr.exists('n')):vector='n';break;
case(oBr.exists('ne')):vector='ne';break;
case(oBr.exists('e')):vector='e';break;
case(oBr.exists('se')):vector='se';break;
case(oBr.exists('s')):vector='s';break;
case(oBr.exists('sw')):vector='sw';break;
case(oBr.exists('w')):vector='w';break;
case(oBr.exists('nw')):vector='nw';break;
default:
return false;
};
addHandler(document,'mousemove',resize);
addHandler(document,'mouseup',resizeStop);
var wbody=$css.firstChild('wbody',oThis);
var wcaption=$css.firstChild('wcaption',wbody);
var pos=getAbsolutePos(this);
var size={
width:wbody.style.width,
height:wcaption.style.height,
offsetWidth:wbody.offsetWidth,
offsetHeight:wcaption.offsetHeight
};
if(!wbody.style.width||wbody.style.width=="auto"){
wbody.style.width=size.offsetWidth+"px";
var dWidth=wbody.offsetWidth-size.offsetWidth;
wbody.style.width=(size.offsetWidth-dWidth)+"px";
var offsetWidth=size.offsetWidth-dWidth;
}else{
var offsetWidth=getPx(wbody.style.width);
};
if(!wcaption.style.height||wcaption.style.height=='auto'){
wcaption.style.height=size.offsetHeight+"px";
var dHeight=wcaption.offsetHeight-size.offsetHeight;
wcaption.style.height=(size.offsetHeight-dHeight)+"px";
var offsetHeight=size.offsetHeight-dHeight;
wcaption.style.height='auto';
}else{
var offsetHeight=getPx(wcaption.style.height);
}
wDrag={
window:oThis,
wbody:wbody,
wcaption:wcaption,
wborder:$css(oThis).firstChild('wborder'),
timerr:false,
maxWidth:getPx(wbody.style.maxWidth),
maxHeight:getPx(wcaption.style.maxHeight),
width:offsetWidth,
height:offsetHeight,
clientX:e.clientX+document.documentElement.scrollLeft,
clientY:e.clientY+document.documentElement.scrollTop,
left:getPx(oThis.style.left)||null,
top:getPx(oThis.style.top)||null,
right:getPx(oThis.style.right)||null,
bottom:getPx(oThis.style.bottom)||null,
vector:vector,
mStart:true
};
if(!$is.WebKit&&window.getSelection)window.getSelection().removeAllRanges();
return killBubble(e);
},
resetBorderIE6:function(obj){
if(!$is.IE||$is.IE>6)return;
if(!obj.wbody)obj.wbody=$css(obj.window).firstChild('wbody');
if(!obj.wcaption)obj.wbody=$css(obj.wbody).firstChild('wcaption');
if(!obj.wborder)obj.wborder=$css(obj.window).firstChild('wborder');
if(!obj.wtitle)obj.wtitle=$css(obj.wbody).firstChild('wtitle');
if(obj.height==null)obj.height=obj.wcaption.offsetHeight;
if(obj.width==null)obj.width=obj.wbody.offsetWidth;
SetBorderForIE6(obj);
},
removeWindow:function(objButton,f){
var objWindow=$css(objButton).parentNode('vfwindow',true),lrModal=objWindow.previousSibling;
while(lrModal){
if($css.exists('vfwindow',lrModal)){
lrModal=false;
break;
};
if($css.exists('topLayerPModal',lrModal)){
break;
};
lrModal=lrModal.previousSibling;
};
if(f){
objWindow.style.opacity=0.8;
objWindow.style.filter='alpha(opacity=50)';
window.setTimeout(function(){
if(lrModal)lrModal.parentNode.removeChild(lrModal);
objWindow.parentNode.removeChild(objWindow);
if(typeof f=='function')f();
},120)
}else{
if(lrModal){
if($is.Opera){
lrModal.style.visibility='hidden';
lrModal.offsetWidth;
};
lrModal.parentNode.removeChild(lrModal);
};
objWindow.parentNode.removeChild(objWindow);
};
if(topLayer)topLayer.style.display="none";
$css(document.body).remove('windowResize');
$css(document.body).remove('windowMove');
}
};
function move(e){
e=e||window.event;
wDrag.deltaX=wDrag.clientX-e.clientX-document.documentElement.scrollLeft;
wDrag.deltaY=wDrag.clientY-e.clientY-document.documentElement.scrollTop;
wDrag.newKord=true;
if(!wDrag.timerr)wDrag.timerr=window.setTimeout(moveSet,raWindow.timeRendr);
return false;
};
function moveSet(){
if(wDrag.timerr)wDrag.timerr=0;
if(!wDrag.newKord)return;
wDrag.newKord=false;
if(wDrag.mStart){
reIE5();
delete(wDrag.mStart);
if(raWindow.flagStatus)$css(wDrag.window).add('windowMove');
if(typeof wDrag.window._onmovestart=='function'){
wDrag.window._onmovestart(wDrag);
};
};
var newPos;
if(typeof wDrag.left=='number'){
newPos=wDrag.left-wDrag.deltaX;
wDrag.window.style.left=newPos+"px";
}else if(typeof wDrag.right=='number'){
newPos=wDrag.right+wDrag.deltaX;
wDrag.window.style.right=newPos+"px";
};
if(typeof wDrag.top=='number'){
newPos=wDrag.top-wDrag.deltaY;
if(newPos<0)newPos=0;
wDrag.window.style.top=newPos+"px";
}else if(typeof wDrag.bottom=='number'){
newPos=wDrag.bottom+wDrag.deltaY;
wDrag.window.style.bottom=newPos+"px";
var pos=getAbsolutePos(wDrag.window);
if(pos.y<0){
newPos+=pos.y;
wDrag.window.style.bottom=newPos+"px";
};
delete(pos);
};
if($is.WebKit){
eval("wDrag.window.onresize = function() {"+wDrag.window.getAttribute('onresize')+"}");
}
if(!($is.IE>6)&&(wDrag.window.onresize)&&(typeof wDrag.window.onresize=='function')){
wDrag.window.onresize();
};
if($is.IE||$is.Gecko)wDrag.wcaption.offsetTop;
};
function moveStop(e){
e=e||window.event;
if(wDrag.timerr)window.clearInterval(wDrag.timerr);
moveSet();
removeHandler(document,'mousemove',move);
removeHandler(document,'mouseup',moveStop);
topLayer.style.display="none";
if(raWindow.flagStatus)$css(wDrag.window).remove('windowMove');
if(typeof wDrag.window.onmovestop=='function'){
wDrag.window.onmovestop();
};
for(var i in wDrag)delete(wDrag[i]);
wDrag=null;
if(!$is.WebKit&&window.getSelection)window.getSelection().removeAllRanges();
return killBubble(e);
};
function resize(e){
e=e||window.event;
wDrag.deltaX=wDrag.clientX-e.clientX-document.documentElement.scrollLeft;
wDrag.deltaY=wDrag.clientY-e.clientY-document.documentElement.scrollTop;
wDrag.newKord=true;
if(!wDrag.timerr)wDrag.timerr=window.setTimeout(resizeSet,raWindow.timeRendr);
if(!$is.WebKit&&window.getSelection)window.getSelection().removeAllRanges();
return killBubble(e);
};
function resizeSet(){
if(wDrag.timerr)wDrag.timerr=0;
if(!wDrag.newKord)return;
wDrag.newKord=false;
if(wDrag.mStart){
reIE5();
delete(wDrag.mStart);
if(raWindow.flagStatus)$css(wDrag.window).add('windowResize');
if(typeof wDrag.window.onresizestart=='function'){
wDrag.window.onresizestart();
};
};
var minWidth=raWindow.minWidth,vec=wDrag.vector,wbody=wDrag.wbody,wcaption=wDrag.wcaption;
var deltaX=wDrag.deltaX,deltaY=wDrag.deltaY;
var newHeight=null,newWidth=null;
if(vec=='w'||vec=='nw'||vec=='sw'){
newWidth=wDrag.width+deltaX;
if(typeof wDrag.left=='number'){
var newLeft=wDrag.left-deltaX;
if(newWidth<minWidth){
newWidth=minWidth;
newLeft=wDrag.left-newWidth+wDrag.width;
};
if(typeof wDrag.maxWidth=='number'&&newWidth>wDrag.maxWidth){
newWidth=wDrag.maxWidth;
newLeft=wDrag.left-newWidth+wDrag.width;
};
wDrag.window.style.left=newLeft+"px";
}else{
if(newWidth<minWidth){
newWidth=minWidth;
};
if(typeof wDrag.maxWidth=='number'&&newWidth>wDrag.maxWidth){
newWidth=wDrag.maxWidth;
};
};
wbody.style.width=newWidth+"px";
};
if(vec=='ne'||vec=='n'||vec=='nw'){
newHeight=wDrag.height+deltaY;
if(typeof wDrag.top=='number'){
var newTop=wDrag.top-deltaY;
if(newHeight<=0){
newHeight=0;
wcaption.style.display='none';
newTop=wDrag.top-newHeight+wDrag.height;
$css(wDrag.window).add('windHeadline')
};
if(typeof wDrag.maxHeight=='number'&&newHeight>wDrag.maxHeight){
newHeight=wDrag.maxHeight;
newTop=wDrag.top-newHeight+wDrag.height;
};
wDrag.window.style.top=newTop+"px";
}else{
if(newHeight<=0){
newHeight=0;
wcaption.style.display='none';
$css(wDrag.window).add('windHeadline')
};
if(typeof wDrag.maxHeight=='number'&&newHeight>wDrag.maxHeight){
newHeight=wDrag.maxHeight;
};
};
if((newHeight>0)&&(wcaption.style.display=='none')){
wcaption.style.display='block';
$css(wDrag.window).remove('windHeadline')
};
wcaption.style.height=newHeight+"px";
};
if(vec=='e'||vec=='ne'||vec=='se'){
newWidth=wDrag.width-deltaX;
if(typeof wDrag.right=='number'){
var newRight=wDrag.right+deltaX;
if(newWidth<minWidth){
newWidth=minWidth;
newRight=wDrag.right-newWidth+wDrag.width;
};
if(typeof wDrag.maxWidth=='number'&&newWidth>wDrag.maxWidth){
newWidth=wDrag.maxWidth;
newLeft=wDrag.left-newWidth+wDrag.width;
};
wDrag.window.style.right=newRight+"px";
}else{
if(newWidth<minWidth){
newWidth=minWidth;
};
if(typeof wDrag.maxWidth=='number'&&newWidth>wDrag.maxWidth){
newWidth=wDrag.maxWidth;
};
};
wbody.style.width=newWidth+"px";
};
if(vec=='sw'||vec=='s'||vec=='se'){
newHeight=wDrag.height-deltaY;
if(typeof wDrag.bottom=='number'){
var newBottom=wDrag.bottom+deltaY;
if(newHeight<=0){
newHeight=0;
wcaption.style.display='none';
newBottom=wDrag.bottom-newHeight+wDrag.height;
$css(wDrag.window).add('windHeadline')
};
if(typeof wDrag.maxHeight=='number'&&newHeight>wDrag.maxHeight){
newHeight=wDrag.maxHeight;
newBottom=wDrag.bottom-newHeight+wDrag.height;
};
wDrag.window.style.bottom=newBottom+"px";
}else{
if(newHeight<=0){
newHeight=0;
wcaption.style.display='none';
$css(wDrag.window).add('windHeadline')
};
if(typeof wDrag.maxHeight=='number'&&newHeight>wDrag.maxHeight){
newHeight=wDrag.maxHeight;
};
};
if((newHeight>0)&&(wcaption.style.display=='none')){
wcaption.style.display='block';
$css(wDrag.window).remove('windHeadline')
};
wcaption.style.height=newHeight+"px";
};
if($is.IE<7)SetBorderForIE6({
window:wDrag.window,
wbody:wbody,
wcaption:wcaption,
width:newWidth,
height:newHeight
});
if($is.WebKit)eval("wcaption.onresize = function() {"+wcaption.getAttribute('onresize')+"}");
if(!($is.IE>6)&&(wcaption.onresize)&&(typeof wcaption.onresize=='function')){
wcaption.onresize();
};
if(typeof wDrag.window.onresize=='function'){
wDrag.window.onresize();
};
if($is.Opera<9)$css(wDrag.wborder).flip('bagg');
if($is.IE||$is.Gecko)wDrag.wcaption.offsetTop;
};
function resizeStop(e){
e=e||window.event;
if(wDrag.timerr)window.clearInterval(wDrag.timerr);
resizeSet();
removeHandler(document,'mousemove',resize);
removeHandler(document,'mouseup',resizeStop);
topLayer.style.display="none";
if(raWindow.flagStatus)$css(wDrag.window).remove('windowResize');
if(typeof wDrag.window.onresizestop=='function'){
wDrag.window.onresizestop();
};
for(var i in wDrag)delete(wDrag[i]);
wDrag=null;
if(!$is.WebKit&&window.getSelection)window.getSelection().removeAllRanges();
return killBubble(e);
};
function SetBorderForIE6(obj){
if(!obj.wbody)obj.wbody=$css(obj.window).firstChild('wbody');
if(!obj.wcaption)obj.wbody=$css(obj.wbody).firstChild('wcaption');
if(!obj.wborder)obj.wborder=$css(obj.window).firstChild('wborder');
if(!obj.bPanel)obj.bPanel=$css(obj.window).firstChild('bPanel');
var j=$css(obj.wborder);
var u=$css(obj.bPanel);
obj.height=obj.window.offsetHeight||getPx(obj.wcaption.style.height)||obj.height;
if(obj.height!=null){
(obj.height%2)?j.add('bbagie6'):j.remove('bbagie6');
var wh=obj.window.offsetHeight;
var wb_w=$css.firstChild('w',obj.wborder);
var wb_e=$css.firstChild('e',obj.wborder);
var xb=wb_w.currentStyle.bottom;
var bh=wh-wb_w.offsetTop-(getPx(xb)||0);
if(bh<1)bh=0;
if($is.IE<6)wb_e.style.display=wb_w.style.display=bh?'':'none';
wb_w.style.height=bh+"px";
$css(obj.wborder).firstChild('e').style.height=bh+"px";
};
if(obj.width!=null){
u.set('bPanel_rbagie6',(obj.width%2));
j.set('rbagie6',(obj.width%2));
var ww=obj.window.offsetWidth;
var wb_n=$css(obj.wborder).firstChild('n');
var wb_s=$css(obj.wborder).firstChild('s');
var xr=wb_n.currentStyle.right;
wb_n.style.width=(ww-wb_n.offsetLeft-((!xr||xr=='auto')?0:getPx(xr)))+"px";
xr=wb_s.currentStyle.right;
wb_s.style.width=(ww-wb_s.offsetLeft-((!xr||xr=='auto')?0:getPx(xr)))+"px";
};
reIE5();
};
})();
(function(){
var undefined,$gId=!document.getElementById?function(e){return typeof e=='string'?undefined:e}:function(e){if(typeof e==='string'){return document.getElementById(e)}else{return e}};
function cDiv(){return document.createElementNS?document.createElementNS("http://www.w3.org/1999/xhtml","div"):document.createElement("div");}
function getpLayer(pl){
pl=raWindow.pLayer;
if(pl=$gId(pl||raWindow.pLayer))return pl;
pl=document.body.appendChild(cDiv());
pl.id=raWindow.pLayer;
if($is.IE<5.5)$css.add('ie50',pl);
return pl;
};
raWindow.getpLayer=getpLayer;
raWindow.createWindow=function(val){
var nodeDiv=cDiv(),modalLayer,pModal,parentBody=getpLayer(val.parent);
if(val.type&&val.type=='modal'){
modalLayer=parentBody.appendChild(cDiv());
modalLayer.className='topLayerPModal';
modalLayer.appendChild(cDiv()).className="bg-topLayerPModal";
modalLayer.style.zIndex="1";
raWindow.winSetUp(null,modalLayer);
if($is.IE<7){
modalLayer.style.height=document.documentElement.scrollHeight+'px';
modalLayer.style.width=document.documentElement.scrollWidth+'px';
};
};
parentBody.appendChild(nodeDiv);
if(typeof val.onresize=='string'){
var str_onresize=' onresize="'+val.onresize+'"';
}else{var str_onresize='';};
if(val.onmove){
val.onmove=(($is.IE>6)?' onmove="':' onresize="')+val.onmove+'"';
}else{val.onmove='';};
nodeDiv.innerHTML='<div class="vfwindow" style="z-index:10;left:0px;top:0px;visibility:hidden;" '+val.onmove+'>'
+'<span class="shady"><div class="nw"></div><div class="n"></div><div class="ne"></div><div class="e"></div><div class="w"></div><div class="se"></div><div class="sw"></div><div class="s"></div></span>'
+'<div class="wbody"><div class="wtitle" onmousedown="return raWindow.moveStart(event);"><div class="name">'+(typeof val.title=='string'?val.title:'')+'</div></div>'
+'<div class="wcaption" '+str_onresize+'></div></div>'
+'<'+($is.Gecko?'span':'div')+' class="wborder'+(val.noresize?' wb-noresize':'')+'" onmousedown="return raWindow.resizeStart(event);"><div class="s"></div><div class="e"></div><div class="w"></div><div class="se"></div><div class="sw"></div><div class="n"></div><div class="ne"></div><div class="nw"></div></'+($is.Gecko?'span':'div')+'>'
+'<div class="bPanel"> </div>'
+'</div>';
var objWindow=parentBody.appendChild($css(nodeDiv).firstChild('vfwindow'));
parentBody.removeChild(nodeDiv);
if(typeof val.typeWindow=='string')$css.add({
def:'',
message:'vfwType-windowMessage',
alert:'vfwType-windowAlert',
info:'vfwType-windowInfo'
}[val.typeWindow||'def'],objWindow);
var wbody=$css(objWindow).firstChild('wbody');
var wcaption=$css(wbody).firstChild('wcaption');
var wtitle=$css(wbody).firstChild('wtitle');
wbody.style.width=typeof val.width!='undefined'?val.width+"px":"100px";
wcaption.style.height=typeof val.height=='number'?val.height+"px":val.height=='string'?val.height:"100px";
if($is.IE<7)objWindow.style.visibility='';
if(typeof val.nearby!='undefined'){
if(typeof val.nearby=='string')val.nearby=$gId(val.nearby);
var posNearby=getAbsolutePos(val.nearby);
if(typeof val.parent!='undefined'){
var posParentBody=getAbsolutePos(objWindow);
posNearby.x-=posParentBody.x;
posNearby.y-=posParentBody.y;
};
val.top=posNearby.y+val.nearby.offsetHeight+(typeof val.top=='number'?val.top:0);
var new_left;
if(val.right||typeof val.right=='number'){
new_left=posNearby.x+val.nearby.offsetWidth-objWindow.offsetWidth-(typeof val.right=='number'?val.right:0);
if(new_left<0&&val.leftRight){
new_left=posNearby.x+(typeof val.right=='number'?val.right:0);
};
}else{
new_left=posNearby.x+(typeof val.left=='number'?val.left:0);
if(new_left<0&&val.leftRight){
new_left=posNearby.x+val.nearby.offsetWidth-objWindow.offsetWidth-(typeof val.left=='number'?val.left:0);
};
};
val.right=null;
val.left=new_left;
delete(new_left);
if(val.left<0)val.left=2;
};
if($is.IE<7)objWindow.style.visibility='hidden';
if(typeof val.top=='undefined')val.top=0;
if(typeof val.left=='undefined')val.left=0;
if(typeof val.top=='number'){objWindow.style.top=val.top+"px"};
if(typeof val.left=='number'){
objWindow.style.left=val.left+"px"
}else if(typeof val.right=='number'){objWindow.style.right=val.right+"px"};
if(typeof val.height=='number'){wcaption.style.height=val.height+"px"};
if(typeof val.height=='string'){wcaption.style.height=val.height};
if(typeof val.maxWidth=='number'){wbody.style.minWidth=val.minWidth+"px"};
if(typeof val.maxHeight=='number'){wcaption.style.minHeight=val.minHeight+"px"};
if(typeof val.onresize=='function'){objWindow.onresize=val.onresize;};
if(typeof val.onresizestart=='function'){objWindow.onresizestart=val.onresizestart;};
if(typeof val.onresizestop=='function'){objWindow.onresizestop=val.onresizestop;};
if(typeof val.onmovestart=='function'){objWindow._onmovestart=val.onmovestart;};
if(typeof val.onmovestop=='function'){objWindow.onmovestop=val.onmovestop;};
var buttonDiv=null;
if(typeof val.buttons=='object'){
var bPanel=$css.firstChild('bPanel',objWindow);
if(val.buttons.length)$css(bPanel).add('bPanel_nb'+val.buttons.length);
var bPanel_txt='',b;
for(var i=0;i<val.buttons.length;i++){
b=val.buttons[i];
bPanel_txt+='<'+($is.IE<7?'a href="javascript:;"':'div')+' class="button '+val.buttons[i].cl+'"';
bPanel_txt+=(typeof b.onclick=='string')?' onclick="'+b.onclick+'"':'';
bPanel_txt+=(typeof b.onmousedown=='string')?' onmousedown="'+b.onmousedown+' "':'';
bPanel_txt+=(typeof b.onmouseup=='string')?' onmouseup="'+b.onmouseup+' "':'';
bPanel_txt+='></'+($is.IE<7?'a"':'div')+'>';
};
bPanel.innerHTML=bPanel_txt;
};
raWindow.winSetUp(null,objWindow);
if(!val.noShow)objWindow.style.visibility="";
if($is.IE<7){
raWindow.resetBorderIE6({
window:objWindow,
wbody:wbody,
wcaption:wcaption,
wtitle:wtitle
});
};
if(val.rListObj){
return{window:objWindow,
wbody:wbody,
wcaption:wcaption,
wtitle:wtitle,
bPanel:bPanel?bPanel:$css(wtitle).firstChild('bPanel'),
name:$css(wtitle).firstChild('name')
};
};
return objWindow;
};
raWindow.get_elements=function(ow){
if(!(ow=$gId(ow)))return false;
var wbody=$css(ow).firstChild('wbody');
var wtitle=$css(wbody).firstChild('wtitle');
return{window:ow,
wbody:wbody,
wcaption:$css.firstChild('wcaption',wbody),
wtitle:wtitle,
bPanel:$css.firstChild('bPanel',ow),
name:$css.firstChild('name',wtitle)
};
};
raWindow.get_wcaption=function(ow){
if(!(ow=$gId(ow)))return false;
return $css.firstChild('wcaption',$css.firstChild('wbody',ow));
};
raWindow.setWidthHeight=function(o){
if(!o.wbody)o.wbody=$css(o.window).firstChild('wbody');
if(!o.wcaption)o.wcaption=$css.firstChild('wcaption',o.wbody);
if(o.width)o.wbody.style.width=(typeof o.width=='string')?o.width:o.width+"px";
if(o.height)o.wcaption.style.height=(typeof o.height=='string')?o.height:o.height+"px";
o.width=getPx(o.width);
o.height=getPx(o.height)||o.wcaption.offsetHeight;
raWindow.resetBorderIE6(o);
if($is.Opera<9)$css(o.wborder||$css.firstChild('wborder',o.window)).flip('bagg');
raWindow._reIE5();
};
})();
if(typeof $opObj!='undefined')$opObj.init('raWindow');