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 imLoadList = ""; var imPopupEffect = true; function imGetLayer(sName) {return document.getElementById?document.getElementById(sName) : document.all?document.all[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; }
return null; }
function imMenuMainHover() {
if (document.getElementById("imMnMn") != null) {
if (document.getElementsByTagName) {
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 (navigator.userAgent.indexOf('MSIE 5.5') != -1 || navigator.userAgent.indexOf('MSIE 6') != -1) imLoadList += "imMenuMainHover();"; function imPreloadImages(sImgNames) {
var sNames = new Array (); sNames = sImgNames.split(","); for(iList = 0 ; iList < sNames.length ; iList++) {
var oImg = new Image(); oImg.src = sNames[iList]; }}
var imOpenedSM = null; var imOpenedSMOld = null; var imOpenedSMOldHeight; var imSMCloseTimer = null; var imSMOpenTimer = null; function imSMSlide(start,stop) {
var sm; var smp; if(start < stop)
sm = imOpenedSM; else
sm = imOpenedSMOld; smp = sm.parentNode || sm.parent; var diff = (stop-start)/10; if((diff < stop-smp.clientHeight && start < stop) || (diff > stop-smp.clientHeight && start > stop))
smp.style.height = (smp.clientHeight+diff) + 'px'; else {
smp.style.height = stop + 'px'; if(start < stop) {
clearInterval(imSMOpenTimer); imSMOpenTimer = null; }
else {
clearInterval(imSMCloseTimer); imSMCloseTimer = null; }}
}
function imSMShow(menu) {
if(navigator.appVersion.indexOf('MSIE 6') == -1 && navigator.appVersion.indexOf('MSIE 5') == -1) {
var imOpenedSMP; var imOpenedSMOldP; if(imSMCloseTimer == null && imSMOpenTimer == null) {
if(menu.parentNode)
var sm = menu.parentNode.getElementsByTagName('ul')[0]; else
var sm = menu.parent.getElementsByTagName('ul')[0]; if(imOpenedSM != null) {
imOpenedSMOld = imOpenedSM; imOpenedSMOldP = imOpenedSMOld.parentNode || imOpenedSMOld.parent; imSMCloseTimer = setInterval('imSMSlide(' + imOpenedSMOldP.offsetHeight + ',' + imOpenedSMOldHeight + ')',10); imOpenedSMOldP.getElementsByTagName('a')[0].blur(); imOpenedSMOldP.getElementsByTagName('a')[0].className = ''; }
if(imOpenedSM != sm) {
imOpenedSM = sm; imOpenedSMP = imOpenedSM.parentNode || imOpenedSM.parent; imOpenedSMOldHeight = imOpenedSMP.offsetHeight; imOpenedSMP.style.height = imOpenedSMOldHeight + 'px'; imOpenedSMP.style.overflow = 'hidden'; menu.focus(); menu.className = 'selected'; imOpenedSM.style.display = ''; while(imSMOpenTimer != null); imSMOpenTimer = setInterval('imSMSlide(' + imOpenedSMOldHeight + ',' + (imOpenedSM.offsetHeight+imOpenedSMOldHeight) + ')',10); }
else
imOpenedSM = null; }}
else {
if(imOpenedSM != null) {
imOpenedSM.style.display = 'none'; imOpenedSM.parentNode.getElementsByTagName('a')[0].focus(); imOpenedSM.parentNode.getElementsByTagName('a')[0].className = ''; }
if(imOpenedSM != menu.parentNode.getElementsByTagName('ul')[0]) {
imOpenedSM = menu.parentNode.getElementsByTagName('ul')[0]; menu.focus(); menu.className = 'selected'; imOpenedSM.style.display = ''; }
else
imOpenedSM = null; }}
function imX5ShowImg(sMode, cW, cH, xC, sFile, sFileZ, iMove) {
document.write('<embed src="res/x5im'+sMode+'.swf?cW='+cW+'&cH='+cH+'&xC='+xC+'&File='+sFile+'&FileZ='+sFileZ+'&Move='+iMove+'" '+
'type="application/x-shockwave-flash" width="'+cW+'" height="'+cH+'" wmode="transparent" menu="false" scale="exactfit" '+
'allowscriptaccess="always" quality="high" flashvars="Licence=Only_For_Incomedia_WebSiteX5&Copyrights=WebSiteX5.com">'+
'</embed>'); }
function imX5ShowAdv(iFullSize, iScale, sFileExt, sSoundExt, sUrl, iPreview) {
document.write('<div id="imWebSiteX5Adv" style="height: '+iFullSize/4+'px; width: '+iFullSize/4+'px; "'+
(iPreview == 0 ? '' : ' onmouseover="imObjIn(this.id);" onmouseout="imObjOut(this.id);"')+'>'+
'<embed id="imWebSiteX5AdvObj" style="left: -'+parseInt(iFullSize-iFullSize/4)+'px" src="x5advcorner.swf?FileExt='+sFileExt+'&SoundExt='+sSoundExt+'&Url='+sUrl+'&Scale='+iScale+'&Preview='+iPreview+'" '+
'type="application/x-shockwave-flash" width="'+iFullSize+'" height="'+iFullSize+'" wmode="transparent" menu="false" '+
'allowscriptaccess="samedomain" quality="high" flashvars="Licence=Only_For_Incomedia_WebSiteX5&Copyrights=WebSiteX5.com">'+
'</embed></div>'); }
var imTimeAdv; function imObjOut(sName) {
imTimeAdv=setTimeout("imSetSize('"+sName+"',0, true);",1500); }
function imObjIn(sName) {
clearTimeout(imTimeAdv); imSetSize(sName,1, true); }
function imSetSize(sName, bVal, bRefresh) {
if (bVal == 0) {
if (bRefresh) imGetLayer(sName).innerHTML = imGetLayer(sName).innerHTML; imGetLayer(sName).style.width = parseInt(imGetLayer(sName+"Obj").width/4)+"px"; imGetLayer(sName).style.height = parseInt(imGetLayer(sName+"Obj").height/4)+"px"; imGetLayer(sName+"Obj").style.left = parseInt(imGetLayer(sName+"Obj").width/4-imGetLayer(sName+"Obj").width)+"px"; }
else{
imGetLayer(sName).style.width = imGetLayer(sName+"Obj").width+"px"; imGetLayer(sName).style.height = imGetLayer(sName+"Obj").height+"px"; imGetLayer(sName+"Obj").style.left = "0px"; }}
function imCodeProt(sAuthor) {
document.oncontextmenu = function(){
alert('Copyrights '+sAuthor+'. All rights reserved.'); return false; }}
function imGetUrl(sUrl) {
var xmlHttp; var sResult; try {
xmlHttp=new XMLHttpRequest(); }
catch (e) {
try {
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) {
try {
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) {
alert("Your browser does not support AJAX!"); return false; }}
}
xmlHttp.open('GET', sUrl, false); xmlHttp.send(null); while (xmlHttp.readyState != 4); if (xmlHttp.status == 200) {
sResult = xmlHttp.responseText; }
else {
sResult = "-1"; }
return sResult; }
function imBlogCheckComment(sAlert,sName,sEmail,sBody) {
var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if(imGetLayer("form_name").value != "") {
if(imGetLayer("form_email").value != "" && filter.test(imGetLayer("form_email").value)) {
if(imGetLayer("form_body").value != "")
return true; else
alert(sAlert + ' ' + sBody); }
else
alert(sAlert + ' ' + sEmail); }
else
alert(sAlert + ' ' + sName); return false; }
function imCheckForm(iType, sID, sAlert, iCount, sUrl) {
var sError = ""; switch (iType) {
case 0:
if (imGetLayer(sID).value == "")
sError = sID; break; case 1:
var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (imGetLayer(sID).value == "" || !filter.test(imGetLayer(sID).value))
sError = sID; break; case 2:
if (imGetLayer(sID + "_d").selectedIndex == 0 || imGetLayer(sID + "_m").selectedIndex == 0 || imGetLayer(sID + "_y").value == "")
sError = sID + "_y"; break; case 3:
if (imGetLayer(sID).selectedIndex == 0)
sError = sID; break; case 4:
var bValid = false; while(iCount-- && !bValid)
if (imGetLayer(sID + (iCount+1)).checked == true)
bValid = true; if(!bValid)
sError = sID + "1"; break; case 5:
if (imGetUrl(sUrl+'?chk='+sID+'&ans='+ escape(imGetLayer(sID).value)) != '0')
sError = sID; break; case 6:
if (imGetUrl('captcha/imcaptcha.php?action=check&code='+imGetLayer(sID+'_cpf').value+'&ans='+imGetLayer(sID+'_cpv').value) != '0')
sError = sID+'_cpv'; break; }
if(sError != "") {
alert(sAlert); imGetLayer(sError).focus(); return (false); }
return (true); }
function imShowCaptcha(sName) {
var sCode = ""; var i; var sChar; for (i=0; i<5; i++) {
do
sChar = parseInt(Math.random()*9); while (sCode.indexOf(sChar) > -1)
sCode = sCode+sChar; }
imGetLayer(sName+"_cpf").value=sCode; imGetLayer(sName+"_cpn").src="captcha/imcaptcha.php?action=show&code="+sCode; }
function imFocus(oCtl, sColor) {
oCtl.style.backgroundColor = sColor; }
function imFilterCheck(oEvent,expr){
if (imEffectEnabled)
iKey = oEvent.keyCode; else
iKey = oEvent.which; sKey = String.fromCharCode(iKey); if (expr.test(sKey))
return true; else
return false; }
function imKeyFilter(iType, oEvent){
if (iType == 0)
expr = /[\d\n\b]/; else if (iType == 1)
expr = /[\d\n\b\- ]/; else if (iType == 2)
expr = /[\d\n\b\/\.]/; return imFilterCheck(oEvent,expr); }
function IMTip() {
var el = imGetLayer('imToolTip'); var oldmove; var attached = false; var effect_step = 0; var effect_timer = null; this.imShown = false; this.show = function(obj,content,position,x,y,content_style,must_move,effect,pos_x,pos_y) {
this.imLeft = 0; this.imRight = 0; this.imTop = 0; this.imBottom = 0; el.style.top = '-10000px'; el.style.bottom = ''; el.style.left = '-10000px'; el.style.right = ''; switch(position) {
case 'tl': this.imLeft = 1; this.imTop = 1; break; case 'tr': this.imRight = 1; this.imTop = 1; break; case 'bl': this.imLeft = 1; this.imBottom = 1; break; case 'br': this.imRight = 1; this.imBottom = 1; break; }
this.imX = (x ? x : 0); this.imY = (y ? y : 0); el.style.display = 'none'; el.innerHTML = '<div style=\"' + content_style + '\">' + content + '</div>'; el.imMustMove = must_move; this.imShown = true; switch(effect) {
case 0: el.style.display = ''; break; case 1: clearTimeout(this.effect_timer); this.effect_step = 0; el.style.height = ''; this.fade(); break; case 2: clearTimeout(this.effect_timer); this.effect_step = 0; el.style.height = ''; el.style.opacity = 0.9; el.style.filter = 'alpha(opacity=90)'; el.style.visible='hidden'; el.style.display = ''; elch = el.clientHeight; el.style.display = 'none'; el.style.visible='visible'; this.slide(elch); break; }
if(el.imMustMove == true) {
this.detach(); document.onmousemove = function(e) {
this.imTip.move(e); }; el.onmouseover = function(e) {
imt.move(e); }; }
else {
if(this.imLeft == 1) {
el.style.left = (pos_x != undefined ? pos_x : (this.mouseX-this.imX+10)) + 'px'; }
else {
el.style.right = (pos_x != undefined ? document.documentElement.clientWidth-pos_x : (document.documentElement.clientWidth-this.mouseX-this.imX+10)) + 'px'; }
if(this.imTop == 1) {
el.style.top = (pos_y != undefined ? pos_y : (this.mouseY-this.imY+10)) + 'px'; }
else {
el.style.bottom = (pos_y != undefined ? document.documentElement.clientHeight-pos_y : (document.documentElement.clientHeight-this.mouseY+this.imY+10)) + 'px'; }}
return false; }; this.mousepos = function(evt) {
var e = (evt) ? evt : window.event; this.mouseX = ((e.pageX) ? e.pageX : (e.clientX + document.documentElement.scrollLeft)); this.mouseY = ((e.pageY) ? e.pageY : (e.clientY + document.documentElement.scrollTop)); }; this.attach = function() {
this.attached = true; document.imOldOnMouseMove = document.onmousemove; document.imTip = this; document.onmousemove = function(e) {
this.imTip.mousepos(e); }; }; this.detach = function() {
if(this.attached) {
this.attached = false; document.onmousemove = document.imOldOnMouseMove; }}; this.fade = function() {
if(this.effect_step <= 100) {
el.style.opacity = this.effect_step/100; el.style.filter = "alpha(opacity=" + this.effect_step + ")"; if(this.effect_step == 0) {
el.style.display = ''; }
this.effect_step += 15; this.effect_timer = setTimeout('imt.fade()',50); }}; this.slide = function(height) {
if(this.effect_step <= 100) {
el.style.height = height/100*this.effect_step + 'px'; if(this.effect_step == 0) {
el.style.display = ''; }
this.effect_step += 5; this.effect_timer = setTimeout('imt.slide(' + height + ')',25); }}; this.move = function(evt) {
var e = (evt) ? evt : window.event; if(this.imLeft != 0) {
el.style.left = (((e.pageX) ? e.pageX : (e.clientX + document.documentElement.scrollLeft))-this.imX+10) + 'px'; el.style.right = ''; }
else {
el.style.right = (((e.pageX) ? document.documentElement.clientWidth-e.pageX : (document.documentElement.clientWidth-e.clientX-document.documentElement.scrollLeft))-this.imX+10) + 'px'; el.style.left = ''; }
if(this.imTop != 0) {
el.style.top = (((e.pageY) ? e.pageY : (e.clientY + document.documentElement.scrollTop))-this.imY+10) + 'px'; el.style.bottom = ''; }
else {
el.style.bottom = ((e.pageY ? document.documentElement.clientHeight-e.pageY : (document.documentElement.clientHeight-e.clientY-document.documentElement.scrollTop))-this.imY+10) + 'px'; el.style.top = ''; }}; this.hide = function() {
this.imShown = false; el.style.display = 'none'; el.innerHTML = ''; el.style.top = '-10000px'; el.style.bottom = ''; el.style.left = '-10000px'; el.style.right = ''; document.onmousemove = document.imOldOnMouseMove; el.onmouseover = function(){}; this.attach(); }; }
function imGetPositionX(obj,head) {
var ie7u = navigator.appVersion.indexOf('MSIE') != -1 && navigator.appVersion.indexOf('MSIE 8') == -1; head = head && !ie7u; iX = obj.offsetLeft; if(!head)
do {
obj = obj.parent || obj.parentNode; iX += obj.offsetLeft; }
while(obj.id != 'imPage' && obj.id != 'imSite'); return iX; }
function imGetPositionY(obj,head) {
var ie7u = navigator.appVersion.indexOf('MSIE') != -1 && navigator.appVersion.indexOf('MSIE 8') == -1; head = head && !ie7u; iY = obj.offsetTop; if(!head)
do {
obj = obj.parent || obj.parentNode; iY += obj.offsetTop; }
while(obj.id != 'imPage' && obj.id != 'imSite'); return iY; }
function imTipShow(oLink,iVal,iWidth,sBgColor,sBdColor,sFColor,sFont,iSize,bBold,bItalic,sHtml,iMode,bHead) {
oLink.title = ''; var sStyle = 'position: relative; width: '+iWidth+'px; padding: '+iVal[3]+'px 0 '+iVal[3]+'px 0; margin: '+iVal[5]+'px;'; var sBuf = ''+
'<div style="position: absolute; top: 0; left: 0; width: '+iVal[2]+'px; height: '+iVal[3]+'px; background: url(\'res/t'+iVal[0]+'_'+sBgColor+'.gif\') no-repeat 0 0; overflow: hidden; " ></div>'+
'<div style="position: absolute; top: 0; left: '+iVal[3]+'px; width: '+(iWidth-iVal[2]-iVal[2])+'px; height: '+(iVal[3]-iVal[7])+'px; border-top: '+iVal[7]+'px solid #'+sBdColor+'; background-color: #'+sBgColor+'; overflow: hidden; " ></div>'+
'<div style="position: absolute; top: 0; left: '+(iWidth-iVal[2])+'px; width: '+iVal[2]+'px; height: '+iVal[3]+'px; background: url(\'res/t'+iVal[0]+'_'+sBgColor+'.gif\') no-repeat -'+iVal[2]+'px 0px; overflow: hidden; " ></div>'+
'<div style="position: absolute; bottom: 0; left: 0; width: '+iVal[2]+'px; height: '+iVal[3]+'px; background: url(\'res/t'+iVal[0]+'_'+sBgColor+'.gif\') no-repeat 0px -'+iVal[3]+'px; overflow: hidden; " ></div>'+
'<div style="position: absolute; bottom: 0; left: '+iVal[3]+'px; width: '+(iWidth-iVal[2]-iVal[2])+'px; height: '+(iVal[3]-iVal[7])+'px; border-bottom: '+iVal[7]+'px solid #'+sBdColor+'; background-color: #'+sBgColor+'; overflow: hidden; " ></div>'+
'<div style="position: absolute; bottom: 0; left: '+(iWidth-iVal[2])+'px; width: '+iVal[2]+'px; height: '+iVal[3]+'px; background: url(\'res/t'+iVal[0]+'_'+sBgColor+'.gif\') no-repeat -'+iVal[2]+'px -'+iVal[3]+'px; overflow: hidden; " ></div>'+
'<div style="position: relative; border-left: '+iVal[7]+'px solid #'+sBdColor+'; border-right: '+iVal[7]+'px solid #'+sBdColor+'; background-color: #'+sBgColor+'; padding: 0 '+(3+iVal[7])+'px 0 '+(3+iVal[7])+'px; font: '+iSize+'pt '+sFont+'; color: #'+sFColor+'; '+(bBold==1?'font-weight:bold; ':'')+(bItalic==1?'font-style:italic; ':'')+'">'+
sHtml+
'</div>'; if (iVal[1] != 0)
sBuf += (iVal[1]==1?'<div style="position: absolute; top:-'+(iVal[5]-iVal[7])+'px ; left: '+parseInt(iVal[6]/100*iWidth-iVal[4]/2)+'px; width: '+iVal[4]+'px; height: '+iVal[5]+'px; background: url(\'res/t'+iVal[0]+'_'+sBgColor+'.gif\') no-repeat -'+(iVal[2]*2)+'px 0px; overflow: hidden; " ></div>':'<div style="position: absolute; bottom:-'+(iVal[5]-iVal[7])+'px ; left: '+parseInt(iVal[6]/100*iWidth-iVal[4]/2)+'px; width: '+iVal[4]+'px; height: '+iVal[5]+'px; background: url(\'res/t'+iVal[0]+'_'+sBgColor+'.gif\') no-repeat -'+(iVal[2]*2+iVal[4])+'px 0px; overflow: hidden; " ></div>'); imt.attach(); if(iMode >= 0)
imt.show(oLink,sBuf,(iVal[1] == 2 ? 'bl' : 'tl'),parseInt((iWidth)*iVal[6]/100)+iVal[5],0,sStyle,true,iMode); else {
iX = imGetPositionX(oLink,bHead); iY = imGetPositionY(oLink,bHead); imt.show(oLink,sBuf,(iVal[1] == 2 ? 'bl' : 'tl'),parseInt((iWidth-iVal[4])*iVal[6]/100)+iVal[5],0,sStyle,false,Math.abs(iMode)-1,iX,iY+(iVal[1] == 2 ? -iVal[5] : oLink.offsetHeight+iVal[5])); }
return false; }
function imTipHide(){
imt.hide(); imt.detach(); }
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()); }
var imBGSoundUrl = ''; function imSoundLink(url) {
if(imGetLayer('imBGSound').innerHTML == "")
imGetLayer('imBGSound').innerHTML = "<embed style=\"height:0\" id=\"imBGSoundEmbed\" src=\"" + url + "\" loop=\"false\" autostart=\"true\" hidden=\"true\" />"; else {
if(imGetLayer('imBGSoundEmbed').src.substr(imGetLayer('imBGSoundEmbed').src.length-url.length) != url)
imGetLayer('imBGSound').innerHTML = "<embed style=\"height:0\" id=\"imBGSoundEmbed\" src=\"" + url + "\" loop=\"false\" autostart=\"true\" hidden=\"true\" />"; else
imGetLayer('imBGSound').innerHTML = ""; }}
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(75); 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')"; msSSTrans[6] = "Blinds(Bands=2,direction='up')"; msSSTrans[7] = "Blinds(Bands=2,direction='down')"; msSSTrans[8] = "Blinds(Bands=2,direction='left')"; msSSTrans[9] = "Blinds(Bands=2,direction='right')"; msSSTrans
