function blockError(){return true;} window.onerror = blockError; function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i max_height) { $("#"+container_div).height(h); $("#"+container_div).find("table:first").height(h); } } } /*------------------------------------------*/ function tabOver(elem) { /*if(typeof active_tab != "undefined"){ if(elem == active_tab) return; active_tab.onsrc = active_tab.src; active_tab.src = active_tab_off; }*/ } function tabOut() { if(typeof active_tab != "undefined"){ active_tab.src = active_tab_on; } } var NewBanner = ["banner1","banner2","banner3","banner5"]; var BannerNum = 0; var BannerLength = NewBanner.length - 1; var old_visible = ""; function showheader(direction){ stops(); // hide prev div if(old_visible != "") old_visible.style.display="none"; BannerNum = BannerNum + direction; if (BannerNum > BannerLength) { BannerNum = 0; } if (BannerNum < 0) { BannerNum = BannerLength; } var banner = MM_findObj(NewBanner[BannerNum]) if(banner != null) { banner.style.display="block"; old_visible = banner; } } //Time delay between Slides in milliseconds var delay = 3000; var lock = false; var run; function auto() { showheader(1); //show first lock = true; run = setInterval("showheader(1)", delay); } function stops() { lock = false; window.clearInterval(run); } function print_function() { var disp_setting="toolbar=no,location=no,directories=no,menubar=no,"; disp_setting+="scrollbars=yes,width=800, height=900, left=100, top=100"; var content_vlue = document.getElementById("Text").innerHTML; var content_vlue_title = document.getElementById("Title").innerHTML; if(document.getElementById("Pic")){ var content_vlue_pic = document.getElementById("Pic").innerHTML; var docprint=window.open("","",disp_setting); docprint.document.open(); docprint.document.write(' STC '); docprint.document.write(''); docprint.document.write(''); docprint.document.write(''); docprint.document.write('
'); docprint.document.write(''); docprint.document.write('
'+content_vlue_title+'
'+content_vlue+''+content_vlue_pic+'
'); docprint.document.write('
'); docprint.document.close(); docprint.focus(); } else{ var docprint=window.open("","",disp_setting); docprint.document.open(); docprint.document.write(' STC '); docprint.document.write(''); docprint.document.write(''); docprint.document.write(''); docprint.document.write('
'); docprint.document.write(''); docprint.document.write('
'+content_vlue_title+'
'+content_vlue+'
'); docprint.document.write('
'); docprint.document.close(); docprint.focus(); } /* */ } var fontVariation=2; var minFontSize=12; var maxFontSize=14; function enlargeFont(bigger) { var elements=document.getElementById("Text"); var tds=elements.getElementsByTagName("TD"); var uls=elements.getElementsByTagName("ul"); var lis=elements.getElementsByTagName("li"); //alert(m); var newFontSize=""; newFontSize=elements.style.fontSize; if(newFontSize=="") newFontSize=minFontSize; newFontSize=parseInt(newFontSize); if(bigger){ newFontSize=(newFontSizeminFontSize)?(newFontSize-fontVariation):(newFontSize);} elements.style.fontSize=newFontSize+'px'; for(var i=0;i-1 && navigator.appVersion.indexOf("Mac")>-1)) { ox = 0; oy = 0; if (g.style.left) { x = parseInt(g.style.left); y = parseInt(g.style.top); } else { w1 = parseInt(el.style.width); bx = (a<0) ? -5-w1 : -10; a = (Math.abs(a)<1000) ? 0 : a; b = (Math.abs(b)<1000) ? 0 : b; x = document.body.scrollLeft+event.clientX+bx; y = document.body.scrollTop+event.clientY; } } } else if (document.layers) { x = g.x; y = g.y; q0=document.layers, dd=""; for (var s = 0; s-1 && navigator.appVersion.indexOf("Mac")>-1) { xx += parseInt(document.body.leftMargin); yy += parseInt(document.body.topMargin); } e.left = xx+pa; e.top = yy+pa; adjustOverlayPosition(el); } } } } function HideAll(){ MM_showHideLayers1('HideAll','','hide','sub1','','hide','sub2','','hide','sub3','','hide','sub4','','hide','sub5','','hide') } function ChangeValue(x,y){ var count = 0; var maxi = 22; var k=document.getElementById('ValueDrop'+y).innerHTML; var n=document.getElementById('option'+x).innerHTML; k=n; if (n.length > maxi) k=n.substring (count, maxi)+"..."; document.getElementById('ValueDrop'+y).innerHTML=k; //alert(k); } /* adjust positions of drop menus not to overlap with the table edge from the right */ var main_table_width; function adjustOverlayPosition(div) { var left = $(div).offset({padding: true}).left; var w = $(div).width(); var right_diff = (left+w) - main_table_width; if(right_diff > 0) { //$(div).css("left", -right_diff); $(div).css("left", function(){return parseInt(this.style.left) - right_diff; }); } } $(document).ready(function(){ main_table_width = $(".maintable").width(); //$(".overlaydiv").each(function(){ adjustOverlayPosition(this); }) }); function ShowNewsList(topicsmaximumnumber){ var list = MM_findObj('newsList'); if(list.selectedIndex =="0") return; var topicstoshow = MM_findObj('newslst' + list.selectedIndex ); //divRes.innerHTML = list.options[list.selectedIndex].value; for(var i=1;i<=topicsmaximumnumber;i++){ MM_findObj("newslst"+i).style.display="none"; } topicstoshow.style.display="block"; } function ShowSection(topicsmaximumnumber){ var list = MM_findObj('sectionList'); if(list.selectedIndex =="0") return; var topicstoshow = MM_findObj('section' + list.selectedIndex ); //divRes.innerHTML = list.options[list.selectedIndex].value; for(var i=1;i<=topicsmaximumnumber;i++){ MM_findObj("section"+i).style.display="none"; } ServiceDisplay(); TopicDisplay(); topicstoshow.style.display="block"; } function ShowService(who,topicsmaximumnumber,topicsid){ var list = MM_findObj('serviceList'+topicsid); if(list.selectedIndex =="0") return; var topicstoshow = MM_findObj(who+'service' + list.selectedIndex ); //divRes.innerHTML = list.options[list.selectedIndex].value; for(var i=1;i<=topicsmaximumnumber;i++){ MM_findObj(who+"service"+i).style.display="none"; } TopicDisplay(); topicstoshow.style.display="block"; } function ShowTopic(who,topicsmaximumnumber,topicid){ var list = MM_findObj(who+'topList'+topicid); if(list.selectedIndex =="0") return; var topicstoshow = MM_findObj(who+'topic' + list.selectedIndex+topicid ); //divRes.innerHTML = list.options[list.selectedIndex].value; for(var i=1;i<=topicsmaximumnumber;i++){ MM_findObj(who+"topic"+i+topicid).style.display="none"; } topicstoshow.style.display="block"; } function TopicDisplay() { var divs = new Array(); divs = document.body.getElementsByTagName('div'); var i=0; for ( i = 0 ; i < divs.length ; i++) { if (divs[i].className == 'topictext') { divs[i].style.display = 'none'; } } } function ServiceDisplay() { var divs = new Array(); divs = document.body.getElementsByTagName('div'); var i=0; for ( i = 0 ; i < divs.length ; i++) { if (divs[i].className == 'topictext2') { divs[i].style.display = 'none'; } } } function enableText(x){ var checkbox=MM_findObj("check"+x); var txtfield=MM_findObj("text"+x); if (checkbox.checked==true) txtfield.disabled=false; else txtfield.disabled=true; }