's used to hold the closebox, image, and zoom shadow.
// It's a lot of Javascript for a little HTML. But, hey, this must be the "right way", though, yeah?
// I'd also like to ask forgiveness for the large amounts of tables in use. Sometimes, CSS just doesn't cut it... I think.
var inBody = document.getElementsByTagName("body").item(0);
// WAIT SPINNER
var inSpinbox = document.createElement("div");
inSpinbox.setAttribute('id', 'ZoomSpin');
inSpinbox.style.position = 'absolute';
inSpinbox.style.left = '10px';
inSpinbox.style.top = '10px';
inSpinbox.style.visibility = 'hidden';
inSpinbox.style.zIndex = '5000';
inBody.insertBefore(inSpinbox, inBody.firstChild);
var inSpinImage = document.createElement("img");
inSpinImage.setAttribute('id', 'SpinImage');
inSpinImage.setAttribute('src', zoomImageURI+'zoom-spin-1.png');
inSpinbox.appendChild(inSpinImage);
// ZOOM IMAGE
//
//
var inZoombox = document.createElement("div");
inZoombox.setAttribute('id', 'ZoomBox');
inZoombox.style.position = 'absolute';
inZoombox.style.left = '10px';
inZoombox.style.top = '10px';
inZoombox.style.visibility = 'hidden';
inZoombox.style.zIndex = '499';
// inZoombox.style.background = 'white'; // DEBUG
inBody.insertBefore(inZoombox, inSpinbox.nextSibling);
var inLink1 = document.createElement("a");
inLink1.setAttribute('href','javascript:zoomOut();');
inZoombox.appendChild(inLink1);
var inImage1 = document.createElement("img");
inImage1.setAttribute('src',zoomImageURI+'spacer.gif');
inImage1.setAttribute('id','ZoomImage');
inImage1.setAttribute('border', '0');
inImage1.setAttribute('onMouseOver', 'zoomMouseOver();')
inImage1.setAttribute('onMouseOut', 'zoomMouseOut();')
inImage1.style.display = 'block';
inImage1.style.width = '10px';
inImage1.style.height = '10px';
inLink1.appendChild(inImage1);
var inClosebox = document.createElement("div");
inClosebox.setAttribute('id', 'ZoomClose');
inClosebox.style.position = 'absolute';
inClosebox.style.left = '-15px';
inClosebox.style.top = '-15px';
inClosebox.style.filter = 'alpha(opacity=0)';
inClosebox.style.MozOpacity = '0';
inClosebox.style.opacity = '0';
inClosebox.style.visibility = 'hidden';
inZoombox.appendChild(inClosebox);
var inLink2 = document.createElement("a");
inLink2.setAttribute('href','javascript:zoomOut(1);');
inClosebox.appendChild(inLink2);
var inImage2 = document.createElement("img");
inImage2.setAttribute('src',zoomImageURI+'closebox.png');
inImage2.setAttribute('width','30');
inImage2.setAttribute('height','30');
inImage2.setAttribute('border','0');
inLink2.appendChild(inImage2);
// SHADOW
// Now, the.. shudder.. shadow table.
//
X
//
//  |
// |
//  |
//
var inShadowbox = document.createElement("div");
inShadowbox.setAttribute('id', 'ShadowBox');
inShadowbox.style.position = 'absolute';
inShadowbox.style.left = '50px';
inShadowbox.style.top = '50px';
inShadowbox.style.width = '100px';
inShadowbox.style.height = '100px';
inShadowbox.style.visibility = 'hidden';
inShadowbox.style.zIndex = '45';
inBody.insertBefore(inShadowbox, inZoombox.nextSibling);
var BlackBackground = document.createElement("div");
BlackBackground.setAttribute('id', 'BlackBackground');
BlackBackground.style.left = '0';
BlackBackground.style.top = '0';
BlackBackground.style.width = '100%';
BlackBackground.style.height = '0px';
BlackBackground.style.visibility = 'hidden';
BlackBackground.style.zIndex = '55';
BlackBackground.onclick = function() {zoomOut(1);}
inBody.insertBefore(BlackBackground, inZoombox.nextSibling);
var PrevBtn = newElement({
tag: "DIV",
id: "PrevBtn",
children: {
tag:"a",
children:" ",
href: "javascript:zoomPrev()"
}
})
inBody.insertBefore(PrevBtn, inZoombox.nextSibling);
var NextBtn = newElement({
tag: "DIV",
id: "NextBtn",
children: {
tag:"a",
children:" ",
href: "javascript:zoomNext()"
}
})
inBody.insertBefore(NextBtn, inZoombox.nextSibling);
var inTable = document.createElement("table");
inTable.setAttribute('border', '0');
inTable.setAttribute('width', '100%');
inTable.setAttribute('height', '100%');
inTable.setAttribute('cellpadding', '0');
inTable.setAttribute('cellspacing', '0');
inShadowbox.appendChild(inTable);
var inRow1 = document.createElement("tr");
inRow1.style.height = '25px';
inTable.appendChild(inRow1);
var inCol1 = document.createElement("td");
inCol1.style.width = '27px';
inRow1.appendChild(inCol1);
var inShadowImg1 = document.createElement("img");
inShadowImg1.setAttribute('src', zoomImageURI+'zoom-shadow1.png');
inShadowImg1.setAttribute('width', '27');
inShadowImg1.setAttribute('height', '25');
inShadowImg1.style.display = 'block';
inCol1.appendChild(inShadowImg1);
var inCol2 = document.createElement("td");
inCol2.setAttribute('background', zoomImageURI+'zoom-shadow2.png');
inRow1.appendChild(inCol2);
// inCol2.innerHTML = '
// |
// |
// |
//
inRow2 = document.createElement("tr");
inTable.appendChild(inRow2);
var inCol4 = document.createElement("td");
inCol4.setAttribute('background', zoomImageURI+'zoom-shadow4.png');
inRow2.appendChild(inCol4);
// inCol4.innerHTML = ' ';
var inSpacer2 = document.createElement("img");
inSpacer2.setAttribute('src',zoomImageURI+'spacer.gif');
inSpacer2.setAttribute('height', '1');
inSpacer2.setAttribute('width', '1');
inSpacer2.style.display = 'block';
inCol4.appendChild(inSpacer2);
var inCol5 = document.createElement("td");
inCol5.setAttribute('bgcolor', '#ffffff');
inRow2.appendChild(inCol5);
// inCol5.innerHTML = ' ';
var inSpacer3 = document.createElement("img");
inSpacer3.setAttribute('src',zoomImageURI+'spacer.gif');
inSpacer3.setAttribute('height', '1');
inSpacer3.setAttribute('width', '1');
inSpacer3.style.display = 'block';
inCol5.appendChild(inSpacer3);
var inCol6 = document.createElement("td");
inCol6.setAttribute('background', zoomImageURI+'zoom-shadow5.png');
inRow2.appendChild(inCol6);
// inCol6.innerHTML = ' ';
var inSpacer4 = document.createElement("img");
inSpacer4.setAttribute('src',zoomImageURI+'spacer.gif');
inSpacer4.setAttribute('height', '1');
inSpacer4.setAttribute('width', '1');
inSpacer4.style.display = 'block';
inCol6.appendChild(inSpacer4);
//
//
// | |
//  |
//
//
var inRow3 = document.createElement("tr");
inRow3.style.height = '26px';
inTable.appendChild(inRow3);
var inCol7 = document.createElement("td");
inCol7.style.width = '27px';
inRow3.appendChild(inCol7);
var inShadowImg7 = document.createElement("img");
inShadowImg7.setAttribute('src', zoomImageURI+'zoom-shadow6.png');
inShadowImg7.setAttribute('width', '27');
inShadowImg7.setAttribute('height', '26');
inShadowImg7.style.display = 'block';
inCol7.appendChild(inShadowImg7);
var inCol8 = document.createElement("td");
inCol8.setAttribute('background', zoomImageURI+'zoom-shadow7.png');
inRow3.appendChild(inCol8);
// inCol8.innerHTML = ' ';
var inSpacer5 = document.createElement("img");
inSpacer5.setAttribute('src',zoomImageURI+'spacer.gif');
inSpacer5.setAttribute('height', '1');
inSpacer5.setAttribute('width', '1');
inSpacer5.style.display = 'block';
inCol8.appendChild(inSpacer5);
var inCol9 = document.createElement("td");
inCol9.style.width = '27px';
inRow3.appendChild(inCol9);
var inShadowImg9 = document.createElement("img");
inShadowImg9.setAttribute('src', zoomImageURI+'zoom-shadow8.png');
inShadowImg9.setAttribute('width', '27');
inShadowImg9.setAttribute('height', '26');
inShadowImg9.style.display = 'block';
inCol9.appendChild(inShadowImg9);
if (includeCaption == 1) {
// CAPTION
//
//
//
//  |
// |
//  |
//
//
var inCapDiv = document.createElement("div");
inCapDiv.setAttribute('id', 'ZoomCapDiv');
inCapDiv.style.display = 'none';
inCapDiv.style.marginLeft = '13px';
inCapDiv.style.marginRight = '13px';
inShadowbox.appendChild(inCapDiv);
var inCapTable = document.createElement("table");
inCapTable.setAttribute('border', '0');
inCapTable.setAttribute('cellpadding', '0');
inCapTable.setAttribute('cellspacing', '0');
inCapTable.setAttribute('align', 'center');
inCapDiv.appendChild(inCapTable);
var inCapRow1 = document.createElement("tr");
inCapTable.appendChild(inCapRow1);
var inCapCol1 = document.createElement("td");
inCapRow1.appendChild(inCapCol1);
var inCapImg1 = document.createElement("img");
inCapImg1.setAttribute('src', zoomImageURI+'zoom-caption-l.png');
inCapImg1.setAttribute('width', '13');
inCapImg1.setAttribute('height', '26');
inCapImg1.style.display = 'block';
inCapCol1.appendChild(inCapImg1);
var inCapCol2 = document.createElement("td");
inCapCol2.setAttribute('background', zoomImageURI+'zoom-caption-fill.png');
inCapCol2.setAttribute('id', 'ZoomCaption');
inCapCol2.setAttribute('valign', 'middle');
inCapCol2.style.fontSize = '14px';
inCapCol2.style.fontFamily = 'Helvetica';
inCapCol2.style.fontWeight = 'bold';
inCapCol2.style.color = '#ffffff';
inCapCol2.style.textShadow = '0px 2px 4px #000000';
inCapCol2.style.whiteSpace = 'nowrap';
inCapRow1.appendChild(inCapCol2);
var inCapCol3 = document.createElement("td");
inCapRow1.appendChild(inCapCol3);
var inCapImg2 = document.createElement("img");
inCapImg2.setAttribute('src', zoomImageURI+'zoom-caption-r.png');
inCapImg2.setAttribute('width', '13');
inCapImg2.setAttribute('height', '26');
inCapImg2.style.display = 'block';
inCapCol3.appendChild(inCapImg2);
}
}
function openFlash(from){
flWidth=250;
flHeight=250;
start_top=from.offsetTop;
start_left=from.offsetLeft;
start_width=from.offsetWidth;
start_height=from.offsetHeight;
var sizes = new Array();
sizes[0]=start_top;
sizes[1]=start_left;
sizes[2]=start_width;
sizes[3]=start_height;
source=from.getAttribute('href');
mainWindow=document.createElement("div");
mainWindow.setAttribute('id','flashBackground');
mainWindow.setAttribute("onclick","closeFlash("+sizes+")");
mainWindow.style.position="absolute";
mainWindow.style.top="0px";
mainWindow.style.left="0px";
mainWindow.style.opacity="0.1";
mainWindow.style.width="100%";
mainWindow.style.height="100%";
mainWindow.style.zIndex="55";
mainWindow.style.display="block";
mainWindow.style.visibility="visible";
mainWindow.style.backgroundColor="black";
document.body.appendChild(mainWindow);
$("#flashBackground").animate({opacity: "0.7"},500);
getWindowSizes();
movieTop=Math.round((myHeight-flHeight)/2);
movieLeft=Math.round((myWidth-flWidth)/2);
start_top=from.offsetTop;
start_left=from.offsetLeft;
start_width=from.offsetWidth;
start_height=from.offsetHeight;
//alert("left: "+start_left);
flashContainer=document.createElement("div");
flashContainer.setAttribute("id","flvMovieScreen");
flashContainer.style.display="block";
flashContainer.style.position="absolute";
flashContainer.style.zIndex="57";
flashContainer.style.top=start_top+"px";
flashContainer.style.left=start_left+"px";
flashContainer.style.width=start_width+"px";
flashContainer.style.height=start_height+"px";
flashContainer.style.backgroundColor="white";
flashContainer.style.opacity="1";
/* flashContainer.style.top=movieTop+"px";
flashContainer.style.left=movieLeft+"px"; */
document.body.appendChild(flashContainer);
$("#flvMovieScreen").animate({top: movieTop , left: movieLeft, width: flWidth, height: flHeight},300,"linear",function (){
var so = new SWFObject(FOLDERS.domainRoot+"/flvplayer.swf?file="+source+"&autoStart=true", "flashMovie", flWidth, flHeight, "6.0.65", "#336699");
so.addParam("wmode","transparent");
so.write("flvMovieScreen");
closeButton=document.createElement("div");
closeButton.setAttribute("id","flashCloseButton");
closeButton.setAttribute("onclick","closeFlash("+sizes+")");
closeButton.style.width=30+"px";
closeButton.style.height=30+"px";
closeButton.style.backgroundImage="url(http://georh2.demo.stenikgroup.com/template/images/closebox.png)";
closeButton.style.position="absolute";
closeButton.style.top=-15+"px";
closeButton.style.left=-15+"px";
closeButton.style.opacity=1;
closeButton.style.zIndex="58";
flashContainer.appendChild(closeButton);
});
}
function closeFlash(start_top,start_left,start_width,start_height){
/*start_top=from[0];
start_left=from[1];
start_width=from[2];
start_height=from[3]; */
$("#flashBackground").remove();
flashScreen=document.getElementById("flvMovieScreen");
if(flashScreen!="undefined"){
$("#flashCloseButton").remove();
$("#flashMovie").remove();
$("#flvMovieScreen").animate({top: start_top , left: start_left, width: start_width, height: start_height},300,"linear",function (){
$(this).remove();
});
}
}//The file system/javascript/mootools.js:
var MooTools={version:"1.2.2",build:"f0491d62fbb7e906789aa3733d6a67d43e5af7c9"};var Native=function(k){k=k||{};var a=k.name;var i=k.legacy;var b=k.protect;
var c=k.implement;var h=k.generics;var f=k.initialize;var g=k.afterImplement||function(){};var d=f||i;h=h!==false;d.constructor=Native;d.$family={name:"native"};
if(i&&f){d.prototype=i.prototype;}d.prototype.constructor=d;if(a){var e=a.toLowerCase();d.prototype.$family={name:e};Native.typize(d,e);}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o;
}if(h){Native.genericize(n,l,b);}g.call(n,l,o);return n;};d.alias=function(n,l,o){if(typeof n=="string"){if((n=this.prototype[n])){return j(this,l,n,o);
}}for(var m in n){this.alias(m,n[m],l);}return this;};d.implement=function(m,l,o){if(typeof m=="string"){return j(this,m,l,o);}for(var n in m){j(this,n,m[n],l);
}return this;};if(c){d.implement(c);}return d;};Native.genericize=function(b,c,a){if((!a||!b[c])&&typeof b.prototype[c]=="function"){b[c]=function(){var d=Array.prototype.slice.call(arguments);
return b.prototype[c].apply(d.shift(),d);};}};Native.implement=function(d,c){for(var b=0,a=d.length;b
-1:this.indexOf(a)>-1;},trim:function(){return this.replace(/^\s+|\s+$/g,"");},clean:function(){return this.replace(/\s+/g," ").trim();
},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase());
});},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase();});},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");
},toInt:function(a){return parseInt(this,a||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);
return(a)?a.slice(1).hexToRgb(b):null;},rgbToHex:function(b){var a=this.match(/\d{1,3}/g);return(a)?a.rgbToHex(b):null;},stripScripts:function(b){var a="";
var c=this.replace(/