
if(typeof window.Ads=='undefined'){Ads=new Array();}
var exp=(function(){var d=new Date();var t=d.getTime();function findPos(obj){if(obj!=null){this.X=obj.offsetLeft;this.Y=obj.offsetTop;while(obj.offsetParent){this.X=this.X+obj.offsetParent.offsetLeft;this.Y=this.Y+obj.offsetParent.offsetTop;if(obj==document.getElementsByTagName('body')[0]){break}
else{obj=obj.offsetParent;}}
return this}}
function addNodes(tumri_ad_url,t,width,height,frameborder,isYT){var w=window.parent.document.getElementsByTagName("iframe");for(var i=0;i<w.length;i++){var iframeDoc=w[i].contentDocument;if(window.document==iframeDoc){var win=window.document.getElementsByTagName("body");win[0].setAttribute("onunload","removeNodes(\""+t+"\")");var swf=addSwf();w[i].parentNode.appendChild(swf);if(isYT){var pos=findPos(w[i]);if(pos!=undefined){createIframe(tumri_ad_url,t,width,height,frameborder,pos,w[i].parentNode);}}else{var divObj=creatediv(("rel_"+t));w[i].parentNode.appendChild(divObj);var pos=findPos(divObj);createIframe(tumri_ad_url,t,width,height,frameborder,pos,divObj);}}}
if(!(isYT)){var body=window.parent.document.getElementsByTagName("body");document.write("<div id=\"rel_"+t+"\" style=\"background-color:orange;height:"+height+"px;width:"+width+"px;\">");addSwf();var map=new Object();map['tumri_ad_url']=tumri_ad_url;map['id']=t;map['width']=width;map['height']=height;map['frameborder']=frameborder;var i=Ads.length;Ads[i+1]=map;var x=navigator;var Name=x.appName;var UA=x.userAgent;if(Name.match("icrosoft"))
body[0].onload=exp.drawFrame;else
body[0].setAttribute("onload","exp.drawFrame()");}}
function creatediv(){var newdiv=document.createElement('div');newdiv.setAttribute('id',"rel_"+t);if(quoted(checkParams("tumri_ad_width","width"))){newdiv.width=quoted(checkParams("tumri_ad_width","width"));}
if(quoted(checkParams("tumri_ad_height","height"))){newdiv.height=quoted(checkParams("tumri_ad_height","height"));}
newdiv.style.background="orange";return newdiv;}
function removeNodes(t){var w=window;if(typeof(w.ifif)!='undefined'){deleteNodes("IF_"+t,true);}
else{deleteNodes("rel_"+t,false);}}
function deleteNodes(id,isYT){var cell=window.parent.document.getElementById(id);if(cell!=null){if(cell.hasChildNodes())
{while(cell.childNodes.length>=1)
{cell.removeChild(cell.firstChild);}}
if(isYT){if(id.substring(0,2)=='IF'){eval("window.parent.document.all."+id+".parentNode.removeChild(cell)");}}
else{if(id.substring(0,3)=='rel'){eval("window.parent.document.all."+id+".parentNode.removeChild(cell)");}}}}
function createIframe(ad_url,t,width,height,frameborder,obj,fObj){ifrm=document.createElement("iframe");ifrm.setAttribute("id","IF_"+t);ifrm.setAttribute("src",ad_url+"&exId="+t);ifrm.style.position="absolute";ifrm.style.margin="0px";ifrm.style.padding="0px";ifrm.style.left=obj.X;ifrm.style.top=obj.Y;ifrm.width=width;ifrm.height=height;ifrm.frameBorder=0;ifrm.setAttribute("scrolling","no");ifrm.setAttribute("marginwidth","0");ifrm.setAttribute("marginheight","0");ifrm.setAttribute("vspace","0");ifrm.setAttribute("hspace","0");ifrm.setAttribute("allowtransparency","true");ifrm.style.zindex="100";fObj.appendChild(ifrm);}
function addSwf(){var s="<embed  width=\"1\" height=\"1\" align=\"middle\" type=\"application/x-shockwave-flash\" flashvars=\"connId="+t+"\" salign=\"\" allowscriptaccess=\"always\" allowfullscreen=\"false\" menu=\"true\" name=\"expanderPixel\" bgcolor=\"#ffffff\" devicefont=\"false\" wmode=\"window\" scale=\"showall\" loop=\"true\" play=\"true\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" quality=\"high\" src=\""+window.ad_se+"/ads/expanderPixel.swf\"/>"
document.write(s);}
function quoted(str){return(str!=null)?'"'+str+'"':'""';}
function tumri_encodeURIComponent(str){if(typeof(encodeURIComponent)=='function'){return encodeURIComponent(str);}else{return escape(str);}}
function tumri_append_url(param,value){if(value){if(window.tumri_ad_url.substring(window.tumri_ad_url.length-1,window.tumri_ad_url.length)=='?')
window.tumri_ad_url+=param+'='+value;else
window.tumri_ad_url+='&'+param+'='+value;}}
function tumri_append_url_esc(param,value){if(value){tumri_append_url(param,tumri_encodeURIComponent(value));}}
function tumri_write_iframe(w,d,ad_url){var tumri_style='margin:0px;padding:0px;';if(w.tumri_frame_bg||w.frameborder){tumri_style+='background-color:'+checkParams("tumri_frame_bg","frameborder")+';';}
d.write('<iframe'+' name="tumri_ads_frame"'+' width='+quoted(checkParams("tumri_ad_width","width"))+' height='+quoted(checkParams("tumri_ad_height","height"))+' frameborder='+quoted(checkParams("tumri_ad_frameborder","frameborder"))+' src='+quoted(ad_url)+' style='+quoted(tumri_style)+' marginwidth="0"'+' marginheight="0"'+' vspace="0"'+' hspace="0"'+' allowtransparency="true"'+' scrolling="no">');d.write('</iframe>');}
function resetParams(paramOldName,paramNewName){var w=window;var nvalue=null;var obj=eval(paramOldName);var newobj=eval("w.x2_"+paramNewName);if(typeof obj!='undefined'){eval(paramOldName+"=undefined");}
if(typeof newobj!='undefined'){eval("w.x2_"+paramNewName+"=undefined");}}
function checkParams(paramOldName,paramNewName){var w=window;if(typeof eval("w."+paramOldName)=='undefined'&&typeof eval("w.x2_"+paramNewName)!='undefined'){return eval("w.x2_"+paramNewName);}
else if(typeof eval("w."+paramOldName)!='undefined'){return eval("w."+paramOldName);}}
function tumri_append_custom(){var obj=window.tumri_custom;if(obj&&typeof obj=='object'&&obj!=null){var p;for(p in obj){tumri_append_url_esc(p,obj[p]);}}}
function tumri_error_handler(message,url,line){tumri_show_ad();return true;}
var myJSONObject="";return{init:function(){myJSONObject={"bindings":[{"oldName":"tumri_ad_server","newName":"ad_se"},{"oldName":"tumri_ad_client","newName":"ad_cl"},{"oldName":"tumri_store_id","newName":"tumri_store_id"},{"oldName":"tumri_page_url","newName":"pa_ur"},{"oldName":"tumri_ad_type","newName":"ad_ty"},{"oldName":"tumri_theme","newName":"tu_th"},{"oldName":"tumri_search_query","newName":"s1"},{"oldName":"en","newName":"en"},{"oldName":"sc","newName":"sc"},{"oldName":"tumri_click_tracker_url","newName":"cl_tr"},{"oldName":"tumri_design","newName":"tu_de"},{"oldName":"tumri_open_in_new_window","newName":"op_ne_wi"},{"oldName":"tumri_disable_animation","newName":"di_an"},{"oldName":"tumri_animation_interval","newName":"an_in"},{"oldName":"tumri_page_location","newName":"pa_lo"},{"oldName":"tumri_referrer_url","newName":"re_ur"},{"oldName":"tumri_aid","newName":"tu_ai"},{"oldName":"tumri_affiliate_id","newName":"af_id"},{"oldName":"tumri_affiliate_name","newName":"af_na"},{"oldName":"tumri_sid","newName":"tu_si"},{"oldName":"p1_id","newName":"p1"},{"oldName":"p2_id","newName":"p2"},{"oldName":"p3_id","newName":"p3"},{"oldName":"p4_id","newName":"p4"},{"oldName":"atsget","newName":"at_ge"},{"oldName":"buy_id","newName":"bu_id"},{"oldName":"page_id","newName":"pa_id"},{"oldName":"ad_id","newName":"ad_id"},{"oldName":"creative_id","newName":"cr_id"},{"oldName":"site_id","newName":"si_id"},{"oldName":"tumri_ad_width","newName":"width"},{"oldName":"tumri_ad_height","newName":"height"},{"oldName":"tumri_ad_frameborder","newName":"frameborder"},{"oldName":"tumri_frame_bg","newName":"fr_bg"},{"oldName":"debug_zipcode","newName":"g1"},{"oldName":"debug_dma","newName":"g2"},{"oldName":"debug_city","newName":"g3"},{"oldName":"debug_state","newName":"g4"},{"oldName":"debug_country","newName":"g5"},{"oldName":"debug_area_code","newName":"g6"},{"oldName":"location_id","newName":"lo_id"},{"oldName":"l1","newName":"l1"},{"oldName":"l2","newName":"l2"},{"oldName":"l3","newName":"l3"},{"oldName":"l4","newName":"l4"},{"oldName":"l5","newName":"l5"},{"oldName":"f1","newName":"f1"},{"oldName":"f2","newName":"f2"},{"oldName":"f3","newName":"f3"},{"oldName":"f4","newName":"f4"},{"oldName":"f5","newName":"f5"},{"oldName":"t1","newName":"t1"},{"oldName":"t2","newName":"t2"},{"oldName":"t3","newName":"t3"},{"oldName":"t4","newName":"t4"},{"oldName":"t5","newName":"t5"},{"oldName":"TC_1","newName":"TC_1"},{"oldName":"TC_2","newName":"TC_2"},{"oldName":"TC_3","newName":"TC_3"},{"oldName":"TC_4","newName":"TC_4"},{"oldName":"TC_5","newName":"TC_5"},{"oldName":"ex","newName":"ex"}]};},drawFrame:function(){for(x in Ads)
{var divObj=document.getElementById("rel_"+Ads[x].id);var pos=findPos(divObj);createIframe(Ads[x].tumri_ad_url,Ads[x].id,Ads[x].width,Ads[x].height,Ads[x].frameborder,pos,divObj);}},tumri_init_globals:function(){var w=window;var d=document;if(w.tumri_ad_frameborder)
w.tumri_ad_frameborder=0;else
w.x2_frameborder=0;w.tumri_referrer_url=d.referrer;w.tumri_page_location=d.location;},tumri_show_ad:function(){var w=window;var d=document;if(typeof w.tumri_org_error_handler!='undefined'){w.onerror=w.tumri_org_error_handler;}
for(var j=0;j<myJSONObject.bindings.length;j++){if(myJSONObject.bindings[j].oldName=="tumri_ad_server"){w.ad_se=checkParams("tumri_ad_server","ad_se");w.tumri_ad_url=w.ad_se+'/ads/ads?';}
else{var value;if(myJSONObject.bindings[j].oldName=="sc"){value='y';}
else{value=checkParams(myJSONObject.bindings[j].oldName,myJSONObject.bindings[j].newName);}
if(value!=null&&value!='undefined'&&value.length>0){tumri_append_url_esc(myJSONObject.bindings[j].newName,value);}}}
tumri_append_custom();var width=checkParams("tumri_ad_width","width");var height=checkParams("tumri_ad_height","height");var fborder=checkParams("tumri_ad_frameborder","frameborder");if(typeof(w.x2_ex)=='undefined'){tumri_write_iframe(w,d,w.tumri_ad_url);}
else{if(typeof(w.ifif)!='undefined'){addNodes(w.tumri_ad_url,t,width,height,fborder,true);}
else if(w.x2_ex==true){addNodes(w.tumri_ad_url,t,width,height,fborder,false);}
else{tumri_write_iframe(w,d,w.tumri_ad_url);}}
for(var j=0;j<myJSONObject.bindings.length;j++){resetParams(eval("\"w."+myJSONObject.bindings[j].oldName+"\""),myJSONObject.bindings[j].newName);}}};})();function resize(height,width,position,id){var element="";if(typeof(window.ifif)!='undefined'){element=window.document.getElementById("IF_"+id);}
else{element=window.parent.document.getElementById("IF_"+id);}
if(typeof element!='undefined'){if(position=='EXPAND_UP'){var aheight=height-element.height;var top=parseInt(element.style.top.substring(0,(element.style.top.length-2)))-aheight;element.style.top=top;}
else if(position=='EXPAND_LEFT'){var awidth=width-element.width;var left=parseInt(element.style.left.substring(0,(element.style.left.length-2)))-awidth;element.style.left=left;}
else if(position=='RETRACT_LEFT'){var left=parseInt(element.style.left.substring(0,(element.style.left.length-2)))+width;element.style.left=left;}
else if(position=='RETRACT_UP'){var top=parseInt(element.style.top.substring(0,(element.style.top.length-2)))+height;element.style.top=top;}
element.width=width;element.height=height;element.style.zIndex=100;}else{alert("Cannot find iFrame");}}
exp.init();exp.tumri_init_globals();exp.tumri_show_ad();