stuHover = function() {
var cssRule;
var newSelector;
for (var i = 0; i < document.styleSheets.length; i++)
for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
{
cssRule = document.styleSheets[i].rules[x];
if (cssRule.selectorText.indexOf("LI:hover") != -1)
{
newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
}
}
var getElm = document.getElementById("navmenu").getElementsByTagName("LI");
for (var i=0; i<getElm.length; i++) {
getElm[i].onmouseover=function() {
this.className+=" iehover";
}
getElm[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" iehover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", stuHover);
addDOMLoadEvent = (function(){
var load_events = [],
load_timer,
script,
done,
exec,
old_onload,
init = function () {
done = true;
clearInterval(load_timer);
while (exec = load_events.shift())
exec();
if (script) script.onreadystatechange = '';
};
return function (func) {
if (done) return func();
if (!load_events[0]) {
if (document.addEventListener)
document.addEventListener("DOMContentLoaded", init, false);
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");
script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
if (this.readyState == "complete")
init(); // call the onload handler
};
/*@end @*/
if (/WebKit/i.test(navigator.userAgent)) { 
load_timer = setInterval(function() {
if (/loaded|complete/.test(document.readyState))
init(); 
}, 10);
}
old_onload = window.onload;
window.onload = function() {
init();
if (old_onload) old_onload();
};
}
load_events.push(func);
}
})();
function	AdjustAllDiv()
{
var	rightBody = document.getElementById( 'RightBody' );
if( null != rightBody )
{
var	realheight = parseInt(rightBody.offsetHeight)+40;
var	leftheight = parseInt(document.getElementById( 'LeftBody' ).offsetHeight)+20;
if(leftheight>realheight)
realheight = leftheight;
var	realheightStr = String(realheight) + "px";	
document.getElementById("LeftBody").style.height = realheightStr;
document.getElementById("RightBody").style.height = realheightStr;
document.getElementById("MainBody").style.height = realheightStr;
var	vlineheightStr = String(parseInt(document.getElementById('RightTopBody').offsetHeight) - 10) + "px";
document.getElementById("LeftLineGray").style.height = vlineheightStr;	
document.getElementById("RightLineGray").style.height = vlineheightStr;	
}
}
function correctPNG() 
{
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
for(var j=0; j<document.images.length; j++)
{
var img = document.images[j]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
j = j-1
}
}
}   
}
function	AdjustAllByRightTable( tableID )
{
var	guestTable = document.getElementById( tableID );
if( null != guestTable )
{
var	realheight = parseInt(guestTable.offsetHeight) + 37 + 20 + 20;
if( realheight < 411 )			
{
realheight = 411;
}
else if ( realheight < 411+202 )	
{
realheight = 411+202+1;
}
if( realheight > 411+202 )		
{
document.getElementById("QuickContactTitle").style.display = "inline";
document.getElementById("QuickContact").style.display = "inline";
}
var	realheightStr = String(realheight) + "px";	
document.getElementById("MainBody").style.height = realheightStr;
document.getElementById("LeftBody").style.height = realheightStr;
document.getElementById("RightBody").style.height = realheightStr;
document.getElementById("RightTopBody").style.height = realheightStr;
var	vlineheightStr = String(realheight - 37 - 9) + "px";
guestTable.parentNode.parentNode.firstChild.style.height = vlineheightStr;	
guestTable.parentNode.parentNode.lastChild.style.height = vlineheightStr;	
}
}
