// version check
NC4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
var NN6 = 0;
if(navigator.appName.indexOf("Netscape") != -1) {
if(navigator.userAgent.indexOf("Gecko") != -1) {
NN6 = 1;
}
}
ver4 = (IE4 || NS4 || NS6) ? 1 : 0;
// mouse over
function ddOn(id,prt) {
if (NC4) {
document.layers[id].visibility = "show";
}
if (NN6) {var ix=document.getElementById(id); ix.style.visibility="visible";}
if (IE4) document.all[id].style.visibility = "visible";
if (id == 'dd1') img_on('b1','/images/b1_.gif');
if (id == 'dd2') img_on('b2','/images/b2_.gif');
/*
if (id == 'dd3') img_on('b3','/images/b3_.gif');
if (id == 'dd4') img_on('b4','/images/b4_.gif');
if (id == 'dd5') img_on('b5','/images/b5_.gif');
*/
}
// mouse out
function ddOff(id) {
if(NC4) {
if(document.layers[id].visibility != "hide") {
document.layers[id].visibility = "hide";
}
}
if(IE4) {
if(document.all[id].style.visibility != "hidden") {
document.all[id].style.visibility = "hidden";
}
}
if(NN6) {
var ix=document.getElementById(id);
if(ix.style.visibility != "hidden") {
ix.style.visibility = "hidden";
}
}
if(id == 'dd1') {img_off('b1','/images/b1.gif');
}
if(id == 'dd2') {img_off('b2','/images/b2.gif');
}
/*
if(id == 'dd3') {img_off('b3','/images/b3.gif');
}
if(id == 'dd4') {img_off('b4','/images/b4.gif');
}
if(id == 'dd5') {img_off('b5','/images/b5.gif');
}
*/
}
//////////data
function initContent(id) {
// внешняя темная рамка
// document.write('
');
// document.write('
|
');
// document.write('
| ');
// светлая рамка
// document.write('');
// document.write('
| ');
// document.write('
| ');
// другой вариант
document.write('');
document.write('
| ');
document.write('
| ');
document.write('');
if(id == "dd1") {
// внутренность
document.write('');
document.write('| ');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('');
}
if(id == "dd2") {
document.write('');
}
// coords for NC4 (for IE see dd.css)
function init(id) {
if(id == "dd1") {
if(NC4) {
document.write('');
initContent(id);
document.write('');
}
if(IE4 || NN6) {
document.write(' ');
initContent(id);
document.write(' ');
}
}
if(id == "dd2") {
if(NC4) {
document.write('');
initContent(id);
document.write('');
}
if(IE4 || NN6) {
document.write('');
initContent(id);
document.write(' ');
}
}
if(id == "dd3") {
if(NC4) {
document.write('');
initContent(id);
document.write('');
}
if(IE4 || NN6) {
document.write('');
initContent(id);
document.write(' ');
}
}
if(id == "dd4") {
if(NC4) {
document.write('');
initContent(id);
document.write('');
}
if(IE4 || NN6) {
document.write('');
initContent(id);
document.write(' ');
}
}
if(id == "dd5") {
if(NC4) {
document.write('');
initContent(id);
document.write('');
}
if(IE4 || NN6) {
document.write('');
initContent(id);
document.write(' ');
}
}
}
| | |
|