/*
	TOC:
		- Initial Set-up
		- Utility Functions
		- 3rd Party
		- DOMReady/Load

*/

// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [START] Initial Set-up //
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	if (typeof(relative_path) != "string") {
		var p = window.location.pathname.split( "/" );
		if( p[ p.length - 1 ].substr( -1 ) !== "/" ) {
			p[ p.length - 1 ] = "";
		};
		var relative_path = p.join( "/" );
	};

	//var relative_path	= '/caron2010/trunk/';
	//var relative_path	= '/trunk/';
	//var relative_path	= '/';

// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [END] Initial Set-up \\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\



// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [START] Utility Functions //
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


	/*
		checkEmail
	*/
	function checkEmail( FormElement ) {
		if ( !( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test( FormElement.value ) ) ) {
			return false;
		} else {
			return true;
		};
	};


	/*
		checkNumeric
	*/
	function checkNumeric( FormElement ) {
		if ( !( /^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$/.test( FormElement.value.trim() ) ) ) {
		//if(!(/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/.test( FormElement.value ) ) ) {
			return false;
		} else {
			return true;
		};
	};

	/*
		checkDate
	*/
	function checkDate( DateStr ) {
		if ( !( /^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{4}$/.test( DateStr.trim() ) ) ) {
			return false;
		} else {

			try {
				var tempDate = new Date (DateStr.trim());
				return true;
			}
			catch (err) {
				return false;
			}
		};
	};


	/*
		ie6NavFix: Drop down display fix for IE6 - typical
	*/
	function ie6NavFix() {

		var navLists = $$( '#nav li' );

		for( var i = 0; i < navLists.length; i++ ) {
			if( navLists[i].getChildren( 'div' ).length > 0 ) {
				navLists[i].addEvent( 'mouseenter', function() {
					this.getChildren( 'div' )[0].setStyle( 'display', 'block' );
				});

				navLists[i].addEvent( 'mouseleave', function() {
					this.getChildren( 'div' )[0].setStyle( 'display', 'none' );
				});
			};
		};

	};


	/*
		repStateNotifyFunction
	*/
	function repStateNotifyFunction( state ) {

		// DEFINED REP STATES :
		// var LPREPSTATEONLINE		= "online"	: Reps available online
		// var LPREPSTATEOFFLINE		= "offline"	: No available reps online - offline or away
		// var LPREPSTATEOCCUPIED	= "occupied"	: Rep in "back in 5" state
		// var LPREPSTATEUNKNOWN		= "unknown"	: Unable to contact server

		if( $( '_lpChatBtn' ) ) {
			if ( state == 'online' ) {
				if( $( '_lpChatBtn' ).getParent( 'li' ) ) {
					$( '_lpChatBtn' ).getParent( 'li' ).removeClass( 'unavailable' );
				};
				$( '_lpChatBtn' ).set( 'text', 'Chat Live Online Available Now!' );
				$( '_lpChatBtn' ).set( 'title', 'Chat Live Online Available Now!' );
			} else {
				if( $( '_lpChatBtn' ).getParent( 'li' ) ) {
					$( '_lpChatBtn' ).getParent( 'li' ).addClass( 'unavailable' );
				};
				$( '_lpChatBtn' ).set( 'text', 'Chat Live Online Leave A Message' );
				$( '_lpChatBtn' ).set( 'title', 'Chat Live Online Leave A Message' );
			};
		};

	};


	/*
		trim
	*/
	String.prototype.trim = function () {
	    return this.replace(/^\s*/, "").replace(/\s*$/, "");
	};



/*-- kris@o3world.com  may 25 '11  final step of scenario (called from onComplete in Request that submitted form; and elsewhere) --*/

function webTrendsFinalize( wtSrcType ) { if( typeof dcsMultiTrack === "function" ) {

	if( wtSrcType ) {

		if( wtSrcType === "chat" ) {
			dcsMultiTrack( 'WT.si_n', 'LIVEchat', 'WT.si_p', 'LIVEchatClicked', 'WT.si_cs', '1' );
		}

	} else {

		if( location.href.indexOf( "admission" ) != -1 && location.href.indexOf( "form" ) != -1 ) {
			dcsMultiTrack( 'WT.si_n', 'OLAFsubmit', 'WT.si_p', 'OLAFcomplete', 'WT.si_cs', '1' );
		}
		else if( location.href.indexOf( "donation" ) != -1 && location.href.indexOf( "form" ) != -1 ) {
			dcsMultiTrack( 'WT.si_n', 'DONATION', 'WT.si_p', 'DONATIONcomplete', 'WT.si_cs', '1' );
		}

	}

} }



// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [END] Utility Functions \\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\



// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [START ] Classes //
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	/*
		InputClearAndReplace
	*/
	var InputClearAndReplace = new Class ({

		options: {
			InputElement: '.clear_replace'
		},

		initialize: function()  {

			var inputElementList = $$( this.options.InputElement );
			var originalValue = new Array();

			inputElementList.each( function( element, i ) {

				originalValue.push( inputElementList[ i ].value );

				element.onfocus = function() {
					if( this.value == originalValue[ i ] ) this.value = '';
				},
				element.onblur = function() {
					if( this.value == '' ) this.value = originalValue[ i ];
				}

			});

		}

	});
	InputClearAndReplace.implement( new Options );


	/*
		SetupFormControls - Sets actions for elements in a form, including any ecommerce inputs updating the total on page
	*/
	var SetupFormControls = new Class ( {

		options: {

			Class_eCommOpen:	'input.eCommOpen',
			Class_eCommFixed:	'select.eCommFixed',
			TotalContainerID:	'eCommerceTotal',
			ConditionalInputs:	'select.conditional, input.conditional',
			ConditionalGroups:	'div.conditional_wrapper',
			SpecialRadios:		'ul.special_radios li input'

		},

		initialize: function( options ) {

			this.setOptions( options );

			this.Textarea_Maxes		= $$( 'textarea[max]' );
			this.Inputs_eCommOpen	= $$( this.options.Class_eCommOpen );
			this.Inputs_eCommFixed	= $$( this.options.Class_eCommFixed );
			this.TotalContainer		=  $( this.options.TotalContainerID );
			this.ConditionalInputs	= $$( this.options.ConditionalInputs );
			this.ConditionalGroups	= $$( this.options.ConditionalGroups );
			this.SpecialRadios		= $$( this.options.SpecialRadios );

			// Set-up max character counts for necessary textareas
			this.Textarea_Maxes.each( function( item, index ) {
				if( item.get( 'max' ) ) {
					item.addEvents( {
						'keydown': function() {
							this.CheckLength( item );
						}.bind( this ),
						'keyup': function() {
							this.CheckLength( item );
						}.bind( this ),
						'blur': function() {
							this.CheckLength( item );
						}.bind( this )
					} );
				};
			}.bind( this ));

			// Set-up eComm-Open input event
			this.Inputs_eCommOpen.each( function( item, index ) {
				item.addEvent( 'keyup', function( event ) {
					var LastCharacter = item.value.substring( item.value.length - 1, item.value.length );
					if( /\d|\./.test( LastCharacter ) || item.value == '' ) {
							this.UpdateTotal();
					} else {
						item.value = item.value.substring( 0, item.value.length - 1 );
					};
				}.bind( this ));
			}.bind( this ));

			// Set-up eComm-Fixed input event
			this.Inputs_eCommFixed.each( function( item, index ) {
				item.addEvent( 'change', function( event ) {
					this.UpdateTotal();
				}.bind( this ));
			}.bind( this ));

			// Update Total
			if( this.TotalContainer ) {
				this.UpdateTotal();
			};

			// Set up conditional actions an initial states
			this.ConditionalGroups.addClass( 'hide' );

			this.ConditionalInputs.each( function( item, index ) {
				var TheEvent = ( item.get( 'tag' ) == 'select' ) ? 'change' : 'click';
				item.addEvent( TheEvent, function( event ) {
					if( item.get( 'tag' ) == 'select' ) {
						this.UpdateConditionalDisplay( item.id, item.value );
					} else if( item.get( 'tag' ) == 'input' && item.checked ) {
						this.UpdateConditionalDisplay( item.name, item.value );
					};
				}.bind( this ));
			}.bind( this ));

			this.ConditionalInputs.each( function( item, index ) {
				if( item.get( 'tag' ) == 'select' ) {
					this.UpdateConditionalDisplay( item.id, item.value );
				} else if( item.get( 'tag' ) == 'input' && item.checked ) {
					this.UpdateConditionalDisplay( item.name, item.value );
				};
			}.bind( this ));

			this.SpecialRadios.each( function( item, index ) {
				item.addEvent( 'click', function( event ) {
					this.UpdateSpecialRadios( item.id );
				}.bind( this ));
			}.bind( this ));

		},

		CheckLength: function( item ) {

			if( item.value.length > item.get( 'max' ) ) {
				item.value = item.value.substring( 0, item.get( 'max' ) );
			};

		},

		UpdateTotal: function() {

			if( this.TotalContainer ) {

				var Total = 0;

				// Add valid eComm-Open input values to the total
				this.Inputs_eCommOpen.each( function( item, index ) {
					if( String( item.value ).search( /\d((\.)|(\.\d+))?/ ) != -1 ) {
						Total = Total + ( item.value * 1 );
					};
				});

				// Calculate and add valid eComm-Fixed input values to the total
				this.Inputs_eCommFixed.each( function( item, index ) {
					if( item.value != '' ) {
						Total = Total + ( $( item.id + '_Amount' ).value * item.value );
					};
				});

				// Update the total
				this.TotalContainer.set( 'html', '$' + ( Total ).round( 2 ).toFixed( 2 ) );

					/*-- kris@o3world.com  nov 9 '11 --*/
				var totalErrEl = $( 'error_eCommerceTotal' );
				( parseInt( this.TotalContainer.get( 'text' ).replace( /[^0-9]/g, "" ), 10 ) == 0 ) ? totalErrEl.removeClass( 'hide' ) : totalErrEl.addClass( 'hide' );

			};

		},

		UpdateConditionalDisplay: function( id, value ) {

			var WrapperElement;
			var SafeValue = value.replace( /[^0-9a-zA-Z ]/g, '' ).replace( /  /g, ' ' ).replace( / /g, '_' );

			// First make sure all field grouping wrappers for a conditional input are hidden and have eComm set to off
			$$( 'div.conditional_' + id ).each( function( item, index ) {
				if( item.id != 'conditional___' + SafeValue ){
					item	.addClass( 'hide' );
					$$( 'div.conditional_' + id + ' input.eCommOpen' ).each( function( item, index ) {
						item.value = '';
					});
					$$( 'div.conditional_' + id + ' select.eCommFixed' ).each( function( item, index ) {
						item.options[0].selected = true;
					});
				};
				$$( 'div.conditional_' + id ).removeClass( 'eComm_On' );
			});
			this.UpdateTotal();

			// Then, if the specified field grouping wrapper exists for the selected option, make it visible and update it's eComm status if needed
			if( $( 'conditional___' + SafeValue ) ) {
				WrapperElement = $( 'conditional___' + SafeValue );
				WrapperElement.removeClass( 'hide' );
				if( $( 'BaseHasEComm' ).value == false && WrapperElement.hasClass( 'eComm_toggle' ) ) {
					WrapperElement.addClass( 'eComm_On' );
				};
			};

			// Check if either the base form has eComm or if any active conditionals have eComm and display eComm fields as needed
			if( $( 'BaseHasEComm' ).value == true || $$( 'div.eComm_On' ).length > 0 ) {
				$( 'eComm_wrapper' ).removeClass( 'hide' );
				$( 'eComm' ).value = 1;
			} else if( $( 'eComm_wrapper' ) ) {
				$( 'eComm_wrapper' ).addClass( 'hide' );
				$( 'eComm' ).value = 0;
			};

		},

		UpdateSpecialRadios: function( id ) {

			this.SpecialRadios.each( function( item, index ) {
				item.getParent( 'li' ).removeClass( 'active' );
			});
			$( id ).getParent( 'li' ).addClass( 'active' );

		}

	});
	SetupFormControls.implement( new Options );


	/*
		FormValidationAndProcessing - Handles functionality for client-side form validation and processing
	*/
	var FormValidationAndProcessing = new Class ({

		options: {

			FormClass:		'form.ContentForm'

		},

		initialize: function( options ) {

			this.setOptions( options );

			this.Forms			= $$( this.options.FormClass );
			this.SlideFx			= new Fx.Scroll( window, { offset: { 'y': -10 } } );
			this.FocusElement		= '';

			// Set-up eComm-Open input event
			this.Forms.each( function( item, index ) {
				item.addEvent( 'submit', function( event ) {

					event.stop();

					if( this.ValidateForm( item.id ) ) {

						var SubmissionRequest = new Request.HTML( {
							method:		'post',
							url:			relative_path + 'ajax_processing.cfm?AJAXRequest=content_form',
							evalScripts:	true,
							update:		item.id + '_Wrapper',
							data:		$( item.id ),
							onRequest:	function() {
											$( 'Submit_' + item.id ).addClass( 'hide' );
											$( 'Wait_' + item.id ).removeClass( 'hide' );
										},
							onComplete:	function( html ) {
											if ( typeof( StartFormControls ) != "undefined" ) {
												StartFormControls.initialize();
												this.initialize();
											}
											if( $( 'error_eCommTransaction_h2' ) ) {
												this.SlideFx.toElement( 'error_eCommTransaction_h2' );
											} else if( $( 'top' ) ) {	/*-- kris@o3world.com  nov 9 '11  this should have always been in an else clause --*/
												var myFxTop = new Fx.Scroll( window ).toElement( 'top' );
											}

											/*-- webtrends --*/
											webTrendsFinalize( );

										}.bind( this ),
							onFailure:	function() {
											// If AJAX fails for any reason, force a normal form submission and let server side validation see if there are any real errors
											item.submit();
										}
						}).send();

					};

				}.bind( this ));

			}.bind( this ));

		},

		ValidateForm: function( FormID ) {

			this.FocusElement		= '';
			var InHiddenConditional	= false;
			var FieldsToCheck		= $$( '#' + FormID + ' .CheckMe' );

			// Reset all error messages
			FieldsToCheck.each( function( item, index ) {
				$( 'error_' + item.id ).addClass( 'hide' );
			});
			$$( '.billing' ).each( function( item, index ) {
				$( 'error_' + item.id ).addClass( 'hide' );
			});

			FieldsToCheck.each( function( item, index ) {

				InHiddenConditional = false;

				// Check if this input is current in part of a non-selected (invisible) conditional group
				if( item.getParent( 'div' ).getParent( 'div.conditional_wrapper' ) ) {

					var ThisWrapper = item.getParent( 'div' ).getParent( 'div.conditional_wrapper' );

					if( $( ThisWrapper.get( 'rel' ) ).get('tag') == 'select' ) {
						if( ThisWrapper.id.split( '___' )[1] != $( ThisWrapper.get( 'rel' ) ).value.replace( /[^0-9a-zA-Z ]/g, '' ).replace( /  /g, ' ' ).replace( / /g, '_' ) ) {
							InHiddenConditional = true; // this is a hidden seclect
						}
					} else if( $( ThisWrapper.get( 'rel' ) ).get('tag') == 'input' && !$( ThisWrapper.get( 'rel' ) ).checked ) {
						InHiddenConditional = true; //this is a non-selected radio button
					}

				}

				if( !InHiddenConditional ) {

					// Validate min lengths

					if( !item.hasClass( 'eCommOpen ' ) && item.get( 'min' ) && item.value.length > 0 && item.value < Number( item.get( 'min' ) ) ) {

						$( 'error_' + item.id ).removeClass( 'hide' );
						if( this.FocusElement == '' ) { this.FocusElement = item.id; }

					// Validate all required inputs
					} else if( item.hasClass( 'required' ) ) {

						if( item.hasClass( 'eCommOpen' ) && !( /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/.test( item.value ) ) || ( item.get( 'min' ) && item.value < Number( item.get( 'min' ) ) ) ) {				// eComm-Open

							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }

						} else if( item.get( 'tag' ) == 'select' && item.value == '' ) {			// Selects

							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }

						} else if( item.hasClass( 'multiple' ) ) {							// Checkboxes, Radios

							var ElementChecked = false;
							for( var i = 1; i <= item.get( 'rel' ); i++ ) {
								if( $( item.name + '_' + i ).checked ) {
									ElementChecked = true;
								};
							};
							if( !ElementChecked ) {
								$( 'error_' + item.id ).removeClass( 'hide' );
								if( this.FocusElement == '' ) { this.FocusElement = item.name + '_1'; }
							};

						} else if( item.value == '' ) {									// Text and textareas (blank)

							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }

						} else if( item.hasClass( 'validate' ) ) {							// Text and textareas (validation)

							if ( item.hasClass( 'Numeric' ) && !( /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/.test( item.value ) ) ) {
								$( 'error_' + item.id ).removeClass( 'hide' );
								if( this.FocusElement == '' ) { this.FocusElement = item.id; }
							} else if ( item.hasClass( 'Email' ) && !( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test( item.value ) ) ) {
								$( 'error_' + item.id ).removeClass( 'hide' );
								if( this.FocusElement == '' ) { this.FocusElement = item.id; }
							} else if ( item.hasClass( 'Phone' ) && ( !( /^([0-9]{3}-)?([0-9]{3}-){1}([0-9]{4}){1}$/.test( item.value ) ) && !( /^\d{10}/.test( item.value ) ) ) ) {
								$( 'error_' + item.id ).removeClass( 'hide' );
								if( this.FocusElement == '' ) { this.FocusElement = item.id; }
							} else if ( item.hasClass( 'Zip' ) && !( /^([0-9]{5})(-[0-9]{4})?$/.test( item.value ) ) ) {
								$( 'error_' + item.id ).removeClass( 'hide' );
								if( this.FocusElement == '' ) { this.FocusElement = item.id; }
							} else if ( item.hasClass( 'Date' ) && !( checkDate( item.value ) ) ) {
								$( 'error_' + item.id ).removeClass( 'hide' );
								if( this.FocusElement == '' ) { this.FocusElement = item.id; }
							}

						}

					// Validate all non-required inputs that still take validation
					} else if( item.hasClass( 'validate' ) ) {

						if( item.hasClass( 'eCommOpen' ) && ( /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/.test( item.value ) ) && item.get( 'min' ) && item.value < Number( item.get( 'min' ) )  ) {
							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }
						} else if ( item.hasClass( 'Numeric' ) && item.value != '' && !( /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/.test( item.value ) ) ) {
							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }
						} else if ( item.hasClass( 'Email' ) && item.value != '' && !( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test( item.value ) ) ) {
							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }
						} else if ( item.hasClass( 'Phone' ) && item.value != '' && ( !( /^([0-9]{3}-)?([0-9]{3}-){1}([0-9]{4}){1}$/.test( item.value ) ) && !( /^\d{10}/.test( item.value ) ) ) ) {
							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }
						} else if ( item.hasClass( 'Zip' ) && item.value != '' && !( /^([0-9]{5})(-[0-9]{4})?$/.test( item.value ) ) ) {
							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }
						} else if ( item.hasClass( 'Date' ) && item.value != '' && !(checkDate( item.value ) ) ) {
							$( 'error_' + item.id ).removeClass( 'hide' );
							if( this.FocusElement == '' ) { this.FocusElement = item.id; }
						}

					} else if( item.id == "eCommerceTotal" && parseInt( item.get( 'text' ).replace( /[^0-9]/g, "" ), 10 ) == 0 ) {
							/*-- kris@o3world.com  nov 9 '11 --*/
						$( 'error_' + item.id ).removeClass( 'hide' );
						if( this.FocusElement == '' ) { this.FocusElement = item.id; }
					}

				}

			}.bind( this ));

			// Validate Billing Fields
			if( $( 'eComm' ) && $( 'eComm' ).value == 1 ) {

				if( $( 'BillingFirstName' ).value == '' ) {
					$( 'error_BillingFirstName' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingFirstName'; }
				}
				if( $( 'BillingLastName' ).value == '' ) {
					$( 'error_BillingLastName' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingLastName'; }
				}
				if( $( 'BillingAddress' ).value == '' ) {
					$( 'error_BillingAddress' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingAddress'; }
				}
				if( $( 'BillingCity' ).value == '' ) {
					$( 'error_BillingCity' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingCity'; }
				}
				if( $( 'BillingState' ).value == '' ) {
					$( 'error_BillingState' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingState'; }
				}
				if( $( 'BillingZip' ).value == '' || !( /^([0-9]{5})(-[0-9]{4})?$/.test( $( 'BillingZip' ).value ) ) ) {
					$( 'error_BillingZip' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingZip'; }
				}
				if( $( 'BillingPhone' ).value == '' || ( !( /^([0-9]{3}-)?([0-9]{3}-){1}([0-9]{4}){1}$/.test( $( 'BillingPhone' ).value ) ) && !( /^\d{10}/.test( $( 'BillingPhone' ).value ) ) ) ) {
					$( 'error_BillingPhone' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingPhone'; }
				}
				if( !( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test( $( 'BillingEmail' ).value ) ) ) {
					$( 'error_BillingEmail' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'BillingEmail'; }
				}
				if( !$( 'CardType_1' ).checked && !$( 'CardType_2' ).checked && !$( 'CardType_3' ).checked && !$( 'CardType_4' ).checked ) {
					$( 'error_CardType_0' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'CardType_1'; }
				}

				if( $( 'CardNumber' ).value == '' || !( /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/.test( $( 'CardNumber' ).value ) ) ) {
					$( 'error_CardNumber' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'CardNumber'; }
				}
				if( $( 'CardExpMonth' ).value == '' ) {
					$( 'error_CardExpMonth' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'CardExpMonth'; }
				}
				if( $( 'CardExpYear' ).value == '' ) {
					$( 'error_CardExpYear' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'CardExpYear'; }
				}
				if( !( /^\d+/.test( $( 'CardCVV2' ).value ) ) ) {
					$( 'error_CardCVV2' ).removeClass( 'hide' );
					if( this.FocusElement == '' ) { this.FocusElement = 'CardCVV2'; }
				}

			};

			// Finally...
			if( this.FocusElement != '' ) {		// One or more issues were found, scroll to the first field in question, return false
				this.SlideFx.toElement( this.FocusElement );
				$( this.FocusElement ).focus();
				return false;

			} else {							// No issues found.  Against my better judgment, return true to submit the form
				return true;
			};

		}

	});
	FormValidationAndProcessing.implement( new Options );


	/*
		SendToAFriendValidation - form validation class for Send To A Friend
	*/
	var SendToAFriendValidation = new Class ({

		options: {

			FormID:		'SendToAFriendForm',
			CheckClass:	'.CheckMe',
			ErrorClass:	'.error'

		},

		initialize: function( options ) {

			this.setOptions( options );

			this.SendToAFriendForm	=  $( this.options.FormID );
			this.FieldsToCheck		= $$( this.options.CheckClass );
			this.ErrorMessages		= $$( this.options.ErrorClass );

			if( this.SendToAFriendForm ) {

				this.SendToAFriendForm.addEvent( 'submit', function( event ) {

					event.stop();
					this.ValidateForm();

				}.bind( this ));

			};
		},

		ValidateForm: function() {

			var FirstError		= '';
			var ValidSubmission	= true;

			this.ErrorMessages.addClass( 'hide' );

			this.FieldsToCheck.each( function( item, index ) {

				if( item.value == '' ) {
					if( $( 'error_' + item.id ) ) {
						ValidSubmission = false;
						$( 'error_' + item.id ).removeClass( 'hide' );
						if( FirstError == '' ) { FirstError = item; };
					};
				} else if ( item.hasClass( 'Email' ) && !checkEmail( item ) ) {
					if( $( 'error_' + item.id ) ) {
						ValidSubmission = false;
						$( 'error_' + item.id ).removeClass( 'hide' );
						if( FirstError == '' ) { FirstError = item; };
					};
				} else if( $( 'TheField' ).value != "" ) {
					ValidSubmission = false;
				};

			}.bind( this ));

			if( ValidSubmission ) {

				var MyRequest = new Request( {
					method:		'post',
					url:			relative_path + 'ajax_processing.cfm',
					onRequest: 	function() {
									$( 'Submit_ContentForm' ).addClass( 'hide' );
									$( 'Wait_ContentForm' ).removeClass( 'hide' );
								},
					onSuccess:	function() {
									$( 'Wait_ContentForm' ).addClass( 'hide' );
									$( 'ContentForm_Form' ).addClass( 'hide' );
									$( 'ContentForm_Response' ).removeClass( 'hide' );

									/*-- webtrends --*/
									webTrendsFinalize( );

								},
					onFailure:	function() {
									$( 'Wait_ContentForm' ).addClass( 'hide' );
									$( 'Submit_ContentForm' ).removeClass( 'hide' );
									$( 'error_Captcha' ).removeClass( 'hide' );
									Recaptcha.reload();
								}
				} ).send( { data: $( 'SendToAFriendForm' ) } );

			} else {

				if( FirstError != '' ) {
					FirstError.focus();
				};

			};

		}

	});
	SendToAFriendValidation.implement( new Options );


	/*
		SearchValidation - Sets up search validation actions
	*/
	var SearchValidation = new Class ({

		options: {

			SearchForm:		'SiteSearch',
			SearchFormInput:	'Keywords'

		},

		initialize: function( options ) {

			this.setOptions( options );

			this.SearchForm		=  $( this.options.SearchForm );
			this.SearchFormInput	=  $( this.options.SearchFormInput );

			if( this.SearchForm && this.SearchFormInput ) {
				this.SearchForm.addEvent( 'submit', function( event ) {

					event.stop();

					if( this.SearchFormInput.value == "" || this.SearchFormInput.value == this.SearchFormInput.title ) {
						alert( 'Please enter your search terms.' );
						this.SearchFormInput.focus();
					} else {
						this.SearchForm.submit();
					};

				}.bind( this ));
			};

		}

	});
	SearchValidation.implement( new Options );


	/*
		HomepageLearnMore - Sliding Functionality for 'read more' & 'read less' buttons on home page
	*/
	var HomepageLearnMore = new Class ({

		options: {

			InnerMessageWrap:	'message',
			OutterMessageWrap:	'message_wrap',
			ReadMoreLink:		'message_read_more',
			ReadLessLink:		'message_read_less',
			MaxHeight:		447

		},

		initialize: function( options ) {

			this.setOptions( options );

			this.InnerMessageWrap	=  $( this.options.InnerMessageWrap );
			this.OutterMessageWrap	=  $( this.options.OutterMessageWrap );
			this.ReadMoreLink		=  $( this.options.ReadMoreLink );
			this.ReadLessLink		=  $( this.options.ReadLessLink );
			this.MaxHeight			=     this.options.MaxHeight;

			if( this.InnerMessageWrap && this.OutterMessageWrap && this.ReadMoreLink && this.ReadLessLink ) {

				this.InnerMessageWrap.set( { tween: {  duration: 350 } } );
				//this.OutterMessageWrap.set( { tween: { duration: 350 } } );

				this.ReadMoreLink.addEvent( 'click', function( event ) {
					this.InnerMessageWrap.tween( 'height', this.MaxHeight + 'px' );
					//this.OutterMessageWrap.tween( 'padding-bottom', '15px' );
					this.ReadMoreLink.setStyle( 'display', 'none' );
					this.ReadLessLink.setStyle( 'display', 'block' );
					event.stop();
				}.bind( this ));

				this.ReadLessLink.addEvent( 'click', function( event ) {
					this.InnerMessageWrap.tween( 'height', '0' );
					//this.OutterMessageWrap.tween( 'padding-bottom', '0' );
					this.ReadMoreLink.setStyle( 'display', 'block' );
					this.ReadLessLink.setStyle( 'display', 'none' );
					event.stop();
				}.bind( this ));

			};

		}

	});
	HomepageLearnMore.implement( new Options );


	/*
		@Class:		simpleSlides
		@Author:		Brandon Gray for O3 World 2010
		@Brief:		Creates a basic fade out, fade in slide show of images.
		@Requirements:	Mootools 1.2
	*/
	var simpleSlides = new Class({

		initialize: function() {

			this.images 	= $$( '#home_slides a' );
			this.pos 		= 0;
			this.total	= this.images.length;
			this.timer;

			if ( this.total != 1 ) {
				this.timer = this.fadeOut.bind( this ).periodical( 6000 );
				this.images.each( function( item ) {
					item.set( 'morph', {
						duration: 750
					});
				});
			};
		},

		fadeOut: function() {

			this.timer = $clear( this.timer );
			this.images[ this.pos ].morph({
				opacity: 0,
				onComplete: function() {
					( this.pos != ( this.total - 1 ) ) ? this.pos++ : this.pos = 0;
					this.fadeIn();
				}.bind( this )

			});

		},

		fadeIn: function() {

			this.images[ this.pos ].morph({

				opacity: 1,
				onComplete: function(){
					this.timer = this.fadeOut.bind( this ).periodical( 6000 );
				}.bind( this )

			});

		}

	});

/*
	Rotator class (based on Featured class)
*/
var Rotator = new Class ({

	initialize: function( parentId )  {

		this.parentId		= parentId;
		this.calloutId		= this.parentId.substr( this.parentId.lastIndexOf( '_' ) + 1 );
		this.childClass	= 'rotator';
		this.startButton	= $( 'start_button_' + this.calloutId );
		this.stopButton	= $( 'stop_button_' + this.calloutId );
		this.prevButton	= $( 'prev_button_' + this.calloutId );
		this.nextButton	= $( 'next_button_' + this.calloutId );
		this.contentDivs	= $$( '#' + this.parentId + ' .' +  this.childClass );
		this.pos			= 0;
		this.total		= this.contentDivs.length;
		this.delayTime 	= 6000;
		this.timer		= null;

		if ( this.startButton ) {
			this.startButton.addEvent( 'click', function( event ) {
				this.startRotator();
				event.stop();
			}.bind(this));
		}
		if ( this.stopButton ) {
			this.stopButton.addEvent( 'click', function( event ) {
				this.stopRotator();
				event.stop();
			}.bind(this));
		}
		if ( this.prevButton ) {
			this.prevButton.addEvent( 'click', function( event ) {
				this.prev();
				event.stop();
			}.bind(this));
		}
		if ( this.nextButton ) {
			this.nextButton.addEvent( 'click', function( event ) {
				this.next();
				event.stop();
			}.bind(this));
		}

		var videos = $$( '.rotator_wrap a[rel*=lightbox]' );
		videos.each( function( element, index ) {
			element.addEvent( 'click', function( event ) {
				this.stopRotator();
				event.stop();
			}.bind(this));
		}.bind(this));

		// If the control bar is present we need to account for it's height
		if ( $$( '.rotator_buttons' )[ 0 ] ) {
			this.setHeight();
		} else {
			this.timer = this.updateCount.bind( this ).periodical( this.delayTime );
		};

	},

	setHeight: function() {

		var maxHeight = null;

		this.contentDivs.each( function( element, index ) {

			var curHeight = element.measure( function() {
				return this.getComputedSize().totalHeight;
			});

			if ( curHeight > maxHeight ) {
				maxHeight = curHeight;
			}
		});

		heightToSet = maxHeight + 36;

		$( this.parentId ).setStyle( 'height', heightToSet );

		this.timer = this.updateCount.bind( this ).periodical( this.delayTime );
	},

	updateCount: function(  ) {

		( this.pos != ( this.total - 1 ) ) ? this.pos++ : this.pos = 0;
		this.setContent();

	},

	prev: function(  ) {

		( this.pos != 0 ) ? this.pos-- : this.pos = this.total - 1;
		this.setContent();
		this.stopRotator();
		return false;

	},

	next: function(  ) {

		this.updateCount();
		this.stopRotator();
		return false;

	},

	setContent: function() {

		for ( var k = 0; k < this.contentDivs.length; k++ ) {

			this.contentDivs[ k ].setStyle( 'display', 'none' );
			this.contentDivs[ k ].setStyle( 'opacity', '0' );

		};

		this.contentDivs[ this.pos ].setStyle( 'display', 'block' );
		this.contentDivs[ this.pos ].fade( '1' );

	},

	startRotator: function() {
		if ( this.startButton ) {
			this.startButton.setStyle( 'display', 'none' );
		}
		if ( this.stopButton ) {
			this.stopButton.setStyle( 'display', 'block' );
		}
		this.timer = this.updateCount.bind( this ).periodical( this.delayTime );
		return false;

	},

	stopRotator: function() {

		if ( this.stopButton ) {
			this.stopButton.setStyle( 'display', 'none' );
		}
		if ( this.startButton ) {
			this.startButton.setStyle( 'display', 'block' );
		}
		$clear( this.timer );
		return false;

	}

});


function stopRotatorFromFlash() {

	// Stop the rotators
	for ( var i = 0, len = rotators.length; i < len; i++ ) {
		rotators[ i ].stopRotator();
	};

}

// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [END] Classes \\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\



// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [START] 3rd Party //
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


	/*
		@Class:		moopop 1.1
		@Author:		copyright (c) 2007-2008 by gonchuki - http://blog.gonchuki.com
		@License:		This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License. http://creativecommons.org/licenses/by-sa/3.0/
		@Brief:		Unobtrusive javascript popups via late binding
		@Example: 	<a href="print.cfm" rel="popup[765, 600]">Print This</a>
		@Requirements:	Mootools 1.2
	*/
var moopop={width:0,height:0,captureByRel:function(attrVal,parent){this.capture((parent||document).getElements('a[rel*='+(attrVal||'popup')+']'));},capture:function(el,width,height){if($defined(width)&&$defined(height)){this.width=width;this.height=height;}
switch($type(el)){case'string':el=$$(el);case'element':case'array':$splat(el).each(this.add_pop_to,this);}
this.width=null;this.height=null;},add_pop_to:function(el){el.addEvent('click',function(e){e.stop();this.popup(el);}.bind(this));var size=el.get('rel').match(/\[(\d+),\s*(\d+)/)||['',this.width,this.height];var resizable=el.get('rel').match(/,(r)/)||[];if(size[1])el.store('popupprops','top=0, left=0, scrollbars=yes, width='+size[1]+', height='+size[2]+(resizable[1]?', scrollbars=yes, resizable=yes':''));},popup:function(el){window.open(el.get('href'),el.get('name')||'',el.retrieve('popupprops')||'');}};window.addEvent('domready',function(){moopop.captureByRel('popup');});


	/*
	 * Copyright (c) 2009 Simo Kinnunen.
	 * Licensed under the MIT license.
	 *
	 * @version 1.09i
	*/
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());
	/*!
	 * Cufon
	 * The following copyright notice may not be removed under any circumstances.
	 *
	 * Copyright:
	 * COPYRIGHT Babylon Schrift Kontor 1999. Alle Rechte vorbehalten.
	 */
Cufon.registerFont({"w":143,"face":{"font-family":"corporate e","font-weight":400,"font-stretch":"normal","units-per-em":"270","panose-1":"2 0 5 3 0 0 0 0 0 0","ascent":"216","descent":"-54","x-height":"4","bbox":"-28 -213 245 68","underline-thickness":"13.5","underline-position":"-27","stemh":"17","stemv":"22","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":67},"!":{"d":"18,-186r23,0r-3,136r-18,0xm16,-26r26,0r0,26r-26,0r0,-26","w":59},"\"":{"d":"67,-186v-3,-6,7,-23,19,-14v14,21,-6,53,-5,80r-5,0xm16,-186v-3,-6,8,-23,19,-14v14,21,-5,53,-4,80r-6,0","w":106},"#":{"d":"152,-70r-47,0r-9,70r-17,0r10,-70r-27,0r-11,70r-15,0r9,-70r-45,0r0,-15r47,0r4,-26r-45,0r0,-15r47,0r9,-65r16,0r-9,65r27,0r9,-65r16,0r-9,65r45,0r0,15r-47,0r-3,26r45,0r0,15xm91,-85r3,-26r-27,0r-4,26r28,0","w":157},"$":{"d":"66,-91v-36,-15,-59,-27,-44,-77v12,-22,37,-25,44,-25r0,-20r12,0r0,20v16,2,25,11,29,16r0,-14r16,0r0,52r-15,0v3,-20,-22,-42,-30,-38r0,67v35,18,45,15,53,58v3,13,-16,58,-53,54r0,22r-12,0r0,-22v-21,-3,-30,-12,-36,-19r0,17r-16,0r0,-60r16,0v-2,21,14,42,36,46r0,-77xm78,-14v18,2,47,-35,21,-59v-6,-5,-14,-10,-21,-13r0,72xm66,-177v-22,1,-37,23,-27,42v4,9,11,14,27,21r0,-63"},"%":{"d":"19,0r112,-191r16,0r-112,191r-16,0xm123,-90v49,0,47,89,0,92v-28,3,-38,-39,-37,-47v3,-21,10,-45,37,-45xm122,-75v-27,6,-26,58,1,62v16,2,20,-29,19,-31v-2,-14,-2,-29,-20,-31xm44,-192v45,0,51,86,0,92v-22,2,-43,-40,-37,-47v3,-17,6,-45,37,-45xm63,-146v0,-13,-11,-34,-20,-32v-24,6,-28,56,1,63v14,0,19,-18,19,-31","w":166},"&":{"d":"19,-151v1,-20,11,-37,41,-38v21,0,39,13,39,36v0,21,-16,36,-31,49r39,55v6,-6,6,-22,7,-33r-16,0r0,-15r49,0r0,15r-18,0v1,9,-2,40,-11,48r12,18r20,0r0,16r-35,0r-11,-17v-22,30,-103,26,-99,-31v-4,-14,18,-49,35,-58v-15,-21,-21,-31,-21,-45xm79,-154v-1,-22,-39,-27,-39,1v0,19,10,21,17,33v3,-1,22,-21,22,-34xm27,-49v0,42,55,38,67,19r-43,-60v-5,4,-24,17,-24,41","w":154},"'":{"d":"16,-186v-3,-6,8,-23,19,-14v14,21,-5,53,-4,80r-6,0","w":56},"(":{"d":"52,57v-45,-60,-49,-186,0,-249r16,0v-38,54,-44,182,0,249r-16,0","w":73},")":{"d":"5,57v44,-56,37,-204,0,-249r16,0v40,50,55,180,0,249r-16,0","w":73},"*":{"d":"65,-154r0,-32r13,0r0,32r31,-10r4,13r-30,9r18,26r-11,8r-18,-26r-19,26r-11,-8r19,-26r-30,-9r4,-13"},"+":{"d":"10,-104r52,0r0,-54r19,0r0,54r53,0r0,18r-53,0r0,54r-19,0r0,-54r-52,0r0,-18"},",":{"d":"14,-29r30,0v4,33,-11,47,-22,65r-15,0r24,-36r-17,0r0,-29","w":56},"-":{"d":"0,-81r56,0r0,14r-56,0r0,-14","w":56},".":{"d":"15,-29r29,0r0,29r-29,0r0,-29","w":59},"\/":{"d":"-14,49r91,-240r16,0r-91,240r-16,0","w":96},"0":{"d":"72,2v-41,0,-65,-34,-63,-95v1,-42,9,-95,63,-95v53,0,71,69,60,126v-2,10,-10,64,-60,64xm72,-172v-29,0,-40,34,-40,79v0,49,11,79,40,79v35,1,42,-52,40,-79v-1,-21,2,-79,-40,-79"},"1":{"d":"32,-156v18,1,39,-13,37,-32r17,0r0,172r26,0r0,16r-75,0r0,-16r27,0r0,-127r-32,0r0,-13"},"2":{"d":"121,-144v-9,53,-69,110,-81,125r70,0r0,-24r17,0r0,43r-111,0r0,-17v31,-35,71,-74,83,-125v0,-18,-13,-28,-30,-28v-20,-4,-40,30,-35,37r-16,0v-1,-32,23,-57,53,-55v11,-5,55,17,50,44"},"3":{"d":"106,-55v-1,-29,-23,-40,-50,-36r0,-18v26,2,42,-10,43,-33v0,-18,-12,-29,-30,-29v-19,0,-30,12,-32,33r-18,0v0,-31,25,-50,53,-50v52,0,66,66,21,87v17,6,31,16,35,46v8,59,-96,78,-112,23v-3,-9,-2,-17,-2,-20r18,0v-4,22,28,43,36,37v23,0,38,-18,38,-40"},"4":{"d":"102,-69r28,0r0,17r-28,0r0,36r18,0r0,16r-59,0r0,-16r20,0r0,-36r-73,0r0,-16r75,-120r19,0r0,119xm81,-69r1,-95r-56,95r55,0"},"5":{"d":"36,-46v0,16,16,31,32,31v16,0,38,-13,38,-50v0,-61,-58,-52,-71,-26r-15,-2r15,-93r84,0r-3,19r-67,0r-8,49v37,-26,87,-5,87,51v0,39,-34,84,-79,66v-19,-7,-30,-21,-31,-45r18,0"},"6":{"d":"16,-63v0,-49,64,-124,70,-130r22,0v-15,16,-33,37,-50,66v41,-11,70,27,67,61v-2,26,-11,68,-55,68v-34,0,-54,-36,-54,-65xm104,-64v1,-6,-5,-49,-34,-49v-18,0,-32,14,-32,49v0,21,1,50,33,50v19,0,35,-20,33,-50"},"7":{"d":"18,-186r113,0r0,16r-84,170r-22,0r84,-166r-74,0r0,24r-17,0r0,-44"},"8":{"d":"72,2v-54,6,-79,-79,-29,-100v-36,-23,-34,-90,29,-90v49,0,72,64,28,90v17,9,24,15,27,45v4,39,-36,57,-55,55xm43,-138v0,28,17,33,29,33v21,5,42,-34,21,-59v-21,-14,-50,-13,-50,26xm72,-89v-20,-1,-34,19,-34,37v0,21,11,38,34,38v22,0,33,-17,33,-38v0,-21,-22,-42,-33,-37"},"9":{"d":"109,-173v54,70,-24,144,-51,180r-23,0v8,-9,37,-41,50,-66v-35,9,-68,-14,-67,-61v1,-60,46,-87,91,-53xm73,-172v-48,5,-42,99,0,99v18,0,33,-14,33,-49v0,-21,-1,-47,-33,-50"},":":{"d":"15,-116r29,0r0,30r-29,0r0,-30xm15,-29r29,0r0,29r-29,0r0,-29","w":59},";":{"d":"14,-29r30,0v4,33,-11,47,-22,65r-15,0r24,-36r-17,0r0,-29xm14,-116r31,0r0,30r-31,0r0,-30","w":56},"<":{"d":"135,-18r-135,-68r0,-19r135,-67r0,17r-117,59r117,60r0,18","w":135},"=":{"d":"10,-125r124,0r0,17r-124,0r0,-17xm10,-82r124,0r0,17r-124,0r0,-17"},">":{"d":"0,-18r0,-18r117,-60r-117,-59r0,-17r135,67r0,19","w":135},"?":{"d":"102,-148v-4,49,-54,37,-48,97r-19,0v-3,-17,7,-55,22,-63v22,-10,34,-55,-2,-56v-8,-3,-31,12,-30,30r-18,-1v-2,-26,26,-52,51,-48v9,-3,46,11,44,41xm35,-26r25,0r0,26r-25,0r0,-26","w":110},"@":{"d":"131,-141v21,0,25,11,30,22r3,-15r16,0v-6,33,-14,55,-18,92v0,1,0,11,9,11v60,-21,56,-151,-35,-151v-59,0,-100,61,-99,118v0,13,3,50,37,72v22,14,45,15,54,15v18,0,71,-13,88,-38r6,8v-35,36,-137,75,-190,-6v-14,-21,-13,-44,-13,-52v3,-49,32,-126,117,-127v48,-1,87,42,87,88v0,35,-19,82,-57,85v-16,1,-23,-13,-21,-26v-20,39,-75,35,-73,-20v1,-35,16,-76,59,-76xm112,-31v30,-2,42,-48,42,-79v0,-12,-7,-22,-20,-22v-31,8,-37,31,-42,73v-2,19,8,26,20,28","w":241},"A":{"d":"84,-193r21,0r55,176r25,0r0,17r-69,0r0,-17r21,0r-13,-43r-66,0r-15,43r22,0r0,17r-63,0r0,-17r23,0xm119,-77r-27,-92r-29,92r56,0","w":187},"B":{"d":"109,-102v43,10,62,71,6,97v-21,10,-74,4,-107,5r0,-17r24,0r0,-157r-24,0r0,-17r70,0v54,-11,90,69,31,89xm116,-141v0,-37,-31,-32,-62,-32r0,64v36,-1,62,6,62,-32xm125,-54v1,-19,-19,-46,-57,-37r-14,0r0,73v34,0,69,4,71,-36","w":159},"C":{"d":"46,-181v36,-25,65,-17,89,5r0,-15r18,0r0,54r-18,0v-2,-20,-11,-39,-44,-40v-40,-2,-55,48,-55,83v0,50,20,80,53,80v37,0,44,-26,46,-51r18,0v1,59,-49,85,-99,62v-45,-20,-43,-84,-43,-92v0,-9,-1,-61,35,-86","w":164},"D":{"d":"8,-191v92,-2,155,-4,159,95v1,27,-21,89,-54,91v-22,8,-72,4,-105,5r0,-17r24,0r0,-157r-24,0r0,-17xm144,-96v0,-61,-24,-79,-89,-77r0,155v55,5,89,-16,89,-78","w":178},"E":{"d":"136,-147r-18,0r0,-27r-64,0r0,65r66,0r0,18r-66,0r0,73r66,0r0,-30r17,0r0,48r-129,0r0,-17r24,0r0,-157r-24,0r0,-17r128,0r0,44","w":146},"F":{"d":"136,-147r-17,0r0,-27r-64,0r0,65r66,0r0,18r-66,0r0,74r28,0r0,17r-74,0r0,-17r23,0r0,-157r-23,0r0,-17r127,0r0,44","w":140},"G":{"d":"44,-180v18,-16,72,-21,91,4r0,-15r17,0r0,54r-18,0v-1,-28,-21,-40,-43,-40v-51,0,-52,28,-56,84v-5,71,49,99,98,63r0,-40r-24,0r0,-17r66,0r0,17r-21,0r0,47v-11,14,-27,27,-62,27v-59,0,-81,-47,-81,-99v0,-9,2,-57,33,-85","w":177},"H":{"d":"54,-109r83,0r0,-65r-23,0r0,-17r69,0r0,17r-24,0r0,157r24,0r0,17r-69,0r0,-17r23,0r0,-75r-83,0r0,75r24,0r0,17r-70,0r0,-17r24,0r0,-157r-24,0r0,-17r70,0r0,17r-24,0r0,65","w":191},"I":{"d":"8,-191r71,0r0,17r-24,0r0,157r24,0r0,17r-71,0r0,-17r24,0r0,-157r-24,0r0,-17","w":87},"J":{"d":"2,6v36,-2,35,-14,35,-52r0,-128r-23,0r0,-17r70,0r0,17r-24,0r0,128v0,48,-10,73,-58,69r0,-17","w":91},"K":{"d":"8,-191r68,0r0,17r-23,0r0,75r74,-75r-20,0r0,-17r65,0r0,17r-23,0r-59,62r64,95r24,0r0,17r-71,0r0,-17r20,0r-51,-82r-23,23r0,59r23,0r0,17r-68,0r0,-17r24,0r0,-157r-24,0r0,-17","w":181},"L":{"d":"55,-18r67,0r0,-30r18,0r0,48r-131,0r0,-17r23,0r0,-157r-23,0r0,-17r70,0r0,17r-24,0r0,156"},"M":{"d":"9,-191r57,0r48,157r53,-157r56,0r0,17r-23,0r0,157r23,0r0,17r-69,0r0,-17r24,0r0,-155r-56,162r-22,0r-50,-161r0,154r24,0r0,17r-65,0r0,-17r23,0r0,-157r-23,0r0,-17","w":231},"N":{"d":"8,-191r51,0r83,155r-1,-138r-24,0r0,-17r66,0r0,17r-24,0r0,174r-19,0r-91,-167r1,150r24,0r0,17r-66,0r0,-17r24,0r0,-157r-24,0r0,-17","w":189},"O":{"d":"149,-164v29,47,31,168,-60,168v-34,0,-52,-20,-59,-30v-31,-46,-31,-168,59,-169v34,0,53,21,60,31xm89,-177v-27,-3,-53,32,-53,82v0,51,18,79,53,81v33,1,62,-41,54,-96v-7,-47,-13,-62,-54,-67","w":178},"P":{"d":"8,-191v65,2,135,-14,137,55v0,8,-2,30,-22,44v-20,13,-41,9,-68,10r0,65r25,0r0,17r-72,0r0,-17r24,0r0,-157r-24,0r0,-17xm55,-99v34,1,66,2,66,-37v0,-4,0,-24,-14,-32v-15,-9,-32,-4,-52,-5r0,74","w":150},"Q":{"d":"147,-167v18,22,29,90,8,130r34,37r-29,0r-16,-19v-8,8,-25,23,-55,23v-34,0,-53,-20,-60,-30v-30,-48,-28,-168,60,-169v32,0,50,19,58,28xm89,-177v-27,-3,-53,32,-53,82v0,51,18,79,53,81v33,1,62,-41,54,-96v-7,-47,-13,-62,-54,-67","w":178},"R":{"d":"152,-140v2,14,-15,50,-40,50r36,73r21,0r0,17r-39,0r-40,-87r-36,0r0,70r23,0r0,17r-69,0r0,-17r24,0r0,-157r-24,0r0,-17v70,2,139,-13,144,51xm128,-140v2,-24,-33,-40,-73,-33r0,68v35,0,70,6,73,-35","w":171},"S":{"d":"9,-145v0,-26,14,-50,55,-50v26,0,32,9,42,19r0,-15r16,0r0,52r-15,0v-2,-18,-12,-35,-40,-38v-23,-3,-41,22,-30,45v22,23,99,34,93,80v2,19,-18,56,-58,56v-28,0,-40,-12,-48,-21r0,17r-15,0r0,-58r15,0v2,23,10,44,46,44v32,0,37,-22,37,-35v0,-61,-98,-25,-98,-96","w":137},"T":{"d":"4,-191r137,0r0,47r-17,0r0,-29r-41,0r0,156r24,0r0,17r-69,0r0,-17r23,0r0,-156r-40,0r0,29r-17,0r0,-47","w":144},"U":{"d":"159,-78v7,71,-55,111,-112,65v-33,-26,-11,-103,-16,-161r-24,0r0,-17r70,0r0,17r-24,0v7,63,-26,156,44,160v6,0,31,0,39,-20v12,-30,3,-96,5,-140r-23,0r0,-17r65,0r0,17r-24,0r0,96","w":189},"V":{"d":"1,-191r68,0r0,17r-21,0r45,147r49,-147r-21,0r0,-17r62,0r0,17r-22,0r-60,176r-21,0r-56,-176r-23,0r0,-17","w":184},"W":{"d":"1,-191r69,0r0,17r-22,0r27,145r39,-162r22,0r37,162r31,-145r-22,0r0,-17r63,0r0,17r-24,0r-39,175r-21,0r-38,-163r-39,163r-22,0r-37,-175r-24,0r0,-17","w":245},"X":{"d":"12,-191r41,0r36,74r30,-57r-20,0r0,-17r65,0r0,17r-23,0r-43,73r44,84r25,0r0,17r-43,0r-40,-84r-37,67r23,0r0,17r-68,0r0,-17r24,0r49,-83r-39,-74r-24,0r0,-17","w":171},"Y":{"d":"0,-191r70,0r0,17r-21,0r35,73r36,-73r-21,0r0,-17r65,0r0,17r-24,0r-47,93r0,64r24,0r0,17r-70,0r0,-17r23,0r0,-63r-46,-94r-24,0r0,-17","w":164},"Z":{"d":"34,-18r77,0r0,-30r18,0r0,48r-123,0r0,-14r93,-159r-70,0r0,26r-17,0r0,-44r115,0r0,14","w":136},"[":{"d":"24,-191r44,0r0,17r-25,0r0,212r25,0r0,18r-44,0r0,-247","w":73},"\\":{"d":"71,5r-61,-196r16,0r61,196r-16,0","w":95},"]":{"d":"49,56r-44,0r0,-18r25,0r0,-211r-25,0r0,-18r44,0r0,247","w":73},"^":{"d":"155,-94r-21,0r-35,-74r-36,74r-21,0r49,-97r17,0","w":196},"_":{"d":"138,56r-141,0r0,-16r141,0r0,16","w":135},"`":{"d":"31,-157r-21,0r-38,-33r26,0","w":67},"a":{"d":"62,-122v-23,0,-28,7,-31,29r-16,0r4,-29v25,-24,103,-25,88,39r0,68r20,0r0,15r-39,0r0,-20v-10,33,-83,29,-80,-16v4,-36,31,-45,78,-53v0,-22,-1,-33,-24,-33xm54,-15v20,0,40,-24,32,-60v-19,2,-57,13,-56,37v0,15,10,23,24,23","w":133},"b":{"d":"83,3v-9,2,-33,-9,-37,-24r-1,21r-20,0r0,-176r-20,0r0,-15r41,0r0,77v7,-13,12,-22,37,-24v32,-2,56,40,53,70v2,13,-12,76,-53,71xm107,-105v-26,-37,-63,-10,-61,37v0,3,-1,26,8,39v27,41,66,-6,60,-39v0,-3,2,-24,-7,-37","w":146},"c":{"d":"11,-66v0,-51,48,-100,84,-57r0,-13r17,0r0,46r-17,0v-4,-23,-6,-31,-28,-31v-25,0,-33,20,-34,55v0,0,-2,52,34,52v13,4,31,-24,28,-31r19,0v-2,24,-11,48,-49,48v-24,0,-54,-25,-54,-69","w":123},"d":{"d":"11,-68v-7,-48,58,-102,90,-46r0,-62r-21,0r0,-15r41,0r0,176r21,0r0,15r-41,0r0,-21v-7,14,-13,23,-38,24v-31,2,-56,-41,-52,-71xm66,-122v-37,10,-43,52,-26,93v28,35,64,7,61,-39v-3,-35,-3,-46,-35,-54","w":149},"e":{"d":"11,-66v-5,-83,99,-100,109,-20r1,20r-88,0v0,4,-3,31,13,44v23,19,45,7,53,-19r20,0v-6,28,-14,38,-52,44v-34,-3,-53,-20,-56,-69xm98,-81v4,-18,-13,-42,-30,-41v-30,4,-29,21,-35,41r65,0","w":132},"f":{"d":"88,-171v-16,-11,-46,-10,-38,24r0,12r32,0r0,16r-32,0r0,104r25,0r0,15r-67,0r0,-15r21,0r0,-104r-20,0r0,-16r20,0v-9,-38,16,-71,59,-55r0,19","w":88},"g":{"d":"17,-91v3,-57,59,-42,112,-44r0,15r-31,-1v14,11,23,39,2,59v-16,15,-47,11,-58,29v0,4,2,5,3,5v28,12,80,-1,79,44v-1,23,-21,45,-58,43v-28,-1,-60,-5,-61,-40v-1,-23,22,-31,32,-34v-8,-2,-18,-3,-18,-15v-1,-13,28,-23,30,-22v-14,-4,-32,-12,-32,-39xm65,-120v-18,0,-23,7,-27,28v1,16,5,28,27,28v16,0,27,-13,27,-29v0,-16,-10,-27,-27,-27xm105,17v-3,-37,-83,-29,-82,1v-5,15,37,29,43,25v6,1,41,-4,39,-26","w":133},"h":{"d":"83,-120v-17,-2,-39,25,-33,48r0,57r20,0r0,15r-62,0r0,-15r21,0r0,-161r-21,0r0,-15r42,0r0,75v22,-37,79,-27,79,22r0,79r21,0r0,15r-62,0r0,-15r20,0v-6,-39,15,-99,-25,-105","w":156},"i":{"d":"50,-135r0,120r20,0r0,15r-62,0r0,-15r21,0r0,-105r-21,0r0,-15r42,0xm24,-188r27,0r0,24r-27,0r0,-24","w":77},"j":{"d":"0,46v21,1,33,-19,33,-42r0,-124r-20,0r0,-15r42,0r0,120v0,22,3,48,-17,62v-16,11,-29,12,-38,10r0,-11xm29,-188r27,0r0,24r-27,0r0,-24","w":81},"k":{"d":"50,-191r0,121r50,-50r-19,0r0,-15r59,0r0,15r-18,0r-36,35r43,70r21,0r0,15r-62,0r0,-15r16,0r-33,-57r-21,22r0,35r18,0r0,15r-60,0r0,-15r21,0r0,-161r-21,0r0,-15r42,0","w":153},"l":{"d":"51,-191r0,176r21,0r0,15r-63,0r0,-15r20,0r0,-161r-20,0r0,-15r42,0","w":78},"m":{"d":"79,-120v-39,0,-28,60,-29,105r18,0r0,15r-59,0r0,-15r20,0r0,-105r-20,0r0,-15r40,0r0,20v6,-23,60,-37,72,0v9,-34,84,-30,75,18v2,26,1,55,1,82r20,0r0,15r-60,0r0,-15r18,0v-6,-39,18,-105,-24,-105v-37,0,-27,61,-28,105r18,0r0,15r-57,0r0,-15r18,0v-6,-38,18,-105,-23,-105","w":223},"n":{"d":"82,-120v-42,0,-31,60,-32,105r19,0r0,15r-60,0r0,-15r20,0r0,-105r-20,0r0,-15r40,0r0,22v6,-19,54,-44,73,-6v11,21,2,71,4,104r21,0r0,15r-60,0r0,-15r18,0v-6,-36,15,-105,-23,-105","w":153},"o":{"d":"125,-68v-5,52,-12,72,-57,72v-24,0,-57,-17,-57,-72v0,-55,33,-71,57,-71v44,0,51,20,57,71xm68,-122v-23,2,-37,20,-35,54v2,36,5,51,35,55v28,-2,35,-20,35,-55v0,-37,-5,-49,-35,-54","w":136},"p":{"d":"139,-68v7,49,-59,104,-90,47r0,62r21,0r0,15r-62,0r0,-15r20,0r0,-161r-20,0r0,-15r41,0r0,21v7,-13,12,-22,37,-24v32,-2,56,41,53,70xm110,-105v-27,-42,-67,2,-61,37v0,3,-1,25,8,39v8,13,20,15,26,15v27,1,35,-33,34,-54v0,-3,1,-23,-7,-37","w":149},"q":{"d":"63,-138v24,2,30,12,37,24r0,-21r41,0r0,15r-20,0r0,161r20,0r0,15r-62,0r0,-15r21,0r0,-62v-7,14,-12,24,-37,24v-32,0,-55,-41,-53,-71v3,-41,18,-66,53,-70xm66,-122v-36,5,-43,52,-26,93v28,40,66,-5,60,-39v6,-11,-16,-63,-34,-54","w":149},"r":{"d":"73,-119v-38,8,-18,56,-23,104r23,0r0,15r-65,0r0,-15r21,0r0,-105r-21,0r0,-15r41,0r0,21v3,-5,11,-23,31,-23v27,0,26,17,25,42r-17,0v0,-9,-1,-27,-15,-24","w":105},"s":{"d":"83,-34v-8,-35,-73,-22,-72,-66v1,-39,50,-51,74,-23r1,-13r14,0r0,44r-14,0v1,-15,-16,-33,-31,-30v-8,-3,-33,15,-21,28v20,23,71,18,71,57v0,42,-66,53,-81,21r-1,17r-14,0r0,-46r14,0v3,18,10,29,36,32v5,2,27,-6,24,-21","w":113},"t":{"d":"47,-119v5,42,-20,124,35,99r0,18v-11,4,-17,4,-23,4v-35,0,-33,-30,-33,-40r0,-81r-20,0r0,-16r20,0r0,-40r21,0r0,40r32,0r0,16r-32,0","w":88},"u":{"d":"68,3v-55,-3,-41,-67,-42,-123r-20,0r0,-15r42,0v6,44,-18,114,24,120v16,3,40,-26,33,-48r0,-57r-20,0r0,-15r41,0r0,120r21,0r0,15r-40,0r0,-23v-2,11,-29,30,-39,26","w":153},"v":{"d":"1,-135r61,0r0,15r-17,0r30,98r32,-98r-18,0r0,-15r55,0r0,15r-20,0r-42,121r-18,0r-42,-121r-21,0r0,-15","w":144},"w":{"d":"1,-135r58,0r0,15r-17,0r20,95r31,-110r23,0r29,112r22,-97r-17,0r0,-15r54,0r0,15r-20,0r-31,121r-20,0r-31,-117r-32,117r-20,0r-30,-121r-19,0r0,-15","w":205},"x":{"d":"12,-135r38,0r26,48r21,-33r-14,0r0,-15r57,0r0,15r-24,0r-32,47r36,58r26,0r0,15r-43,0r-31,-58r-27,43r16,0r0,15r-58,0r0,-15r22,0r38,-57r-29,-48r-22,0r0,-15","w":149},"y":{"d":"1,-135r61,0r0,15r-18,0r30,96r31,-96r-17,0r0,-15r55,0r0,15r-21,0v-19,53,-32,110,-56,159v-6,10,-22,21,-47,19r0,-16v25,3,39,-17,44,-39r-41,-123r-21,0r0,-15"},"z":{"d":"30,-16r59,0r0,-23r16,0r0,39r-101,0r-1,-12r72,-107r-53,0r0,19r-16,0r0,-35r96,0r0,12","w":109},"{":{"d":"23,-67v44,-16,-18,-140,62,-133v-54,7,1,115,-48,133v46,8,-3,126,48,135v-13,-2,-21,2,-34,-11v-28,-27,11,-105,-28,-124","w":95},"|":{"d":"39,68r-16,0r0,-270r16,0r0,270","w":61},"}":{"d":"73,-66v-47,16,22,132,-62,134r0,-2v54,-6,0,-117,47,-133v-47,-11,9,-123,-47,-133v7,-3,21,-2,34,10v28,27,-10,103,28,122r0,2","w":95},"~":{"d":"161,-81v-33,58,-83,-30,-116,19v-16,-16,-4,-31,25,-36v22,1,67,38,82,2","w":196},"\u00a0":{"w":67}}});


	/*	SWFObject v2.2 <http://code.google.com/p/swfobject/>
		is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
	*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();


	/*
		mediaboxAdvanced v1.2.0 - The ultimate extension of Slimbox and Mediabox; an all-media script
		updated 2010.01.24
		(c) 2007-2009 John Einselen <http://iaian7.com>
			based on
		Slimbox v1.64 - The ultimate lightweight Lightbox clone
		(c) 2007-2008 Christophe Beyls <http://www.digitalia.be>
		MIT-style license.
	*/
	/* doug@o3world - note: must get rid of removeEvents("click") for rotator to work properly */
var Mediabox;(function(){var A,h,P,H,O,n,F,l,m,k,J,y,t,z=new Image(),V=new Image(),r=false,w=false,S,b,j,c,U,E,M,T,W,e,D,Q,G,x,B,o,i="none",f,d="mediaBox",C;window.addEvent("domready",function(){$(document.body).adopt($$([S=new Element("div",{id:"mbOverlay"}).addEvent("click",N),b=new Element("div",{id:"mbCenter"})]).setStyle("display","none"));j=new Element("div",{id:"mbImage"}).injectInside(b);c=new Element("div",{id:"mbBottom"}).injectInside(b).adopt(new Element("a",{id:"mbCloseLink",href:"#"}).addEvent("click",N),e=new Element("a",{id:"mbNextLink",href:"#"}).addEvent("click",g),T=new Element("a",{id:"mbPrevLink",href:"#"}).addEvent("click",K),E=new Element("div",{id:"mbTitle"}),W=new Element("div",{id:"mbNumber"}),M=new Element("div",{id:"mbCaption"}));y={overlay:new Fx.Tween(S,{property:"opacity",duration:360}).set(0),image:new Fx.Tween(j,{property:"opacity",duration:360,onComplete:I}),bottom:new Fx.Tween(c,{property:"opacity",duration:240}).set(0)}});Mediabox={close:function(){N()},open:function(Z,Y,X){A=$extend({loop:false,stopKey:true,overlayOpacity:0.6,resizeOpening:true,resizeDuration:240,resizeTransition:false,initialWidth:320,initialHeight:180,defaultWidth:640,defaultHeight:360,showCaption:true,showCounter:true,counterText:"({x} of {y})",imgBackground:false,imgPadding:70,scriptaccess:"true",fullscreen:"true",fullscreenNum:"1",autoplay:"true",autoplayNum:"1",autoplayYes:"yes",volume:"100",medialoop:"true",bgcolor:"#000000",wmode:"opaque",useNB:true,playerpath:"/js/NonverBlaster.swf",controlColor:"0xFFFFFF",controlBackColor:"0x000000",showTimecode:"false",JWplayerpath:"/js/player.swf",backcolor:"000000",frontcolor:"999999",lightcolor:"000000",screencolor:"000000",controlbar:"over",controller:"true",flInfo:"true",revverID:"187866",revverFullscreen:"true",revverBack:"000000",revverFront:"ffffff",revverGrad:"000000",usViewers:"true",ytBorder:"0",ytColor1:"000000",ytColor2:"333333",ytQuality:"&ap=%2526fmt%3D18",ytRel:"0",ytInfo:"1",ytSearch:"0",vuPlayer:"basic",vmTitle:"1",vmByline:"1",vmPortrait:"1",vmColor:"ffffff"},X||{});if((Browser.Engine.gecko)&&(Browser.Engine.version<19)){r=true;A.overlayOpacity=1;S.className="mbOverlayFF"}if(typeof Z=="string"){Z=[[Z,Y,X]];Y=0}h=Z;A.loop=A.loop&&(h.length>1);if((Browser.Engine.trident)&&(Browser.Engine.version<5)){w=true;S.className="mbOverlayIE";S.setStyle("position","absolute");L()}q();s(true);n=window.getScrollTop()+(window.getHeight()/2);l=window.getScrollLeft()+(window.getWidth()/2);y.resize=new Fx.Morph(b,$extend({duration:A.resizeDuration,onComplete:R},A.resizeTransition?{transition:A.resizeTransition}:{}));b.setStyles({top:n,left:l,width:A.initialWidth,height:A.initialHeight,marginTop:-(A.initialHeight/2),marginLeft:-(A.initialWidth/2),display:""});y.overlay.start(A.overlayOpacity);return a(Y)}};Element.implement({mediabox:function(X,Y){$$(this).mediabox(X,Y);return this}});Elements.implement({mediabox:function(X,aa,Z){aa=aa||function(ab){x=ab.rel.split(/[\[\]]/);x=x[1];return[ab.href,ab.title,x]};Z=Z||function(){return true};var Y=this;Y.addEvent("contextmenu",function(ab){if(this.toString().match(/\.gif|\.jpg|\.png/i)){ab.stop()}});Y.addEvent("click",function(){var ac=Y.filter(Z,this);var ad=[];var ab=[];ac.each(function(af,ae){if(ab.indexOf(af.toString())<0){ad.include(ac[ae]);ab.include(ac[ae].toString())}});return Mediabox.open(ad.map(aa),ab.indexOf(this.toString()),X)});return Y}});function L(){S.setStyles({top:window.getScrollTop(),left:window.getScrollLeft()})}function q(){k=window.getWidth();J=window.getHeight();S.setStyles({width:k,height:J})}function s(X){["object",window.ie?"select":"embed"].forEach(function(Z){Array.forEach(document.getElementsByTagName(Z),function(aa){if(X){aa._mediabox=aa.style.visibility}aa.style.visibility=X?"hidden":aa._mediabox})});S.style.display=X?"":"none";var Y=X?"addEvent":"removeEvent";if(w){window[Y]("scroll",L)}window[Y]("resize",q);document[Y]("keydown",u)}function u(X){switch(X.code){case 27:case 88:case 67:N();break;case 37:case 80:K();break;case 39:case 78:g()}if(A.stopKey){return false}}function K(){return a(H)}function g(){return a(O)}function a(X){if(X>=0){j.set("html","");P=X;H=((P||!A.loop)?P:h.length)-1;O=P+1;if(O==h.length){O=A.loop?0:-1}v();b.className="mbLoading";if(!h[X][2]){h[X][2]=""}Q=h[X][2].split(" ");G=Q.length;if(G>1){B=(Q[G-2].match("%"))?(window.getWidth()*((Q[G-2].replace("%",""))*0.01))+"px":Q[G-2]+"px";o=(Q[G-1].match("%"))?(window.getHeight()*((Q[G-1].replace("%",""))*0.01))+"px":Q[G-1]+"px"}else{B="";o=""}D=h[X][0];D=encodeURI(D).replace("(","%28").replace(")","%29");U=h[P][1].split("::");if(D.match(/quietube\.com/i)){f=D.split("v.php/");D=f[1]}else{if(D.match(/\/\/yfrog/i)){i=(D.substring(D.length-1));if(i.match(/b|g|j|p|t/i)){i="image"}if(i=="s"){i="flash"}if(i.match(/f|z/i)){i="video"}D=D+":iphone"}}if(D.match(/\.gif|\.jpg|\.png|twitpic\.com/i)||i=="image"){i="img";D=D.replace(/twitpic\.com/i,"twitpic.com/show/full");t=new Image();t.onload=p;t.src=D}else{if(D.match(/\.flv|\.mp4/i)||i=="video"){i="obj";B=B||A.defaultWidth;o=o||A.defaultHeight;if(A.useNB){t=new Swiff(""+A.playerpath+"?mediaURL="+D+"&allowSmoothing=true&autoPlay="+A.autoplay+"&buffer=6&showTimecode="+A.showTimecode+"&loop="+A.medialoop+"&controlColor="+A.controlColor+"&controlBackColor="+A.controlBackColor+"&defaultVolume="+A.volume+"&scaleIfFullScreen=true&showScalingButton=true&crop=false",{id:"MediaboxSWF",width:B,height:o,params:{wmode:A.wmode,bgcolor:A.bgcolor,allowscriptaccess:A.scriptaccess,allowfullscreen:A.fullscreen}})}else{t=new Swiff(""+A.JWplayerpath+"?file="+D+"&backcolor="+A.backcolor+"&frontcolor="+A.frontcolor+"&lightcolor="+A.lightcolor+"&screencolor="+A.screencolor+"&autostart="+A.autoplay+"&controlbar="+A.controlbar,{id:"MediaboxSWF",width:B,height:o,params:{wmode:A.wmode,bgcolor:A.bgcolor,allowscriptaccess:A.scriptaccess,allowfullscreen:A.fullscreen}})}p()}else{if(D.match(/\.mp3|\.aac|tweetmic\.com|tmic\.fm/i)||i=="audio"){i="obj";B=B||A.defaultWidth;o=o||"20px";if(D.match(/tweetmic\.com|tmic\.fm/i)){D=D.split("/");D[4]=D[4]||D[3];D="http://media4.fjarnet.net/tweet/tweetmicapp-"+D[4]+".mp3"}if(A.useNB){t=new Swiff(""+A.playerpath+"?mediaURL="+D+"&allowSmoothing=true&autoPlay="+A.autoplay+"&buffer=6&showTimecode="+A.showTimecode+"&loop="+A.medialoop+"&controlColor="+A.controlColor+"&controlBackColor="+A.controlBackColor+"&defaultVolume="+A.volume+"&scaleIfFullScreen=true&showScalingButton=true&crop=false",{id:"MediaboxSWF",width:B,height:o,params:{wmode:A.wmode,bgcolor:A.bgcolor,allowscriptaccess:A.scriptaccess,allowfullscreen:A.fullscreen}})}else{t=new Swiff(""+A.JWplayerpath+"?file="+D+"&backcolor="+A.backcolor+"&frontcolor="+A.frontcolor+"&lightcolor="+A.lightcolor+"&screencolor="+A.screencolor+"&autostart="+A.autoplay,{id:"MediaboxSWF",width:B,height:o,params:{wmode:A.wmode,bgcolor:A.bgcolor,allowscriptaccess:A.scriptaccess,allowfullscreen:A.fullscreen}})}p()}else{if(D.match(/\.swf/i)||i=="flash"){i="obj";B=B||A.defaultWidth;o=o||A.defaultHeight;t=new Swiff(D,{id:"MediaboxSWF",width:B,height:o,params:{wmode:A.wmode,bgcolor:A.bgcolor,allowscriptaccess:A.scriptaccess,allowfullscreen:A.fullscreen}});p()}else{if(D.match(/\.mov|\.m4v|\.m4a|\.aiff|\.avi|\.caf|\.dv|\.mid|\.m3u|\.mp3|\.mp2|\.mp4|\.qtz/i)||i=="qt"){i="qt";B=B||A.defaultWidth;o=(parseInt(o)+16)+"px"||A.defaultHeight;t=new Quickie(D,{id:"MediaboxQT",width:B,height:o,container:"mbImage",attributes:{controller:A.controller,autoplay:A.autoplay,volume:A.volume,loop:A.medialoop,bgcolor:A.bgcolor}});p()}else{if(D.match(/\#mb_/i)){i="inline";B=B||A.defaultWidth;o=o||A.defaultHeight;URLsplit=D.split("#");t=$(URLsplit[1]).get("html");p()}else{A.showCaption=false;A.showCounter=false;i="url";B=B||A.defaultWidth;o=o||A.defaultHeight;d="mediaId_"+new Date().getTime();t=new Element("iframe",{src:D,id:d,width:B,height:o,frameborder:0});p()}}}}}}}return false}function p(){if(i=="img"){B=t.width;o=t.height;if(A.imgBackground){j.setStyles({backgroundImage:"url("+D+")",display:""})}else{if(o>=J-A.imgPadding&&(o/J)>=(B/k)){o=J-A.imgPadding;B=t.width=parseInt((o/t.height)*B);t.height=o}else{if(B>=k-A.imgPadding&&(o/J)<(B/k)){B=k-A.imgPadding;o=t.height=parseInt((B/t.width)*o);t.width=B}}if(Browser.Engine.trident){t=$(t)}t.addEvent("mousedown",function(X){X.stop()}).addEvent("contextmenu",function(X){X.stop()});j.setStyles({backgroundImage:"none",display:""});t.inject(j)}}else{if(i=="obj"){if(Browser.Plugins.Flash.version<8){j.setStyles({backgroundImage:"none",display:""});j.set("html",'<div id="mbError"><b>Error</b><br/>Adobe Flash is either not installed or not up to date, please visit <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" title="Get Flash" target="_new">Adobe.com</a> to download the free player.</div>');B=A.DefaultWidth;o=A.DefaultHeight}else{j.setStyles({backgroundImage:"none",display:""});t.inject(j)}}else{if(i=="qt"){j.setStyles({backgroundImage:"none",display:""});t}else{if(i=="inline"){j.setStyles({backgroundImage:"none",display:""});j.set("html",t)}else{if(i=="url"){j.setStyles({backgroundImage:"none",display:""});t.inject(j)}else{j.setStyles({backgroundImage:"none",display:""});j.set("html",'<div id="mbError"><b>Error</b><br/>A file type error has occoured, please visit <a href="iaian7.com/webcode/mediaboxAdvanced" title="mediaboxAdvanced" target="_new">iaian7.com</a> or contact the website author for more information.</div>');B=A.defaultWidth;o=A.defaultHeight}}}}}j.setStyles({width:B,height:o});E.set("html",(A.showCaption)?U[0]:"");M.set("html",(A.showCaption&&(U.length>1))?U[1]:"");W.set("html",(A.showCounter&&(h.length>1))?A.counterText.replace(/{x}/,P+1).replace(/{y}/,h.length):"");if((H>=0)&&(h[H][0].match(/\.gif|\.jpg|\.png|twitpic\.com/i))){z.src=h[H][0].replace(/twitpic\.com/i,"twitpic.com/show/full")}if((O>=0)&&(h[O][0].match(/\.gif|\.jpg|\.png|twitpic\.com/i))){V.src=h[O][0].replace(/twitpic\.com/i,"twitpic.com/show/full")}B=j.offsetWidth;o=j.offsetHeight+c.offsetHeight;if(o>=n+n-10){F=-(n-10)}else{F=-(o/2)}if(B>=l+l-10){m=-(l-10)}else{m=-(B/2)}if(A.resizeOpening){y.resize.start({width:B,height:o,marginTop:F,marginLeft:m})}else{b.setStyles({width:B,height:o,marginTop:F,marginLeft:m});R()}}function R(){y.image.start(1)}function I(){b.className="";if(i!="url"){if(H>=0){T.style.display=""}if(O>=0){e.style.display=""}}else{T.style.display="none";e.style.display="none"}y.bottom.start(1)}function v(){if(t){t.onload=$empty}y.resize.cancel();y.image.cancel().set(0);y.bottom.cancel().set(0);$$(T,e).setStyle("display","none")}function N(){if(P>=0){t.onload=$empty;j.set("html","");for(var X in y){y[X].cancel()}b.setStyle("display","none");y.overlay.chain(s).start(0)}return false}})();Mediabox.scanPage=function(){var a=$$("a").filter(function(b){return b.rel&&b.rel.test(/^lightbox/i)});$$(a).mediabox({},null,function(c){var b=this.rel.replace(/[[]|]/gi," ");var d=b.split(" ");return(this==c)||((this.rel.length>8)&&c.rel.match(d[1]))})};window.addEvent("domready",Mediabox.scanPage);


// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [END] 3rd Party \\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\



// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [START] DOMReady/Load //
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var rotators = null;

window.addEvent( 'domready', function() {

	if ( Browser.Engine.trident4 ) { ie6NavFix(); };

	var SetupSearchValidation = new SearchValidation();

	var InputList = new InputClearAndReplace();

	StartFormControls = new SetupFormControls();

	var SetupFormValidation = new FormValidationAndProcessing();

	var SetupSendToAFriendValidation = new SendToAFriendValidation();

	var SetupHomepageLearnMore = new HomepageLearnMore();

	// if( $( 'message' ) ) { var slides = new simpleSlides(); };

	if ( rotatorWraps = $$( '.rotator_wrap' ) ) {

		rotators = [];

		rotatorWraps.each( function( element, index ) {
			if ( videoDiv = $$( '#' + element.id + ' div.video' ) ) {
				videoDiv.setStyle( 'margin-top', 0);
			}
			rotators[ index ] = new Rotator( element.id );
		});

	};

	if ( $( 'scroller' ) ) {
		$( 'scroller' ).setStyles( {
			'left': $( 'content' ).getCoordinates( $( document.body ) ).right + 20,
			'visibility': 'visible'
		} );
		if( typeof( Cufon ) != 'undefined' ) { if( navigator.userAgent.indexOf( "MSIE 8" ) == -1 ) { Cufon.replace( '#scroller h3' ); } }
		window.addEvent( 'resize', function( ) { $( 'scroller' ).setStyle( 'left', $( 'content' ).getCoordinates( $( document.body ) ).right + 20 ); } );
	}

	if( typeof( addthis ) != "undefined" ) { addthis.init( ); }

	if( $( 'error_eCommerceTotal' ) ) { $( 'error_eCommerceTotal' ).addClass( 'hide' ); }	/*-- kris@o3world.com  nov 9 '11 --*/

} );


// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [END] DOMReady/Load \\
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

