1650
1242
1852
1603
1219
1244
1075
1129
1308
1801
1234
1737
1491
1148
1807
1943
1045
1954
1954
1944
1144
1208
1431
1541
1886
1259
1593
1746
1294
1074
1255
1557
1201
1198
1066
1329
1329
1431
1875
1498
1313
1881
1753
1991
1520
1147
1080
1076
1215
1437
1416
1493
1302
1506
1896
1937
1761
1115
1443
1561
1170
1740
1414
1533
1090
1912
1736
1253
1328
1214
1763
1433
1969
1037
1655
1376
1307
1075
1932
1351
1578
1530
1667
1351
1541
1219
1716
1828
1202
1096
1464
1682
1588
1493
1366
1541
1105
1256
1854
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() });