127) && (uc<2048)) {
utf8txt += String.fromCharCode((uc>>6)|192);
utf8txt += String.fromCharCode((uc&63)|128);
} else {
utf8txt += String.fromCharCode((uc>>12)|224);
utf8txt += String.fromCharCode(((uc>>6)&63)|128);
utf8txt += String.fromCharCode((uc&63)|128);
}
}
return utf8txt;
}
var queryParams = 'pagearSmallImg='+escape(pagearSmallImg);
queryParams += '&pagearBigImg='+escape(pagearBigImg);
queryParams += '&pageearColor='+pageearColor;
queryParams += '&jumpTo='+escape(jumpTo);
queryParams += '&openLink='+escape(openLink);
queryParams += '&mirror='+escape(mirror);
queryParams += '©right='+escape(copyright);
queryParams += '&speedSmall='+escape(speedSmall);
queryParams += '&openOnLoad='+escape(openOnLoad);
queryParams += '&closeOnLoad='+escape(closeOnLoad);
queryParams += '&setDirection='+escape(setDirection);
queryParams += '&softFadeIn='+escape(softFadeIn);
queryParams += '&playSound='+escape(playSound);
queryParams += '&playOpenSound='+escape(playOpenSound);
queryParams += '&playCloseSound='+escape(playCloseSound);
queryParams += '&closeOnClick='+escape(closeOnClick);
queryParams += '&closeOnClickText='+escape(utf8encode(closeOnClickText));
queryParams += '&lcKey='+escape(Math.random());
queryParams += '&bigWidth='+escape(bigWidth);
queryParams += '&thumbWidth='+escape(thumbWidth);
function openPeel(){
document.getElementById('bigDiv').style.top = '0px';
document.getElementById('bigDiv').style[xPos] = '0px';
document.getElementById('thumbDiv').style.top = '-1000px';
}
function closePeel(){
document.getElementById("thumbDiv").style.top = "0px";
document.getElementById("bigDiv").style.top = "-1000px";
}
function writeObjects () {
// Get installed flashversion
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(setDirection == 'lt') {
xPosBig = 'left:-1000px';
xPos = 'left';
} else {
xPosBig = 'right:1000px';
xPos = 'right';
}
// Write div layer for big swf
document.write('');
// Check if flash exists/ version matched
if (hasReqestedVersion) {
AC_FL_RunContent(
"src", pagearBigSwf+'?'+ queryParams,
"width", bigWidth,
"height", bigHeight,
"align", "middle",
"id", "bigSwf",
"quality", "high",
"bgcolor", "#FFFFFF",
"name", "bigSwf",
"wmode", "transparent",
"scale", "noscale",
"salign", "tr",
"allowScriptAccess","always",
"type", "application/x-shockwave-flash",
'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else { // otherwise do nothing or write message ...
document.write('no flash installed'); // non-flash content
}
// Close div layer for big swf
document.write('
');
// Write div layer for small swf
document.write('');
// Check if flash exists/ version matched
if (hasReqestedVersion) {
AC_FL_RunContent(
"src", pagearSmallSwf+'?'+ queryParams,
"width", thumbWidth,
"height", thumbHeight,
"align", "middle",
"id", "smallSwf",
"scale", "noscale",
"quality", "high",
"bgcolor", "#FFFFFF",
"name", "bigSwf",
"wmode", "transparent",
"allowScriptAccess","always",
"type", "application/x-shockwave-flash",
'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else { // otherwise do nothing or write message ...
document.write('no flash installed'); // non-flash content
}
document.write('
');
setTimeout('document.getElementById("bigDiv").style.top = "-1000px";',100);
}
writeObjects();
};