function emptyNode ( nodeID ){if( YAHOO.lang.isValue( nodeID ) ){var node = YAHOO.util.Dom.get( nodeID );if( YAHOO.lang.isValue( node ) && node.hasChildNodes() ){while( node.childNodes.length >= 1 ){node.removeChild( node.firstChild );} } }}; function editorPhotos(){editorPhotoFix('imageLeftS');editorPhotoFix('imageRightS');editorPhotoFix('imageLeftL');editorPhotoFix('imageRightL');}function editorPhotoFix(classID){thisSize = YAHOO.util.Dom.getElementsByClassName(classID,"img");for(var i=0;i<thisSize.length;i++){var thisID = YAHOO.util.Dom.generateId(thisSize[i], classID+"-"); var thisImage = YAHOO.util.Dom.get(thisID);var newImage = document.createElement('span');YAHOO.util.Dom.addClass(newImage, classID);YAHOO.util.Dom.setStyle(newImage,"backgroundImage","url("+thisImage.getAttribute("src")+")");var newCover = document.createElement('span');YAHOO.util.Dom.addClass(newCover, classID+"Cover");newImage.appendChild(newCover);YAHOO.util.Dom.insertBefore(newImage, thisImage);thisImage.parentNode.removeChild(thisImage);}} if (window!= top){top.location.href=location.href;} function addListener(element, type, expression, bubbling){bubbling = bubbling || false;if(window.addEventListener){ element.addEventListener(type, expression, bubbling);return true;} else if(window.attachEvent) { element.attachEvent('on' + type, expression);return true;} else return false;} var ImageLoader = function(url){this.url = url;this.image = null;this.loadEvent = null;};ImageLoader.prototype = {load:function(){this.image = document.createElement('img');var url = this.url;var image = this.image;var loadEvent = this.loadEvent;addListener(this.image, 'load', function(e){if(loadEvent != null){loadEvent(url, image);} }, false);this.image.src = this.url;}, getImage:function(){return this.image;}};