
if(typeof jsReport != 'undefined'){
jsVersion = new Array(
 'Easy Layers',
 '1.0',
 20020108,
 'Maurice van Creij',
 'l1_easylayers',
 'Easily define and manipulate layers without the hassle of browser specific code',
 new Array('easylayers.js','browsercheck.js'),
 new Array('NS','MO','IE','OP'),
 new Array(
'1.0: cleaned up enough bugs to make it usuable as a first release',
'0.95: finalized the "suggest...()" functions',
'0.94: fixed broken scroll-lock in IE',
'0.93: added \'suggest...()\'-functions to complement \'set...()\'-functions for filtering out repeated redundant changes',
'0.92: fixed a graphic redundancy in the setBackground() function',
'0.91: Scrolllock-function of layers added',
'0.9: A modular version was compiled from code-scraps, layer creation functions added'
),
 new Array(
'<script language="javascript" src="collection.js"></script>',
'<script language="javascript">',
'<!--',
'	//			objName,booAbsolutePos,intXpos,intYpos,intZpos,intWidth,intHeight,intDepth,strContent,strUrl,booScrollable,booVisible,booScrollLock,booOffScreenGuard',
'	defineLayer(\'layer0\',true,64,48,10,320,240,1,\'Hello dude...\',\'\',false,true,true,true)',
'	defineLayer(\'layer1\',true,128,96,15,320,240,1,\'...way\',\'\',false,true,false,false)',
'',
'	makeLayers()',
'	setVisibility(\'layer0\',false)',
'//-->',
'</script>'
)
)
}else{
var intRefreshrate = 15; var booEnableScrollLock = false; var booAutoAdjustAllObjectPositions = false; var booFadeEnabled = ie && v6 && !mc;
function setColour(strId,objColour,fltFade){
if (ie){
objId = eval(strId);
if(objId.style.color!=objColour){
if(fltFade>0 && booFadeEnabled){objId.style.filter="blendTrans(duration="+fltFade+")";objId.filters.blendTrans.Apply()}
objId.style.color=objColour;
if(fltFade>0 && booFadeEnabled){objId.filters.blendTrans.Play()}
}
}
if (mo){
if(document.getElementById(strId).style.color!=objColour) document.getElementById(strId).style.color=objColour;
}
if (ns){
}
}
function setBackgroundColour(strId,objColour,fltFade){
if (ie){
objId = eval(strId);
if(objId.style.backgroundColor!=objColour){
if(fltFade>0 && booFadeEnabled){objId.style.filter="blendTrans(duration="+fltFade+")";objId.filters.blendTrans.Apply()}
objId.style.backgroundColor=objColour;
if(fltFade>0 && booFadeEnabled){objId.filters.blendTrans.Play()}
}
}
if (mo){
if(document.getElementById(strId).style.backgroundColor!=objColour) document.getElementById(strId).style.backgroundColor=objColour;
}
if (ns){
}
}
function setBackgroundImage(strId,objImageName,fltFade){
objImage = eval(objImageName);
if (ie){
objId = eval(strId);
if(objId.background!=objImage.src){
if(fltFade>0 && booFadeEnabled){objId.style.filter="blendTrans(duration="+fltFade+")";objId.filters.blendTrans.Apply()}
objId.background=objImage.src;
if(fltFade>0 && booFadeEnabled){objId.filters.blendTrans.Play()}
}
}
if (mo){
if(document.getElementById(strId).style.backgroundImage!=objImage.src) document.getElementById(strId).style.backgroundImage=objImage.src;
}
if (ns){
}
}
function setForegroundImage(imgDocId,objImageName,layerName,fltFade) {
objImage = eval(objImageName);
if(ns && layerName!=-1){
if(eval("document."+layerName+".document.images['"+imgDocId+"'].src!=objImage.src")) eval("document."+layerName+".document.images['"+imgDocId+"'].src = objImage.src");
}else{
if(document.images[imgDocId].src!=objImage.src){
if(fltFade>0 && booFadeEnabled){document.images[imgDocId].style.filter="blendTrans(duration="+fltFade+")";document.images[imgDocId].filters.blendTrans.Apply()}
document.images[imgDocId].src = objImage.src;
if(fltFade>0 && booFadeEnabled){document.images[imgDocId].filters.blendTrans.Play()}
}
}
}
function setContent(strId,objContent,fltFade){
if (ie){
objId = eval(strId);
if(objId.innerHTML!=objContent){
if(fltFade>0 && booFadeEnabled){objId.style.filter="blendTrans(duration="+fltFade+")";objId.filters.blendTrans.Apply()}
objId.innerHTML=objContent;
if(fltFade>0 && booFadeEnabled){objId.filters.blendTrans.Play()}
}
}
if (mo){
if(document.getElementById(strId).innerHTML!=objContent) document.getElementById(strId).innerHTML = objContent;
}
if (ns){
objId = eval('document.'+strId);
objId.document.open();
objId.document.write(objContent);
objId.document.close();
}
}
function setDimensions(strId,objWidth,objHeight,objDepth){
if (ie&&v4){
objId = eval(strId);
objId.style.width = objWidth;
objId.style.height = objHeight;
}
if (mo||(ie&&!v4)){
if(document.getElementById(strId).style.width!=objWidth) document.getElementById(strId).style.width = objWidth;
if(document.getElementById(strId).style.height!=objHeight) document.getElementById(strId).style.height = objHeight;
}
if (ns){
if(eval('document.'+strId+'.width!='+objWidth)) eval('document.'+strId+'.width = '+objWidth);
if(eval('document.'+strId+'.height!='+objHeight)) eval('document.'+strId+'.height = '+objHeight);
}
}
function setPosition(objId,objXpos,objYpos,objZpos,objWidth,objHeight,booScrollLock,booOffScreenGuard){
if(typeof objWidth == 'undefined'){
objWidth = 0;
objHeight = 0;
booScrollLock = false;
booOffScreenGuard = false;
}
intXadjust = 0; intYadjust = 0;
if(booScrollLock){
if (ie){
intXadjust = document.body.scrollLeft;
intYadjust = document.body.scrollTop;
}
if (mo){
intXadjust = window.pageXOffset;
intYadjust = window.pageYOffset;
}
if (ns){
intXadjust = window.pageXOffset;
intYadjust = window.pageYOffset;
}
}
intScreenXAdjust=0; intScreenYAdjust=0;
if(booOffScreenGuard){
if(ie){
intPageWidth = document.body.offsetWidth;
intPageHeight = document.body.offsetHeight;
}
if(ns||mo){
intPageWidth = window.innerWidth;
intPageHeight = window.innerHeight;
}
intObjId = objName2objID(objId);
if(intObjId!=-1){
intObjWidth = arrLayers[intObjId][6];
intObjHeight = arrLayers[intObjId][7];
}else{
intObjWidth = objWidth;
intObjHeight = objHeight;
}
if(intObjWidth+objXpos>intPageWidth) intScreenXAdjust=intPageWidth-intObjWidth-objXpos;
if(intObjHeight+objYpos>intPageHeight) intScreenYAdjust=intPageHeight-intObjHeight-objYpos;
}
if (ie){
if(v4){
eval(objId+'.style.left = '+(objXpos+intXadjust+intScreenXAdjust));
eval(objId+'.style.top = '+(objYpos+intYadjust+intScreenYAdjust));
eval(objId+'.style.zIndex = '+objZpos);
}else{
if(document.getElementById(objId).style.left!=objXpos+intXadjust+intScreenXAdjust) document.getElementById(objId).style.left = objXpos+intXadjust+intScreenXAdjust;
if(document.getElementById(objId).style.top!=objYpos+intYadjust+intScreenYAdjust) document.getElementById(objId).style.top = objYpos+intYadjust+intScreenYAdjust;
if(document.getElementById(objId).style.zIndex!=objZpos) document.getElementById(objId).style.zIndex = objZpos;
}
}
if (mo){
if(document.getElementById(objId).style.left!=objXpos+intXadjust+intScreenXAdjust) document.getElementById(objId).style.left = objXpos+intXadjust+intScreenXAdjust;
if(document.getElementById(objId).style.top!=objYpos+intYadjust+intScreenYAdjust) document.getElementById(objId).style.top = objYpos+intYadjust+intScreenYAdjust;
if(document.getElementById(objId).style.zIndex!=objZpos) document.getElementById(objId).style.zIndex = objZpos;
}
if (ns){
if(eval('document.'+objId+'.left!='+(objYpos+intYadjust+intScreenYAdjust))) eval('document.'+objId+'.left = '+(objXpos+intXadjust+intScreenXAdjust));
if(eval('document.'+objId+'.top!='+(objYpos+intYadjust+intScreenYAdjust))) eval('document.'+objId+'.top = '+(objYpos+intYadjust+intScreenYAdjust));
if(eval('document.'+objId+'.zIndex!='+objZpos)) eval('document.'+objId+'.zIndex = '+objZpos);
}
}
function setDepth(objId,objZpos){
if (ie){
if(v4){
eval(objId+'.style.zIndex = '+objZpos);
}else{
if(document.getElementById(objId).style.zIndex!=objZpos) document.getElementById(objId).style.zIndex = objZpos;
}
}
if (mo){
if(document.getElementById(objId).style.zIndex!=objZpos) document.getElementById(objId).style.zIndex = objZpos;
}
if (ns){
if(eval('document.'+objId+'.zIndex!='+objZpos)) eval('document.'+objId+'.zIndex = '+objZpos);
}
}
function setDisplay(strId,objState,fltFade){
if (ie){
if(objState){styleSetting="inline"}else{styleSetting="none"}
objId = eval(strId);
if(objId.style.display != styleSetting){
if(fltFade>0 && booFadeEnabled){objId.style.filter="blendTrans(duration="+fltFade+")";objId.filters.blendTrans.Apply()}
objId.style.display = styleSetting;
if(fltFade>0 && booFadeEnabled){objId.filters.blendTrans.Play()}
}
}
if (mo){
if(objState){styleSetting=""}else{styleSetting="none"}
if(document.getElementById(strId).style.display!=styleSetting) document.getElementById(strId).style.display = styleSetting;
}
if (ns){
}
}
function setVisibility(strId,objState,fltFade){
if (ie&&v4){
if(objState){styleSetting="visible"}else{styleSetting="hidden"}
objId = eval(strId);
if(objId.style.visibility != styleSetting) objId.style.visibility = styleSetting;
}
if (ie&&!v4){
if(objState){styleSetting="visible"}else{styleSetting="hidden"}
objId = eval(strId);
if(document.getElementById(strId).style.visibility!=styleSetting){
if(fltFade>0 && booFadeEnabled){document.getElementById(strId).style.filter="blendTrans(duration="+fltFade+")";document.getElementById(strId).filters.blendTrans.Apply()}
document.getElementById(strId).style.visibility = styleSetting;
if(fltFade>0 && booFadeEnabled){document.getElementById(strId).filters.blendTrans.Play()}
}
}
if (mo){
if(objState){styleSetting="visible"}else{styleSetting="hidden"}
if(document.getElementById(strId).style.visibility!=styleSetting) document.getElementById(strId).style.visibility = styleSetting;
}
if (ns){
if(objState){styleSetting="show"}else{styleSetting="hide"}
if(eval('document.'+strId+'.visibility!="'+styleSetting+'"')) eval('document.'+strId+'.visibility = "'+styleSetting+'"');
}
}
function cacheBackgroundImage(objImageName,objImageSource){
eval(objImageName + "= new Image(0,0);");
eval(objImageName + ".src = '" + objImageSource + "';");
}
arrLayers = new Array();
function defineLayer(objName,booAbsolutePos,intXpos,intYpos,intZpos,intWidth,intHeight,intDepth,strContent,strUrl,booScrollable,booVisible,booScollLock,booOffscreenGuard){
arrLayers[arrLayers.length] = new Array(arrLayers.length,objName,booAbsolutePos,intXpos,intYpos,intZpos,intWidth,intHeight,intDepth,strContent,strUrl,booScrollable,booVisible,booScollLock,booOffscreenGuard);
}
function objName2objID(objName){
objID = -1;
intA = 0;
while(intA<arrLayers.length && objID==-1){
if(arrLayers[intA][1]==objName){objID=arrLayers[intA][0]}
intA = intA + 1;
}
return objID;
}
function writeLayerTag(objName,OpenTag){
var objID = objName2objID(objName);
var strWrite = '';
if(OpenTag){
if(arrLayers[objID][10]!=""){
if(ns){
if(arrLayers[objID][2]){strPosition='pagex="'+arrLayers[objID][3]+'" pagey="'+arrLayers[objID][4]+'" clip="0,0,'+arrLayers[objID][6]+','+arrLayers[objID][7]+'" zindex="'+arrLayers[objID][5]+'"';strLayPrefix=''}else{strPosition='';strLayPrefix='i'}
if(!arrLayers[objID][12]){strVisible='visibility="hide"'}else{strVisible=''}
strWrite = '<'+strLayPrefix+'layer name="'+arrLayers[objID][1]+'" src="'+arrLayers[objID][10]+'" '+strPosition+' width="'+arrLayers[objID][6]+'" height="'+arrLayers[objID][7]+'" '+strVisible+'></'+strLayPrefix+'layer>';
}else{
if(arrLayers[objID][2]){strPosition='position:absolute; left: '+arrLayers[objID][3]+'px; top: '+arrLayers[objID][4]+'px; z-index: '+arrLayers[objID][5]+'; width: '+arrLayers[objID][6]+'px; height: '+arrLayers[objID][7]+'px;'}else{strPosition=''}
if(!arrLayers[objID][12]){strVisible='visibility:hidden;'}else{strVisible=''}
if(arrLayers[objID][11]){strScroll='scrolling="auto"'}else{strScroll='scrolling="no"'}
strWrite = '<iframe id="'+arrLayers[objID][1]+'" src="'+arrLayers[objID][10]+'" name="frm'+arrLayers[objID][1]+'" frameborder="0" width="'+arrLayers[objID][6]+'" height="'+arrLayers[objID][7]+'" '+strScroll+' style="'+strPosition+strVisible+'">';
}
}else{
if(ns){
if(arrLayers[objID][2]){strPosition='pagex="'+arrLayers[objID][3]+'" pagey="'+arrLayers[objID][4]+'"';strLayPrefix=''}else{strPosition='';strLayPrefix='i'}
if(!arrLayers[objID][12]){strVisible='visibility="hide"'}else{strVisible=''}
strWrite = '<'+strLayPrefix+'layer name="'+arrLayers[objID][1]+'" '+strPosition+' width="'+arrLayers[objID][6]+'" height="'+arrLayers[objID][7]+'" '+strVisible+'>';
}else{
if(arrLayers[objID][2]){strPosition='position:absolute;left:'+arrLayers[objID][3]+'px;top:'+arrLayers[objID][4]+'px;z-index:'+arrLayers[objID][5]+';'}else{strPosition=''}
if(!arrLayers[objID][12]){strVisible='visibility:hidden;'}else{strVisible=''}
strWrite = '<div id="'+arrLayers[objID][1]+'" style="width:'+arrLayers[objID][6]+'px;height:'+arrLayers[objID][7]+'px;'+strPosition+strVisible+'">';
}
}
}else{
if(arrLayers[objID][10]!=""){
if(!ns){
strWrite = '</iframe>';
}
}else{
if(ns){
if(arrLayers[objID][2]){strLayPrefix=''}else{strLayPrefix='i'}
strWrite = '</'+strLayPrefix+'layer>';
}else{
strWrite = '</div>';
}
}
}
return strWrite;
}
function makeLayers(){
makeLayer('all')
}
function makeLayer(strName){
var strMakeLayer = ''
for(var intA=0; intA<arrLayers.length; intA++){
if(arrLayers[intA][1]==strName || strName=='all'){
strMakeLayer += writeLayerTag(arrLayers[intA][1],true);
strMakeLayer += arrLayers[intA][9];
strMakeLayer += writeLayerTag(arrLayers[intA][1],false);
}
}
document.writeln(strMakeLayer)
}
function setScrollLock(){
if(ie && intRefreshrate>5){
onscroll = doScrollLock;
}else{
setInterval('doScrollLock()',Math.round(1000/intRefreshrate));
}
}
function doScrollLock(){
for(var intA=0; intA<arrLayers.length; intA++){
if(arrLayers[intA][13] || booAutoAdjustAllObjectPositions){
setPosition(arrLayers[intA][1],arrLayers[intA][3],arrLayers[intA][4],arrLayers[intA][5],arrLayers[intA][6],arrLayers[intA][7],arrLayers[intA][13],arrLayers[intA][14]);
}
}
return true;
}
var intJitterTimeout = 50;
var timeoutColour,cacheColourObjId;
function suggestColour(strId,strChange){
if(cacheColourObjId==strId){clearTimeout(timeoutColour)}else{cacheColourObjId=strId}
timeoutColour = setTimeout("setColour('"+strId+"','"+strChange+"')",intJitterTimeout);
}
var timeoutBackgroundColour,cacheBackgroundColourObjId;
function suggestBackgroundColour(strId,strChange){
if(cacheBackgroundColourObjId==strId){clearTimeout(timeoutBackgroundColour)}else{cacheBackgroundColourObjId=strId}
timeoutBackgroundColour = setTimeout("setBackgroundColour('"+strId+"','"+strChange+"')",intJitterTimeout);
}
var timeoutBackgroundImage,cacheBackgroundImageObjId;
function suggestBackgroundImage(strId,strChange){
if(cacheBackgroundImageObjId==strId){clearTimeout(timeoutBackgroundImage)}else{cacheBackgroundImageObjId=strId}
timeoutBackgroundImage = setTimeout("setBackgroundImage('"+strId+"','"+strChange+"')",intJitterTimeout);
}
var timeoutForegroundImage,cacheForegroundImageObjId;
function suggestForegroundImage(strId,strChange){
if(cacheForegroundImageObjId==strId){clearTimeout(timeoutForegroundImage)}else{cacheForegroundImageObjId=strId}
timeoutForegroundImage = setTimeout("setForegroundImage('"+strId+"','"+strChange+"')",intJitterTimeout);
}
var timeoutVisibility,cacheVisibilityObjId;
function suggestVisibility(strId,strChange){
if(cacheVisibilityObjId==strId){clearTimeout(timeoutVisibility)}else{cacheVisibilityObjId=strId}
timeoutVisibility = setTimeout("setVisibility('"+strId+"','"+strChange+"')",intJitterTimeout);
}
var timeoutDisplay,cacheDisplayObjId;
function suggestDisplay(strId,strChange){
if(cacheDisplayObjId==strId){clearTimeout(timeoutDisplay)}else{cacheDisplayObjId=strId}
timeoutDisplay = setTimeout("setDisplay('"+strId+"','"+strChange+"')",intJitterTimeout);
}
if(booEnableScrollLock || booAutoAdjustAllObjectPositions)setScrollLock();
}
