// Incomedia WebSite X5 2007. All rights reserved.
var imBrw_op=window.opera;
var imBrw_ie=document.all && !imBrw_op;
var imBrw_ns=document.getElementById && !imBrw_ie;
var imEffectEnabled = /MSIE [678]/.test(navigator.userAgent) && navigator.platform == "Win32";
var imHoverToEnable = /MSIE (5\.5)|[6]/.test(navigator.userAgent) && navigator.platform == "Win32";
var mbTipOk = false;
function imGetLayer(sName) {return document.all?document.all[sName]:document.getElementById?document.getElementById(sName) : "";}
function imIEBody(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}
function imOpenLocation(sNewLocation){
document.location = sNewLocation;
}
function imGetParameter(sParamName) {
var sQueryString = "";
var iStart = 0;
var iEnd = 0;
if (window.top.location.search != 0)
sQueryString = unescape(window.top.location.search);
sParamName = sParamName + "=";
if (sQueryString.length > 0) {
iStart = sQueryString.indexOf(sParamName);
if ( iStart != -1 ) {
iStart += sParamName.length;
iEnd = sQueryString.indexOf("&",iStart);
if (iEnd == -1)
iEnd = sQueryString.length;
return sQueryString.substring(iStart,iEnd);
}
return null;
}
}
document.onmouseover=imTipMove;
function imTipShow(oLink,sTitle,iWidth,sImage,sBackColor,sForeColor,sBorderdColor,iTextSize,bDoFade) {
if (imBrw_ns||imBrw_ie){
var oTip=imGetLayer("imToolTip");
oLink.title = '';
if (sImage != "") sImage = "<img src=\"" + sImage + "\" /><br />";
sStyle = (sImage == "") ? "text-align: left; white-space: nowrap;": "text-align: center; width: "+iWidth+"px;";
oTip.innerHTML = "<div><div style=\"padding: 3px; background-color: " +sBackColor+ "; color: " +sForeColor+ "; border: 1px solid " +sBorderdColor+"; font: "+(iTextSize*2+6)+"pt Tahoma, Arial; "+sStyle+"\">" + sImage + sTitle +"</div></div>";
mbTipOk=true;
if (imBrw_ie || imBrw_ns || imBrw_op) {
iFadeStep=0;
if (bDoFade) imTipDoFade();
}
}
return false;
}
function imTipHide(){
if (imBrw_ns||imBrw_ie){
var oTip=imGetLayer("imToolTip");
mbTipOk=false;
oTip.style.visibility='hidden';
oTip.style.left='-1000px';
}
}
function imTipMove(e){
if (mbTipOk) {
var oTip=imGetLayer("imToolTip");
var offsetxpoint=-60;
var offsetypoint=20;
var curX=(imBrw_ns)? e.pageX : event.clientX + imIEBody().scrollLeft;
var curY=(imBrw_ns)? e.pageY : event.clientY + imIEBody().scrollTop;
var rightedge=imBrw_ie&&!imBrw_op? imIEBody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20;
var bottomedge=imBrw_ie&&!imBrw_op? imIEBody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20;
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000;
if (rightedge<oTip.offsetWidth)
oTip.style.left=imBrw_ie? imIEBody().scrollLeft+event.clientX-oTip.offsetWidth+"px" : window.pageXOffset+e.clientX-oTip.offsetWidth+"px";
else if (curX<leftedge)
oTip.style.left="5px";
else
oTip.style.left=curX+offsetxpoint+"px";
if (bottomedge<oTip.offsetHeight)
oTip.style.top=imBrw_ie? imIEBody().scrollTop+event.clientY-oTip.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-oTip.offsetHeight-offsetypoint+"px";
else
oTip.style.top=curY+offsetypoint+"px";
oTip.style.visibility="visible";
}
}
function imTipDoFade(){
if (iFadeStep<=100){
var oTip=imGetLayer("imToolTip");
iFadeStep+=15;
if(imBrw_ie)
oTip.style.filter = "alpha(opacity=" + iFadeStep + ")";
else
oTip.style.opacity = iFadeStep/100;
oTime=setTimeout('imTipDoFade()', 50);
}
}
function imOnload() {
if (document.getElementById("imMnMn") != null) {
if (document.getElementsByTagName) {
if (imHoverToEnable) {
var oList = document.getElementById("imMnMn").getElementsByTagName("LI");
for (var i=0; i<oList.length; i++) {
oList[i].onmouseover=function() {this.className+=" iehover";}
oList[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" iehover\\b"), "");}
}
}
}
}
}
if (window.attachEvent) window.attachEvent("onload", imOnload);
function imPreloadImages(sImgNames) {
sNames = sImgNames.split(",");
for(iList = 0 ; iList < sNames.length ; iList++) {
var oImg = new Image();
oImg.src = sNames[iList];
}
}
function imFormatInt(i) {
if (i<10) i='0'+i;
return i;
}
function imShowHour() {
var now=new Date();
imGetLayer("imHour").innerHTML = now.getHours()+':'+imFormatInt(now.getMinutes())+':'+imFormatInt(now.getSeconds())+' ';
setTimeout(imShowHour,1000);
}
function imShowDate(sDay,sMonth,iMode) {
var now=new Date();
if (iMode == 0)
document.write(sDay.substr(now.getDay()*3,3)+' '+now.getDate()+' '+sMonth.substr(now.getMonth()*3,3)+', '+now.getFullYear());
else
document.write(sDay.substr(now.getDay()*3,3)+', '+sMonth.substr(now.getMonth()*3,3)+' '+now.getDate()+' '+now.getFullYear());
}
function imPopUpWin(sUrl,w,h,cb,sb){
if (cb=='yes')
sProp='';
else {
if ((w==-1) || (h==-1)) {
sProp= 'width='+screen.width+',height='+screen.height+',top=0,left=0,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
} else {
l=(screen.width)?(screen.width-w)/2:100;
t=(screen.height)?(screen.height-h)/2:100;
sProp='width='+ w +',height='+ h +',top='+ t +',left='+ l +',scrollbars='+ sb +',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
}
}
oWin=window.open(sUrl,'',sProp);
oWin.focus();
}
var msSSTrans = new Array(50);
msSSTrans[0] = "BasicImage(grayscale=0, xray=0, mirror=0, invert=0, opacity=1, rotation=0)";
msSSTrans[1] = "rnd";
msSSTrans[2] = "Barn(motion='out',orientation='vertical')";
msSSTrans[3] = "Barn(motion='out',orientation='horizontal')";
msSSTrans[4] = "Barn(motion='in',orientation='vertical')";
msSSTrans[5] = "Barn(motion='in',orientation='horizontal')"