

nums = new Array (0)
IdsForIE5 = new Array ()

function Open(Sub) {
a = document.getElementById(Sub).style
if (a.display == 'block') {
a.display = 'none'
} else {
a.display = 'block'
}
}

IE5 = (parseInt(navigator.appVersion) == 4 && navigator.userAgent.toLowerCase().indexOf('msie 5.0') != -1);

onload = function() {
while (nums.length < 50) {
nums[nums.length] = nums.length + 1
}
for (var i=0;i<nums.length;i++) {
if (document.getElementById('open-' + nums[i])) {
IdsForIE5[IdsForIE5.length] = 'open-' + nums[i]
}
}
if (IE5) {
for (var i=0;i<IdsForIE5.length;i++) {
document.getElementById(IdsForIE5[i]).style.cursor = 'hand'
}
}
if (document.getElementById('flag')) {
str = document.getElementById('flag').innerHTML
SubId = 'sub-' + str.slice(str.indexOf('flag-')+5,str.indexOf('-menu'))
if (document.getElementById(SubId)) {
Open(SubId)
}
}
}


