var Top_AdChange=1000*45;var Bottom_AdChange=1000*45;var Left_AdChange=1000*60;
function startAd(){getGAd();getSAd();getLeftGAd();}
var gAdObj;function getGAd(){var stateName=null;var destinationName=null;if(window.ActiveXObject){try{gAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{gAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){gAdObj=false;}}}
else{gAdObj=new XMLHttpRequest;}
if(gAdObj){gAdObj.onreadystatechange=setGAd;var url='/servlet/AdvAjaxRes?state='+stateName+'&dest='+destinationName+'&level=N&position=RP&section=F&adCat=null&dummy='+Math.random();gAdObj.open('Get',url,true);if(window.ActiveXObject){gAdObj.send();}
else{gAdObj.send(null);}}
setTimeout("getGAd()",Left_AdChange);}
function setGAd(){if(gAdObj.readyState==4){if(gAdObj.status==200){adAdv(gAdObj.responseText,'gold');}}}
function adAdv(xmlString,section){var doc;if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM")
doc.async="false"
doc.loadXML(xmlString)}
else{var parser=new DOMParser()
doc=parser.parseFromString(xmlString,"text/xml");}
var rootValue=doc.documentElement;var rootAtt=rootValue.attributes;var unitCount=0.0;var gapSpace;var totalGapSpace;var addFiller=false;try{if(rootValue.childNodes.length==0){addFiller=true;}
else{for(var i=0;i<rootValue.childNodes.length;i++){unitCount=unitCount+Number(rootValue.childNodes[i].getAttribute("AdUnit"));}}
var gapCount=rootValue.childNodes.length-1;if(gapCount==1){addFiller=true;}}
catch(ex){}
var bodyObj;if(section=='search'){if(addFiller){totalGapSpace=600-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=600-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('searchAdBody');bodyObj=document.getElementById('searchAdBody')}
if(section=='gold'){if(addFiller){totalGapSpace=600-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=600-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('gAdvBody');bodyObj=document.getElementById('gAdvBody')}
if(section=='silver'){if(addFiller){totalGapSpace=440-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=440-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('sAdvBody');bodyObj=document.getElementById('sAdvBody')}
if(section=='silverLPAd'){addFiller=false;totalGapSpace=300-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);removeRow('adLPSilver');bodyObj=document.getElementById('adLPSilver')}
if(section=='silverLPCatAd'){if(addFiller){totalGapSpace=190-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=190-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('catSilverLPAd');bodyObj=document.getElementById('catSilverLPAd')}
if(section=='w2stay'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('w2stayAdBody');bodyObj=document.getElementById('w2stayAdBody');}
if(section=='press'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('pressAdBody');bodyObj=document.getElementById('pressAdBody');}
if(section=='blog'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('blogRPAdvBody');bodyObj=document.getElementById('blogRPAdvBody');}
if(section=='travel'){if(addFiller){totalGapSpace=840-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=840-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('travelRPAdvBody');bodyObj=document.getElementById('travelRPAdvBody');}
if(section=='video'){if(addFiller){totalGapSpace=840-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=840-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('videoRPAdvBody');bodyObj=document.getElementById('videoRPAdvBody');}
if(section=='recipe'){if(addFiller){totalGapSpace=440-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=440-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('recipeRPAdvBody');bodyObj=document.getElementById('recipeRPAdvBody');}
if(section=='class1'){if(addFiller){totalGapSpace=480-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=480-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class1Body');bodyObj=document.getElementById('class1Body');}
if(section=='class2'){if(addFiller){totalGapSpace=480-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=480-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class2Body');bodyObj=document.getElementById('class2Body');}
if(section=='class3'){if(addFiller){totalGapSpace=480-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=480-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class3Body');bodyObj=document.getElementById('class3Body');}
if(section=='class4'){if(addFiller){totalGapSpace=480-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=480-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class_4RPAdvBody');bodyObj=document.getElementById('class_4RPAdvBody');}
if(section=='class41'){if(addFiller){totalGapSpace=480-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=480-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class_41RPAdvBody');bodyObj=document.getElementById('class_41RPAdvBody');}
if(section=='classP1'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class_1RPAdvBody');bodyObj=document.getElementById('class_1RPAdvBody');}
if(section=='classP2'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class_2RPAdvBody');bodyObj=document.getElementById('class_2RPAdvBody');}
if(section=='classP3'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('class_3RPAdvBody');bodyObj=document.getElementById('class_3RPAdvBody');}
if(section=='Top'){addFiller=false;totalGapSpace=50-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);removeRow('TopAdvBody');bodyObj=document.getElementById('TopAdvBody');}
if(section=='photo'){if(addFiller){totalGapSpace=400-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=400-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('photoAdBody');bodyObj=document.getElementById('photoAdBody');}
if(section=='shop'){if(addFiller){totalGapSpace=520-((unitCount*40)+20);gapSpace=totalGapSpace/Number(rootValue.childNodes.length);}else{totalGapSpace=520-(unitCount*40);gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
removeRow('shopRPAdvBody');bodyObj=document.getElementById('shopRPAdvBody');}
try{for(var i=0;i<rootValue.childNodes.length;i++){var tr=document.createElement("tr");var td=document.createElement("td");if(rootValue.childNodes[i].getAttribute("Format")=='SWF'){td.innerHTML='<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"125\" height=\"600\" >'+'<param name=\"movie\" value=\"'+rootValue.childNodes[i].getAttribute("Src")+'\">'+'<param name=\"quality\" value=\"high\">'+'<param name=\"allowScriptAccess\" value=\"sameDomain\" />'+'<param name=\"menu\" value=\"false\" />'+'<embed src=\"'+rootValue.childNodes[i].getAttribute("Src")+'\" width=\"125\" height=\"600\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" >'+'</embed>'+'</object>';}
else{if(rootValue.childNodes[i].getAttribute("Format")=='dgmTP'){td.innerHTML=rootValue.childNodes[i].getAttribute("URL");}else{td.innerHTML='<a href=\'javascript:void(0)\'><img align=\'center\' valign=\'top\' border=\'0\' src=\''+rootValue.childNodes[i].getAttribute("Src")+'\' alt=\''+rootValue.childNodes[i].getAttribute("Alt")+'\' onClick=\"addSense(\''+rootValue.childNodes[i].getAttribute("URL")+'\',\''+rootValue.childNodes[i].getAttribute("Id")+'\')\"></a>';}}
td.valign='top';td.align='Center';tr.appendChild(td);bodyObj.appendChild(tr);if(i<(rootValue.childNodes.length-1)){var tr=document.createElement("tr");var td=document.createElement("td");td.width='125';td.align='center';td.valign='top';td.height=gapSpace;tr.appendChild(td);bodyObj.appendChild(tr);}}
if(addFiller){var tr=document.createElement("tr");var td=document.createElement("td");td.width='125';td.height=gapSpace;td.align='center';td.vAlign='top';tr.appendChild(td);bodyObj.appendChild(tr);var tr=document.createElement("tr");var td=document.createElement("td");td.align='center';td.vAlign='top';td.innerHTML='<a href=\'javascript:void(0)\'><img align=\'center\' valign=\'bottom\' border=\'0\' src=\'/image/adv/Filler/Filler.gif\'></a>';tr.appendChild(td);bodyObj.appendChild(tr);addFiller=false;}}
catch(ex){}}
var s1AdObj;function getSearchAdd(){if(window.ActiveXObject){try{s1AdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{s1AdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){s1AdObj=false;}}}
else{s1AdObj=new XMLHttpRequest;}
if(s1AdObj){s1AdObj.onreadystatechange=setSearchAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&section=F&adCat=search&dummy='+Math.random();s1AdObj.open('Get',url,true);if(window.ActiveXObject){s1AdObj.send();}
else{s1AdObj.send(null);}}
setTimeout("getSearchAdd()",Left_AdChange);}
var s1AdObj;
function setSearchAd(){if(s1AdObj.readyState==4){if(s1AdObj.status==200){adAdv(s1AdObj.responseText,'search');}}}
var sAdObj;function getSAd(){if(window.ActiveXObject){try{sAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{sAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){sAdObj=false;}}}
else{sAdObj=new XMLHttpRequest;}
if(sAdObj){sAdObj.onreadystatechange=setSAd;var url='/servlet/AdvAjaxRes?state='+stateName+'&dest='+destinationName+'&level=N&position=RP&section=F&adCat=null&dummy='+Math.random();sAdObj.open('Get',url,true);if(window.ActiveXObject){sAdObj.send();}
else{sAdObj.send(null);}}
setTimeout("getSAd()",Left_AdChange);}
function setSAd(){if(sAdObj.readyState==4){if(sAdObj.status==200){adAdv(sAdObj.responseText,'silver');}}}
var sAdLPObj;function getSLPAd(){if(window.ActiveXObject){try{sAdLPObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{sAdLPObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){sAdLPObj=false;}}}
else{sAdLPObj=new XMLHttpRequest;}
if(sAdLPObj){sAdLPObj.onreadystatechange=setSLPAd;var url='/servlet/AdvAjaxRes?state='+stateName+'&dest='+destinationName+'&level=N&position=LP&adCat=null&section=F&dummy='+Math.random();sAdLPObj.open('Get',url,true);if(window.ActiveXObject){sAdLPObj.send();}
else{sAdLPObj.send(null);}}
setTimeout("getSLPAd()",Bottom_AdChange);}
function setSLPAd(){if(sAdLPObj.readyState==4){if(sAdLPObj.status==200){adAdv(sAdLPObj.responseText,'silverLPAd');}}}
var sCatAdLPObj;function getSCatLPAd(){if(window.ActiveXObject){try{sCatAdLPObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{sCatAdLPObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){sCatAdLPObj=false;}}}
else{sCatAdLPObj=new XMLHttpRequest;}
if(sCatAdLPObj){sCatAdLPObj.onreadystatechange=setSCatLPAd;var url='/servlet/AdvAjaxRes?state='+stateName+'&dest='+destinationName+'&level=N&position=LP&adCat=Air Ticket&section=F&dummy='+Math.random();sCatAdLPObj.open('Get',url,true);if(window.ActiveXObject){sCatAdLPObj.send();}
else{sCatAdLPObj.send(null);}}
setTimeout("getSCatLPAd()",Bottom_AdChange);}
function setSCatLPAd(){if(sCatAdLPObj.readyState==4){if(sCatAdLPObj.status==200){adAdv(sCatAdLPObj.responseText,'silverLPCatAd');}}}
var bAdLPObj;function getBAd(){var stateName=null;var destinationName=null;if(window.ActiveXObject){try{bAdLPObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{bAdLPObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){bAdLPObj=false;}}}
else{bAdLPObj=new XMLHttpRequest;}
if(bAdLPObj){bAdLPObj.onreadystatechange=setBAd;var url='/servlet/AdvAjaxRes?state='+stateName+'&dest='+destinationName+'&level=N&position=LP&adCat=null&section=B&dummy='+Math.random();bAdLPObj.open('Get',url,true);if(window.ActiveXObject){bAdLPObj.send();}
else{bAdLPObj.send(null);}}
setTimeout("getBAd()",Bottom_AdChange);}
function setBAd(){if(bAdLPObj.readyState==4){if(bAdLPObj.status==200){adBAdv(bAdLPObj.responseText);}}}
function adBAdv(xmlString,section){removeRow('bAdvCPBody');var doc;if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM")
doc.async="false"
doc.loadXML(xmlString)}
else{var parser=new DOMParser()
doc=parser.parseFromString(xmlString,"text/xml");}
var rootValue=doc.documentElement;var rootAtt=rootValue.attributes;if(rootValue.childNodes.length==0)
return;try{var temp=0;var bodyObj=document.getElementById('bAdvCPBody');var trCP=document.createElement("tr");for(var i=0;i<rootValue.childNodes.length;i++){/*if(i==0||i==rootValue.childNodes.length-1){var tdObj;if(i==0){tdObj=document.getElementById('LPB');}
if(i==rootValue.childNodes.length-1){tdObj=document.getElementById('RPB');}
if(rootValue.childNodes[i].getAttribute("Format")=='SWF'){tdObj.innerHTML='<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">'+'<param name=\"movie\" value=\"'+rootValue.childNodes[i].getAttribute("Src")+'">'+'<param name=\"quality\" value=\"high\">'+'<param name=\"allowScriptAccess\" value=\"sameDomain\" />'+'<param name=\"menu\" value=\"false\" />'+'<embed src=\"'+rootValue.childNodes[i].getAttribute("Src")+'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" alt=\"'+rootValue.childNodes[i].getAttribute("Alt")+'\" title=\''+rootValue.childNodes[i].getAttribute("Alt")+'\'>'+'</embed></object>';tdObj.align='center';}
else{if(rootValue.childNodes[i].getAttribute("Format")=='dgmTP'){tdObj.innerHTML=rootValue.childNodes[i].getAttribute("URL");tdObj.height='40';tdObj.align='center';}else{tdObj.innerHTML='<a href=\'javascript:void(0)\'><img align=\'center\' valign=\'top\' border=\'0\' src=\''+rootValue.childNodes[i].getAttribute("Src")+'\' alt=\''+rootValue.childNodes[i].getAttribute("Alt")+'\' onClick=\"addSense(\''+rootValue.childNodes[i].getAttribute("URL")+'\',\''+rootValue.childNodes[i].getAttribute("Id")+'\')\"></a>';tdObj.align='center';tdObj.vAlign='top';tdObj.height='40';}}}
else{*/if(rootValue.childNodes[i].getAttribute("Format")=='SWF'){var td=document.createElement("td");td.align='center';td.innerHTML='<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\">'+'<param name=\"movie\" value=\"'+rootValue.childNodes[i].getAttribute("Src")+'">'+'<param name=\"quality\" value=\"high\">'+'<param name=\"allowScriptAccess\" value=\"sameDomain\" />'+'<param name=\"menu\" value=\"false\" />'+'<embed src=\"'+rootValue.childNodes[i].getAttribute("Src")+'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" alt=\"'+rootValue.childNodes[i].getAttribute("Alt")+'\" title=\''+rootValue.childNodes[i].getAttribute("Alt")+'\'>'+'</embed>'+'</object>';trCP.appendChild(td);}
else{var td=document.createElement("td");if(rootValue.childNodes[i].getAttribute("Format")=='dgmTP'){td.innerHTML=rootValue.childNodes[i].getAttribute("URL");td.height='40';td.align='center';}else{td.innerHTML='<a href=\'javascript:void(0)\'><img align=\'center\' valign=\'top\' border=\'0\' src=\''+rootValue.childNodes[i].getAttribute("Src")+'\' alt=\''+rootValue.childNodes[i].getAttribute("Alt")+'\' onClick=\"addSense(\''+rootValue.childNodes[i].getAttribute("URL")+'\',\''+rootValue.childNodes[i].getAttribute("Id")+'\')\"></a>';td.align='center';td.vAlign='top';td.height='40';}
trCP.appendChild(td);//}
if((rootValue.childNodes.length-2)>2&&temp<2){var td=document.createElement("td");td.innerHTML='';td.width='11';td.align='center';td.vAlign='top';td.height='40';trCP.appendChild(td);temp++;}
if((rootValue.childNodes.length-2)==2&&temp<1){var td=document.createElement("td");td.innerHTML='';td.width='22';td.height='40';td.align='center';td.vAlign='top';trCP.appendChild(td);temp++;}}}
bodyObj.appendChild(trCP);}
catch(ex){}}
var w2stayAdObj;function getW2StayAd(){if(window.ActiveXObject){try{w2stayAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{w2stayAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){w2stayAdObj=false;}}}
else{w2stayAdObj=new XMLHttpRequest;}
if(w2stayAdObj){w2stayAdObj.onreadystatechange=setW2StayAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=w2stay&section=F&dummy='+Math.random();w2stayAdObj.open('Get',url,true);if(window.ActiveXObject){w2stayAdObj.send();}
else{w2stayAdObj.send(null);}}}
function setW2StayAd(){if(w2stayAdObj.readyState==4){if(w2stayAdObj.status==200){adAdv(w2stayAdObj.responseText,'w2stay');}}}
var shopAdObj;function getShopAd(){if(window.ActiveXObject){try{shopAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{shopAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){shopAdObj=false;}}}
else{shopAdObj=new XMLHttpRequest;}
if(shopAdObj){shopAdObj.onreadystatechange=setShopAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=shop&section=F&dummy='+Math.random();shopAdObj.open('Get',url,true);if(window.ActiveXObject){shopAdObj.send();}
else{shopAdObj.send(null);}}
setTimeout("getShopAd()",Left_AdChange);}
function setShopAd(){if(shopAdObj.readyState==4){if(shopAdObj.status==200){adAdv(shopAdObj.responseText,'shop');}}}
var shopBAdObj;function getBShopAd(){if(window.ActiveXObject){try{shopBAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{shopBAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){shopBAdObj=false;}}}
else{shopBAdObj=new XMLHttpRequest;}
if(shopBAdObj){shopBAdObj.onreadystatechange=setShopBAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=CP&adCat=shop&section=B&dummy='+Math.random();shopBAdObj.open('Get',url,true);if(window.ActiveXObject){shopBAdObj.send();}
else{shopBAdObj.send(null);}}
setTimeout("getBShopAd()",Bottom_AdChange);}
function setShopBAd(){if(shopBAdObj.readyState==4){if(shopBAdObj.status==200){adShopBAdv(shopBAdObj.responseText);}}}
var class_1AdObj;function getClass_1Ad(){if(window.ActiveXObject){try{class_1AdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_1AdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_1AdObj=false;}}}
else{class_1AdObj=new XMLHttpRequest;}
if(class_1AdObj){class_1AdObj.onreadystatechange=setClass_1Ad;var url='/servlet/AdServlet?CAdCategory='+document.getElementById('cat').value+'&CAdCity='+document.getElementById('city').value+'&state=null&dest=null&level=N&position=RP&adCat=c1&section=S&dummy='+Math.random();class_1AdObj.open('Get',url,true);if(window.ActiveXObject){class_1AdObj.send();}
else{class_1AdObj.send(null);}}}
function setClass_1Ad(){if(class_1AdObj.readyState==4){if(class_1AdObj.status==200){adAdv(class_1AdObj.responseText,'class1');}}}
var class_1PAdObj;function getClass_1PAd(){if(window.ActiveXObject){try{class_1PAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_1PAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_1PAdObj=false;}}}
else{class_1PAdObj=new XMLHttpRequest;}
if(class_1PAdObj){class_1PAdObj.onreadystatechange=setClass_1PAd;var url='/servlet/AdClassifiedCategory?CAdCategory=All&CAdCity=All&state=null&dest=null&level=N&position=RP&adCat=c1&section=S&dummy='+Math.random();class_1PAdObj.open('Get',url,true);if(window.ActiveXObject){class_1PAdObj.send();}
else{class_1PAdObj.send(null);}}}
function setClass_1PAd(){if(class_1PAdObj.readyState==4){if(class_1PAdObj.status==200){adAdv(class_1PAdObj.responseText,'classP1');}}}
var class_2AdObj;function getClass_2Ad(){if(window.ActiveXObject){try{class_2AdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_2AdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_2AdObj=false;}}}
else{class_2AdObj=new XMLHttpRequest;}
if(class_2AdObj){class_2AdObj.onreadystatechange=setClass_2Ad;var url='/servlet/AdServlet?CAdCategory='+document.classified.cat.value+'&CAdCity='+document.classified.city.value+'&state=null&dest=null&level=N&position=RP&adCat=c2&section=S&dummy='+Math.random();class_2AdObj.open('Get',url,true);if(window.ActiveXObject){class_2AdObj.send();}
else{class_2AdObj.send(null);}}}
function setClass_2Ad(){if(class_2AdObj.readyState==4){if(class_2AdObj.status==200){adAdv(class_2AdObj.responseText,'class2');}}}
var class_2PAdObj;function getClass_2PAd(){if(window.ActiveXObject){try{class_2PAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_2PAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_2PAdObj=false;}}}
else{class_2PAdObj=new XMLHttpRequest;}
if(class_2PAdObj){class_2PAdObj.onreadystatechange=setClass_2PAd;var url='/servlet/AdClassifiedCategory?CAdCategory=All&CAdCity=All&state=null&dest=null&level=N&position=RP&adCat=c2&section=S&dummy='+Math.random();class_2PAdObj.open('Get',url,true);if(window.ActiveXObject){class_2PAdObj.send();}
else{class_2PAdObj.send(null);}}}
function setClass_2PAd(){if(class_2PAdObj.readyState==4){if(class_2PAdObj.status==200){adAdv(class_2PAdObj.responseText,'classP2');}}}
var class_3AdObj;function getClass_3Ad(){if(window.ActiveXObject){try{class_3AdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_3AdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_3AdObj=false;}}}
else{class_3AdObj=new XMLHttpRequest;}
if(class_3AdObj){class_3AdObj.onreadystatechange=setClass_3Ad;var url='/servlet/AdServlet?CAdCategory='+document.classified.cat.value+'&CAdCity='+document.classified.city.value+'&state=null&dest=null&level=N&position=RP&adCat=c3&section=S&dummy='+Math.random();class_3AdObj.open('Get',url,true);if(window.ActiveXObject){class_3AdObj.send();}
else{class_3AdObj.send(null);}}}
function setClass_3Ad(){if(class_3AdObj.readyState==4){if(class_3AdObj.status==200){adAdv(class_3AdObj.responseText,'class3');}}}
var class_3PAdObj;function getClass_3PAd(){if(window.ActiveXObject){try{class_3PAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_3PAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_3PAdObj=false;}}}
else{class_3PAdObj=new XMLHttpRequest;}
if(class_3PAdObj){class_3PAdObj.onreadystatechange=setClass_3PAd;var url='/servlet/AdClassifiedCategory?CAdCategory=All&CAdCity=All&state=null&dest=null&level=N&position=RP&adCat=c3&section=S&dummy='+Math.random();class_3PAdObj.open('Get',url,true);if(window.ActiveXObject){class_3PAdObj.send();}
else{class_3PAdObj.send(null);}}}
function setClass_3PAd(){if(class_3PAdObj.readyState==4){if(class_3PAdObj.status==200){adAdv(class_3PAdObj.responseText,'classP3');}}}
var class_4AdObj;function getClass_4Ad(){if(window.ActiveXObject){try{class_4AdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_4AdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_4AdObj=false;}}}
else{class_4AdObj=new XMLHttpRequest;}
if(class_4AdObj){class_4AdObj.onreadystatechange=setClass_4Ad;var url='/servlet/AdClassifiedCategory?CAdCategory=All&CAdCity=All&state=null&dest=null&level=N&position=RP&adCat=c4&section=S&dummy='+Math.random();class_4AdObj.open('Get',url,true);if(window.ActiveXObject){class_4AdObj.send();}
else{class_4AdObj.send(null);}}}
function setClass_4Ad(){if(class_4AdObj.readyState==4){if(class_4AdObj.status==200){adAdv(class_4AdObj.responseText,'class4');}}}
var class_4Ad1Obj;function getClass_4Ad1(){if(window.ActiveXObject){try{class_4Ad1Obj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{class_4Ad1Obj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){class_4Ad1Obj=false;}}}
else{class_4Ad1Obj=new XMLHttpRequest;}
if(class_4Ad1Obj){class_4Ad1Obj.onreadystatechange=setClass_2Ad1;var url='/servlet/AdServlet?CAdCategory='+document.classified.cat.value+'&CAdCity='+document.classified.city.value+'&state=null&dest=null&level=N&position=RP&adCat=c4&section=S&dummy='+Math.random();class_4Ad1Obj.open('Get',url,true);if(window.ActiveXObject){class_4Ad1Obj.send();}
else{class_4Ad1Obj.send(null);}}}
function setClass_2Ad1(){if(class_4Ad1Obj.readyState==4){if(class_4Ad1Obj.status==200){adAdv(class_4Ad1Obj.responseText,'class41');}}}
var blogAdObj;function getBlogAd(){if(window.ActiveXObject){try{blogAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{blogAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){blogAdObj=false;}}}
else{blogAdObj=new XMLHttpRequest;}
if(blogAdObj){blogAdObj.onreadystatechange=setBlogAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=blog&section=F&dummy='+Math.random();blogAdObj.open('Get',url,true);if(window.ActiveXObject){blogAdObj.send();}
else{blogAdObj.send(null);}}
setTimeout("getBlogAd()",Left_AdChange);}
function setBlogAd(){if(blogAdObj.readyState==4){if(blogAdObj.status==200){adAdv(blogAdObj.responseText,'blog');}}}
function adShopBAdv(xmlString,section){removeRow('shopCPAdvBody');var doc;if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM")
doc.async="false"
doc.loadXML(xmlString)}
else{var parser=new DOMParser()
doc=parser.parseFromString(xmlString,"text/xml");}
var widthCount=0.0;var totalGapSpace=0.0;var gapSpace=0.0;var rootValue=doc.documentElement;var rootAtt=rootValue.attributes;if(rootValue.childNodes.length==0)
return;try{for(var i=0;i<rootValue.childNodes.length;i++){widthCount=widthCount+Number(rootValue.childNodes[i].getAttribute("AdUnit"));}
totalGapSpace=460.0-widthCount;gapSpace=totalGapSpace/Number(rootValue.childNodes.length-1);}
catch(ex){}
try{var temp=0;var bodyObj=document.getElementById('shopCPAdvBody');var trCP=document.createElement("tr");for(var i=0;i<rootValue.childNodes.length;i++){if(rootValue.childNodes[i].getAttribute("Format")=='SWF'){var td=document.createElement("td");td.innerHTML='<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\">'+'<param name=\"movie\" value=\"'+rootValue.childNodes[i].getAttribute("Src")+'">'+'<param name=\"quality\" value=\"high\">'+'<param name=\"allowScriptAccess\" value=\"sameDomain\" />'+'<param name=\"menu\" value=\"false\" />'+'<embed src=\"'+rootValue.childNodes[i].getAttribute("Src")+'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" alt=\"'+rootValue.childNodes[i].getAttribute("Alt")+'\" title=\''+rootValue.childNodes[i].getAttribute("Alt")+'\'>'+'</embed>'+'</object>'}
else{if(rootValue.childNodes[i].getAttribute("Format")=='dgmTP'){var td=document.createElement("td");td.innerHTML=rootValue.childNodes[i].getAttribute("URL");td.heigth='40';td.align='center';td.vAlign='top';trCP.appendChild(td);}else{var td=document.createElement("td");td.innerHTML='<a href=\'javascript:void(0)\'><img width='+rootValue.childNodes[i].getAttribute("AdUnit")+' align=\'center\' valign=\'top\' border=\'0\' src=\''+rootValue.childNodes[i].getAttribute("Src")+'\' alt=\''+rootValue.childNodes[i].getAttribute("Alt")+'\' onClick=\"addSense(\''+rootValue.childNodes[i].getAttribute("URL")+'\',\''+rootValue.childNodes[i].getAttribute("Id")+'\')\"></a>';td.align='center';td.vAlign='top';trCP.appendChild(td);}}
if(i<(rootValue.childNodes.length-1)){var td=document.createElement("td");td.innerHTML='&nbsp;';td.width=gapSpace+'px';td.align='center';td.vAlign='top';trCP.appendChild(td);}}
bodyObj.appendChild(trCP);}
catch(ex){}}
var pressAdObj;function getPressAd(){if(window.ActiveXObject){try{pressAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{pressAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){pressAdObj=false;}}}
else{pressAdObj=new XMLHttpRequest;}
if(pressAdObj){pressAdObj.onreadystatechange=setPressAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=press&section=F&dummy='+Math.random();pressAdObj.open('Get',url,true);if(window.ActiveXObject){pressAdObj.send();}
else{pressAdObj.send(null);}}}
function setPressAd(){if(pressAdObj.readyState==4){if(pressAdObj.status==200){adAdv(pressAdObj.responseText,'press');}}}
var travelAdObj;function getTravelAd(){if(window.ActiveXObject){try{travelAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{travelAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){travelAdObj=false;}}}
else{travelAdObj=new XMLHttpRequest;}
if(travelAdObj){travelAdObj.onreadystatechange=setTravelAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=travel&section=F&dummy='+Math.random();travelAdObj.open('Get',url,true);if(window.ActiveXObject){travelAdObj.send();}
else{travelAdObj.send(null);}}
setTimeout("getTravelAd()",Left_AdChange);}
function setTravelAd(){if(travelAdObj.readyState==4){if(travelAdObj.status==200){adAdv(travelAdObj.responseText,'travel');}}}
var videoAdObj;function getVideoAd(){if(window.ActiveXObject){try{videoAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{videoAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){videoAdObj=false;}}}
else{videoAdObj=new XMLHttpRequest;}
if(videoAdObj){videoAdObj.onreadystatechange=setVideoAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=video&section=F&dummy='+Math.random();videoAdObj.open('Get',url,true);if(window.ActiveXObject){videoAdObj.send();}
else{videoAdObj.send(null);}}
setTimeout("getVideoAd()",Left_AdChange);}
function setVideoAd(){if(videoAdObj.readyState==4){if(videoAdObj.status==200){adAdv(videoAdObj.responseText,'video');}}}
var recipeAdObj;function getRecipeAd(){if(window.ActiveXObject){try{recipeAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{recipeAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){recipeAdObj=false;}}}
else{recipeAdObj=new XMLHttpRequest;}
if(recipeAdObj){recipeAdObj.onreadystatechange=setRecipeAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=recipe&section=F&dummy='+Math.random();recipeAdObj.open('Get',url,true);if(window.ActiveXObject){recipeAdObj.send();}
else{recipeAdObj.send(null);}}
setTimeout("getRecipeAd()",Left_AdChange);}
function setRecipeAd(){if(recipeAdObj.readyState==4){if(recipeAdObj.status==200){adAdv(recipeAdObj.responseText,'recipe');}}}
var pgAdObj;function getPhotoAd(){if(window.ActiveXObject){try{pgAdObj=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{pgAdObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){pgAdObj=false;}}}
else{pgAdObj=new XMLHttpRequest;}
if(pgAdObj){pgAdObj.onreadystatechange=setPGAd;var url='/servlet/AdvAjaxRes?state=null&dest=null&level=N&position=RP&adCat=photo&section=F&dummy='+Math.random();pgAdObj.open('Get',url,true);if(window.ActiveXObject){pgAdObj.send();}
else{pgAdObj.send(null);}}
setTimeout("getPhotoAd()",Left_AdChange);}
function setPGAd(){if(pgAdObj.readyState==4){if(pgAdObj.status==200){adAdv(pgAdObj.responseText,'photo');}}}
function getClass_AllAd(){var id=document.getElementById('Segment');id.innerHTML=' ';id.innerHTML=document.getElementById('cat').value;var id1=document.getElementById('SCity');id1.innerHTML=' ';id1.innerHTML=document.getElementById('city').value;var id2=document.getElementById('arrow1');id2.innerHTML=' ';var id3=document.getElementById('arrow');id3.innerHTML=' ';id2.innerHTML='&raquo';id3.innerHTML='&raquo';getClass_1Ad();getClass_2Ad();getClass_3Ad();getClass_4Ad1();}
function removeRow(tableid){var tbl=document.getElementById(tableid);while(tbl.rows.length){tbl.deleteRow(0);}}
