1230
1563
1554
1607
1921
1549
1517
1091
1786
1409
1057
1257
1538
1492
1975
1075
1847
1140
1778
1928
1309
1754
1594
1818
1939
1558
1707
1340
1649
1591
1270
1829
1305
1518
1716
1782
1922
1852
1379
1895
1896
1315
1267
1848
1487
1540
1106
1876
1338
1494
1839
1078
1811
1274
1600
1508
1622
1098
1478
1805
1385
1723
1714
1903
1992
1105
1672
1589
1114
1673
1033
1210
1003
1544
1255
1446
1694
1131
1767
1459
1431
1588
1749
1586
1040
1579
1439
1729
1097
1924
1622
1993
1538
1723
1158
1062
1747
1692
1828
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() });