var AXIS_X=0;
var AXIS_Y=1;
var xmlDoc2
var transportText="";
var siteId = 1;
var siteIdCache = 1;
var siteName = "";
var siteDomainValue = "";
var sitesBoobleText = "";
if (window.ActiveXObject){
	xmlDoc2 = new ActiveXObject("Microsoft.XMLDOM");
	xmlDoc2.async=false;
}else if (document.implementation && document.implementation.createDocument){
	xmlDoc2= document.implementation.createDocument("text/xml","",null);
}

function getNode(_1){
	return document.getElementById(_1);
}
function grabComputedStyle(_10,_11){
	if(document.defaultView&&document.defaultView.getComputedStyle){
		return document.defaultView.getComputedStyle(_10,null).getPropertyValue(_11);
	}else{
		if(_10.currentStyle){
			return _10.currentStyle[_11];
		}else{
			return null;
		}
	}
}
function grabComputedHeight(_12){
	var _13=grabComputedStyle(_12,"height");
	if(_13!=null){
		if(_13=="auto"){
			if(_12.offsetHeight){
				_13=_12.offsetHeight;
			}
		}
		_13=parseInt(_13);
	}
	return _13;
}
function grabComputedWidth(_14){
	var _15=grabComputedStyle(_14,"width");
	if(_15!=null){
		if(_15.indexOf("px")!=-1){
			_15=_15.substring(0,_15.indexOf("px"));
		}
		if(_15=="auto"){
			if(_14.offsetWidth){
				_15=_14.offsetWidth;
			}
		}
	}
	return _15;
}
function getWindowHeight(){
	var _18=0;
	if(typeof (window.innerWidth)=="number"){
		_18=window.innerHeight;
	}else{
		if(document.documentElement&&document.documentElement.clientHeight){
			_18=document.documentElement.clientHeight;
		}else{
			if(document.body&&document.body.clientHeight){
				_18=document.body.clientHeight;
			}
		}
	}
	return _18;
}
function getElementOffsetY(_20){
	var _21=0;
	if(_20.offsetTop!=null){
		_21+=_20.offsetTop;
		while(_20.offsetParent){
			_21+=_20.offsetParent.offsetTop;
			_20=_20.offsetParent;
		}
	}
	return _21;
}
function getElementOffsetX(_26){
	return handleElementOffsetX(_26,true);
}
function getPageElementOffsetX(_27){
	return handleElementOffsetX(_27,false);
}
function handleElementOffsetX(_28,_29){
	var _30=0;
	if(_28.offsetLeft!=null){
		_30+=_28.offsetLeft;
		var _31=0;
		while(_28.offsetParent){
			if(_29&&grabComputedStyle(_28.offsetParent,"position")=="absolute"){
				return _30;
			}else{
				_30+=_28.offsetParent.offsetLeft;
				_28=_28.offsetParent;
			}
		}
	}
	return _30;
}
function tokenizeString(_42,_43){
	var _44=new Array();
	var _45=0;
	if(_42){
		while(_42.indexOf(_43)!=-1){
			var end=_42.indexOf(_43);
			var _47=end+_43.length;
			_44[_45]=_42.substring(0,end);
			_42=_42.substring(_47);
			_45++;
		}
		_44[_45]=_42;
	}
	return _44;
}
function getMouseCoordinates(e){
	var _58=0;
	var _59=0;
	if(!e){
		var e=window.event;
	}
	if(e.pageX||e.pageY){
		_58=e.pageX;
		_59=e.pageY;
	}else{
		if(e.clientX||e.clientY){
			_58=e.clientX+document.body.scrollLeft;
			_59=e.clientY+document.body.scrollTop;
		}
	}
	return {x:_58,y:_59};
}
Array.prototype.append=function(_60){
	this.push(_60);
};
String.prototype.trim=function(){
	return this.replace(/^\s+|\s+$/g,"");
};
var Link={imgURL:function(_61){
	var sb=new Array();
	sb.append(IMAGE_ROOT);
	sb.append(_61);
	return sb.join("");
},pageURL:function(_63){
	var sb=new Array();
	var _64=false;
	sb.append(PAGE_ROOT);
	sb.append(_63);
	return sb.join("");
}};// end Link

var Browser={MSIE:function(){
	return (document.all?true:false);
}};

function removeChildNodes(_65){
	while(_65.hasChildNodes()){
		_65.removeChild(_65.firstChild);
	}
}

// on pageload

function Pond(){
}
Pond.prototype={id:false,parentID:false,title:false,sitedesctiptionlong:false,sitedomain:false,siteurl:[],sitepartner:false,personalPondData:false,importFrom:function(_74){
	var _75=/&#38;/g;
	for(field in this){
		_74[field]&&(this[field]=_74[field]());
		if(typeof this[field]=="string"){
			this[field]=this[field].replace(_75,"&");
		}
		if(this[field]=="false"){
			this[field]=false;
		}
	}
}};
function Detail(_76,id){
	this.name=_76;
	this.id=id;
}
function PersonalPondData(){
}
// run at page initialize
PersonalPondData.prototype={importFrom:function(_81){
		for(field in this){
			_81[field]&&(this[field]=_81[field]());
		}
}};

function PersonalPondDataXMLImporter(_82){
}
PersonalPondDataXMLImporter.prototype={getAttribute:function(_83,_84){
	try{
	var s=_83.getAttribute(_84);
	if(s.length>0){
	return s;
	}
	}
	catch(e){
	}
	return false;
}};

function SummaryPMDManager(){
}
SummaryPMDManager.prototype={dataDisplayed:false,pondData:null,setPersonalPondData:function(pmd){
	this.pondData=pmd;
	this.dataDisplayed=false;
},createContentElements:function(_101){
	removeChildNodes(_101);
},displayNext:function(_104){
	this.dataDisplayed=true;
}};

PondXMLImporter=function(_108){
	//this.xmlDoc=_108;
	//this.xmlDoc.loadXML(transportText);
};
PondXMLImporter.prototype={getAttribute:function(_109,attr){
	try{
	var s=_109.getAttribute(attr);
	if(s.length>0){
	return s;
	}
	}
	catch(e){
	}
	return false;
},id:function(){
	return siteId;
	//return XmlValueGet("POND", "ID");
	//return this.getAttribute(xmlDoc2.getElementsByTagName("POND")[0],"ID");
},parentID:function(){
	return false;
	//return XmlValueGet("POND", "PARENTID");
	//return this.getAttribute(xmlDoc2.getElementsByTagName("POND")[0],"PARENTID");
},title:function(){
	return siteName;
	//return XmlValueGet("TITLE", "");
	//return xmlDoc2.getElementsByTagName("TITLE")[0].firstChild.nodeValue;
},sitedesctiptionlong:function(){
	return sitesBoobleText;
	//return XmlValueGet("SITEDESCRIPTIONLONG", "");
	//return xmlDoc2.getElementsByTagName("SITEDESCRIPTIONLONG")[0].firstChild.nodeValue;
},sitedomain:function(){
	return siteDomainValue;
	//return XmlValueGet("SITEDESCRIPTIONLONG", "");
	//return xmlDoc2.getElementsByTagName("SITEDESCRIPTIONLONG")[0].firstChild.nodeValue;
},siteurl:function(){
	stars=[];
	try{
	var _111=xmlDoc2.getElementsByTagName("SITEURL")[0].getElementsByTagName("DETAIL");
	for(var i=0;i<_111.length;i++){
		var _112=_111[i];
		stars.push(new Detail(this.getAttribute(_112,"VALUE"),this.getAttribute(_112,"ID")));
	}
	}
	catch(e){
	}
	return stars;
},sitepartner:function(){
	try{
	var _113=xmlDoc2.getElementsByTagName("SITEPARTNER")[0].getElementsByTagName("DETAIL")[0];
	return new Detail(this.getAttribute(_113,"VALUE"),this.getAttribute(_113,"ID"));
	}
	catch(e){
	}
},personalPondData:function(){
	var pmd=new PersonalPondData;
	pmd.importFrom(new PersonalPondDataXMLImporter(xmlDoc2));
	return pmd;
}};

function BobTextHandler(id){
	this.element=this.addTextNodeTo(id);
}
BobTextHandler.prototype={addTextNodeTo:function(id){
	var _114=document.createTextNode("");
	$(id).appendChild(_114);
	return _114;
},handle:function(s){
	this.setText(s);
},setText:function(s){
	try{
		if (this.element.href){
			this.element.href='';
			this.element.href=s;
		}
		else{
			this.element.nodeValue='';
			this.element.nodeValue=s;
		}
	}
	catch(e){}
}};

function BobCapHandler(id){
	this.element=$(id).firstChild;
}
BobCapHandler.prototype=BobTextHandler.prototype;
function BobSitedesctiptionlongHandler(id){
	this.element=$(id);
	this.dummy=document.createElement("SPAN");
}
BobSitedesctiptionlongHandler.prototype.handle=function(s){
	var _115=tokenizeString(s,"%%~p;");
	while(this.dummy.hasChildNodes()){
		this.dummy.removeChild(this.dummy.firstChild);
	}
	for(var i=0;i<_115.length;i++){
		if(i==0){
			var _116="SPAN";
		}else{
			var _116="P";
		}
		var para=this.dummy.appendChild(document.createElement(_116));
		para.appendChild(document.createTextNode(_115[i]));
	}
	this.element.innerHTML=this.dummy.innerHTML;
};
function BobsitedomainHandler(id){
	//this.element=$(id).firstChild;
	this.element=$(id);
}
BobsitedomainHandler.prototype=BobTextHandler.prototype;
function BobVisibilityHandler(id){
	this.element=$(id);
}
BobVisibilityHandler.prototype={handle:function(s){
	this.setVisible(s);
},setVisible:function(_118){
	this.element.style.visibility=(_118)?"visible":"hidden";
}};

function BobPMDHandler(id){
	this.element=$(id);
	this.initialize();
}
BobPMDHandler.prototype={pmdDisplayer:new SummaryPMDManager(),hasContent:false,initialize:function(){
	this.visibilityHandler.parent=this;
},handle:function(pmd){
	this.pmdDisplayer.setPersonalPondData(pmd);
	this.hasContent=false;
},visibilityHandler:{handle:function(){
	this.setVisible(this.parent.hasContent);
},setVisible:function(_119){
	this.parent.element.style.display=(_119)?"block":"none";
}}
//end of property
};

var BobContentHandler={initialized:false,shownFlag:false,initialize:function(){
this.boxImg=$("bobimg");
this.boxTopcap=$("bobtopcap");
this.boxTitlebox=$("bobtitlebox");
this.detailElements.initialize($("bobsiteurltr").parentNode);
this.textHandlers={title:new BobCapHandler("bobtitle"),sitedesctiptionlong:new BobSitedesctiptionlongHandler("bobsitedescriptionlong"),sitedomain:new BobsitedomainHandler("bobsitedomain"),siteurl:new BobTextHandler("bobsiteurl"),sitepartner:new BobTextHandler("bobsitepartner"),personalPondData:new BobPMDHandler("bobpersonal")};
this.visibilityHandlers={siteurl:new BobVisibilityHandler("bobsiteurltr"),sitepartner:new BobVisibilityHandler("bobsitepartnertr"),personalPondData:this.textHandlers.personalPondData.visibilityHandler};
this.textHandlers.siteurl.handle=function(a){
	if(a.length>0){
		var _122="";
		for(var i=0;i<a.length-1;i++){
			_122+=a[i].name+", ";
		}
		_122+=a[i].name;
		this.setText(_122);
	}
};
this.textHandlers.sitepartner.handle=function(p){
	p&&this.setText(p.name);
};
this.visibilityHandlers.siteurl.handle=function(a){
	this.setVisible(a.length>0);
};
this.visibilityHandlers.siteurl.setVisible=function(_124){
	if(_124){
		if(this.rowRemoved){
		BobContentHandler.detailElements.elements[this.element.id]=this.element;
		this.rowRemoved=false;
		}
	}else{
		if(!this.tBody){
		this.tBody=this.element.parentNode;
		}
		if(!this.rowRemoved){
		this.tBody.removeChild(this.element);
		BobContentHandler.detailElements.elements[this.element.id]=null;
		this.rowRemoved=true;
		}
	}
};
this.visibilityHandlers.sitepartner.setVisible=this.visibilityHandlers.siteurl.setVisible;
this.visibilityHandlers.sitepartner.handle=function(_125){
	this.setVisible(_125&&_125.name.length>0);
};
this.initialized=true;
},display:function(_126,_127){
	if(!this.initialized){
	return false;
	}
	this.pondID=_126.id;
	this.parentID=_126.parentID;
	this.handleBoxshot(_127);
	for(field in _126){
		if(this.textHandlers[field]){
		this.textHandlers[field].handle(_126[field],_126);
		}
		if(this.visibilityHandlers[field]){
		this.visibilityHandlers[field].handle(_126[field]);
		}
	}
	this.detailElements.display();
	if(!this.shownFlag&&(isSafari||isOpera)){
		this.hideContent(_126,_127);
	}
},handleBoxshot:function(_128){
	if(!_128){
		this.boxImg.style.display="none";
	}else{
		this.boxImg.style.display="inline";
		this.boxImg.src=IMAGE_ROOT+"fish/"+(this.parentID?this.parentID:this.pondID)+".gif"// + "?refresh=" + Math.floor( Math.random() * 100000000000);
	}
	//alert(isWinIE);alert(isOpera);

	this.boxTopcap.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod='scale', src='/Images/jsbooble/topcap"+siteId+".png');"
	this.boxTitlebox.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod='scale', src='/Images/jsbooble/middle"+siteId+".png');"
	if (isWinIE){ 
		this.boxTopcap.src=IMAGE_ROOT+"pngfix.png"; 
		this.boxTitlebox.style.backgroundimage = "url(/Images/jsbooble/middle"+siteId+".png);";
	}
	else{ 
		if (!isOpera)
			this.boxTopcap.src=IMAGE_ROOT+"topcap"+siteId+".png"; 
		else
			this.boxTopcap.src=IMAGE_ROOT+"topcap1.png"; 
		//document.getElementById('bobtitlebox').style.backgroundImage = "url(http://peoplefishing.asesoft.ro/Images/jsbooble/middle"+siteId+".png);";
		//document.getElementById("bobtitlebox").Attributes.Add("style", "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod='scale', src='/Images/jsbooble/middle.png'); background-image:url(http://peoplefishing.asesoft.ro/Images/jsbooble/middle"+siteId+".png);");
		this.boxTitlebox.style.backgroundImage = "url('/Images/jsbooble/middle"+siteId+".png')";
	}
},preloadBoxshot:function(_129){
	if(!this.preloadBoxshot){
		this.preloadBoxshot=new Image();
	}
	//this.preloadBoxshot.src=IMAGE_ROOT+"fish/"+_129+".jpg";
	this.preloadBoxshot.src=IMAGE_ROOT+"fish/preload.gif";
},hideContent:function(_130,_131){
	this.handleBoxshot(false);
	for(k in this.visibilityHandlers){
		this.visibilityHandlers[k].setVisible(false);
	}
	this.detailElements.clear();
	if(!this.shownFlag&&(isSafari||isOpera)){
		var _132=this;
		var _133=function(){
			_132.shownFlag=true;
			_132.display(_130,_131);
		};
		window.setTimeout(_133,2);
	}
}};

BobContentHandler.detailElements={initialize:function(_134){
	this.tBody=_134;
},elements:[],elementIDs:new Array("bobsiteurltr","bobsitepartnertr"),clear:function(){
	for(field in this.elements){
		this.elements[field]=null;
	}
},display:function(){
	for(var i=0;i<this.elementIDs.length;i++){
		if(this.elements[this.elementIDs[i]]){
			this.tBody.appendChild(this.elements[this.elementIDs[i]]);
		}
	}
}};

var XMLPondFetcher={cache:{},getPond:function(id,_135,_136){
	if(this.cache[siteIdCache]){
		_135(this.cache[siteIdCache]);
		//alert('cachea'); //taken from cache pasCache
	}else{
		_136.pondid=id;
		_136.bobenhanced="yes";
		var _137=this;
		_137.handleXMLReturn2(null,id);
		
	}
},handleXMLReturn2:function(_139,id){
	var _141=false;
	try{
		var _142=new PondXMLImporter(_139);
		var _143=new Pond();
		_143.importFrom(_142);
		//this.cache[id]=_143;
		this.cache[siteIdCache]=_143;
		_141=true;
	}
	catch(e){
		//alert('pas02catch');
	}
	if(_141){
		BobManager.display(id);
	}
}};

var BobManager={STYLE_POSITION:1,COUNT_DELIM:"_",BOXSHOT_STATE_DEFAULT:0,BOXSHOT_STATE_NONE:1,BOXSHOT_STATE_DISPLAY:2,STATE_AWAKE:0,STATE_ASLEEP:1,LINKCTR_TEXT:"TXT",LINKCTR_BOXSHOT:"BOX",LINKCTR_TEXT_NEAR_BOXSHOT:"BTX",LINKCTR_MINIQ:"MQI",displayFlag:false,initialize:function(){
	this.readyState=BobManager.STATE_AWAKE;
	this.bob=$("bob");
	this.arrow=$("bobarrow");
	this.bobClose=$("bobClose");
	var _144=this;
	this.arrow.onclick=function(){
		window.location.href=_144.href;
	};
	this.arrow.onmouseout=function(){
		//_144.hideBob();
	};
	this.arrow.onmouseover=function(){
		if(_144.hideBobTimer){
			clearTimeout(_144.hideBobTimer);
			_144.hideBobTimer=null;
		}
	};
	this.bobClose.onclick=function(){
		_144.hideBob();
	};
	document.onkeydown=function(evt){
		evt=evt||window.event;
		if(evt.keycode){
			if(evt.keyCode==33||evt.keyCode==34){
				_144.currentScroll=document.body.scrollTop;
			}
		}
	};
	document.onkeyup=function(evt){
		evt=evt||window.event;
		if(evt.keycode){
			if(evt.keyCode==33||evt.keyCode==34){
				if(document.body.scrollTop!=_144.currentScroll){
					//_144.hideBob();
				}
			}
		}
	};
	BobContentHandler.initialize();
	BobPositioner.initialize();
},setReadyState:function(_145){
	this.readyState=_145;
	if(this.readyState==BobManager.STATE_ASLEEP){
		//this.hideBob();
		this.detach();
	}
},bobifyLinks:function(){
	var root=$("page-content");
	var imgs=root.getElementsByTagName("IMG");
	var _148=[];
	var _149=/dB\(/;
	for(var i=0;i<imgs.length;i++){
		var img=imgs[i];
		if(img.onmouseover){
			if(_149.test(img.onmouseover.toString())){
				countIndex=img.id.indexOf(BobManager.COUNT_DELIM);
				_148[_148.length]=img.id.substring(2,countIndex);
			}
		}
	}
	if(_148.length>0){
		var _154=root.getElementsByTagName("A");
		linkloop:
		for(var i=0;i<_154.length;i++){
			var link=_154[i];
			if(link.onmouseover){
				continue;
			}
			if(link.hasChildNodes()){
				var kids=link.childNodes;
				for(var j=0;j<kids.length;j++){
					var _158=kids[j].tagName;
					if(_158=="IMG"||_158=="TABLE"){
						continue linkloop;
					}
				}
			}
			if(link.firstChild&&link.firstChild.nodeValue){
			}
		}// end for _154
	}
},bobifyMiniqueue:function(){
	var _160=$("mqbox");
	if(_160){
		var _161=_160.getElementsByTagName("DIV");
		for(var i=0;i<_161.length;i++){
			if(_161[i].className.indexOf(CLASS_MINIQ_ROW)>-1){
				_161[i].setAttribute("persist_mouseout",1);
				_161[i].onmouseover=function(_162){
					_162=_162||window.event;
					var _163=getPositionFromElementId(this.id);
					if(custq.getItem(_163)){
						this.pondid=custq.getItem(_163).id;
						//not pass
						BobManager.dB(_162,this,BobManager.BOXSHOT_STATE_DISPLAY);
					}
				};
				_161[i].onmouseout=function(){
					if(this.pondid){
						//BobManager.hideBob();
					}
				};
				_161[i].onmousedown=function(){
					BobManager.setReadyState(BobManager.STATE_ASLEEP);
				};
				_161[i].onmouseup=function(){
					BobManager.setReadyState(BobManager.STATE_AWAKE);
				};
			}
		}
	}
},bobify:function(_164,_165,_166){
	_164.pondid=_165;
	if(_164.bob_eid){
		EventDispatcher.removeEvent(_164,"mouseover",_164.bob_eid);
	}
	if(arguments.length==2){
		_166=BobManager.BOXSHOT_STATE_DEFAULT;
	}
	var eid=EventDispatcher.addEvent(_164,"mouseover",this.dB.bindEventListener(this,_164,_166));
	_164.bob_eid=eid;
},getURLParams:function(){
	if(this.triggerElement.pondid){
		var _168={pos:0,ds:"b"};
		_168.linkCtr=this.triggerElement.tagName=="A"?BobManager.LINKCTR_TEXT_NEAR_BOXSHOT:BobManager.LINKCTR_MINIQ;
	}else{
		var _168={pos:this.triggerElement.id.substring(this.triggerElement.id.indexOf(BobManager.COUNT_DELIM)+1),ds:this.triggerElement.id.charAt(BobManager.STYLE_POSITION)};
		_168.linkCtr=this.triggerElement.tagName=="A"?BobManager.LINKCTR_TEXT:BobManager.LINKCTR_BOXSHOT;
	}
	return _168;
},isShowBoxshot:function(){
	if(this.boxshotState==BobManager.BOXSHOT_STATE_DEFAULT){
		return this.triggerElement.tagName=="A"||this.triggerElement.tagName=="DIV";
	}else{
		return this.boxshotState==BobManager.BOXSHOT_STATE_DISPLAY;
	}
},display:function(_169){
	if(_169!=this.getPondID()){
		return;
	}
	this.displayFlag=true;
	var _170=this;
	// pas ok on load
	var _171=this.isShowBoxshot();
	var _172=this.getURLParams();
	// pas ok on load
	if(window.isQueue){
		_172.linkCtr+="QUEUE";
	}
	if(this.triggerElement.alt){
		this.triggerElement.altbackup=this.triggerElement.alt;
		this.triggerElement.alt="";
	}
	var _173=function(_174){
		_170.showBobTimer=null;
		if(!BobManager.displayFlag){
			return;
		}
		BobContentHandler.display(_174,_171);
		BobPositioner.setPosition(_170.triggerElement,_170.mouseCoord);
		if((isSafari||isOpera)&&!_170.shownFlag){
			window.setTimeout(function(){
				BobPositioner.setPosition(_170.triggerElement,_170.mouseCoord);
				_170.shownFlag=true;
			},5);
		}
		//alert(_170.bob.innerHTML);// shown div
		_170.bob.style.visibility="visible";
	};
	// pas ok on load
	if(_171){
		BobContentHandler.preloadBoxshot(_169);
	}
	XMLPondFetcher.getPond(_169,_173,_172);
},detach:function(){
	if(this.triggerElement){
		if(!this.triggerElement.getAttribute("persist_mouseout")){
			this.triggerElement.onmouseout=null;
		}
		this.triggerElement=null;
	}
},attach:function(){
	if(!this.triggerElement.onmouseout){
		var _175=this;
		this.triggerElement.onmouseout=function(){
			//_175.hideBob(); // hide bob when position not close to arrow
		};
	}
},dB:function(evt,_176,_177){
	if(!window.d_bobMS||d_bobMS==-1||this.readyState==BobManager.STATE_ASLEEP){
		//alert('pasreturn');
		return;
	}
	if(this.hideBobTimer&&this.triggerElement&&this.triggerElement==_176){
		clearTimeout(this.hideBobTimer);
		this.hideBobTimer=null;
		return;
	}
	this.mouseCoord=getMouseCoordinates(evt);
	this.detach();
	this.triggerElement=_176;
	this.href=_176.href||_176.parentNode.href;
	if(arguments.length==3){
		this.boxshotState=_177;
	}else{
		this.boxshotState=BobManager.BOXSHOT_STATE_DEFAULT;
	}
	this.attach();
	var _178=this.getPondID();
	var _179=this;
	var _180=function(){
		_179.display(_178);
	};
	this.showBobTimer=setTimeout(_180,d_bobMS);
	// enter on mouseover
},getPondID:function(){
	if(this.triggerElement.pondid){
		siteId = this.triggerElement.pondid;
		return this.triggerElement.pondid;
	}else{
		var id=this.triggerElement.id;
		var _181=id.indexOf(BobManager.COUNT_DELIM);
		siteId = id.substring(2,_181)
		return id.substring(2,_181);
	}
	// not enter on load
},hideBob:function(){
	this.displayFlag=false;
	if(this.showBobTimer){
		clearTimeout(this.showBobTimer);
		this.showBobTimer=null;
		return;
	}
	var _182=this;
	var _183=function(){
		_182.hideBobTimer=null;// after show
		_182.bob.style.visibility="hidden";
		if(_182.triggerElement&&_182.triggerElement.altbackup){
			_182.triggerElement.alt=_182.triggerElement.altbackup;
		}
		BobContentHandler.hideContent();
	};
	this.hideBobTimer=setTimeout(_183,3);
}};

// on initialize
var BobPositioner={TOP_SHADOW_OFFSET:-10,BOB_BOX_WIDTH:290,POND_TO_ARROW_SPACER:25,DISPLAY_STYLE_DEFAULT:0,DISPLAY_STYLE_LARGE_BOXSHOT:1,DISPLAY_STYLE_TINY_BOXSHOT:2,ARROW_HEIGHT:101,ARROW_HEIGHT_NO_SHADOW:70,LARGE_BOXSHOT_WIDTH:110,MED_BOXSHOT_WIDTH:65,TINY_BOXSHOT_WIDTH:50,TEXT_LINK_BUFFER_WIDTH:50,POSITION_LEFT:0,POSITION_RIGHT:1,MAX_PAGE_LEFT_OFFSET:490,initialize:function(){
	this.bob=$("bob");
	this.arrow=$("bobarrow");
	this.arrowImages={UL:$("bobarrowulimg"),UR:$("bobarrowurimg"),LL:$("bobarrowllimg"),LR:$("bobarrowlrimg")};
},setPosition:function(_184,_185){
	this.bobPosition=BobPositioner.POSITION_RIGHT;
	this.triggerElement=_184;
	this.mouseCoordX=_185.x;
	this.mouseCoordY=_185.y;
	this.setTop();
	this.setLeft();
	this.positionArrow();
},setTop:function(){
	var _186=grabComputedHeight(this.bob);
	var _187=_186/4;
	var _188=getElementOffsetY(this.triggerElement)+BobPositioner.TOP_SHADOW_OFFSET-_187;
	this.bob.style.top=_188+"px";
	this.correctForYOverrun(_188);
},correctForYOverrun:function(_189){
	var _190=0;
	var _191=getWindowHeight();
	var _192=document.body.scrollTop;
	var top=getElementOffsetY(this.bob)-BobPositioner.TOP_SHADOW_OFFSET-_192;
	var _194=(top*1)+(grabComputedHeight(this.bob)*1);
	if(_194>_191){
		_190=_194-_191-30;
	}
	if(top-_190<1){
		_190=top;
	}
	this.bob.style.top=(_189-_190)+"px";
},getTriggerTop:function(){
	return getElementOffsetY(this.triggerElement);
},setLeft:function(){
	var _195=0;
	if(this.triggerElement.tagName=="A"||this.triggerElement.tagName=="DIV"){
		_195=Math.max(this.mouseCoordX,0)+BobPositioner.TEXT_LINK_BUFFER_WIDTH;
		if(_195>this.maxLeftPosition()){
			_195-=(BobPositioner.BOB_BOX_WIDTH+BobPositioner.POND_TO_ARROW_SPACER+(1.5*BobPositioner.TEXT_LINK_BUFFER_WIDTH));
			this.bobPosition=BobPositioner.POSITION_LEFT;
		}
	}else{
		var _196=0;
		var _197=this.getBoxshotStyle();
		if(_197==BobPositioner.DISPLAY_STYLE_LARGE_BOXSHOT){
			_196=BobPositioner.LARGE_BOXSHOT_WIDTH;
		}else{
			if(_197==BobPositioner.DISPLAY_STYLE_TINY_BOXSHOT){
				_196=BobPositioner.TINY_BOXSHOT_WIDTH;
			}else{
				_196=BobPositioner.MED_BOXSHOT_WIDTH;
			}
		}
		var _198=getPageElementOffsetX(this.triggerElement);
		_195=_198+BobPositioner.POND_TO_ARROW_SPACER+_196;
		if(_195>this.maxLeftPosition()){
			_195-=(BobPositioner.BOB_BOX_WIDTH+BobPositioner.POND_TO_ARROW_SPACER+_196);
			this.bobPosition=BobPositioner.POSITION_LEFT;
		}
	}
	this.bob.style.left=_195+"px";
},maxLeftPosition:function(){
	return getPageElementOffsetX($("page-content"))+BobPositioner.MAX_PAGE_LEFT_OFFSET;
},positionArrow:function(){
	var _199=false;
	var _200=this.getTriggerTop()-getElementOffsetY(this.bob);
	var _201=grabComputedHeight(this.bob);
	if(_200<(_201/2)){
		_199=true;
	}else{
		_200-=BobPositioner.ARROW_HEIGHT_NO_SHADOW;
	}
	if(_200+BobPositioner.ARROW_HEIGHT+10>_201){
		_200-=10;
	}
	if(_200<10){
		_200=10;
	}
	this.arrow.style.top=_200+"px";
	if(this.bobPosition==BobPositioner.POSITION_LEFT){
		this.arrow.style.left="268px";
	}else{
		this.arrow.style.left="-42px";
	}
	var _202=_199?"U":"L";
	_202+=(this.bobPosition==BobPositioner.POSITION_LEFT)?"R":"L";
	for(key in this.arrowImages){
		this.arrowImages[key].style.display=(key==_202)?"block":"none";
	}
},getBoxshotStyle:function(){
	return this.triggerElement.id.substring(1,2);
}};
function primeBOB(){
	BobManager.initialize();
	$("bob").style.top="0px";
}
function dB(evt,link){
	//siteId = siteid;
	BobManager.dB(evt,link);
}
function $(_203){
	if(typeof _203=="string"){
		_203=document.getElementById(_203);
	}
	return _203;
}

function TagValue(strSource, tagName, tagChild){
var tagBeginIndexOf = strSource.indexOf('<' + tagName + '>');
var tagEndIndexOf = strSource.indexOf('</' + tagName + '>');
var tagTemp1IndexOf = -1;
var strTemp1 = "";
var strReturn = "";
if (tagBeginIndexOf >= 0 && tagEndIndexOf > 0 && tagEndIndexOf > tagBeginIndexOf){
	strReturn = strSource.substring(tagBeginIndexOf + tagName.length + 2, tagEndIndexOf);
	if (strReturn.length > 0 && tagChild.length > 0){
		var strReturn1 = TagChildValue(strReturn, tagChild, 'property');
		if (strReturn1)
			return strReturn1
		else{
			strReturn1 = TagChildValue(strReturn, tagChild, 'content');
			if (strReturn1)
				return strReturn1
		}
		return false;
	}
}
else{
	if (tagBeginIndexOf < 0 && tagEndIndexOf > 0){
		tagBeginIndexOf = strSource.indexOf('<' + tagName + ' ');
		if (tagBeginIndexOf >= 0 && tagBeginIndexOf < tagEndIndexOf)
		{
			strTemp1 = strSource.substring(tagBeginIndexOf + tagName.length + 1, tagEndIndexOf);
			tagTemp1IndexOf = strTemp1.indexOf('>');
			strReturn = strTemp1.substring(tagTemp1IndexOf + 1, strTemp1.length);
			if (strTemp1.length > 0 && tagChild.length > 0){
				var strReturn1 = TagChildValue(strTemp1, tagChild, 'property');
				if (strReturn1)
					return strReturn1
				else{
					strReturn1 = TagChildValue(strTemp1, tagChild, 'content');
					if (strReturn1)
						return strReturn1
				}
				return false;
			}
		}
	}
}

if (strReturn.length > 0)
	return strReturn;
return false;
}
function TagChildValue(strSource, tagChild, childType){
var tagBeginIndexOf = -1;
var strReturn = '';
if (childType == "property")
{
	tagBeginIndexOf = strSource.indexOf(' ' + tagChild + '="');
	if (tagBeginIndexOf >= 0)
	{
		var strTemp1 = strSource.substring(tagBeginIndexOf + tagChild.length + 3, strSource.length)
		tagBeginIndexOf = strTemp1.indexOf('"');
		if (tagBeginIndexOf >= 0){
			strReturn = strTemp1.substring(0, tagBeginIndexOf)
		}
	}
}
if (childType == "content")
{
	return TagValue(strSource, tagChild, '');
}
if (strReturn.length > 0)
	return strReturn;
return false;
}

function XmlValueGet(tag, child){
var xmlValue
try{
	if (child.lenght > 0)
		xmlValue = this.getAttribute(this.xmlDoc.getElementsByTagName(tag)[0],child);
	else
		xmlValue = this.xmlDoc.getElementsByTagName(tag)[0].firstChild.nodeValue;
}catch(e){ xmlValue = false; }

if (!xmlValue)
	xmlValue = TagValue(transportText, tag, child);

return xmlValue;
}
function BoobleClick(obj1, obj2, obj3, obj4, link1, cacheId)
{
siteName = obj3;
siteDomainValue = link1;
siteIdCache = cacheId;
sitesBoobleText = obj4.replace("-apostrophe-", "'");
dB(obj1, obj2);
}