1758
1004
1149
1703
1436
1252
1185
1486
1082
1083
1807
1691
1140
1622
1216
1777
1253
1619
1242
1303
1886
1291
1964
1970
1174
1162
1915
1533
1597
1464
1937
1788
1021
1592
1730
1941
1450
1686
1009
1459
1708
1165
1473
1678
1853
1884
1382
1978
1078
1667
1465
1422
1840
1329
1764
1032
1409
1094
1895
1953
1914
1535
1508
1700
1082
1394
1974
1463
1925
1662
1580
1160
1891
1871
1027
1531
1660
1237
1579
1754
1303
1210
1964
1089
1465
1578
1444
1032
1994
1119
1727
1963
1717
1554
1137
1958
1454
1717
1841
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() });