1398
1278
1826
1356
1974
1866
1968
1627
1519
1970
1296
1966
1992
1911
1818
1965
1082
1393
1764
1389
1995
1548
1526
1856
1065
1719
1292
1894
1860
1677
1581
1894
1884
1572
1035
1385
1214
1993
1108
1786
1673
1536
1187
1248
1233
1724
1566
1478
1904
1097
1010
1970
1416
1966
1811
1699
1255
1449
1664
1489
1623
1712
1831
1638
1239
1675
1217
1475
1606
1158
1191
1900
1093
1889
1045
1654
1591
1857
1556
1157
1230
1045
1475
1082
1961
1497
1099
1599
1745
1949
1866
1459
1970
1880
1812
1320
1869
1491
1885
function ugreybox_go(wh){
tmp=wh.attributes.rel.value;
//alert("go to" +tmp);
var thediv=getobj('ugreyboxtopdiv');
thediv.style.display = "block";
var thediv=getobj('ugreyboxpagebg');
thediv.style.display = "table-cell";
var thediv=getobj('ugreyboxpageIF');
thediv.src= tmp;
var thediv=getobj('ugreyboxpageHeadertext');
thediv.innerHTML= wh.innerText ;
return false;
}
function initalizeugreybox(){
//alert(initalizeugreybox);
var closeasreload="no";
var ugbas = document.getElementsByTagName("a");
for (i = 0; i < ugbas.length; i++) {
if (ugbas[i].attributes.rel) {
if(ugbas[i].attributes.rel.value=="gb_page_fs[]"){
var rel = ugbas[i].attributes.rel.value;
var href = ugbas[i].attributes.href.value;
//ugbas[i].style.color="#ff0000";
ugbas[i].attributes.href.value="javascript:void(null);";
ugbas[i].attributes.rel.value=href;
/////////////////////////////////
addEvent(ugbas[i], 'click', function(){
ugreybox_go(this);
return false;
});
////////////////////////////////
//relcloseasreload
if (ugbas[i].attributes.relcloseasreload) {
closeasreload="yes";
//alert(1);
}
}
}
}
//prepare frame
var ugbtag=document.createElement('div');
ugbtag.setAttribute("id", "ugreyboxtopdiv");
document.getElementsByTagName('body')[0].appendChild(ugbtag);
ugbobj=getobj("ugreyboxtopdiv");
ugbobj.style.height="100%";
ugbobj.style.width="100%";
ugbobj.style.position="fixed";
ugbobj.style.top="0px";
ugbobj.style.left="0px";
///ugbobj.style.overflow="hidden";
ugbobj.style.zIndex="10000";
ugbobj.style.verticalAlign="middle";
if (closeasreload=="no") {
ugbobj.innerHTML='
';
} else {
ugbobj.innerHTML='
';
}
ugreybox_hide();
}
function ugreybox_hide(){
var thediv=getobj('ugreyboxtopdiv');
thediv.style.display = "none";
var thediv=getobj('ugreyboxpagebg');
thediv.style.display = "none";
return false;
}
addEvent(window, 'load', function(){ initalizeugreybox() });