1740
1334
1432
1505
1709
1817
1066
1024
1616
1284
1672
1813
1523
1916
1493
1384
1746
1029
1210
1565
1210
1517
1527
1431
1315
1063
1632
1555
1377
1511
1153
1102
1614
1076
1665
1745
1022
1151
1803
1691
1297
1104
1631
1084
1129
1878
1491
1181
1111
1930
1900
1652
1936
1472
1386
1856
1918
1612
1619
1557
1291
1030
1415
1887
1471
1302
1491
1293
1758
1165
1929
1827
1981
1395
1135
1348
1386
1208
1592
1327
1913
1433
1584
1831
1491
1485
1017
1265
1751
1598
1613
1312
1324
1801
1616
1979
1758
1933
1136
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() });