/*
var display_welcome_panel = false;

YAHOO.namespace("construmax");

			// BEGIN PHOTOBOX SUBCLASS //
			YAHOO.widget.PhotoBox = function(el, userConfig) {
				if (arguments.length > 0) {
					YAHOO.widget.PhotoBox.superclass.constructor.call(this, el, userConfig);
				}
			}
			
			// Inherit from YAHOO.widget.Panel
			YAHOO.extend(YAHOO.widget.PhotoBox, YAHOO.widget.Panel);

			// Define the CSS class for the PhotoBox
			YAHOO.widget.PhotoBox.CSS_PHOTOBOX = "configbox";

			// Initialize the PhotoBox by setting up the footer navigation
			YAHOO.widget.PhotoBox.prototype.init = function(el, userConfig) {
				YAHOO.widget.PhotoBox.superclass.init.call(this, el); 
				
				this.beforeInitEvent.fire(YAHOO.widget.PhotoBox);

				YAHOO.util.Dom.addClass(this.innerElement, YAHOO.widget.PhotoBox.CSS_PHOTOBOX);
				
				if (userConfig) {
					this.cfg.applyConfig(userConfig, true);
				}

				this.initEvent.fire(YAHOO.widget.PhotoBox);
			};
				
			// Overrides the handler for the "modal" property with special animation-related functionality
			YAHOO.widget.PhotoBox.prototype.configModal = function(type, args, obj) {
				var modal = args[0];

				if (modal) {
					this.buildMask();

					if (typeof this.maskOpacity == 'undefined') {
						//this.mask.style.visibility = "hidden";
						this.mask.style.display = "block";
						this.maskOpacity = YAHOO.util.Dom.getStyle(this.mask,"opacity");
						this.mask.style.display = "none";
						this.mask.style.visibility = "visible";
					}

					if (! YAHOO.util.Config.alreadySubscribed( this.beforeShowEvent, this.showMask, this ) ) {
						this.beforeShowEvent.subscribe(this.showMask, this, true);
					}
					if (! YAHOO.util.Config.alreadySubscribed( this.hideEvent, this.hideMask, this) ) {
						this.hideEvent.subscribe(this.hideMask, this, true);
					}
					if (! YAHOO.util.Config.alreadySubscribed( YAHOO.widget.Overlay.windowResizeEvent, this.sizeMask, this ) ) {
						YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.sizeMask, this, true);
					}
					if (! YAHOO.util.Config.alreadySubscribed( this.destroyEvent, this.removeMask, this) ) {
						this.destroyEvent.subscribe(this.removeMask, this, true);
					}
					this.cfg.refireEvent("zIndex");
				} else {
					this.beforeShowEvent.unsubscribe(this.showMask, this);
					this.beforeHideEvent.unsubscribe(this.hideMask, this);
					YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.sizeMask);
				}
			};
			
			// Overrides the showMask function to allow for fade-in animation
			YAHOO.widget.PhotoBox.prototype.showMask = function() {
				if (this.cfg.getProperty("modal") && this.mask) {
					YAHOO.util.Dom.addClass(document.body, "masked");
					this.sizeMask();

					var o = this.maskOpacity;

					if (! this.maskAnimIn) {
						this.maskAnimIn = new YAHOO.util.Anim(this.mask, {opacity: {to:o}}, 0.25)
						YAHOO.util.Dom.setStyle(this.mask, "opacity", 0);
					}

					if (! this.maskAnimOut) {
						this.maskAnimOut = new YAHOO.util.Anim(this.mask, {opacity: {to:0}}, 0.25)
						this.maskAnimOut.onComplete.subscribe(function() {
																this.mask.tabIndex = -1;
																this.mask.style.display = "none";
																this.hideMaskEvent.fire();
																YAHOO.util.Dom.removeClass(document.body, "masked");
															  }, this, true);
						
					}
					this.mask.style.display = "block";
					this.maskAnimIn.animate();
					this.mask.tabIndex = 0;
					this.showMaskEvent.fire();
				}
			};

			// Overrides the showMask function to allow for fade-out animation
			YAHOO.widget.PhotoBox.prototype.hideMask = function() {
				if (this.cfg.getProperty("modal") && this.mask) {
					this.maskAnimOut.animate();
				}
			};
			// END PHOTOBOX SUBCLASS //

			function init() {
			    
			      settings = {
			          tl: { radius: 20 },
			          tr: { radius: 20 },
			          bl: { radius: 20 },
			          br: { radius: 20 },
			          antiAlias: true,
			          autoPad: true,
			          validTags: ["div"]
			      }
			
			   
			  	 var myBoxObject = new curvyCorners(settings, YAHOO.util.Dom.get("config"));
			   	myBoxObject.applyCornersToAll();
			   
				YAHOO.construmax.photobox = new YAHOO.widget.PhotoBox("configbox", 
				{ 
					effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.45}, 
					fixedcenter:true,
					constraintoviewport:true,
					underlay:"none",
					close:false,
					visible:false,
					draggable:false,
					modal:true, 
					width:"725px"
				} );
				YAHOO.construmax.photobox.render();
				YAHOO.util.Dom.removeClass("configbox","hidden");
				
				YAHOO.util.Event.addListener("pref_text_link", "click", YAHOO.construmax.photobox.show, YAHOO.construmax.photobox, true);
				YAHOO.util.Event.addListener("pref_icon_link", "click", YAHOO.construmax.photobox.show, YAHOO.construmax.photobox, true);
				
				if (display_welcome_panel) {
					YAHOO.construmax.photobox.show();
				}
				
				//YAHOO.util.Event.addListener("hide", "click", YAHOO.construmax.photobox.hide, YAHOO.construmax.photobox, true);
				//this.oLogReader = new YAHOO.widget.LogReader();
			}

			YAHOO.util.Event.addListener(window, "load", init);
			
			function process_config_close() {
				if (!display_welcome_panel &&
					document.configform.language[document.configform.orig_language.value].checked && 
					document.configform.measurements[document.configform.orig_measurements.value].checked && 
					document.configform.currency[document.configform.orig_currency.value].checked)
					{
						YAHOO.construmax.photobox.hide();
						document.configform.submit();
					}
				else
					document.configform.submit();
			}
			
			
*/
