function f0(s11){s0="";while(s11.length){i0=s11.indexOf("\'");if(i0 < 0){s0+=s11;break;}else{s0+=s11.substr(0,i0)+"\\\'";s11=s11.substr(i0+1);}}return " onMouseOver=\"window.status=\'"+s0+"\';return true;\""+" onMouseOut=\"window.status=\'"+gpsMsg()+"\';return true;\""+" onMouseDown=\"window.status=\'"+s0+"\';return true;\"";}
function f1(s12,strCookie,strIndexId){s1=parent.strIndexInfo;if(strCookie && strCookie.length)s1=strCookie;s2="";if(s1 && s1.length){i1=s1.indexOf("*"+strIndexId+"i");if(i1 >=0) {i2=s1.indexOf("*",i1+1);if(i2==-1) i2=s1.length - i1;s2=s1.substring(i1+strIndexId.length+2,i2);s1=s1.substring(0,i1)+s1.substring(i1+i2);}}else{s1="";}strCookie=parent.strIndexInfo="*"+strIndexId+"i"+s12+"x"+s2+s1;document.cookie="gpsm="+strCookie+";";}
function f2(s13,strCookie,strIndexId){s2="";i1=parent.strIndexInfo.indexOf("*"+strIndexId+"i");i2=parent.strIndexInfo.indexOf("*",i1+1);if(i2==-1)i2=parent.strIndexInfo.length - i1;s2=parent.strIndexInfo.substring(i1+strIndexId.length+2,i2);parent.strIndexInfo=parent.strIndexInfo.substring(0,i1)+parent.strIndexInfo.substring(i1+i2);start=s2.indexOf(s13+"x");if(start >=0) {s2=s2.substring(0,start)+s2.substring(start+s13.length+1);}if(s2.length)parent.strIndexInfo="*"+strIndexId+"i"+s2+parent.strIndexInfo;strCookie=parent.strIndexInfo;document.cookie="gpsm="+strCookie+";";return parent.strIndexInfo;}
function f3(s14,strCookie,strIndexId){if(strCookie && strCookie.length)parent.strIndexInfo=strCookie;if(!parent.strIndexInfo ||!parent.strIndexInfo.length)return 0;i3=parent.strIndexInfo.indexOf("*"+strIndexId+"i");if(i3==-1) return 0;s3=parent.strIndexInfo.substring(i3+strIndexId.length+2);i4=s3.indexOf("*");if(i4 >=0)s3=s3.substring(0,i4);while(1){end=s3.indexOf("x");if(end <=0) return 0;s4=s3.substring(0,end);if(s4==s14) return 1;s3=s3.substring(end+1);}}
function f4(s7){parent.nav.location.href=s7;history.go(0);}
function buildIndex(strCookie,strIndexId){b0=0;for(i=1; i < x;++i) {s5=unescape(a[i]);s6=s5.substring(0,1);s5=s5.substring(1);s7=s5.substring(0,s5.indexOf(";"));s5=s5.substring(s7.length+1);s8=s5.substring(0,s5.indexOf("!"));s9=s5.substring(s8.length+1);s10="<td width=10></td>";if(s6=="X") {b0=f3(i,strCookie,strIndexId);}if(s6!="M" || b0) {s7="../resads/"+s7;switch(s6){case "M":document.writeln("<tr><td></td><td width=10%></td><td width=90%>"+"<a href=\""+s7+"AdsPage1"+ext()+"\""+" class=\"indexModelExp\" "+f0("View "+s8+" ads")+" target=\"nav\">&nbsp;"+s8+"&nbsp;</a> ("+s9+")");break;case "R":document.writeln("<tr>"+s10+"<td colspan=\"2\" class=\"indexRefText\"> "+s9+" (see "+"<a href=\""+s7+"AdsPage1"+ext()+"\""+" class=\"indexRefLink\" "+f0("View "+s8+" ads")+" target=\"nav\">&nbsp;<u>"+s8+"</u>&nbsp;</a>)");break;case "X":s10="<td class=\"indexIconExp\" width=12>"+"<a href=\"javascript:history.go(0)\""+" onMouseOver=\"window.status=\'"+(b0 ? "Collapse models" : "Expand models")+"\';return true;\""+" onClick=\""+(b0 ? "f2" : "f1")+"('"+i+"',strCookie,strIndexId);return true;\""+" onMouseOut=\"window.status=\'"+gpsMsg()+"\';return true;\""+">"+"<img BORDER=\"0\" SRC=\""+imgDirName()+(b0 ? "Index-.gif" : "Index+.gif")+"\" HEIGHT=14 WIDTH=14></a></td>";document.writeln("<tr>"+s10+"<td colspan=\"2\"> "+"<a href=\"javascript:f4(\'"+pre()+s7+"AdsPage1"+ext()+"\')\" "+f0("View "+s8+" ads")+" onClick=\""+(b0 ? "f2" : "f1")+"('"+i+"',strCookie,strIndexId);return true;\""+">&nbsp;"+s8+"&nbsp;</a> ("+s9+")");break;case "I":document.writeln("<tr>"+s10+"<td colspan=\"2\"> "+"<a href=\""+s7+"AdsPage1"+ext()+"\""+f0("View "+s8+" ads")+" onClick=\""+(b0 ? "f2" : "f1")+"('"+i+"',strCookie,strIndexId);return true;\""+" target=\"nav\">&nbsp;"+s8+"&nbsp;</a> ("+s9+")");break;}document.writeln("</td></tr>");}}}
function writeIndexHeader(s15,s16){document.writeln("<br><table class=\"indexHeader\">"+"<tr><td>"+"<img src=\""+imgDirName()+s15+"\" alt=\"Index of Aircraft for Sale\"> "+s16+"</td></tr></table>");}
