var WPScript = {
Version: (/\s(.*)\s/.exec("$Revision: 1.12 $"))[1],
use: function(src) {
var parts = src.match(/(.*)(\/.*)$/);
document.write('<script type="text/javascript" src="'+parts[1]+'/'+this.Version+parts[2]+'"></scr'+"ipt>\n");
},
extend: function() {
var target = arguments[0] || {}, a = 1, al = arguments.length, deep = false;
if ( target.constructor == Boolean ) {
deep = target;
target = arguments[1] || {};
}
if ( al == 1 ) {
target = this;
a = 0;
}
var prop;
for ( ; a < al; a++ )
if ( (prop = arguments[a]) != null )
for ( var i in prop ) {
if ( target == prop[i] ) continue;
if ( deep && typeof prop[i] == 'object' && target[i] )
WPScript.extend( target[i], prop[i] );
else if ( prop[i] != undefined )
target[i] = prop[i];
}
return target;
},
parseQuery: function(str) {
var qs = ( null == str )
? window.location.href.replace(/^[^\?]+\??/,'')
: str.replace(/^[^\?]+\??/,'');
var params = {};
if ( ! qs ) return params;
var pairs = qs.split(/[;&]/);
for (var i=0;i<pairs.length;i++) {
var keyval = pairs[i].split('=');
if ( ! keyval || keyval.length != 2 ) continue;
var key = unescape(keyval[0]);
var val = unescape(keyval[1]);
val = val.replace(/\+/g,' ');
params[key] = val;
}
return params;
},
inArray: function(ary,target) {
for ( var i=0,len=ary.length;i<len;i++ ) {
if ( target == ary[i] ) {
return true;
}
}
return false;
},
preloadImages: function() {
var a=arguments,d=document;
if(d.images) {
if(!d.imgAry) {
d.imgAry=[];
var i,j=d.imgAry.length; 
for(i=0; i<a.length; i++) {
if (a[i].indexOf("#")!=0) {
d.imgAry[j]=new Image;
d.imgAry[j++].src=a[i];
}
}
}
}
},
get: function(id) {
return document.getElementById(id);
},
toggle: function(id) {
e = this.get(id);
e.style.display = (e.style.display=='none')?'block':'none';
return false;
},
onDOMReady: function(func) {
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded",func,false);
}
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
if (this.readyState == "complete") {
func.call();
}
};
/*@end @*/
if ( /WebKit/i.test(navigator.userAgent)) {
var _timer = setInterval(function() {
if ( /loaded|complete/.test(document.readyState)) {
func;
}
},10);
}
},
on: function(elem,evt,func,bubble) {
bubble = bubble || false;
if (evt=='DOMReady') {
this.onDOMReady(func);
return true;
}
else {
var el = (typeof(elem)=='string') ? this.get(elem) : elem;
if (window.addEventListener) {
el.addEventListener(evt,func,bubble); return true;
}
else 
if (window.attachEvent) {
el.attachEvent('on'+evt,func); return true;
}
else {
return false;
}
}
},
serialize: function(obj) {
var str = '';
if ( typeof(obj) == 'object' ) {
for (key in obj) { str += key+'='+obj[key]+'&'; }
}
return str.replace(/&$/,'');
},
hashToJiffyList: function(obj) {
var str = '';
if ( typeof(obj) == 'object' ) {
for (key in obj) { str += key+':'+obj[key]+','; }
}
return str.replace(/,$/,'');
},
removeEvent: function(elem, evt, func, bubble){
var el = (typeof(elem)=='string') ? this.get(elem) : elem;
if (window.removeEventListener) {
el.removeEventListener(evt,func,bubble); return true;
}
else 
if (window.detachEvent) {
el.detachEvent('on'+evt,func); return true;
}
else {
return false;
}
},
hashMerge: function(hash1,hash2) {
for (var option in hash1) {
if(hash2[option] !== null) {
hash2[option] = hash1[option];
}
}
},
window: function(uri, width, height, name, options) {
width = width || 800;
height = height || 600;
name = name || "_blank";
options = options || "resizable=yes";
window.open(uri.href, name, "width="+width+",height="+height+","+options);
}
};
WPScript.Ajax = {
connection: function(){
return ((window.XMLHttpRequest) 
? new XMLHttpRequest() : (window.ActiveXObject) 
? new ActiveXObject("Microsoft.XMLHTTP") : null);
},
post: function(url,params,success,failure) {
var req = this.connection();	
var strParams = (typeof(params)=='string') ? params : WPScript.serialize(params);
req.onreadystatechange = (!success && !failure)
? function() { return; }
: function() {
if (req.readyState != 4) return;
if (this.status == 200) { if (success){success.call(this, req);} }
else { if(failure){failure.call(this, req);} }
};
req.open('POST',url,true);
req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
req.send(strParams);
},
get: function(url,params,success,failure) {
var req = this.connection();	
var strParams = (typeof(params)=='string') ? params : WPScript.serialize(params);
url += '?'+strParams;
req.onreadystatechange = (!success && !failure)
? function() { return; }
: function() {
if (req.readyState != 4)
return;
if (req.status == 200) { if (success){success.call(this, req);} }
else { if(failure){failure.call(this, req);} }
};
req.open('GET',url,true);
req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
req.send(null);
}
};
var DemoSurvey;
var common_ad;
function addTrackIdToResultsSortFormAction (that, site_id, origAction) {
var sortval = that.value;
var trid    = 0;
if (that.value == 'domain desc,lname,fname,age_range,state_id,citye') {
trid = 10168;
}
if (trid !== 0) {
// add track id to form action
that.form.action = '/' + site_id + '/track/' + trid + origAction;
}
}
function addLoadEvent (func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
};
}
}
function log_extra_listing_feature (form_id, clicked_el, site_id, log_prefix, log_what, strip_site_id) {
var form_el = document.getElementById(form_id);
var uri_site_id = '/' + site_id;
if (form_el) {
if (strip_site_id) { uri_site_id = ''; }
if (clicked_el.checked) {
form_el.action = uri_site_id + '/log_feature/' + log_prefix + '_w_' + log_what + '/search/FindPerson';
} else {
form_el.action = uri_site_id + '/log_feature/' + log_prefix + '_wo_' + log_what + '/search/FindPerson';
}
}
}
/* WP: ######################################## */
function HelpCenter(url) {
if (url.substring(0,1)!='/' && url.substring(0,4)!='http') {  url = '/'+url; }
help = window.open(url, 'help', "width=520,height=540,toolbars=no,location=no,scrollbars=yes,resizable=yes,status=no");
help.focus();
}
function WP_Help(url) {
var assembly = "http://images.whitepages.com" + url;
help = window.open(assembly, 'help', "width=650,height=500,toolbars=no,location=no,scrollbars=yes,resizable=yes,status=no");
help.focus();
}
function Bounce(cross, chip, site) {
if (chip===null) { chip = cross; }
site = (site===null) ? '' : '/'+site;
var show_popup = 1;
var cookie = document.cookie;
var cookies = cookie.split( '; ' );
var lookfor = 'MI-' + chip;
var persistent,nvp,pair,i,k;
for ( i=0; i<cookies.length; i++ ) {
if ( cookies[i].indexOf('wpn_persistent') > -1 ) {
persistent = cookies[i].split('=');
nvp = persistent[1].split('%26');
for ( k=0; k<nvp.length; k++ ) {
pair = nvp[k].split('%3D');
if ( pair[0] == lookfor ) {
if ( pair[1] >= 2 ) {
show_popup = 0;
}
}
}
}
}
}
function popWin(url, winName, width, height, other_settings) {
winName = winName.replace(" ", "_");
var settings;
if (other_settings==='') {
settings = "'width=" + width + ",height=" + height + ",toolbars=no,location=no,scrollbars=no,resizable=yes,status=no" + "'";
}else{
settings = "'width=" + width + ",height=" + height + "," + other_settings + "'";
}
popup = window.open(url, winName, settings);
popup.focus();
}
function termsPopup (url) {
termsWindow = window.open(url, 'terms', "width=670,height=480,toolbars=no,location=no,scrollbars=yes,resizable=yes,status=no");
termsWindow.focus();
}
function listing_validation_popup (url) {
termsWindow = window.open(url, 'listing_validation', "width=294,height=344,toolbars=no,location=no,scrollbars=no,resizable=no,status=no");
termsWindow.focus();
}
function yui_popup(name,ele) {
YAHOO.util.Event.onDOMReady(function(){
YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName(name,ele),'click',function(e){
var width_val, height_val, chrome_val, chrome_options;
var href_val = this.href;
var rel_val = this.rel;
var rel_split = rel_val.split(';');
for(n=0;n < rel_split.length; n++){
var equal_index = rel_split[n].indexOf('=');
var prop_name = rel_split[n].substring(0,equal_index);
var prop_value =  rel_split[n].substring(equal_index + 1);
if(prop_name == 'width'){
var width_val = prop_value;
}
if(prop_name == 'height'){
var height_val = prop_value;
}
if(prop_name == 'chrome'){
var chrome_val = prop_value;
}
}
if(chrome_val == 'none'){
var chrome_options = 'location=no,menubar=no,status=no,toolbar=no';
}
window.open(href_val, 'popup', 'height=' + height_val + ',width=' + width_val + ',scrollbars=yes,resizable=yes,' + chrome_options);
YAHOO.util.Event.preventDefault(e);
})
});
}
function send_email(listings_per_page, records_processed, uri_prefix ) {
var num_records;
var emails = "";
var email = "";
if ( listings_per_page > records_processed ) {
num_records = records_processed;
} else {
num_records = listings_per_page;
}
for( i=1; i<=num_records; i++ ) {
el = eval("document.selectAll.check" + i);
if ( el ) {
if ( el.checked ) {
email = eval("document.selectAll.primary_email" + i);
if ( email.value !== "" ) {
emails = emails + email.value + ';';
}
}
}
} 
if (emails) {
location.href = "mailto:" + emails;
} else {
alert("You must select at least one Contact that has an e-mail address.");
}
} 
function checkUncheckAll(listings_per_page, records_processed) {
var num_records;
if (listings_per_page > records_processed) {
num_records = records_processed;
} else {
num_records = listings_per_page;
}
for(i=1; i<=num_records; i++) {
el = eval("document.selectAll.check" + i);
if ( el ) {
if ( document.selectAll.checkall.checked === true ){
el.checked = true;
} else {
el.checked = false;
}
} 
}
} 
function preDelete( formname, url ) {
var f = document.forms[formname];
var listings_per_page = f.count.value;
var records_processed = f.rcount.value;
var num_records,agree,i;
var stripid = /.*_(.*)?/;
num_records = ( listings_per_page > records_processed ) ? records_processed : listings_per_page;
f.contact_id.value = "";
for( i=1; i<=num_records; i++ ) {
el = eval("f.check" + i);
if ( el ) {
if ( el.checked ) {
id_num = el.id.substring(el.id.lastIndexOf('_')+1);
f.contact_id.value += id_num + ';';
}
}
} 
if ( f.contact_id.value.length > 1 ) {
agree = confirm(f.confirm_delete.value);
if ( agree ) {
f.action = url;
f.submit();
}
return true;
} else {
alert("You have not selected any contacts. Click at least one contact's checkbox that you want to delete and try again.");
return false;
}
} // end preDelete
function swapElementText( id, find, repl ) {
el = document.getElementById(id);
if (el) {
re = new RegExp(find,'g');
txt = el.innerHTML;
el.innerHTML = txt.replace(re,repl);
}
} 
function addElementText(id, value) {
var el = WPScript.get(id);
el.innerHTML = value;
} 
function getCookieData( name, stage, key ) {
stage = ( stage===null || stage==='' || stage == 'production' ) ? '' : '_' + stage;
name = 'wpn_' + name + '' + stage;
var c = document.cookie.split('; ');
var i,nvp,j;
for ( i=0; i<c.length; i++ ) {
if ( c[i].indexOf(name) > -1 ) {
nvp = c[i].split('=')[1].split('%26');  // Get the name value pairs
for ( j=0; j<nvp.length; j++ ) {
if ( nvp[j].split('%3D')[0] == key ) { return nvp[j].split('%3D')[1]; }
}
}
}
return '';  
} 
function get_rdb_cookie(stage) {
var name = 'RDB';
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if ( c.indexOf(nameEQ) == 0 ) {
var rdb_fields = [];
var rdb_regex = 
/(.{4})(.{6})(.{4})(.{4})(.{2})(.{2})(.{2})(.{2})(.{2})(.{2})(.{1})(.{1})(.{1})(.{1})(.{1})(.{1})(.{1})(.{1})(.{8})(.{3})(.{5})/;
rdb_fields = c.substring( nameEQ.length,c.length ).match( rdb_regex );
if (rdb_fields) {
return rdb_fields;
}
}
}
return null;
}
function dec2hex ( dec ) {
return dec.toString(16);
}
/** "WP: Hexadecimal to Decimal */
function hex2dec ( hex ) {
return parseInt(hex,16);
}
function compareDate( a, b ) {
if ( a===null || a==='' ) { a = new Date(); }
return ( b===null || b==='' )
? false
: ( a > b ) ? true : false;
} 
function getDateOffset( d, offset ) {
if ( offset===null || offset==='' ) { offset = 0; } 
d.setDate(
parseInt( d.getDate(), 10 )
+ parseInt( offset, 10 )
); 
return d;
} 
function translateDate( dateString, parser ) {
if ( dateString===null || dateString==='' ) { return ''; } 
if ( parser===null || parser==='' ) { parser = '/'; }      
var d = new Date();
d.setFullYear(parseInt(dateString.split(parser)[0],10));
d.setMonth(parseInt(dateString.split(parser)[1],10) - 1); // January == 0
d.setDate(parseInt(dateString.split(parser)[2],10));
return d;
} 
function releaseSurvey( siteId, formName, disable, stage, exp ){
if ( disable===true || disable=='true' ) { return false; } // Disable blocker
var authForms = ['pers_form','email_form','rp_form','ra_form','dual','wp_biz_form','wp_biz_cat_form'];
var isAuth    = false;
var formIsAuth = 0;
for ( var i = 0; i < authForms.length; i++ ) {
if ( formName.indexOf(authForms[i]) > -1 ) { isAuth = true; }
}
if ( isAuth === false ) { return false; }
var cDate = translateDate( getCookieData( 'persistent', stage, 'survey_rdate' ), '-' );
if ( cDate===null || cDate==='' ) { 
cDate = new Date();
cDate.setMonth(
parseInt( cDate.getMonth(), 10 ) - 12
); 
}
else {
cDate = getDateOffset( cDate, exp );
}
// Next, let's take a look at the cookie to see if we have an eDate
var dom,domain,uri,wW,wH;
if ( compareDate( new Date(), cDate ) ) { // Is the cDate bigger than the expiration limit??
dom    = ( location.href.substring( 0, 7 ) == 'http:\/\/' )
? location.href.substring(7)
: location.href;
dom    = dom.substring( 0, dom.indexOf('\/') );
domain = ( dom.indexOf('\\:') > -1 ) ? dom.substring( 0, dom.indexOf('\\:') ) : dom;
uri    = (siteId) ? dom + '/' + siteId : dom;
wW     =	(typeof(window.survey)!="undefined" && 'width' in survey ? survey.width : 350);
wH     =	(typeof(window.survey)!="undefined" && 'height' in survey ? survey.height : 660);
w = window.open(
'http://' + uri + '/survey' + '?wsb13=' + uri + 
'&wsb15=' + domain + '&localtime=survey',
'',
"width="+wW+",height="+wH+",toolbars=no,location=no,scrollbars=yes,resizable=yes,status=no"
);              
w.blur();       
window.focus(); 
return true;    
}
return false; 
} 
function releaseDemoSurvey(stage){
if(document.cookie.indexOf('seenDemoSurvey') < 0){
var pop_top = ((screen.height*1) / 2) - (550/2);
var pop_left = ((screen.width*1) / 2) - (739/2);
var pop_options = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=739,height=550,left=' + pop_left + ',top=' + pop_top + ',screenX=,screenY=';
document.cookie = "seenDemoSurvey=true;path=/;";
window.open('/profile_survey', 'popUpWin', pop_options);
}
return true;
}
function resizeWindow(x, y){
if (parseInt(navigator.appVersion,10) > 3) {
if (navigator.appName=="Netscape") {
top.outerWidth=x;
top.outerHeight=y;
}
else {
top.resizeTo(x,y);
}
}
else {
top.resizeTo(x,y);
}
} 
function changeHeight(target_id,target_size){
var e=document.getElementById(target_id);
current_height = e.clientHeight;
if(e.getAttribute('toggle_status') != 'open'){
if(current_height >= target_size){
clearTimeout(openTimeout);
e.setAttribute('toggle_status','open');
}else{
current_height = current_height + 20;
e.style.height = current_height;
openTimeout = setTimeout(function(){changeHeight(target_id,target_size);},0);
}
}else{
if(current_height <= 1){
clearTimeout(closeTimeout);
e.setAttribute('toggle_status','closed');
}else{
current_height = current_height - 20;
e.style.height = current_height;
closeTimeout = setTimeout(function(){changeHeight(target_id,target_size);},0);
}
}
}
//This is for the single results page sendsave button dropdown on RPR sites
function togglediv(whichdiv,parent_div) {
var thediv = document.getElementById(whichdiv);
var e = document.getElementById(parent_div);
thediv.style.display = ( thediv.style.display != 'block' ) ? 'block' : 'none';
e.className = ( e.className != 'results_single_action_active' )
? 'results_single_action_active' : 'results_single_action';
}
function toggleImg(parent_div) {
var thediv = document.getElementById(parent_div);
thediv.className = ( thediv.className != 'open' ) ? 'open' : 'closed';
}
var hideImg = function(){
try {
var img = document.body.firstChild;
if (img.name && img.name.indexOf('s_i_whitepages')===0) {
img.style.position="absolute"; img.style.top="-2";
}
}
catch (err) { 
}
};
hideImg();
function PLL() {
if (document.getElementById("tdPCLeft") && document.getElementById("tdPCRight")) 	{
this.oL = getChildElement(document.getElementById("tdPCLeft"), "searchbox_border");
this.oR = getChildElement(document.getElementById("tdPCRight"), "searchbox_border");
if (this.oL && this.oR) 		{
if(this.oL.offsetHeight<this.oR.offsetHeight) {
this.oL.style.height=this.oR.offsetHeight;
this.oR.style.height=this.oR.offsetHeight;
}
else if(this.oR.offsetHeight<this.oL.offsetHeight) {
this.oR.style.height=this.oL.offsetHeight;
this.oL.style.height=this.oL.offsetHeight;
}
}
}
/**WP
* Summary: Loops through all of the child nodes of an element searching for
*          a node with either an ID or NAME that matches the search pattern.
* Returns: The first node that matches the search pattern NULL if no match found.
* Parameters:
*    OBJECT  obj - The parent element to search.
*    STRING  str - The ID/NAME to search for
*    BOOLEAN rcv - Search child nodes recursively.
*/
function getChildElement(obj,str,rcv) {
if (obj.hasChildNodes) {
for (this.i = 0; this.i <= (obj.childNodes.length-1); this.i++) {
if (obj.childNodes[this.i].id) {
if(obj.childNodes[this.i].id.toLowerCase().match(str)) {
return obj.childNodes[this.i];
} 
}
else if (obj.childNodes[this.i].name) {
if(obj.childNodes[this.i].name.toLowerCase().match(str)) {
return obj.childNodes[this.i];
} 
}
if (rcv) {
getChildElement(obj.childNodes[this.i], str, rcv);
}
}
}
return null;
}
}
function obsAddr(key) {
var url;
if (key=="101")	{ url="/cust_serv/contact_email_form?subject=Mobile Feedback&to_email=mobile-support&section_ref=mobile_test&page_ref=mobile_jump_page&page_title=mobile_page&site=10001"; } //mobile-support
window.open(url, 'contact_us', "width=520,height=540,toolbars=no,location=yes,scrollbars=yes,resizable=yes,status=no");
}
function help_text_flyout_action(action) {
var helpTextElement,helpElementHeight,helpTextIframe;
if(document.getElementById('helpTextFlyout')) {
helpTextElement = document.getElementById('helpTextFlyout');
helpTextElement.style.visibility = action;
helpElementHeight = helpTextElement.offsetHeight;
if(document.all && document.getElementById('helpTextFlyoutIframe')) {
helpTextIframe = document.getElementById('helpTextFlyoutIframe');
helpTextIframe.style.filter ='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
helpTextIframe.style.height = helpElementHeight;
helpTextIframe.style.visibility = action;
}
}
}
function getElementsByClassName(oElm, strTagName, oClassNames){
var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = [];
var arrRegExpClassNames = [];
var i;
if(typeof oClassNames == "object"){
for(i=0; i<oClassNames.length; i++){
arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/-/g, "\\-") + "(\\s|$)"));
}
}
else{
arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/-/g, "\\-") + "(\\s|$)"));
}
var oElement,bMatchesAll,j,k;
for(j=0; j<arrElements.length; j++){
oElement = arrElements[j];
bMatchesAll = true;
for(k=0; k<arrRegExpClassNames.length; k++){
if(!arrRegExpClassNames[k].test(oElement.className)){
bMatchesAll = false;
break;
}
}
if(bMatchesAll){
arrReturnElements.push(oElement);
}
}
return (arrReturnElements);
}
function show_city_whitepages(){ 
var cities_panel = document.getElementById('cities');
var cities_iframe = document.getElementById('cities_iframe');
if(cities_iframe){
if(cities_iframe.style.display == 'none' || cities_iframe.style.display === 'null' || cities_iframe.style.display === ''){
cities_iframe.style.display = 'block';	
}else{
cities_iframe.style.display = 'none';
}
}
if(cities_panel){
if(cities_panel.style.display == 'none' || cities_panel.style.display === 'null' || cities_panel.style.display === ''){
cities_panel.style.display = 'block';	
}else{
cities_panel.style.display = 'none';
}
}
}
function show_element(ele_name) {
var obj_ele = document.getElementById(ele_name);
if(obj_ele) {
if(obj_ele.style.display == 'none' || obj_ele.style.display === 'null' || obj_ele.style.display === '') {
obj_ele.style.display = 'block';	
}else{
obj_ele.style.display = 'none';
}
}
}
function hide_element(ele_name) {
var obj_ele = document.getElementById(ele_name);
obj_ele.style.display = 'none';
}
function resultsSuggestionsReviseExpando(obj) {
try {
if(obj.parentNode.className=='up') {
obj.parentNode.className='down';
obj.title="Click to collapse";
}else{
obj.parentNode.className='up';
obj.title="Click to expand";
}
}
catch (err) {}
}
function pnAboutExpando(obj){resultsSuggestionsReviseExpando(obj);}
function validate_listing( f, strURL ) {
var doc = 
(window.XMLHttpRequest) ? new XMLHttpRequest() : 
(window.ActiveXObject)  ? new ActiveXObject("Microsoft.XMLHTTP") : 
null;
if ( doc !== null ) {
doc.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {
if (callback) { callback(this.responseXML); }
} else {
}
}
}
doc.open( "GET", strURL, true );
doc.send(null);
}
return doc;
} 
function claim_listing( f, strURL ) {
var doc =
(window.XMLHttpRequest) ? new XMLHttpRequest() :
(window.ActiveXObject)  ? new ActiveXObject("Microsoft.XMLHTTP") :
null;
if ( doc !== null ) {
doc.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {
if (callback) { callback(this.responseXML); }
} else {
}
}
}
doc.open( "GET", strURL, true );
doc.send(null);
}
return doc;
}
function send_listing_feedback(f) {
opener.document.getElementById('results_single_listing_validation_thanks_this_is_me_container').style.display='block';
opener.document.getElementById('results_single_listing_validation_tellus_container').style.display='none';
f.submit();
opener.focus();
}
function goToNewPage(list)  {
var url = list.options[list.selectedIndex].value;
if (url != "")
{
window.open(url);
}
}
String.prototype.Left = function ()
{
if(arguments.length == 0){return this.toString();}
var n = parseInt(arguments[0]);
if(isNaN(n)){return this.toString();}
if (n <= 0) {return "";}
else if (n > this.length) {return this.toString();}
else {return this.substring(0,n);}
};
String.prototype.Right = function ()
{
if(arguments.length == 0){return this.toString();}
var n = parseInt(arguments[0]);
if(isNaN(n)){return this.toString();}
if (n <= 0) {return "";}
else if (n > this.length) {return this.toString();}
else {return this.substring(this.length, (this.length - n));}
}
String.Left = function(s,n){return s.Left(n);}
String.Right = function(s,n){return s.Right(n);}
String.Format = function()
{
if(arguments.length == 0){return null;}
var str = arguments[0];
for(var i=1;i<arguments.length;i++)
{
var re = new RegExp('\\{' + (i-1) + '\\}','gm');
str = str.replace(re, arguments[i]);
}
return str;
}
var DemoSurvey;
var common_ad;
var Jiffy = function (){
this.addBulkLoad = function(_eventName, elapsedTime){
measures.captured[_eventName] = elapsedTime;	
}
this.getUID = function(){
return Math.round(Math.random() * 1000000000000000);
}
this.checkRemoveEvent = function(eventName){
if(eventsForRemoval[eventName] != null){
var captureDetails = eventsForRemoval[eventName];
WPScript.removeEvent(captureDetails.element_id, captureDetails.browser_event, captureDetails.callback_func, true);
}
}
this.addMarksMeasures = function(referenceID, eventName, elapseTime, refTime){
marks_measures.push({name: referenceID, evt:eventName, et:elapseTime, rt:refTime});
}
var eventsForRemoval = {};
var pageTimer = (window.JiffyParams == undefined) ? (new Date()).getTime():(JiffyParams.jsStart != undefined) ? JiffyParams.jsStart:(new Date()).getTime();
var pname = (window.JiffyParams == undefined) ? window.location:(JiffyParams.pname != undefined) ? JiffyParams.pname:window.location;
var sid = (window.JiffyParams == undefined) ? window.location.hostname:(JiffyParams.sid != undefined) ? JiffyParams.sid:window.location.hostname;
var uid = (window.JiffyParams == undefined) ?  getUID():(JiffyParams.uid != undefined) ? JiffyParams.uid:getUID();
var markers = [];
var measures = {
pn:pname,
st:pageTimer,
uid:uid,
sid:sid,
captured:{}
};
var marks_measures = [];
return{
mark : function(referenceID){
var currTime = (new Date()).getTime();
markers[referenceID] = {startTime: currTime, lastTime: currTime}; 
},
measure : function(eventName, referenceID){
if(Jiffy.options.USE_JIFFY == undefined || !Jiffy.options.USE_JIFFY){return};
var _eventName = (typeof eventName == "string" ? eventName : eventName.type); 
var currTime = new Date().getTime();
var refStartTime;
var elapsedTime;
if(referenceID != null && markers[referenceID] != null) {
refStartTime = markers[referenceID].lastTime;
elapsedTime = currTime - refStartTime;
markers[referenceID].lastTime = currTime;
}
else
{
refStartTime = pageTimer;
elapsedTime = currTime - refStartTime;
}
if(referenceID != null) {
addMarksMeasures(referenceID, _eventName, elapsedTime, refStartTime);
}
else{
markers["PageStart"] = {startTime: refStartTime, lastTime: currTime};
addMarksMeasures("PageStart", _eventName, elapsedTime, refStartTime); 
}
if(Jiffy.options.ISBULKLOAD && _eventName != "unload"){
addBulkLoad(_eventName, elapsedTime);
}
else{
var curMeasures = _eventName+":"+elapsedTime;
WPScript.Ajax.get('/rx',{uid:uid,sid:sid,st:pageTimer,pn:pname,ets:curMeasures});
}
checkRemoveEvent(eventName);
},
_bulkLoad: function(){
var bulkmeasures = Jiffy.getMeasures();
var bulkmeasuresCount = bulkmeasures.length;
var measuresStr = "";
for(x=0;x<bulkmeasuresCount;x++){
measuresStr += bulkmeasures[x].evt +":"+ bulkmeasures[x].et+ ",";
}
measuresStr = measuresStr.replace(/\,$/g,'');
WPScript.Ajax.get('/rx',{uid:uid,sid:sud,st:pageTimer,pn:pname,ets:measuresStr});	
},
getMeasures: function(){
return marks_measures;
},
clearMeasures: function() {
marks_measures = [];
markers = [];
},
capture: function(elemID, browserEvent, eventName, isAutoTrigger){
try{
if(measures.pn == "HOME" || measures.pn == "PERS_FORM"){
var el = document.getElementById(elemID);
var callback = function(){Jiffy.measure(eventName)};
WPScript.on(elemID, browserEvent, callback, true);
eventsForRemoval[eventName] = {element_id:elemID, browser_event:browserEvent, callback_func: callback};
el.focus();  
}
}
catch(e){
if(!Jiffy.options.SOFT_ERRORS){
alert(e.message);
}
}
}
} 
}();
Jiffy.options = {
USE_JIFFY:false,
ISBULKLOAD: false,
BROWSER_EVENTS: {"unload":window,"load":window},
SOFT_ERRORS: false,
THROTTLE: 0
};
Jiffy.init = function(){
if(window.JiffyParams != undefined){WPScript.hashMerge(window.JiffyParams, Jiffy.options);}
var target = Math.round(Math.random()*100);
if(Jiffy.options.THROTTLE === undefined || parseInt(Jiffy.options.THROTTLE) < 1){return;} else 
if(target <= parseInt(Jiffy.options.THROTTLE)){Jiffy.options.USE_JIFFY=true;}
if(Jiffy.options.USE_JIFFY == undefined || !Jiffy.options.USE_JIFFY){return;};
var BROWSER_EVENTS = Jiffy.options.BROWSER_EVENTS;
for (var bEvents in BROWSER_EVENTS)
{
var objToBind = BROWSER_EVENTS[bEvents];
if(objToBind){
WPScript.on(objToBind,bEvents, Jiffy.measure);
}
}
if(Jiffy.options.ISBULKLOAD){
WPScript.on(window, "load", Jiffy._bulkLoad);
}
};
Jiffy.init();
var scripts = document.getElementsByTagName('script');
var idx = scripts.length -1;
var qparams = WPScript.parseQuery(scripts[idx].src);
//var stg = ( WPScript.inArray( ['prod','prev','stag','qa','dev', 'demosurvey'], qparams['stg'] ) ) ? qparams['stg'] : 'dev';
//alert("common.js - qparams['omni_account']: " + qparams['omni_account']);
var omni_accounts = qparams['omni_account'].split(',');
for ( var i=0; i<omni_accounts.length; i++ ) {
omni_accounts[i] = omni_accounts[i] + qparams['stg'];
}
omni_set_account( omni_accounts.join() );
function tabMode(args)
{
if('a' in args && 'b' in args && 'c' in args)
{
var s = args.a;
var p = args.a.parentNode
var g = args.a.parentNode.parentNode;
try
{
if(g.className.indexOf(args.c)>0){return;}
g.className = classSwapper({a:g, b:args.b, c:args.c})
p.className = classSwapper({a:p, b:'off', c:'active'})
s.className = classSwapper({a:s, b:'off', c:'active'})
if ('h' in args)
{
document.getElementById(args.h).value=args.c;
}
if ('d' in args)
{
tabMode({a:document.getElementById(args.d), b:args.b, c:args.c});
}
}
catch (e)
{
alert(e.message);
}
}
}
function classSwapper(args)
{
return (args.a.className.indexOf(args.b) > 0) ? args.a.className.replace(args.b, args.c) : args.a.className.replace(args.c, args.b);
}
function stopDefAction(evt)
{
try
{
(evt.preventDefault) ? evt.preventDefault() : evt.returnValue = false;
}
catch (e){alert(e.messsage);}
}
function MM_preloadImages()
{
var d=document;
if(d.images)
{
if(!d.MM_p) 
{
d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0)
{
d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];
}
}
}
}
function optB_clearForm(obj)
{
if(obj.form_mode.value=="opt_b")
{
obj.metro_area.checked=false;
obj.name_begins_with.checked=false;
obj.street.value="";
}
}
function actb(obj,ca){
this.actb_timeOut = -1;       
this.actb_lim = -1;           
this.actb_firstText = false   
this.actb_mouse = true;       
this.actb_delimiter = ['|'];  
this.actb_startcheck = 1;     
this.actb_ieautocomplete = 'off'; 
this.actb_bgColor = '#FFF';
this.actb_textColor = '#000';
this.actb_border = 'solid 1px WindowFrame ';
this.actb_hColor = '#CCC';
this.actb_fFamily = 'Verdana';
this.actb_fSize = '11px';
this.actb_hStyle = 'text-decoration:underline;font-weight:bold;';
var actb_delimwords = [];
var actb_cdelimword = 0;
var actb_delimchar = [];
var actb_display = false;
var actb_pos = 0;
var actb_total = 0;
var actb_curr = null;
var actb_rangeu = 0;
var actb_ranged = 0;
var actb_bool = [];
var actb_pre = 0;
var actb_toid;
var actb_tomake = false;
var actb_getpre = "";
var actb_mouse_on_list = 1;
var actb_kwcount = 0;
var actb_caretmove = false;
this.actb_keywords = [];
this.actb_keywords = ca;
var actb_self = this;
actb_curr = obj;
addEvent(actb_curr,"focus",actb_setup);
function actb_setup(){
addEvent(document,"keydown",actb_checkkey);
addEvent(actb_curr,"blur",actb_clear);
addEvent(document,"keypress",actb_keypress);
addEvent(document,"keyup",wpn_keyup);
}
function actb_clear(evt){
if (!evt) evt = event;
removeEvent(document,"keydown",actb_checkkey);
removeEvent(actb_curr,"blur",actb_clear);
removeEvent(document,"keypress",actb_keypress);
removeEvent(document,"keyup",wpn_keyup);
actb_removedisp();
actb_curr.value = actb_curr.value.toUpperCase();
}
function wpn_keyup(n){
actb_firstText = (obj.value.length<=1);
}
function actb_parse(n){
if (actb_self.actb_delimiter.length > 0){
var t = actb_delimwords[actb_cdelimword].trim().addslashes();
var plen = actb_delimwords[actb_cdelimword].trim().length;
}else{
var t = actb_curr.value.addslashes();
var plen = actb_curr.value.length;
}
var tobuild = '';
var i;
if (actb_self.actb_firstText){
var re = new RegExp("(^|(?:-\\s))" + t, "i");
}else{
var re = new RegExp("(^|(?:-\\s))" + t, "i");
}
var p = n.search(re);
for (i=0;i<p;i++){
tobuild += n.substr(i,1);
}
if(p == 0){
tobuild = actb_build_str(i, p, n, plen, tobuild);
}else{
for (i=2;i<5;i++){
tobuild += n.substr(i,1);
}
p += 2;
tobuild = actb_build_str(i, p, n, plen, tobuild);
}
return tobuild;
}
function actb_build_str(i, p, n, plen, tobuild){
tobuild += "<font style='"+(actb_self.actb_hStyle)+"'>"
for (i=p;i<plen+p;i++){
tobuild += n.substr(i,1);
}
tobuild += "</font>";
for (i=plen+p;i<n.length;i++){
tobuild += n.substr(i,1);
}
return tobuild;
}
function actb_generate(){
if (document.getElementById('tat_table')){ actb_display = false;document.body.removeChild(document.getElementById('tat_table')); } 
if (actb_kwcount == 0){
actb_display = false;
return;
}
a = document.createElement('table');
a.cellSpacing='1px';
a.cellPadding='2px';
a.style.position='absolute';
a.style.top = eval(curTop(actb_curr) + actb_curr.offsetHeight) + "px";
a.style.left = curLeft(actb_curr) + "px";
a.style.backgroundColor=actb_self.actb_bgColor;
a.style.border=actb_self.actb_border;
a.id = 'tat_table';
document.body.appendChild(a);
var i;
var first = true;
var j = 1;
if (actb_self.actb_mouse){
a.onmouseout = actb_table_unfocus;
a.onmouseover = actb_table_focus;
}
var counter = 0;
for (i=0;i<actb_self.actb_keywords.length;i++){
if (actb_bool[i]){
counter++;
r = a.insertRow(-1);
if (first && !actb_tomake){
r.style.backgroundColor = actb_self.actb_hColor;
first = false;
actb_pos = counter;
}else if(actb_pre == i){
r.style.backgroundColor = actb_self.actb_hColor;
first = false;
actb_pos = counter;
}else{
r.style.backgroundColor = actb_self.actb_bgColor;
}
r.id = 'tat_tr'+(j);
c = r.insertCell(-1);
c.style.color = actb_self.actb_textColor;
c.style.fontFamily = actb_self.actb_fFamily;
c.style.fontSize = actb_self.actb_fSize;
c.innerHTML = actb_parse(actb_self.actb_keywords[i]);
c.id = 'tat_td'+(j);
c.setAttribute('pos',j);
if (actb_self.actb_mouse){
c.style.cursor = 'pointer';
c.onclick=actb_mouseclick;
c.onmouseover = actb_table_highlight;
}
j++;
}
if (j - 1 == actb_self.actb_lim && j < actb_total){
r = a.insertRow(-1);
r.style.backgroundColor = actb_self.actb_bgColor;
c = r.insertCell(-1);
c.style.color = actb_self.actb_textColor;
c.style.fontFamily = 'arial narrow';
c.style.fontSize = actb_self.actb_fSize;
c.align='center';
replaceHTML(c,'\\/');
if (actb_self.actb_mouse){
c.style.cursor = 'pointer';
c.onclick = actb_mouse_down;
}
break;
}
}
actb_rangeu = 1;
actb_ranged = j-1;
actb_display = true;
if (actb_pos <= 0) actb_pos = 1;
}
function actb_remake(){
document.body.removeChild(document.getElementById('tat_table'));
a = document.createElement('table');
a.cellSpacing='1px';
a.cellPadding='2px';
a.style.position='absolute';
a.style.top = eval(curTop(actb_curr) + actb_curr.offsetHeight) + "px";
a.style.left = curLeft(actb_curr) + "px";
a.style.backgroundColor=actb_self.actb_bgColor;
a.id = 'tat_table';
if (actb_self.actb_mouse){
a.onmouseout= actb_table_unfocus;
a.onmouseover=actb_table_focus;
}
document.body.appendChild(a);
var i;
var first = true;
var j = 1;
if (actb_rangeu > 1){
r = a.insertRow(-1);
r.style.backgroundColor = actb_self.actb_bgColor;
c = r.insertCell(-1);
c.style.color = actb_self.actb_textColor;
c.style.fontFamily = 'arial narrow';
c.style.fontSize = actb_self.actb_fSize;
c.align='center';
replaceHTML(c,'/\\');
if (actb_self.actb_mouse){
c.style.cursor = 'pointer';
c.onclick = actb_mouse_up;
}
}
for (i=0;i<actb_self.actb_keywords.length;i++){
if (actb_bool[i]){
if (j >= actb_rangeu && j <= actb_ranged){
r = a.insertRow(-1);
r.style.backgroundColor = actb_self.actb_bgColor;
r.id = 'tat_tr'+(j);
c = r.insertCell(-1);
c.style.color = actb_self.actb_textColor;
c.style.fontFamily = actb_self.actb_fFamily;
c.style.fontSize = actb_self.actb_fSize;
c.innerHTML = actb_parse(actb_self.actb_keywords[i]);
c.id = 'tat_td'+(j);
c.setAttribute('pos',j);
if (actb_self.actb_mouse){
c.style.cursor = 'pointer';
c.onclick=actb_mouseclick;
c.onmouseover = actb_table_highlight;
}
j++;
}else{
j++;
}
}
if (j > actb_ranged) break;
}
if (j-1 < actb_total){
r = a.insertRow(-1);
r.style.backgroundColor = actb_self.actb_bgColor;
c = r.insertCell(-1);
c.style.color = actb_self.actb_textColor;
c.style.fontFamily = 'arial narrow';
c.style.fontSize = actb_self.actb_fSize;
c.align='center';
replaceHTML(c,'\\/');
if (actb_self.actb_mouse){
c.style.cursor = 'pointer';
c.onclick = actb_mouse_down;
}
}
}
function actb_goup(){
if (!actb_display) return;
if (actb_pos == 1) return;
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
actb_pos--;
if (actb_pos < actb_rangeu) actb_moveup();
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
}
function actb_godown(){
if (!actb_display) return;
if (actb_pos == actb_total) return;
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
actb_pos++;
if (actb_pos > actb_ranged) actb_movedown();
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
}
function actb_movedown(){
actb_rangeu++;
actb_ranged++;
actb_remake();
}
function actb_moveup(){
actb_rangeu--;
actb_ranged--;
actb_remake();
}
function actb_mouse_down(){
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
actb_pos++;
actb_movedown();
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
actb_curr.focus();
actb_mouse_on_list = 0;
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
}
function actb_mouse_up(evt){
if (!evt) evt = event;
if (evt.stopPropagation){
evt.stopPropagation();
}else{
evt.cancelBubble = true;
}
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
actb_pos--;
actb_moveup();
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
actb_curr.focus();
actb_mouse_on_list = 0;
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
}
function actb_mouseclick(evt){
if (!evt) evt = event;
if (!actb_display) return;
actb_mouse_on_list = 0;
actb_pos = this.getAttribute('pos');
actb_penter();
}
function actb_table_focus(){
actb_mouse_on_list = 1;
}
function actb_table_unfocus(){
actb_mouse_on_list = 0;
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list = 0;actb_removedisp();},actb_self.actb_timeOut);
}
function actb_table_highlight(){
actb_mouse_on_list = 1;
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
actb_pos = this.getAttribute('pos');
while (actb_pos < actb_rangeu) actb_moveup();
while (actb_pos > actb_ranged) actb_movedown();
document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list = 0;actb_removedisp();},actb_self.actb_timeOut);
}
function actb_insertword(a){
if (actb_self.actb_delimiter.length > 0){
str = '';
l=0;
for (i=0;i<actb_delimwords.length;i++){
if (actb_cdelimword == i){
prespace = postspace = '';
gotbreak = false;
for (j=0;j<actb_delimwords[i].length;++j){
if (actb_delimwords[i].charAt(j) != ' '){
gotbreak = true;
break;
}
prespace += ' ';
}
for (j=actb_delimwords[i].length-1;j>=0;--j){
if (actb_delimwords[i].charAt(j) != ' ') break;
postspace += ' ';
}
str += prespace;
str += a;
l = str.length;
if (gotbreak) str += postspace;
}else{
str += actb_delimwords[i];
}
if (i != actb_delimwords.length - 1){
str += actb_delimchar[i];
}
}
actb_curr.value = str.substring(0,2);
setCaret(actb_curr,l);
}else{
actb_curr.value = a.substring(0,2);
}
actb_mouse_on_list = 0;
actb_removedisp();
}
function actb_penter(){
if (!actb_display) return;
actb_display = false;
var word = '';
var c = 0;
for (var i=0;i<=actb_self.actb_keywords.length;i++){
if (actb_bool[i]) c++;
if (c == actb_pos){
word = actb_self.actb_keywords[i];
break;
}
}
actb_insertword(word);
l = getCaretStart(actb_curr);
}
function actb_removedisp(){
if (actb_mouse_on_list==0){
actb_display = 0;
if (document.getElementById('tat_table')){ document.body.removeChild(document.getElementById('tat_table')); }
if (actb_toid) clearTimeout(actb_toid);
}
}
function actb_keypress(e){
if (actb_caretmove) stopEvent(e);
return !actb_caretmove;
}
function actb_checkkey(evt){
if (!evt) evt = event;
a = evt.keyCode;
caret_pos_start = getCaretStart(actb_curr);
actb_caretmove = 0;
switch (a){
case 16:
return false;
break;
case 38:
actb_goup();
actb_caretmove = 1;
return false;
break;
case 40:
actb_godown();
actb_caretmove = 1;
return false;
break;
case 13: case 9:
if (actb_display){
actb_caretmove = 1;
actb_penter();
return false;
}else{
return true;
}
break;
default:
setTimeout(function(){actb_tocomplete(a)},50);
break;
}
}
function actb_tocomplete(kc){
if (kc == 38 || kc == 40 || kc == 13) return;
var i;
if (actb_display){ 
var word = 0;
var c = 0;
for (var i=0;i<=actb_self.actb_keywords.length;i++){
if (actb_bool[i]) c++;
if (c == actb_pos){
word = i;
break;
}
}
actb_pre = word;
}else{ actb_pre = -1};
if (actb_curr.value == ''){
actb_mouse_on_list = 0;
actb_removedisp();
return;
}
if (actb_self.actb_delimiter.length > 0){
caret_pos_start = getCaretStart(actb_curr);
caret_pos_end = getCaretEnd(actb_curr);
delim_split = '';
for (i=0;i<actb_self.actb_delimiter.length;i++){
delim_split += actb_self.actb_delimiter[i];
}
delim_split = delim_split.addslashes();
delim_split_rx = new RegExp("(["+delim_split+"])");
c = 0;
actb_delimwords = new Array();
actb_delimwords[0] = '';
for (i=0,j=actb_curr.value.length;i<actb_curr.value.length;i++,j--){
if (actb_curr.value.substr(i,j).search(delim_split_rx) == 0){
ma = actb_curr.value.substr(i,j).match(delim_split_rx);
actb_delimchar[c] = ma[1];
c++;
actb_delimwords[c] = '';
}else{
actb_delimwords[c] += actb_curr.value.charAt(i);
}
}
var l = 0;
actb_cdelimword = -1;
for (i=0;i<actb_delimwords.length;i++){
if (caret_pos_end >= l && caret_pos_end <= l + actb_delimwords[i].length){
actb_cdelimword = i;
}
l+=actb_delimwords[i].length + 1;
}
var ot = actb_delimwords[actb_cdelimword].trim(); 
var t = actb_delimwords[actb_cdelimword].addslashes().trim();
}else{
var ot = actb_curr.value;
var t = actb_curr.value.addslashes();
}
if (ot.length == 0){
actb_mouse_on_list = 0;
actb_removedisp();
}
if (ot.length < actb_self.actb_startcheck) return this;
if (actb_self.actb_firstText){
var re = new RegExp("(^|(?:-\\s))" + t, "i");
}else{
var re = new RegExp("(^|(?:-\\s))" + t, "i");
}
actb_total = 0;
actb_tomake = false;
actb_kwcount = 0;
for (i=0;i<actb_self.actb_keywords.length;i++){
actb_bool[i] = false;
if (re.test(actb_self.actb_keywords[i])){
actb_total++;
actb_bool[i] = true;
actb_kwcount++;
if (actb_pre == i) actb_tomake = true;
}
}
if (actb_toid) clearTimeout(actb_toid);
if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list = 0;actb_removedisp();},actb_self.actb_timeOut);
actb_generate();
}
return this;
}
function addEvent(obj,event_name,func_name){
if (obj) {
if (obj.attachEvent){
obj.attachEvent("on"+event_name, func_name);
}else if(obj.addEventListener){
obj.addEventListener(event_name,func_name,true);
}else{
obj["on"+event_name] = func_name;
}
} else {
// Invalid obj was passed in.
// alert('Obj: ' + obj + '\nevent_name: ' + event_name + '\nfunc_name: ' + func_name);
}
}
function removeEvent(obj,event_name,func_name){
if (obj.detachEvent){
obj.detachEvent("on"+event_name,func_name);
}else if(obj.removeEventListener){
obj.removeEventListener(event_name,func_name,true);
}else{
obj["on"+event_name] = null;
}
}
function stopEvent(evt){
evt || window.event;
if (evt.stopPropagation){
evt.stopPropagation();
evt.preventDefault();
}else if(typeof evt.cancelBubble != "undefined"){
evt.cancelBubble = true;
evt.returnValue = false;
}
return false;
}
function getElement(evt){
if (window.event){
return window.event.srcElement;
}else{
return evt.currentTarget;
}
}
function getTargetElement(evt){
if (window.event){
return window.event.srcElement;
}else{
return evt.target;
}
}
function stopSelect(obj){
if (typeof obj.onselectstart != 'undefined'){
addEvent(obj,"selectstart",function(){ return false;});
}
}
function getCaretEnd(obj){
if(typeof obj.selectionEnd != "undefined"){
return obj.selectionEnd;
}else if(document.selection&&document.selection.createRange){
var M=document.selection.createRange();
try{
var Lp = M.duplicate();
Lp.moveToElementText(obj);
}catch(e){
var Lp=obj.createTextRange();
}
Lp.setEndPoint("EndToEnd",M);
var rb=Lp.text.length;
if(rb>obj.value.length){
return -1;
}
return rb;
}
}
function getCaretStart(obj){
if(typeof obj.selectionStart != "undefined"){
return obj.selectionStart;
}else if(document.selection&&document.selection.createRange){
var M=document.selection.createRange();
try{
var Lp = M.duplicate();
Lp.moveToElementText(obj);
}catch(e){
var Lp=obj.createTextRange();
}
Lp.setEndPoint("EndToStart",M);
var rb=Lp.text.length;
if(rb>obj.value.length){
return -1;
}
return rb;
}
}
function setCaret(obj,l){
obj.focus();
if (obj.setSelectionRange){
obj.setSelectionRange(l,l);
}else if(obj.createTextRange){
m = obj.createTextRange();		
m.moveStart('character',l);
m.collapse();
m.select();
}
}
function setSelection(obj,s,e){
obj.focus();
if (obj.setSelectionRange){
obj.setSelectionRange(s,e);
}else if(obj.createTextRange){
m = obj.createTextRange();		
m.moveStart('character',s);
m.moveEnd('character',e);
m.select();
}
}
String.prototype.addslashes = function() {
return this.replace(/(["\\\.\|\[\]\^\*\+\?\$\(\)])/g, '\\$1');
}
String.prototype.trim = function () {
return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1");
};
function curTop(obj){
toreturn = 0;
while(obj){
toreturn += obj.offsetTop;
obj = obj.offsetParent;
}
return toreturn;
}
function curLeft(obj){
toreturn = 0;
while(obj){
toreturn += obj.offsetLeft;
obj = obj.offsetParent;
}
return toreturn;
}
function isNumber(a) {
return typeof a == 'number' && isFinite(a);
}
function replaceHTML(obj,text){
while(el = obj.childNodes[0]){
obj.removeChild(el);
};
obj.appendChild(document.createTextNode(text));
}
function COMMON_AD ( ) {
this.swap_list = [];
}
COMMON_AD.prototype.swap_array = {};
COMMON_AD.prototype.listing = {};
COMMON_AD.prototype.attrs = ['href', 'src', 'value']; 
/**
* Should be the equivalent of a public static method
*/
COMMON_AD.relocateAd = function(iframeObj, divName) {
var iframeDoc,
allScripts;
iframeDoc = iframeObj.contentWindow.document;
allScripts = iframeDoc.getElementsByTagName('script');
for (s = 0; s < allScripts.length; s++)
if (allScripts[s].src)
allScripts[s].src = '';
document.getElementById(divName).insertAdjacentElement('beforeEnd', iframeDoc.getElementById('adDiv'));
}
COMMON_AD.prototype.render_wpn_ad = function ( div_name, aamb_tag ) {
var invObj = 'INV' + div_name;
try {
var code = eval(aamb_tag);
var elAdDiv = document.getElementById(div_name);
if ((typeof(code) != 'undefined') && (elAdDiv !== null)) {
if(navigator.userAgent.indexOf('MSIE') > -1) {
if (div_name.match('text_link')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('endemic_panel')) {
//alert('code = ' + code);
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
//elAdDiv.innerHTML = code;
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('endemic_module')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('search_module')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('rich_media')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('prp_panel')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('top_rail_link')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('pop_under')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('results_custom_right_rail')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
} else if (div_name.match('teaser_link')) {
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
elAdDiv.appendChild(document.getElementById(invObj)).style.display = '';
/* CODE THAT CAUSED ISSUE WITH REPORTING DISCREPANCIES **
} else {
elAdDiv.innerHTML +=
'<div id="TMP' + div_name + '" style="display:none">' +
escape('<body><div id="adDiv">' + code + '</div>') +
'</div><iframe name="' + invObj + '" width="0" height="0" frameborder="0" ' +
'onload="javascript:try { document.getElementById(\'' + div_name + '\').' +
'insertAdjacentElement(\'beforeEnd\', window.frames[\'' + invObj + '\'].' +
'document.getElementById(\'adDiv\')) } catch(aamErr) { }"></iframe>';
window.frames[invObj].document.location =
'javascript:unescape(parent.document.getElementById(\'TMP' +
div_name + '\').innerHTML)';
}*/
} else {
elAdDiv.innerHTML +=
'<div id="TMP' + div_name + '" style="display:none">' + 
escape('<body><div id="adDiv">' + code + '</div>') +
'</div><iframe name="' + invObj + '"width="0" height="0" frameborder="0" ' +
'onload="javascript: COMMON_AD.relocateAd(this, \'' + div_name + '\');"></iframe>';
window.frames[invObj].document.location = 
'javascript:unescape(parent.document.getElementById(\'TMP' + 
div_name + '\').innerHTML)';
}
}
else {
if (div_name.match('search_module') || div_name.match('endemic_panel') || div_name.match('endemic_module')) {
elAdDiv.innerHTML = code;
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
} else if (div_name.match('text_link')) {
elAdDiv.innerHTML = code;
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
} else if (div_name.match('teaser_link')) {
elAdDiv.innerHTML = code;
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
} else if (div_name.match('results_custom_right_rail')) {
elAdDiv.innerHTML = code;
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
} else if (div_name.match('prp_panel')) {
elAdDiv.innerHTML = code;
document.write('<div id="' + invObj + '" style="display:none">' + code + '</div>');
} else {
document.writeln('<div id="' + invObj + '" style="display:none">' +
code + '<script type="text/javascript" defer="true">' +
'document.getElementById(\'' + div_name + '\').innerHTML = ' +
'document.getElementById(\'' + invObj + '\').innerHTML;' +
'document.getElementById(\'' + invObj +
'\').innerHTML = \'\';</scr' + 'ipt></div>');
}
}	
}
if ( this.swap_list[div_name] instanceof Object ) {
this.swap(div_name);
}
}
catch(aamErr) { 
//		alert(aamErr)
}
}
COMMON_AD.prototype.swap_values = function ( div_id ) {
this.swap_list[div_id] = {};
for (var i = 1; i < arguments.length; i += 2) {
this.swap_list[div_id]['__' + arguments[i] + '__'] = arguments[i+1];
}
this.token_replace(div_id);
}
COMMON_AD.prototype.swap = function ( div_id ) {
var div = document.getElementById( div_id );
listingData = this.swap_list[div_id];
this.checkNodeList( div.childNodes, listingData );
}
COMMON_AD.prototype.checkNodeList = function ( nodeList, listingData ) {
for ( var i=0, len=nodeList.length; i<len; i++ ) {
this.checkNode( nodeList[i], listingData );
}
}
COMMON_AD.prototype.checkNode = function ( node, listingData ) {
if ( node.nodeType == 3 ) {
for ( key in listingData ) {
if ( node.nodeValue.match('__' + key + '__') ) {
node.nodeValue = node.nodeValue.replace( '__' + key + '__', listingData[key] );
}
}
}
else {
for ( var k=0, leng=this.attrs.length; k<leng; k++ ) {
if ( node.attributes[ this.attrs[k] ] ) {
for ( key in listingData ) {
if ( node.attributes[this.attrs[k]].value.match('__' + key + '__') ) {
node.attributes[this.attrs[k]].value = node.attributes[this.attrs[k]].value.replace( '__' + key + '__', listingData[key] );
}
}
}
}
}
if ( node.hasChildNodes() ) {
this.checkNodeList( node.childNodes, listingData );
}
}
COMMON_AD.prototype.set_swap_object = function ( div_id, obj ) {
this.swap_list[div_id] = obj;
return;
}
COMMON_AD.prototype.swap_after_content = function ( ) {
var swapRegex = new RegExp("resultslink");
for ( var div_id in this.swap_list ) {
if ( div_id.match(swapRegex) ) {
this.token_replace( div_id );
}
}
}
COMMON_AD.prototype.token_replace = function ( div_id ) {
var div = document.getElementById(div_id);
if(div)
{
for (var tag in this.swap_list[div_id])
{
var regexp = new RegExp(tag, 'g');
div.innerHTML = div.innerHTML.replace(regexp, this.swap_list[div_id][tag]);
}
}
}
function getAge(rdb){
var age;
if(rdb){
if(hex2dec(rdb[9]) > 0){
age = hex2dec(rdb[9]);
}else if(hex2dec(rdb[21]) > 0){
var now = new Date();
var now_year = now.getFullYear();
var birth_year = hex2dec(rdb[21]);
age = now_year - birth_year;
}
}
return age;
}
COMMON_AD.prototype.get_rdb_params = function ( rdb ) {
var rdb_params = '';
if ( rdb instanceof Array ) {
var age_regex = /^(\d+\+*)/;
/** Debuging
var tmp = '';
for (key in rdb) {
tmp += key + ': ' + rdb[key] + '\n';
}
alert(tmp);
*/
// This is a test line added to the file to see what git does.
rdb_params += hex2dec( rdb[2] )  ? '/zip=' + hex2dec( rdb[2] )  : '';
rdb_params += hex2dec( rdb[5] )  ? '/gn=' + ['','M','F'][hex2dec( rdb[5] )] : '';
rdb_params += hex2dec( rdb[6] )  ? '/us=' + ['', '', 'B', '', 'P'][hex2dec( rdb[6] )] : '';  // 0, 1, & 3 are empty or undefined for some reason.  See Common/lib/Common/RDB.pm
rdb_params += hex2dec( rdb[9] ) || hex2dec( rdb[21] ) ? '/age=' + getAge(rdb)  : '';
rdb_params += hex2dec( rdb[11] ) ? '/connspeed=' + hex2dec( rdb[11] ) : '';
rdb_params += rdb[20] ? '/car=' + rdb[20] : '';
return rdb_params;
}
return '';
}
function WPN_AD (url, site, page, positions, query, test_mode, ad_call, ad_params)
{
var random_number = new String(Math.random());
this.area      = page ? '/area=' + page : '';
this.site      = site ? '/site=' + site : '';
this.aambx     = '';
this.positions = positions;
this.posn_list = new Object();
this.aryAdPos  = [];
this.rand_num  = random_number.substring(2,11);
this.query     = query;
this.test_mode = test_mode ? test_mode : false; //test_mode;
this.url       = url;
this.ad_call   = ad_call ? ad_call : '/bserver/AAMALL'; 
this.ad_params = ad_params ? ad_params : '';
this.timestamp();
}
WPN_AD.prototype.displayed;
WPN_AD.prototype.headers   = 0;
WPN_AD.prototype.area;
WPN_AD.prototype.site;
WPN_AD.prototype.aambx;
WPN_AD.prototype.positions;
WPN_AD.prototype.posn_list;
WPN_AD.prototype.aryAdPos;
WPN_AD.prototype.query;
WPN_AD.prototype.rand_num;
WPN_AD.prototype.test_mode;
WPN_AD.prototype.url;
WPN_AD.prototype.ad_call;
WPN_AD.prototype.ad_params;
WPN_AD.prototype.version   = (navigator.userAgent.indexOf('Mozilla/3')         != -1 ||
navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1    )
? 10
: 11;
/**	WP
*
*	Methods:
*
*/
WPN_AD.prototype.timestamp = function ( ) {
var date = new Date();
this.displayed = date.getTime();
}
WPN_AD.prototype.MJX_URL = function ( ) {
return this.url + this.ad_call
+ '/random=' + this.rand_num
+ '/pageid=' + this.rand_num
+ this.ad_params
+ this.site
+ this.area
+ this.aambx;
}
WPN_AD.prototype.header = function ( ) {
this.aryAdPos = this.positions.split(/,/);
for ( i=0,len=this.aryAdPos.length; i<len; i++ ) {
var j = i+1;
this.aambx += '/AAMB' + j + '/AAMSZ=' + this.aryAdPos[i];
}
document.write(
'<script id="ad_server_header_script" type=text/javascript src="'
+ this.MJX_URL() + '"></script>'
);
this.timestamp();
}
WPN_AD.prototype.ad = function (position, order) {
if (! this.posn_list[position]) {
this.posn_list[position] = 0;
};
document.writeln(order);
this.timestamp();
}
function xps_acquire( div_name, creative, atlas_url ) {
var request = getHTTPObject();
if ( request ) {
request.onreadystatechange = function() {
parseResponse( request, div_name );
};
var url = '/search/PublicSearch?dp=USSearch&creative=' + creative + 
'&oas_url=' + encodeURI( atlas_url ) + 
'&ad=' + div_name;
for ( var i = 3; i < arguments.length; i++ ) {
var arg = arguments[i].split( '=' );
if ( arg[0] == 'name' && arg.slice(1) == '' ) {
// we have no last name - fallback gracefully
xps_fallback( document.getElementById( div_name ) );
return false;
}
url += '&' +  arg[0]
+  '=' +  encodeURIComponent( arg.slice(1).join('=') );
}    
request.open( "GET", url, true );
request.send( null );
return true;
} else {
xps_fallback( document.getElementById( div_name ) );
return false;
}
}
function parseResponse( request, div_name ) {
if ( request.readyState == 4 ) {
if ( request.status == 200 || request.status == 304 ) {
var xps_div = document.getElementById( div_name );
xps_div.innerHTML = '';
var newdiv = document.createElement( 'div' );
newdiv.innerHTML = request.responseText;
xps_div.appendChild( newdiv ); 
xps_div.style.display = 'block';
}
xps_fallback( document.getElementById( div_name ) );    
}
}
function getHTTPObject() {
var xhr = false;
if ( window.XMLHttpRequest ) {
xhr = new XMLHttpRequest();
} else if ( window.ActiveXObject ) {
try {
xhr = new ActiveXObject( "Msxml2.XMLHTTP" );
} catch( e ) {
try { 
xhr = new ActiveXObject( "Microsoft.XMLHTTP" );
} catch( e ) {
xhr = false;
}
}
}
return xhr;
}
function xps_fallback( xps_div ) {
xps_div.style.display = 'block'; 
}
var omni_link_filters = [
'javascript:',
'address.com', 'phonenumber.com', 'whitepages.ca', 'whitepages411.com'
].join(',') + ',411.com/' + [
2321, 5138, 5153, 10002, 10668, 10786, 10789, 10815, 14874, 14957
].join(',411.com/') + ',whitepages.com/' + [
2321, 5138, 5153, 9900, 9901, 10001, 10002, 10583, 10592, 10668, 10786, 10789, 10815, 14867, 14874, 14957
].join(',whitepages.com/');
var omni_wpn_account; 
var omni_wpn_refer    = null;
function omni_set_account (account) {
omni_wpn_account = account;
}
function omni_refer (referer) {
omni_wpn_refer = referer;
var wp_match = omni_wpn_refer.match(/^https?\:\/\/.*\.(\w+\.\w+)(?::[0-9]+)?(?:\/([0-9]+)\b)?/);
if (wp_match != null) {
if (wp_match[1] == 'whitepages.com') {
if (wp_match[2] == null) {
omni_wpn_refer = null;
} else if (wp_match[2].match(/^(?:2321|5138|5153|9900|9901|10001|10002|10583|10592|10668|10786|10789|10815|14867|14874|14957)$/)) {
omni_wpn_refer = null;
}
} else if (wp_match[1] == '411.com') {
if (wp_match[2] == null) {
omni_wpn_refer = null;
} else if (wp_match[2].match(/^(?:2321|5138|5153|10668|10002|10786|10789|10815|14874|14957)$/)) {
omni_wpn_refer = null;
}
} else if (wp_match[1] == 'whitepages.ca') {
omni_wpn_refer = null;
} else if (wp_match[1].match(/^(?:address|phonenumber|whitepages411)\.com$/)) {
omni_wpn_refer = null;
}
}
}
function omni_settings (pagename, server, channel, pagetype, section, validity, events) {
if (server == ''){ server = 'No server set'};
s_wpn.pageName = pagename;
s_wpn.server   = server;
s_wpn.channel  = channel;
s_wpn.pageType = pagetype;
s_wpn.prop1    = section;
s_wpn.prop2    = validity;
s_wpn.prop3    = s_wpn.prop2  + ':' + s_wpn.pageName;
s_wpn.prop4    = s_wpn.server + ':' + s_wpn.pageName;
s_wpn.prop5    = (omni_wpn_refer ? (omni_wpn_refer + ':') : '') + s_wpn.pageName;
s_wpn.hier1    = s_wpn.channel + '|' + s_wpn.prop1;
s_wpn.eVar3    = s_wpn.server;
s_wpn.eVar4    = s_wpn.eVar3;
if(events && events.indexOf(',') > -1){
s_wpn.events = events;
}else{
s_wpn.events = 'event4';
}
s_wpn.linkTrackVars = "eVar3,eVar4"; 
}
var omni_debug_fields = "pageName,channel,server,pageType,prop1,prop2,prop3,prop4,prop5,hier1,eVar3,eVar4,events";
function omni_debugging ( ) {
var show = document.getElementById('Omniture_debug');
if (show) {
var field = omni_debug_fields.split(',');
var stuff = '<table><tr><th style="font-weight:bold">Omniture:</th></tr>'  
+ '<tr><td style="text-align:right">account:</td><td>&nbsp;</td><td style="text-align:left"><tt>'
+  omni_wpn_account
+  '</tt></td></tr>';
for (var i = 0; i < field.length; i++) {
stuff += '<tr><td style="text-align:right">'
+     field[i]
+ ':</td><td>&nbsp;</td><td style="text-align:left"><tt>'
+     s_wpn[field[i]]
+ '</tt></td></tr>';
}
stuff += '</table>';
show.innerHTML     = stuff;
show.style.display = 'block';
}
}
function omni_execute ( ) {
try {
var s_wpn_code = s_wpn.t();
if (s_wpn_code)
document.write( s_wpn_code )
}
catch (err) {
}
}
var Omni = function()
{
return new Omni.prototype.init();
}
Omni.prototype = {
/**
* init is the constructor
*
* @constructor
*/
init: function()
{
}
}
/**
* trackLinkEvent tracks the link as an event in omniture
*
* @static
* @param {string} eventName The eventName you wish to track in string form
* @param {object} linkObject DOM object of the A tag that contains the click -- needed for form buttons that need to be tracked.
*/ 
Omni.trackLinkEvent = function(eventName, linkObject)
{
s_wpn.linkTrackVars = 'events';
s_wpn.linkTrackEvents = eventName;
s_wpn.events = eventName;
s_wpn.tl(linkObject, 'e'); // e for exit link
}
var s_wpn=s_gi(omni_wpn_account); 
s_wpn.charSet="US-ASCII";
s_wpn.currencyCode="USD";
s_wpn.trackDownloadLinks    = true;
s_wpn.trackExternalLinks    = false;
s_wpn.trackInlineStats      = true;
s_wpn.linkDownloadFileTypes = "exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls";
s_wpn.linkInternalFilters   = omni_link_filters;	
s_wpn.linkLeaveQueryString  = false;
s_wpn.linkTrackVars         = "None";
s_wpn.linkTrackEvents       = "None";
s_wpn.formList              = ""; 		
s_wpn.trackFormList         = false; 	
s_wpn.trackPageName         = true;
s_wpn.useCommerce           = true; 		
s_wpn.varUsed               = "eVar5"; 	
/** abandonment only specified in Func Spec */
s_wpn.visitorNamespace      = "whitepages";
s_wpn.trackingServer        = "metrics.whitepages.com";
s_wpn.trackingServerSecure  = "smetrics.whitepages.com";
s_wpn.dc                    = 112;
function s_wpn_doPlugins (s_wpn) {
/* External Campaign Tracking */
s_wpn.campaign=s_wpn.getQueryParam('s_cid');
}
s_wpn.doPlugins             = s_wpn_doPlugins;
s_wpn.usePlugins            = true;
s_wpn.getQueryParam=new Function("p","d","u",""
+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:''+s.wd.loc"
+"ation);u=u=='f'?''+s.gtfs().location:u;while(p){i=p.indexOf(',');i="
+"i<0?p.length:i;t=s.p_gpv(p.substring(0,i),u);if(t)v+=v?d+t:t;p=p.su"
+"bstring(i==p.length?i:i+1)}return v");
s_wpn.p_gpv=new Function("k","u",""
+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"
+"=s.pt(q,'&','p_gvf',k)}return v");
s_wpn.p_gvf=new Function("t","k",""
+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"
+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."
+"epa(v)}return ''");
/* * WP turned off 
s_wpn.setupFormAnalysis=new Function(""
+"var s=this;if(!s.fa){s.fa=new Object;var f=s.fa;f.ol=s.wd.onload;s."
+"wd.onload=s.faol;f.uc=s.useCommerce;f.vu=s.varUsed;f.vl=f.uc?s.even"
+"tList:'';f.tfl=s.trackFormList;f.fl=s.formList;f.va=new Array('',''"
+",'','')}");
s_wpn.sendFormEvent=new Function("t","pn","fn","en",""
+"var s=this,f=s.fa;t=t=='s'?t:'e';f.va[0]=pn;f.va[1]=fn;f.va[3]=t=='"
+"s'?'Success':en;s.fasl(t);f.va[1]='';f.va[3]='';");
s_wpn.faol=new Function("e",""
+"var s=s_c_il["+s_wpn._in+"],f=s.fa,r=true,fo,fn,i,en,t,tf;if(!e)e=s.wd."
+"event;f.os=new Array;if(f.ol)r=f.ol(e);if(s.d.forms&&s.d.forms.leng"
+"th>0){for(i=s.d.forms.length-1;i>=0;i--){fo=s.d.forms[i];fn=fo.name"
+";tf=f.tfl&&s.pt(f.fl,',','ee',fn)||!f.tfl&&!s.pt(f.fl,',','ee',fn);"
+"if(tf){f.os[fn]=fo.onsubmit;fo.onsubmit=s.faos;f.va[1]=fn;f.va[3]='"
+"No Data Entered';for(en=0;en<fo.elements.length;en++){el=fo.element"
+"s[en];t=el.type;if(t&&t.toUpperCase){t=t.toUpperCase();var md=el.on"
+"mousedown,kd=el.onkeydown,omd=md?md.toString():'',okd=kd?kd.toStrin"
+"g():'';if(omd.indexOf('.fam(')<0&&okd.indexOf('.fam(')<0){el.s_famd"
+"=md;el.s_fakd=kd;el.onmousedown=s.fam;el.onkeydown=s.fam}}}}}f.ul=s"
+".wd.onunload;s.wd.onunload=s.fasl;}return r;");
s_wpn.faos=new Function("e",""
+"var s=s_c_il["+s_wpn._in+"],f=s.fa,su;if(!e)e=s.wd.event;if(f.vu){s[f.v"
+"u]='';f.va[1]='';f.va[3]='';}su=f.os[this.name];return su?su(e):tru"
+"e;");
s_wpn.fasl=new Function("e",""
+"var s=s_c_il["+s_wpn._in+"],f=s.fa,a=f.va,l=s.wd.location,ip=s.trackPag"
+"eName,p=s.pageName;if(a[1]!=''&&a[3]!=''){a[0]=!p&&ip?l.host+l.path"
+"name:a[0]?a[0]:p;if(!f.uc&&a[3]!='No Data Entered'){if(e=='e')a[2]="
+"'Error';else if(e=='s')a[2]='Success';else a[2]='Abandon'}else a[2]"
+"='';var tp=ip?a[0]+':':'',t3=e!='s'?':('+a[3]+')':'',ym=!f.uc&&a[3]"
+"!='No Data Entered'?tp+a[1]+':'+a[2]+t3:tp+a[1]+t3,ltv=s.linkTrackV"
+"ars,lte=s.linkTrackEvents,up=s.usePlugins;if(f.uc){s.linkTrackVars="
+"ltv=='None'?f.vu+',events':ltv+',events,'+f.vu;s.linkTrackEvents=lt"
+"e=='None'?f.vl:lte+','+f.vl;f.cnt=-1;if(e=='e')s.events=s.pt(f.vl,'"
+",','fage',2);else if(e=='s')s.events=s.pt(f.vl,',','fage',1);else s"
+".events=s.pt(f.vl,',','fage',0)}else{s.linkTrackVars=ltv=='None'?f."
+"vu:ltv+','+f.vu}s[f.vu]=ym;s.usePlugins=false;s.tl(true,'o','Form A"
+"nalysis');s[f.vu]='';s.usePlugins=up}return f.ul&&e!='e'&&e!='s'?f."
+"ul(e):true;");
s_wpn.fam=new Function("e",""
+"var s=s_c_il["+s_wpn._in+"],f=s.fa;if(!e) e=s.wd.event;var o=s.trackLas"
+"tChanged,et=e.type.toUpperCase(),t=this.type.toUpperCase(),fn=this."
+"form.name,en=this.name,sc=false;if(document.layers){kp=e.which;b=e."
+"which}else{kp=e.keyCode;b=e.button}et=et=='MOUSEDOWN'?1:et=='KEYDOW"
+"N'?2:et;if(f.ce!=en||f.cf!=fn){if(et==1&&b!=2&&'BUTTONSUBMITRESETIM"
+"AGERADIOCHECKBOXSELECT-ONEFILE'.indexOf(t)>-1){f.va[1]=fn;f.va[3]=e"
+"n;sc=true}else if(et==1&&b==2&&'TEXTAREAPASSWORDFILE'.indexOf(t)>-1"
+"){f.va[1]=fn;f.va[3]=en;sc=true}else if(et==2&&kp!=9&&kp!=13){f.va["
+"1]=fn;f.va[3]=en;sc=true}if(sc){nface=en;nfacf=fn}}if(et==1&&this.s"
+"_famd)return this.s_famd(e);if(et==2&&this.s_fakd)return this.s_fak"
+"d(e);");
s_wpn.ee=new Function("e","n",""
+"return n&&n.toLowerCase?e.toLowerCase()==n.toLowerCase():false;");
s_wpn.fage=new Function("e","a",""
+"var s=this,f=s.fa,x=f.cnt;x=x?x+1:1;f.cnt=x;return x==a?e:'';");
*/
var s_objectID;function s_c2fe(f){var x='',s=0,e,a,b,c;while(1){e=
f.indexOf('"',s);b=f.indexOf('\\',s);c=f.indexOf("\n",s);if(e<0||(b>=
0&&b<e))e=b;if(e<0||(c>=0&&c<e))e=c;if(e>=0){x+=(e>s?f.substring(s,e):
'')+(e==c?'\\n':'\\'+f.substring(e,e+1));s=e+1}else return x
+f.substring(s)}return f}function s_c2fa(f){var s=f.indexOf('(')+1,e=
f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')
a+='","';else if(("\n\r\t ").indexOf(c)<0)a+=c;s++}return a?'"'+a+'"':
a}function s_c2f(cc){cc=''+cc;var fc='var f=new Function(',s=
cc.indexOf(';',cc.indexOf('{')),e=cc.lastIndexOf('}'),o,a,d,q,c,f,h,x
fc+=s_c2fa(cc)+',"var s=new Object;';c=cc.substring(s+1,e);s=
c.indexOf('function');while(s>=0){d=1;q='';x=0;f=c.substring(s);a=
s_c2fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(
q){if(h==q&&!x)q='';if(h=='\\')x=x?0:1;else x=0}else{if(h=='"'||h=="'"
)q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)
+'new Function('+(a?a+',':'')+'"'+s_c2fe(c.substring(o+1,e))+'")'
+c.substring(e+1);s=c.indexOf('function')}fc+=s_c2fe(c)+';return s");'
eval(fc);return f}function s_gi(un,pg,ss){var c="function s_c(un,pg,s"
+"s){var s=this;s.wd=window;if(!s.wd.s_c_in){s.wd.s_c_il=new Array;s."
+"wd.s_c_in=0;}s._il=s.wd.s_c_il;s._in=s.wd.s_c_in;s._il[s._in]=s;s.w"
+"d.s_c_in++;s.m=function(m){return (''+m).indexOf('{')<0};s.fl=funct"
+"ion(x,l){return x?(''+x).substring(0,l):x};s.co=function(o){if(!o)r"
+"eturn o;var n=new Object,x;for(x in o)if(x.indexOf('select')<0&&x.i"
+"ndexOf('filter')<0)n[x]=o[x];return n};s.num=function(x){x=''+x;for"
+"(var p=0;p<x.length;p++)if(('0123456789').indexOf(x.substring(p,p+1"
+"))<0)return 0;return 1};s.rep=function(x,o,n){var i=x.indexOf(o);wh"
+"ile(x&&i>=0){x=x.substring(0,i)+n+x.substring(i+o.length);i=x.index"
+"Of(o,i+n.length)}return x};s.ape=function(x){var s=this,i;x=x?s.rep"
+"(escape(''+x),'+','%2B'):x;if(x&&s.charSet&&s.em==1&&x.indexOf('%u'"
+")<0&&x.indexOf('%U')<0){i=x.indexOf('%');while(i>=0){i++;if(('89ABC"
+"DEFabcdef').indexOf(x.substring(i,i+1))>=0)return x.substring(0,i)+"
+"'u00'+x.substring(i);i=x.indexOf('%',i)}}return x};s.epa=function(x"
+"){var s=this;return x?unescape(s.rep(''+x,'+',' ')):x};s.pt=functio"
+"n(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.l"
+"ength:y;t=t.substring(0,y);r=s.m(f)?s[f](t,a):f(t,a);if(r)return r;"
+"z+=y+d.length;t=x.substring(z,x.length);t=z<x.length?t:''}return ''"
+"};s.isf=function(t,a){var c=a.indexOf(':');if(c>=0)a=a.substring(0,"
+"c);if(t.substring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)}"
+";s.fsf=function(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fs"
+"g!=''?',':'')+t;return 0};s.fs=function(x,f){var s=this;s.fsg='';s."
+"pt(x,',','fsf',f);return s.fsg};s.c_d='';s.c_gdf=function(t,a){var "
+"s=this;if(!s.num(t))return 1;return 0};s.c_gd=function(){var s=this"
+",d=s.wd.location.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.coo"
+"kieDomainPeriods;if(d&&!s.c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.last"
+"IndexOf('.');if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--"
+"}s.c_d=p>0&&s.pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s"
+".c_r=function(k){var s=this;k=s.ape(k);var c=' '+s.d.cookie,i=c.ind"
+"exOf(' '+k+'='),e=i<0?i:c.indexOf(';',i),v=i<0?'':s.epa(c.substring"
+"(i+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=functi"
+"on(k,v,e){var s=this,d=s.c_gd(),l=s.cookieLifetime,t;v=''+v;l=l?(''"
+"+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='NONE'){t=(v!=''?parseI"
+"nt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if"
+"(k&&l!='NONE'){s.d.cookie=k+'='+s.ape(v!=''?v:'[[B]]')+'; path=/;'+"
+"(e&&l!='SESSION'?' expires='+e.toGMTString()+';':'')+(d?' domain='+"
+"d+';':'');return s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s"
+"=this,b='s_'+e+'_'+s._in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.e"
+"hl;for(i=0;i<l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0)"
+"{n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x.b=r?0:"
+"o[e];x.o[e]=f}if(x.b){x.o[b]=x.b;return b}return 0};s.cet=function("
+"f,a,t,o,b){var s=this,r;if(s.apv>=5&&(!s.isopera||s.apv>=7))eval('t"
+"ry{r=s.m(f)?s[f](a):f(a)}catch(e){r=s.m(t)?s[t](e):t(e)}');else{if("
+"s.ismac&&s.u.indexOf('MSIE 4')>=0)r=s.m(b)?s[b](a):b(a);else{s.eh(s"
+".wd,'onerror',0,o);r=s.m(f)?s[f](a):f(a);s.eh(s.wd,'onerror',1)}}re"
+"turn r};s.gtfset=function(e){var s=this;return s.tfs};s.gtfsoe=new "
+"Function('e','var s=s_c_il['+s._in+'];s.eh(window,\"onerror\",1);s."
+"etfs=1;var c=s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsf"
+"b=function(a){return window};s.gtfsf=function(w){var s=this,p=w.par"
+"ent,l=w.location;s.tfs=w;if(p&&p.location!=l&&p.location.host==l.ho"
+"st){s.tfs=p;return s.gtfsf(s.tfs)}return s.tfs};s.gtfs=function(){v"
+"ar s=this;if(!s.tfs){s.tfs=s.wd;if(!s.etfs)s.tfs=s.cet('gtfsf',s.tf"
+"s,'gtfset',s.gtfsoe,'gtfsfb')}return s.tfs};s.ca=function(){var s=t"
+"his,imn='s_i_'+s.fun;if(s.d.images&&s.apv>=3&&(!s.isopera||s.apv>=7"
+")&&(s.ns6<0||s.apv>=6.1)){s.ios=1;if(!s.d.images[imn]&&(!s.isns||(s"
+".apv<4||s.apv>=5))){s.d.write('<im'+'g name=\"'+imn+'\" height=1 wi"
+"dth=1 border=0 alt=\"\">');if(!s.d.images[imn])s.ios=0}}};s.mr=func"
+"tion(sess,q,ta){var s=this,dc=s.dc,t1=s.trackingServer,t2=s.trackin"
+"gServerSecure,ns=s.visitorNamespace,unc=s.rep(s.fun,'_','-'),imn='s"
+"_i_'+s.fun,im,b,e,rs='http'+(s.ssl?'s':'')+'://'+(t1?(s.ssl&&t2?t2:"
+"t1):((ns?ns:(s.ssl?'102':unc))+'.'+(s.dc?s.dc:112)+'.2o7.net'))+'/b"
+"/ss/'+s.un+'/1/H.9-Pdvu-2/'+sess+'?[AQB]&ndh=1'+(q?q:'')+(s.q?s.q:'"
+"')+'&[AQE]';if(s.isie&&!s.ismac){if(s.apv>5.5)rs=s.fl(rs,4095);else"
+" rs=s.fl(rs,2047)}if(s.ios||s.ss){if (!s.ss)s.ca();im=s.wd[imn]?s.w"
+"d[imn]:s.d.images[imn];if(!im)im=s.wd[imn]=new Image;im.src=rs;if(r"
+"s.indexOf('&pe=')>=0&&(!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta"
+"==s.wd.name))){b=e=new Date;while(e.getTime()-b.getTime()<500)e=new"
+" Date}return ''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 "
+"border=0 alt=\"\">'};s.gg=function(v){var s=this;return s.wd['s_'+v"
+"]};s.glf=function(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);v"
+"ar s=this,v=s.gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;s.pt(v"
+",',','glf',0)};s.gv=function(v){var s=this;return s['vpm_'+v]?s['vp"
+"v_'+v]:(s[v]?s[v]:'')};s.havf=function(t,a){var s=this,b=t.substrin"
+"g(0,4),x=t.substring(4),n=parseInt(x),k='g_'+t,m='vpm_'+t,q=t,v=s.l"
+"inkTrackVars,e=s.linkTrackEvents;s[k]=s.gv(t);if(s.lnk||s.eo){v=v?v"
+"+','+s.vl_l:'';if(v&&!s.pt(v,',','isf',t))s[k]='';if(t=='events'&&e"
+")s[k]=s.fs(s[k],e)}s[m]=0;if(t=='visitorID')q='vid';else if(t=='pag"
+"eURL')q='g';else if(t=='referrer')q='r';else if(t=='vmk')q='vmt';el"
+"se if(t=='charSet'){q='ce';if(s[k]&&s.em==2)s[k]='UTF-8'}else if(t="
+"='visitorNamespace')q='ns';else if(t=='cookieDomainPeriods')q='cdp'"
+";else if(t=='cookieLifetime')q='cl';else if(t=='variableProvider')q"
+"='vvp';else if(t=='currencyCode')q='cc';else if(t=='channel')q='ch'"
+";else if(t=='campaign')q='v0';else if(s.num(x)) {if(b=='prop')q='c'"
+"+n;else if(b=='eVar')q='v'+n;else if(b=='hier'){q='h'+n;s[k]=s.fl(s"
+"[k],255)}}if(s[k]&&t!='linkName'&&t!='linkType')s.qav+='&'+q+'='+s."
+"ape(s[k]);return ''};s.hav=function(){var s=this;s.qav='';s.pt(s.vl"
+"_t,',','havf',0);return s.qav};s.lnf=function(t,h){t=t?t.toLowerCas"
+"e():'';h=h?h.toLowerCase():'';var te=t.indexOf('=');if(t&&te>0&&h.i"
+"ndexOf(t.substring(te+1))>=0)return t.substring(0,te);return ''};s."
+"ln=function(h){var s=this,n=s.linkNames;if(n)return s.pt(n,',','lnf"
+"',h);return ''};s.ltdf=function(t,h){t=t?t.toLowerCase():'';h=h?h.t"
+"oLowerCase():'';var qi=h.indexOf('?');h=qi>=0?h.substring(0,qi):h;i"
+"f(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0};s"
+".ltef=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';i"
+"f(t&&h.indexOf(t)>=0)return 1;return 0};s.lt=function(h){var s=this"
+",lft=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkIn"
+"ternalFilters;lif=lif?lif:s.wd.location.hostname;h=h.toLowerCase();"
+"if(s.trackDownloadLinks&&lft&&s.pt(lft,',','ltdf',h))return 'd';if("
+"s.trackExternalLinks&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&("
+"!lif||!s.pt(lif,',','ltef',h)))return 'e';return ''};s.lc=new Funct"
+"ion('e','var s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.c"
+"o(this);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new"
+" Function('e','var s=s_c_il['+s._in+'],f;if(s.d&&s.d.all&&s.d.all.c"
+"ppXYctnr)return;s.eo=e.srcElement?e.srcElement:e.target;eval(\"try{"
+"if(s.eo&&(s.eo.tagName||s.eo.parentElement||s.eo.parentNode))s.t()}"
+"catch(f){}\");s.eo=0');s.ot=function(o){var a=o.type,b=o.tagName;re"
+"turn (a&&a.toUpperCase?a:b&&b.toUpperCase?b:o.href?'A':'').toUpperC"
+"ase()};s.oid=function(o){var s=this,t=s.ot(o),p=o.protocol,c=o.oncl"
+"ick,n='',x=0;if(!o.s_oid){if(o.href&&(t=='A'||t=='AREA')&&(!c||!p||"
+"p.toLowerCase().indexOf('javascript')<0))n=o.href;else if(c){n=s.re"
+"p(s.rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ',''"
+");x=2}else if(o.value&&(t=='INPUT'||t=='SUBMIT')){n=o.value;x=3}els"
+"e if(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s.fl(n,100);o.s_oidt=x"
+"}}return o.s_oid};s.rqf=function(t,un){var s=this,e=t.indexOf('='),"
+"u=e>=0?','+t.substring(0,e)+',':'';return u&&u.indexOf(','+un+',')>"
+"=0?s.epa(t.substring(e+1)):''};s.rq=function(un){var s=this,c=un.in"
+"dexOf(','),v=s.c_r('s_sq'),q='';if(c<0)return s.pt(v,'&','rqf',un);"
+"return s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t.inde"
+"xOf('='),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt("
+"t.substring(0,e),',','sqs',q);return 0};s.sqs=function(un,q){var s="
+"this;s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='s_sq',v=s"
+".c_r(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,"
+"'&','sqp',0);s.pt(s.un,',','sqs',q);v='';for(x in s.squ)s.sqq[s.squ"
+"[x]]+=(s.sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&s.sqq[x]&&(x="
+"=q||c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,"
+"0)};s.wdl=new Function('e','var s=s_c_il['+s._in+'],r=true,b=s.eh(s"
+".wd,\"onload\"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.links.length"
+";i++){o=s.d.links[i];oc=o.onclick?\"\"+o.onclick:\"\";if((oc.indexO"
+"f(\"s_gs(\")<0||oc.indexOf(\".s_oc(\")>=0)&&oc.indexOf(\".tl(\")<0)"
+"s.eh(o,\"onclick\",0,s.lc);}return r');s.wds=function(){var s=this;"
+"if(s.apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)"
+"s.b.attachEvent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s"
+".b.addEventListener('click',s.bc,false);else s.eh(s.wd,'onload',0,s"
+".wdl)}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.visitor"
+"SamplingGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y="
+"e.getYear();e.setYear(y+10+(y<1900?1900:0));if(v){v*=100;if(!n){if("
+"!s.c_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};s.dyasmf"
+"=function(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf="
+"function(t,m){var s=this,i=t?t.indexOf('='):-1,n,x;if(i>=0&&m){var "
+"n=t.substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dyasmf',m))ret"
+"urn n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelec"
+"tion,l=s.dynamicAccountList,m=s.dynamicAccountMatch,n,i;s.un.toLowe"
+"rCase();if(x&&l){if(!m)m=s.wd.location.host;if(!m.toLowerCase)m=''+"
+"m;l=l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)"
+"s.un=n}i=s.un.indexOf(',');s.fun=i<0?s.un:s.un.substring(0,i)};s.sa"
+"=function(un){s.un=un;if(!s.oun)s.oun=un;else if((','+s.oun+',').in"
+"dexOf(un)<0)s.oun+=','+un;s.uns()};s.t=function(){var s=this,trk=1,"
+"tm=new Date,sed=Math&&Math.random?Math.floor(Math.random()*10000000"
+"000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+"
+"sed,yr=tm.getYear(),vt=tm.getDate()+'/'+tm.getMonth()+'/'+(yr<1900?"
+"yr+1900:yr)+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds"
+"()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tfs=s.gtfs(),ta='',q="
+"'',qs='';s.uns();if(!s.q){var tl=tfs.location,x='',c='',v='',p='',b"
+"w='',bh='',j='1.0',k=s.c_w('s_cc','true',0)?'Y':'N',hp='',ct='',pn="
+"0,ps;if(s.apv>=4)x=screen.width+'x'+screen.height;if(s.isns||s.isop"
+"era){if(s.apv>=3){j='1.1';v=s.n.javaEnabled()?'Y':'N';if(s.apv>=4){"
+"j='1.2';c=screen.pixelDepth;bw=s.wd.innerWidth;bh=s.wd.innerHeight;"
+"if(s.apv>=4.06)j='1.3'}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>="
+"4){v=s.n.javaEnabled()?'Y':'N';j='1.2';c=screen.colorDepth;if(s.apv"
+">=5){bw=s.d.documentElement.offsetWidth;bh=s.d.documentElement.offs"
+"etHeight;j='1.3';if(!s.ismac&&s.b){s.b.addBehavior('#default#homePa"
+"ge');hp=s.b.isHomePage(tl)?\"Y\":\"N\";s.b.addBehavior('#default#cl"
+"ientCaps');ct=s.b.connectionType}}}else r=''}if(s.pl)while(pn<s.pl."
+"length&&pn<30){ps=s.fl(s.pl[pn].name,100)+';';if(p.indexOf(ps)<0)p+"
+"=ps;pn++}s.q=(x?'&s='+s.ape(x):'')+(c?'&c='+s.ape(c):'')+(j?'&j='+j"
+":'')+(v?'&v='+v:'')+(k?'&k='+k:'')+(bw?'&bw='+bw:'')+(bh?'&bh='+bh:"
+"'')+(ct?'&ct='+s.ape(ct):'')+(hp?'&hp='+hp:'')+(p?'&p='+s.ape(p):''"
+")}if(s.usePlugins)s.doPlugins(s);var l=s.wd.location,r=tfs.document"
+".referrer;if(!s.pageURL)s.pageURL=s.fl(l?l:'',255);if(!s.referrer)s"
+".referrer=s.fl(r?r:'',255);if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk;if"
+"(!o)return '';var p=s.gv('pageName'),w=1,t=s.ot(o),n=s.oid(o),x=o.s"
+"_oidt,h,l,i,oc;if(s.eo&&o==s.eo){while(o&&!n&&t!='BODY'){o=o.parent"
+"Element?o.parentElement:o.parentNode;if(!o)return '';t=s.ot(o);n=s."
+"oid(o);x=o.s_oidt}oc=o.onclick?''+o.onclick:'';if((oc.indexOf(\"s_g"
+"s(\")>=0&&oc.indexOf(\".s_oc(\")<0)||oc.indexOf(\".tl(\")>=0)return"
+" ''}ta=n?o.target:1;h=o.href?o.href:'';i=h.indexOf('?');h=s.linkLea"
+"veQueryString||i<0?h:h.substring(0,i);l=s.linkName?s.linkName:s.ln("
+"h);t=s.linkType?s.linkType.toLowerCase():s.lt(h);if(t&&(h||l))q+='&"
+"pe=lnk_'+(t=='d'||t=='e'?s.ape(t):'o')+(h?'&pev1='+s.ape(h):'')+(l?"
+"'&pev2='+s.ape(l):'');else trk=0;if(s.trackInlineStats){if(!p){p=s."
+"gv('pageURL');w=0}t=s.ot(o);i=o.sourceIndex;if(s.gg('objectID')){n="
+"s.gg('objectID');x=1;i=1}if(p&&n&&t)qs='&pid='+s.ape(s.fl(p,255))+("
+"w?'&pidt='+w:'')+'&oid='+s.ape(s.fl(n,100))+(x?'&oidt='+x:'')+'&ot="
+"'+s.ape(t)+(i?'&oi='+i:'')}}if(!trk&&!qs)return '';if(s.p_r)s.p_r()"
+";var code='';if(trk&&s.vs(sed))code=s.mr(sess,(vt?'&t='+s.ape(vt):'"
+"')+s.hav()+q+(qs?qs:s.rq(s.un)),ta);s.sq(trk?'':qs);s.lnk=s.eo=s.li"
+"nkName=s.linkType=s.wd.s_objectID=s.ppu='';return code};s.tl=functi"
+"on(o,t,n){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName=n;s.t()}"
+";s.ssl=(s.wd.location.protocol.toLowerCase().indexOf('https')>=0);s"
+".d=document;s.b=s.d.body;s.n=navigator;s.u=s.n.userAgent;s.ns6=s.u."
+"indexOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.ind"
+"exOf('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o"
+">0)apn='Opera';s.isie=(apn=='Microsoft Internet Explorer');s.isns=("
+"apn=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac"
+"')>=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s."
+"apv=parseInt(i=v.substring(ie+5));if(s.apv>3)s.apv=parseFloat(i)}el"
+"se if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv="
+"parseFloat(v);s.em=0;if(String.fromCharCode){i=escape(String.fromCh"
+"arCode(256)).toUpperCase();s.em=(i=='%C4%80'?2:(i=='%U0100'?1:0))}s"
+".sa(un);s.vl_l='visitorID,vmk,ppu,charSet,visitorNamespace,cookieDo"
+"mainPeriods,cookieLifetime,pageName,pageURL,referrer,currencyCode,p"
+"urchaseID';s.vl_t=s.vl_l+',variableProvider,channel,server,pageType"
+",campaign,state,zip,events,products,linkName,linkType';for(var n=1;"
+"n<51;n++)s.vl_t+=',prop'+n+',eVar'+n+',hier'+n;s.vl_g=s.vl_t+',trac"
+"kDownloadLinks,trackExternalLinks,trackInlineStats,linkLeaveQuerySt"
+"ring,linkDownloadFileTypes,linkExternalFilters,linkInternalFilters,"
+"linkNames';if(pg)s.gl(s.vl_g);s.ss=ss;if(!ss){s.wds();s.ca()}}",
l=window.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=v.indexOf(
'MSIE '),m=u.indexOf('Netscape6/'),a,i,s;if(l)for(i=0;i<l.length;i++){
s=l[i];if(s.oun==un)return s;else if(s.fs(s.oun,un)){s.sa(un);return s
}}if(e>0){a=parseInt(i=v.substring(e+5));if(a>3)a=parseFloat(i)}
else if(m>0)a=parseFloat(u.substring(m+10));else a=parseFloat(v);if(a
>=5&&v.indexOf('Opera')<0&&u.indexOf('Opera')<0){eval(c);return new
s_c(un,pg,ss)}else s=s_c2f(c);return s(un,pg,ss)}
hideImg();
var config = new Object();
var  tt_Debug	= true;		
var  tt_Enabled	= true;		
var  TagsToTip	= true;		
config. Above			= false; 	
config. BgColor 		= 'transparent'; 
config. BgImg			= '';		
config. BorderColor 	= 'transparent';
config. BorderStyle 	= 'none';	
config. BorderWidth 	= 0;
config. CenterMouse 	= false; 	
config. ClickClose		= false; 	
config. CloseBtn		= false; 	
config. CloseBtnColors	= ['#990000', '#FFFFFF', '#DD3333', '#FFFFFF'];	  
config. CloseBtnText	= '&nbsp;X&nbsp;';	
config. CopyContent		= true;		
config. Delay			= 0;		
config. Duration		= 0; 		
config. FadeIn			= 0; 		
config. FadeOut 		= 0;
config. FadeInterval	= 30;		
config. Fix 			= null;		
config. FollowMouse		= true;		
config. FontColor		= '#000';
config. FontFace		= 'Arial, Verdana,Geneva,sans-serif';
config. FontSize		= '12px'; 	
config. FontWeight		= 'normal';	
config. Left			= false; 	
config. OffsetX 		= 14;		
config. OffsetY 		= 8; 		
config. Opacity 		= 100;		
config. Padding 		= 3; 		
config. Shadow			= false; 	
config. ShadowColor 	= '#C0C0C0';
config. ShadowWidth 	= 5;
config. Sticky			= false; 	
config. TextAlign		= 'left';	
config. Title			= '';		
config. TitleAlign		= 'left';	
config. TitleBgColor	= '';		
config. TitleFontColor	= '#ffffff';	
config. TitleFontFace	= '';		
config. TitleFontSize	= '';		
config. Width			= 0; 		
function Tip()
{
tt_Tip(arguments, null);
}
function TagToTip()
{
if(TagsToTip)
{
var t2t = tt_GetElt(arguments[0]);
if(t2t)
tt_Tip(arguments, t2t);
}
}
var tt_aElt = new Array(10), 
tt_aV = [],	
tt_sContent,			
tt_scrlX = 0, tt_scrlY = 0,
tt_musX, tt_musY,
tt_over,
tt_x, tt_y, tt_w, tt_h; 
function tt_Extension()
{
tt_ExtCmdEnum();
tt_aExt[tt_aExt.length] = this;
return this;
}
function tt_SetTipPos(x, y)
{
var css = tt_aElt[0].style;
tt_x = x;
tt_y = y;
css.left = x + "px";
css.top = y + "px";
if(tt_ie56)
{
var ifrm = tt_aElt[tt_aElt.length - 1];
if(ifrm)
{
ifrm.style.left = css.left;
ifrm.style.top = css.top;
}
}
}
function tt_Hide()
{
if(tt_db && tt_iState)
{
if(tt_iState & 0x2)
{
tt_aElt[0].style.visibility = "hidden";
tt_ExtCallFncs(0, "Hide");
}
tt_tShow.EndTimer();
tt_tHide.EndTimer();
tt_tDurt.EndTimer();
tt_tFade.EndTimer();
if(!tt_op && !tt_ie)
{
tt_tWaitMov.EndTimer();
tt_bWait = false;
}
if(tt_aV[CLICKCLOSE])
tt_RemEvtFnc(document, "mouseup", tt_HideInit);
tt_AddRemOutFnc(false);
tt_ExtCallFncs(0, "Kill");
if(tt_t2t && !tt_aV[COPYCONTENT])
{
tt_t2t.style.display = "none";
tt_MovDomNode(tt_t2t, tt_aElt[6], tt_t2tDad);
}
tt_iState = 0;
tt_over = null;
tt_ResetMainDiv();
if(tt_aElt[tt_aElt.length - 1])
tt_aElt[tt_aElt.length - 1].style.display = "none";
}
}
function tt_GetElt(id)
{
return(document.getElementById ? document.getElementById(id)
: document.all ? document.all[id]
: null);
}
function tt_GetDivW(el)
{
return(el ? (el.offsetWidth || el.style.pixelWidth || 0) : 0);
}
function tt_GetDivH(el)
{
return(el ? (el.offsetHeight || el.style.pixelHeight || 0) : 0);
}
function tt_GetScrollX()
{
return(window.pageXOffset || (tt_db ? (tt_db.scrollLeft || 0) : 0));
}
function tt_GetScrollY()
{
return(window.pageYOffset || (tt_db ? (tt_db.scrollTop || 0) : 0));
}
function tt_GetClientW()
{
return(document.body && (typeof(document.body.clientWidth) != tt_u) ? document.body.clientWidth
: (typeof(window.innerWidth) != tt_u) ? window.innerWidth
: tt_db ? (tt_db.clientWidth || 0)
: 0);
}
function tt_GetClientH()
{
return(document.body && (typeof(document.body.clientHeight) != tt_u) ? document.body.clientHeight
: (typeof(window.innerHeight) != tt_u) ? window.innerHeight
: tt_db ? (tt_db.clientHeight || 0)
: 0);
}
function tt_GetEvtX(e)
{
return (e ? ((typeof(e.pageX) != tt_u) ? e.pageX : (e.clientX + tt_scrlX)) : 0);
}
function tt_GetEvtY(e)
{
return (e ? ((typeof(e.pageY) != tt_u) ? e.pageY : (e.clientY + tt_scrlY)) : 0);
}
function tt_AddEvtFnc(el, sEvt, PFnc)
{
if(el)
{
if(el.addEventListener)
el.addEventListener(sEvt, PFnc, false);
else
el.attachEvent("on" + sEvt, PFnc);
}
}
function tt_RemEvtFnc(el, sEvt, PFnc)
{
if(el)
{
if(el.removeEventListener)
el.removeEventListener(sEvt, PFnc, false);
else
el.detachEvent("on" + sEvt, PFnc);
}
}
var tt_aExt = [],	
tt_db, tt_op, tt_ie, tt_ie56, tt_bBoxOld,	
tt_body,
tt_flagOpa, 			
tt_maxPosX, tt_maxPosY,
tt_iState = 0,			
tt_opa, 				
tt_bJmpVert,			
tt_t2t, tt_t2tDad,		
tt_elDeHref,			
tt_tShow = 0, tt_tHide = 0, tt_tDurt = 0, tt_tFade = 0, tt_tWaitMov = 0,
tt_bWait = false,
tt_u = "undefined";
function tt_Init()
{
tt_MkCmdEnum();
if(!tt_Browser() || !tt_MkMainDiv())
return;
tt_IsW3cBox();
tt_OpaSupport();
tt_AddEvtFnc(document, "mousemove", tt_Move);
if(TagsToTip || tt_Debug)
tt_SetOnloadFnc();
tt_AddEvtFnc(window, "scroll",
function()
{
tt_scrlX = tt_GetScrollX();
tt_scrlY = tt_GetScrollY();
if(tt_iState && !(tt_aV[STICKY] && (tt_iState & 2)))
tt_HideInit();
} );
tt_AddEvtFnc(window, "unload", tt_Hide);
tt_Hide();
}
function tt_MkCmdEnum()
{
var n = 0;
for(var i in config)
eval("window." + i.toString().toUpperCase() + " = " + n++);
tt_aV.length = n;
}
function tt_Browser()
{
var n, nv, n6, w3c;
n = navigator.userAgent.toLowerCase(),
nv = navigator.appVersion;
tt_op = (document.defaultView && typeof(eval("w" + "indow" + "." + "o" + "p" + "er" + "a")) != tt_u);
tt_ie = n.indexOf("msie") != -1 && document.all && !tt_op;
if(tt_ie)
{
var ieOld = (!document.compatMode || document.compatMode == "BackCompat");
tt_db = !ieOld ? document.documentElement : (document.body || null);
if(tt_db)
tt_ie56 = parseFloat(nv.substring(nv.indexOf("MSIE") + 5)) >= 5.5
&& typeof document.body.style.maxHeight == tt_u;
}
else
{
tt_db = document.documentElement || document.body ||
(document.getElementsByTagName ? document.getElementsByTagName("body")[0]
: null);
if(!tt_op)
{
n6 = document.defaultView && typeof document.defaultView.getComputedStyle != tt_u;
w3c = !n6 && document.getElementById;
}
}
tt_body = (document.getElementsByTagName ? document.getElementsByTagName("body")[0]
: (document.body || null));
if(tt_ie || n6 || tt_op || w3c)
{
if(tt_body && tt_db)
{
if(document.attachEvent || document.addEventListener)
return true;
}
else
tt_Err("wz_tooltip.js must be included INSIDE the body section,"
+ " immediately after the opening <body> tag.");
}
tt_db = null;
return false;
}
function tt_MkMainDiv()
{
if(tt_body.insertAdjacentHTML)
tt_body.insertAdjacentHTML("afterBegin", tt_MkMainDivHtm());
else if(typeof tt_body.innerHTML != tt_u && document.createElement && tt_body.appendChild)
tt_body.appendChild(tt_MkMainDivDom());
if(window.tt_GetMainDivRefs && tt_GetMainDivRefs())
return true;
tt_db = null;
return false;
}
function tt_MkMainDivHtm()
{
return('<div id="WzTtDiV"></div>' +
(tt_ie56 ? ('<iframe id="WzTtIfRm" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>')
: ''));
}
function tt_MkMainDivDom()
{
var el = document.createElement("div");
if(el)
el.id = "WzTtDiV";
return el;
}
function tt_GetMainDivRefs()
{
tt_aElt[0] = tt_GetElt("WzTtDiV");
if(tt_ie56 && tt_aElt[0])
{
tt_aElt[tt_aElt.length - 1] = tt_GetElt("WzTtIfRm");
if(!tt_aElt[tt_aElt.length - 1])
tt_aElt[0] = null;
}
if(tt_aElt[0])
{
var css = tt_aElt[0].style;
css.visibility = "hidden";
css.position = "absolute";
css.overflow = "hidden";
return true;
}
return false;
}
function tt_ResetMainDiv()
{
var w = (window.screen && screen.width) ? screen.width : 10000;
tt_SetTipPos(-w, 0);
tt_aElt[0].innerHTML = "";
tt_aElt[0].style.width = (w - 1) + "px";
}
function tt_IsW3cBox()
{
var css = tt_aElt[0].style;
css.padding = "10px";
css.width = "40px";
tt_bBoxOld = (tt_GetDivW(tt_aElt[0]) == 40);
css.padding = "0px";
tt_ResetMainDiv();
}
function tt_OpaSupport()
{
var css = tt_body.style;
tt_flagOpa = (typeof(css.filter) != tt_u) ? 1
: (typeof(css.KhtmlOpacity) != tt_u) ? 2
: (typeof(css.KHTMLOpacity) != tt_u) ? 3
: (typeof(css.MozOpacity) != tt_u) ? 4
: (typeof(css.opacity) != tt_u) ? 5
: 0;
}
function tt_SetOnloadFnc()
{
tt_AddEvtFnc(document, "DOMContentLoaded", tt_HideSrcTags);
tt_AddEvtFnc(window, "load", tt_HideSrcTags);
if(tt_body.attachEvent)
tt_body.attachEvent("onreadystatechange",
function() {
if(tt_body.readyState == "complete")
tt_HideSrcTags();
} );
if(/WebKit|KHTML/i.test(navigator.userAgent))
{
var t = setInterval(function() {
if(/loaded|complete/.test(document.readyState))
{
clearInterval(t);
tt_HideSrcTags();
}
}, 10);
}
}
function tt_HideSrcTags()
{
if(!window.tt_HideSrcTags || window.tt_HideSrcTags.done)
return;
window.tt_HideSrcTags.done = true;
if(!tt_HideSrcTagsRecurs(tt_body))
tt_Err("To enable the capability to convert HTML elements to tooltips,"
+ " you must set TagsToTip in the global tooltip configuration"
+ " to true.");
}
function tt_HideSrcTagsRecurs(dad)
{
var a, ovr, asT2t;
a = dad.childNodes || dad.children || null;
for(var i = a ? a.length : 0; i;)
{--i;
if(!tt_HideSrcTagsRecurs(a[i]))
return false;
ovr = a[i].getAttribute ? a[i].getAttribute("onmouseover")
: (typeof a[i].onmouseover == "function") ? a[i].onmouseover
: null;
if(ovr)
{
asT2t = ovr.toString().match(/TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);
if(asT2t && asT2t.length)
{
if(!tt_HideSrcTag(asT2t[0]))
return false;
}
}
}
return true;
}
function tt_HideSrcTag(sT2t)
{
var id, el;
id = sT2t.replace(/.+'([^'.]+)'.+/, "$1");
el = tt_GetElt(id);
if(el)
{
if(tt_Debug && !TagsToTip)
return false;
else
el.style.display = "none";
}
else
tt_Err("Invalid ID\n'" + id + "'\npassed to TagToTip()."
+ " There exists no HTML element with that ID.");
return true;
}
function tt_Tip(arg, t2t)
{
if(!tt_db)
return;
if(tt_iState)
tt_Hide();
if(!tt_Enabled)
return;
tt_t2t = t2t;
if(!tt_ReadCmds(arg))
return;
tt_iState = 0x1 | 0x4;
tt_AdaptConfig1();
tt_MkTipContent(arg);
tt_MkTipSubDivs();
tt_FormatTip();
tt_bJmpVert = false;
tt_maxPosX = tt_GetClientW() + tt_scrlX - tt_w - 1;
tt_maxPosY = tt_GetClientH() + tt_scrlY - tt_h - 1;
tt_AdaptConfig2();
tt_Move();
tt_ShowInit();
}
function tt_ReadCmds(a)
{
var i;
/* WP
* First load the global config values, to initialize also values
* for which no command has been passed
*/
i = 0;
for(var j in config)
tt_aV[i++] = config[j];
if(a.length & 1)
{
for(i = a.length - 1; i > 0; i -= 2)
tt_aV[a[i - 1]] = a[i];
return true;
}
tt_Err("Incorrect call of Tip() or TagToTip().\n"
+ "Each command must be followed by a value.");
return false;
}
function tt_AdaptConfig1()
{
tt_ExtCallFncs(0, "LoadConfig");
if(!tt_aV[TITLEBGCOLOR].length)
tt_aV[TITLEBGCOLOR] = tt_aV[BORDERCOLOR];
if(!tt_aV[TITLEFONTCOLOR].length)
tt_aV[TITLEFONTCOLOR] = tt_aV[BGCOLOR];
if(!tt_aV[TITLEFONTFACE].length)
tt_aV[TITLEFONTFACE] = tt_aV[FONTFACE];
if(!tt_aV[TITLEFONTSIZE].length)
tt_aV[TITLEFONTSIZE] = tt_aV[FONTSIZE];
if(tt_aV[CLOSEBTN])
{
if(!tt_aV[CLOSEBTNCOLORS])
tt_aV[CLOSEBTNCOLORS] = new Array("", "", "", "");
for(var i = 4; i;)
{--i;
if(!tt_aV[CLOSEBTNCOLORS][i].length)
tt_aV[CLOSEBTNCOLORS][i] = (i & 1) ? tt_aV[TITLEFONTCOLOR] : tt_aV[TITLEBGCOLOR];
}
if(!tt_aV[TITLE].length)
tt_aV[TITLE] = " ";
}
if(tt_aV[OPACITY] == 100 && typeof tt_aElt[0].style.MozOpacity != tt_u && !Array.every)
tt_aV[OPACITY] = 99;
if(tt_aV[FADEIN] && tt_flagOpa && tt_aV[DELAY] > 100)
tt_aV[DELAY] = Math.max(tt_aV[DELAY] - tt_aV[FADEIN], 100);
}
function tt_AdaptConfig2()
{
if(tt_aV[CENTERMOUSE])
tt_aV[OFFSETX] -= ((tt_w - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0)) >> 1);
}
function tt_MkTipContent(a)
{
if(tt_t2t)
{
if(tt_aV[COPYCONTENT])
tt_sContent = tt_t2t.innerHTML;
else
tt_sContent = "";
}
else
tt_sContent = a[0];
tt_ExtCallFncs(0, "CreateContentString");
}
function tt_MkTipSubDivs()
{
var sCss = 'position:relative;margin:0px;padding:0px;border-width:0px;left:0px;top:0px;line-height:normal;width:auto;',
sTbTrTd = ' cellspacing=0 cellpadding=0 border=0 style="' + sCss + '"><tbody style="' + sCss + '"><tr><td ';
tt_aElt[0].innerHTML =
(''
+ (tt_aV[TITLE].length ?
('<div id="WzTiTl" style="position:relative;z-index:1;">'
+ '<table id="WzTiTlTb"' + sTbTrTd + 'id="WzTiTlI" style="' + sCss + '">'
+ tt_aV[TITLE]
+ '</td>'
+ (tt_aV[CLOSEBTN] ?
('<td align="right" style="' + sCss
+ 'text-align:right;">'
+ '<span id="WzClOsE" style="padding-left:2px;padding-right:2px;'
+ 'cursor:' + (tt_ie ? 'hand' : 'pointer')
+ ';" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">'
+ tt_aV[CLOSEBTNTEXT]
+ '</span></td>')
: '')
+ '</tr></tbody></table></div>')
: '')
+ '<div id="WzBoDy" style="position:relative;z-index:0;">'
+ '<table' + sTbTrTd + 'id="WzBoDyI" style="' + sCss + '">'
+ tt_sContent
+ '</td></tr></tbody></table></div>'
+ (tt_aV[SHADOW]
? ('<div id="WzTtShDwR" style="position:absolute;overflow:hidden;"></div>'
+ '<div id="WzTtShDwB" style="position:relative;overflow:hidden;"></div>')
: '')
);
tt_GetSubDivRefs();
if(tt_t2t && !tt_aV[COPYCONTENT])
{
tt_t2tDad = tt_t2t.parentNode || tt_t2t.parentElement || tt_t2t.offsetParent || null;
if(tt_t2tDad)
{
tt_MovDomNode(tt_t2t, tt_t2tDad, tt_aElt[6]);
tt_t2t.style.display = "block";
}
}
tt_ExtCallFncs(0, "SubDivsCreated");
}
function tt_GetSubDivRefs()
{
var aId = new Array("WzTiTl", "WzTiTlTb", "WzTiTlI", "WzClOsE", "WzBoDy", "WzBoDyI", "WzTtShDwB", "WzTtShDwR");
for(var i = aId.length; i; --i)
tt_aElt[i] = tt_GetElt(aId[i - 1]);
}
function tt_FormatTip()
{
var css, w, iOffY, iOffSh;
if(tt_aV[TITLE].length)
{
css = tt_aElt[1].style;
css.background = tt_aV[TITLEBGCOLOR];
css.paddingTop = (tt_aV[CLOSEBTN] ? 2 : 0) + "px";
css.paddingBottom = "1px";
css.paddingLeft = css.paddingRight = tt_aV[PADDING] + "px";
css = tt_aElt[3].style;
css.color = tt_aV[TITLEFONTCOLOR];
css.fontFamily = tt_aV[TITLEFONTFACE];
css.fontSize = tt_aV[TITLEFONTSIZE];
css.fontWeight = "bold";
css.textAlign = tt_aV[TITLEALIGN];
if(tt_aElt[4])
{
css.paddingRight = (tt_aV[PADDING] << 1) + "px";
css = tt_aElt[4].style;
css.background = tt_aV[CLOSEBTNCOLORS][0];
css.color = tt_aV[CLOSEBTNCOLORS][1];
css.fontFamily = tt_aV[TITLEFONTFACE];
css.fontSize = tt_aV[TITLEFONTSIZE];
css.fontWeight = "bold";
}
if(tt_aV[WIDTH] > 0)
tt_w = tt_aV[WIDTH] + ((tt_aV[PADDING] + tt_aV[BORDERWIDTH]) << 1);
else
{
tt_w = tt_GetDivW(tt_aElt[3]) + tt_GetDivW(tt_aElt[4]);
if(tt_aElt[4])
tt_w += tt_aV[PADDING];
}
iOffY = -tt_aV[BORDERWIDTH];
}
else
{
tt_w = 0;
iOffY = 0;
}
css = tt_aElt[5].style;
css.top = iOffY + "px";
if(tt_aV[BORDERWIDTH])
{
css.borderColor = tt_aV[BORDERCOLOR];
css.borderStyle = tt_aV[BORDERSTYLE];
css.borderWidth = tt_aV[BORDERWIDTH] + "px";
}
if(tt_aV[BGCOLOR].length)
css.background = tt_aV[BGCOLOR];
if(tt_aV[BGIMG].length)
css.backgroundImage = "url(" + tt_aV[BGIMG] + ")";
css.padding = tt_aV[PADDING] + "px";
css.textAlign = tt_aV[TEXTALIGN];
css = tt_aElt[6].style;
css.color = tt_aV[FONTCOLOR];
css.fontFamily = tt_aV[FONTFACE];
css.fontSize = tt_aV[FONTSIZE];
css.fontWeight = tt_aV[FONTWEIGHT];
css.background = "";
css.textAlign = tt_aV[TEXTALIGN];
if(tt_aV[WIDTH] > 0)
w = tt_aV[WIDTH] + ((tt_aV[PADDING] + tt_aV[BORDERWIDTH]) << 1);
else
w = tt_GetDivW(tt_aElt[6]) + ((tt_aV[PADDING] + tt_aV[BORDERWIDTH]) << 1);
if(w > tt_w)
tt_w = w;
if(tt_aV[SHADOW])
{
tt_w += tt_aV[SHADOWWIDTH];
iOffSh = Math.floor((tt_aV[SHADOWWIDTH] * 4) / 3);
css = tt_aElt[7].style;
css.top = iOffY + "px";
css.left = iOffSh + "px";
css.width = (tt_w - iOffSh - tt_aV[SHADOWWIDTH]) + "px";
css.height = tt_aV[SHADOWWIDTH] + "px";
css.background = tt_aV[SHADOWCOLOR];
css = tt_aElt[8].style;
css.top = iOffSh + "px";
css.left = (tt_w - tt_aV[SHADOWWIDTH]) + "px";
css.width = tt_aV[SHADOWWIDTH] + "px";
css.background = tt_aV[SHADOWCOLOR];
}
else
iOffSh = 0;
tt_SetTipOpa(tt_aV[FADEIN] ? 0 : tt_aV[OPACITY]);
tt_FixSize(iOffY, iOffSh);
}
function tt_FixSize(iOffY, iOffSh)
{
var wIn, wOut, i;
tt_aElt[0].style.width = tt_w + "px";
tt_aElt[0].style.pixelWidth = tt_w;
wOut = tt_w - ((tt_aV[SHADOW]) ? tt_aV[SHADOWWIDTH] : 0);
wIn = wOut;
if(!tt_bBoxOld)
wIn -= ((tt_aV[PADDING] + tt_aV[BORDERWIDTH]) << 1);
tt_aElt[5].style.width = wIn + "px";
if(tt_aElt[1])
{
wIn = wOut - (tt_aV[PADDING] << 1);
if(!tt_bBoxOld)
wOut = wIn;
tt_aElt[1].style.width = wOut + "px";
tt_aElt[2].style.width = wIn + "px";
}
tt_h = tt_GetDivH(tt_aElt[0]) + iOffY;
if(tt_aElt[8])
tt_aElt[8].style.height = (tt_h - iOffSh) + "px";
i = tt_aElt.length - 1;
if(tt_aElt[i])
{
tt_aElt[i].style.width = tt_w + "px";
tt_aElt[i].style.height = tt_h + "px";
}
}
function tt_DeAlt(el)
{
var aKid;
if(el.alt)
el.alt = "";
if(el.title)
el.title = "";
aKid = el.childNodes || el.children || null;
if(aKid)
{
for(var i = aKid.length; i;)
tt_DeAlt(aKid[--i]);
}
}
function tt_OpDeHref(el)
{
if(!tt_op)
return;
if(tt_elDeHref)
tt_OpReHref();
while(el)
{
if(el.hasAttribute("href"))
{
el.t_href = el.getAttribute("href");
el.t_stats = window.status;
el.removeAttribute("href");
el.style.cursor = "hand";
tt_AddEvtFnc(el, "mousedown", tt_OpReHref);
window.status = el.t_href;
tt_elDeHref = el;
break;
}
el = el.parentElement;
}
}
function tt_ShowInit()
{
tt_tShow.Timer("tt_Show()", tt_aV[DELAY], true);
if(tt_aV[CLICKCLOSE])
tt_AddEvtFnc(document, "mouseup", tt_HideInit);
}
function tt_OverInit(e)
{
tt_over = e.target || e.srcElement;
tt_DeAlt(tt_over);
tt_OpDeHref(tt_over);
tt_AddRemOutFnc(true);
}
function tt_Show()
{
var css = tt_aElt[0].style;
css.zIndex = Math.max((window.dd && dd.z) ? (dd.z + 2) : 0, 1010);
if(tt_aV[STICKY] || !tt_aV[FOLLOWMOUSE])
tt_iState &= ~0x4;
if(tt_aV[DURATION] > 0)
tt_tDurt.Timer("tt_HideInit()", tt_aV[DURATION], true);
tt_ExtCallFncs(0, "Show")
css.visibility = "visible";
tt_iState |= 0x2;
if(tt_aV[FADEIN])
tt_Fade(0, 0, tt_aV[OPACITY], Math.round(tt_aV[FADEIN] / tt_aV[FADEINTERVAL]));
tt_ShowIfrm();
}
function tt_ShowIfrm()
{
if(tt_ie56)
{
var ifrm = tt_aElt[tt_aElt.length - 1];
if(ifrm)
{
var css = ifrm.style;
css.zIndex = tt_aElt[0].style.zIndex - 1;
css.display = "block";
}
}
}
function tt_Move(e)
{
e = window.event || e;
if(e)
{
tt_musX = tt_GetEvtX(e);
tt_musY = tt_GetEvtY(e);
}
if(tt_iState)
{
if(!tt_over && e)
tt_OverInit(e);
if(tt_iState & 0x4)
{
if(!tt_op && !tt_ie)
{
if(tt_bWait)
return;
tt_bWait = true;
tt_tWaitMov.Timer("tt_bWait = false;", 1, true);
}
if(tt_aV[FIX])
{
tt_iState &= ~0x4;
tt_SetTipPos(tt_aV[FIX][0], tt_aV[FIX][1]);
}
else if(!tt_ExtCallFncs(e, "MoveBefore"))
tt_SetTipPos(tt_PosX(), tt_PosY());
tt_ExtCallFncs([tt_musX, tt_musY], "MoveAfter")
}
}
}
function tt_PosX()
{
var x;
x = tt_musX;
if(tt_aV[LEFT])
x -= tt_w + tt_aV[OFFSETX] - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0);
else
x += tt_aV[OFFSETX];
if(x > tt_maxPosX)
x = tt_maxPosX;
return((x < tt_scrlX) ? tt_scrlX : x);
}
function tt_PosY()
{
var y;
if(tt_aV[ABOVE] && (!tt_bJmpVert || tt_CalcPosYAbove() >= tt_scrlY + 16))
y = tt_DoPosYAbove();
else if(!tt_aV[ABOVE] && tt_bJmpVert && tt_CalcPosYBelow() > tt_maxPosY - 16)
y = tt_DoPosYAbove();
else
y = tt_DoPosYBelow();
if(y > tt_maxPosY)
y = tt_DoPosYAbove();
if(y < tt_scrlY)
y = tt_DoPosYBelow();
return y;
}
function tt_DoPosYBelow()
{
tt_bJmpVert = tt_aV[ABOVE];
return tt_CalcPosYBelow();
}
function tt_DoPosYAbove()
{
tt_bJmpVert = !tt_aV[ABOVE];
return tt_CalcPosYAbove();
}
function tt_CalcPosYBelow()
{
return(tt_musY + tt_aV[OFFSETY]);
}
function tt_CalcPosYAbove()
{
var dy = tt_aV[OFFSETY] - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0);
if(tt_aV[OFFSETY] > 0 && dy <= 0)
dy = 1;
return(tt_musY - tt_h - dy);
}
function tt_OnOut()
{
tt_AddRemOutFnc(false);
if(!(tt_aV[STICKY] && (tt_iState & 0x2)))
tt_HideInit();
}
function tt_HideInit()
{
tt_ExtCallFncs(0, "HideInit");
tt_iState &= ~0x4;
if(tt_flagOpa && tt_aV[FADEOUT])
{
tt_tFade.EndTimer();
if(tt_opa)
{
var n = Math.round(tt_aV[FADEOUT] / (tt_aV[FADEINTERVAL] * (tt_aV[OPACITY] / tt_opa)));
tt_Fade(tt_opa, tt_opa, 0, n);
return;
}
}
tt_tHide.Timer("tt_Hide();", 1, false);
}
function tt_OpReHref()
{
if(tt_elDeHref)
{
tt_elDeHref.setAttribute("href", tt_elDeHref.t_href);
tt_RemEvtFnc(tt_elDeHref, "mousedown", tt_OpReHref);
window.status = tt_elDeHref.t_stats;
tt_elDeHref = null;
}
}
function tt_Fade(a, now, z, n)
{
if(n)
{
now += Math.round((z - now) / n);
if((z > a) ? (now >= z) : (now <= z))
now = z;
else
tt_tFade.Timer("tt_Fade("
+ a + "," + now + "," + z + "," + (n - 1)
+ ")",
tt_aV[FADEINTERVAL],
true);
}
now ? tt_SetTipOpa(now) : tt_Hide();
}
function tt_SetTipOpa(opa)
{
tt_SetOpa(tt_aElt[5].style, opa);
if(tt_aElt[1])
tt_SetOpa(tt_aElt[1].style, opa);
if(tt_aV[SHADOW])
{
opa = Math.round(opa * 0.8);
tt_SetOpa(tt_aElt[7].style, opa);
tt_SetOpa(tt_aElt[8].style, opa);
}
}
function tt_OnCloseBtnOver(iOver)
{
var css = tt_aElt[4].style;
iOver <<= 1;
css.background = tt_aV[CLOSEBTNCOLORS][iOver];
css.color = tt_aV[CLOSEBTNCOLORS][iOver + 1];
}
function tt_Int(x)
{
var y;
return(isNaN(y = parseInt(x)) ? 0 : y);
}
function tt_AddRemOutFnc(bAdd)
{
var PSet = bAdd ? tt_AddEvtFnc : tt_RemEvtFnc;
if(bAdd != tt_AddRemOutFnc.bOn)
{
PSet(tt_over, "mouseout", tt_OnOut);
tt_AddRemOutFnc.bOn = bAdd;
if(!bAdd)
tt_OpReHref();
}
}
tt_AddRemOutFnc.bOn = false;
Number.prototype.Timer = function(s, iT, bUrge)
{
if(!this.value || bUrge)
this.value = window.setTimeout(s, iT);
};
Number.prototype.EndTimer = function()
{
if(this.value)
{
window.clearTimeout(this.value);
this.value = 0;
}
};
function tt_SetOpa(css, opa)
{
tt_opa = opa;
if(tt_flagOpa == 1)
{
if(opa < 100)
{
var bVis = css.visibility != "hidden";
css.zoom = "100%";
if(!bVis)
css.visibility = "visible";
css.filter = "alpha(opacity=" + opa + ")";
if(!bVis)
css.visibility = "hidden";
}
else
css.filter = "";
}
else
{
opa /= 100.0;
switch(tt_flagOpa)
{
case 2:
css.KhtmlOpacity = opa; break;
case 3:
css.KHTMLOpacity = opa; break;
case 4:
css.MozOpacity = opa; break;
case 5:
css.opacity = opa; break;
}
}
}
function tt_MovDomNode(el, dadFrom, dadTo)
{
if(dadFrom)
dadFrom.removeChild(el);
if(dadTo)
dadTo.appendChild(el);
}
function tt_Err(sErr)
{
if(tt_Debug)
alert("Tooltip Script Error Message:\n\n" + sErr);
}
function tt_ExtCmdEnum()
{
var s;
for(var i in config)
{
s = "window." + i.toString().toUpperCase();
if(eval("typeof(" + s + ") == tt_u"))
{
eval(s + " = " + tt_aV.length);
tt_aV[tt_aV.length] = null;
}
}
}
function tt_ExtCallFncs(arg, sFnc)
{
var b = false;
for(var i = tt_aExt.length; i;)
{--i;
var fnc = tt_aExt[i]["On" + sFnc];
if(fnc && fnc(arg))
b = true;
}
return b;
}
addLoadEvent( tt_Init );
function findPos(obj) {
var curleft = 0;
var curtop = 0;
var nW = Math.floor(obj.offsetWidth/2);
var nH = obj.offsetHeight;
if (obj.offsetParent) {
curleft = obj.offsetLeft
curtop = obj.offsetTop
while (obj = obj.offsetParent) {
curleft += obj.offsetLeft
curtop += obj.offsetTop
}
}
return [(curleft-nW+2),(curtop+nH-4)];
}
