Warning: langMgr::include(../lang/.lang.php) [langmgr.include]: failed to open stream: No such file or directory in /var/www/vhosts/sidesparks/sidesparks.com/etc/lang.php on line 42
Warning: langMgr::include() [function.include]: Failed opening '../lang/.lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/sidesparks/sidesparks.com/etc/lang.php on line 42
// -----------------------------------------------------------------------------------
//
// Lightbox v2.04
// by Lokesh Dhakar - http://www.lokeshdhakar.com
// Last Modification: 2/9/08
//
// For more information, visit:
// http://lokeshdhakar.com/projects/lightbox2/
//
// Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
// - Free for use in both personal and commercial projects
// - Attribution requires leaving author name, author link, and the license info intact.
//
// Thanks: Scott Upton(uptonic.com), Peter-Paul Koch(quirksmode.com), and Thomas Fuchs(mir.aculo.us) for ideas, libs, and snippets.
// Artemy Tregubenko (arty.name) for cleanup and help in updating to latest ver of proto-aculous.
//
// -----------------------------------------------------------------------------------
//
// Configurationl
//
LightboxOptions = Object.extend({
fileLoadingImage: 'images/loading.gif',
fileBottomNavCloseImage: 'images/closelabel.gif',
overlayOpacity: 0.8, // controls transparency of shadow overlay
animate: true, // toggles resizing animations
resizeSpeed: 7, // controls the speed of the image resizing animations (1=slowest and 10=fastest)
borderSize: 0, //if you adjust the padding in the CSS, you will need to update this variable
// When grouping images this is used to write: Image # of #.
// Change it for non-english localization
labelImage: "Image",
labelOf: "of"
}, window.LightboxOptions || {});
// -----------------------------------------------------------------------------------
var Lightbox = Class.create();
Lightbox.prototype = {
// initialize()
// Constructor runs on completion of the DOM loading. Calls updateImageList and then
// the function inserts html at the bottom of the page which is used to display the shadow
// overlay and the image container.
//
initialize: function() {
if (LightboxOptions.resizeSpeed > 10) LightboxOptions.resizeSpeed = 10;
if (LightboxOptions.resizeSpeed < 1) LightboxOptions.resizeSpeed = 1;
this.resizeDuration = LightboxOptions.animate ? ((11 - LightboxOptions.resizeSpeed) * 0.15) : 0;
this.overlayDuration = LightboxOptions.animate ? 0.2 : 0; // shadow fade in/out duration
// When Lightbox starts it will resize itself from 250 by 250 to the current image dimension.
// If animations are turned off, it will be hidden as to prevent a flicker of a
// white 250 by 250 box.
var size = (LightboxOptions.animate ? 250 : 1) + 'px';
this.idToShow = null;
// Code inserts html at the bottom of the page that looks similar to this:
//
//
//
//
//
//
![]()
//
//
//
//
//
//
var objBody = $$('body')[0];
objBody.appendChild(Builder.node('div',{id:'overlay'}));
$('overlay').hide().observe('click', (function() { this.end(); }).bind(this));
//$('lightbox').hide().observe('click', (function(event) { if (event.element().id == 'lightbox') this.end(); }).bind(this));
//$('outerImageContainer').setStyle({ width: size, height: size });
//$('prevLink').observe('click', (function(event) { event.stop(); this.changeImage(this.activeImage - 1); }).bindAsEventListener(this));
//$('nextLink').observe('click', (function(event) { event.stop(); this.changeImage(this.activeImage + 1); }).bindAsEventListener(this));
//$('loadingLink').observe('click', (function(event) { event.stop(); this.end(); }).bind(this));
//$('bottomNavClose').observe('click', (function(event) { event.stop(); this.end(); }).bind(this));
//var th = this;
//(function(){
// var ids =
// 'overlay';
// $w(ids).each(function(id){ th[id] = $(id); });
//}).defer();
},
//
// start()
// Display overlay and lightbox. If image is part of a set, add siblings to imageArray.
//
start: function(newId) {
var baseHeight = 520;
var baseWidth = 644;
if(this.idToShow != null)
{
var lightboxLeft = (document.documentElement.clientWidth - baseWidth) / 2;
var lightboxTop = (document.documentElement.clientHeight - baseHeight) / 2;
new Effect.Fade($(this.idToShow), { duration: this.overlayDuration });
this.idToShow = newId;
$(this.idToShow).setStyle({ top: lightboxTop + 'px', left: lightboxLeft + 'px'}).show();
this.showContent();
return;
}
if(newId == 'thickbox_superUser')
{
$('thickbox_superUser_content_first').setStyle({display: 'block'});
$('thickbox_superUser_content_second').setStyle({display: 'none'});
$('super_user_error_username').setStyle({display: 'none'});
$('super_user_error_email').setStyle({display: 'none'});
$('super_user_error_email_2').setStyle({display: 'none'});
$('super_user_error_email_3').setStyle({display: 'none'});
baseHeight = The specified Language does not exist.