
var _flickrInfo={className:"flickr-gateway-over",pclassName:"flickr-gateway"};var _flickrCount=0;var _flickrStack=new Array();var FlickrGateway=Class.create();FlickrGateway.prototype.update({initialize:function(options){this.source=options.source;this.id=options.flickrID;this.container=document.createElement("div");this.source.parentNode.insertBefore(this.container,this.source);this.source.parentNode.removeChild(this.source);this.container.appendChild(this.source);this.element=null;this.container.className+=_flickrInfo.pclassName;this.container.rootObject=this;this.source.onmouseover=null;},render:function(){var span=document.qtag("span",{className:_flickrInfo.className});this.container.appendChild(span);this.element=span;listen(this.container,"mouseover",this.over);listen(this.container,"mouseout",this.out);listen(this.container,"click",this.onclick);this.container.style.cursor="pointer";},over:function(e){var source=e.target?e.target:e.srcElement;var relTarg=e.relatedTarget?e.relatedTarget:e.fromElement;var root=source.parentNode.rootObject?source.parentNode.rootObject:(source.rootObject?source.rootObject:null);if(root==null||root==undefined||root.element.style.display!="none"){return;}
if(_widgetFlickr_isChild(root.container,source)){root.element.style.display="";}},out:function(e){var source=e.target?e.target:e.srcElement;var relTarg=e.relatedTarget?e.relatedTarget:e.toElement;var root=source.parentNode.rootObject?source.parentNode.rootObject:source.rootObject;if(root==null||root==undefined||root.element.style.display!=""){return;}
if(!_widgetFlickr_isChild(root.container,relTarg)){root.element.style.display="none";}},onclick:function(e){var source=e.target?e.target:e.srcElement;var root=source.parentNode.rootObject;window.open("http://www.flickr.com/photos/kqedquest/"+root.id,"_blank");}});function renderFlickrGateway(options){var fg=new FlickrGateway(options);fg.render();_flickrStack.push(fg);_flickrCount++;_flickrInfo.hasExecuted=true;}
function _widgetFlickr_isChild(pNode,cNode){for(var i=0;i<pNode.childNodes.length;i++){if(pNode.childNodes[i].childNodes){if(_widgetFlickr_isChild(pNode.childNodes[i],cNode)){return true;}}
if(pNode.childNodes[i]==cNode){return true;}}
return false;}