if(typeof(octo_color_title)=='undefined')var octo_color_title = 'darkblue'; if(typeof(octo_color_border)=='undefined')var octo_color_border = 'darkblue'; if(typeof(octo_color_background)=='undefined')var octo_color_background = 'ghostwhite'; if(typeof(octo_color_break)=='undefined')var octo_color_break = 'black'; if(typeof(octo_client_height)=='undefined')var octo_client_height = 300; if(typeof(octo_client_width)=='undefined')var octo_client_width = 200; if(typeof(octo_color_link)=='undefined')var octo_color_link = '#0000CC'; if(typeof(octo_color_text)=='undefined')var octo_color_text = 'black'; if(typeof(octo_color_buy_text)=='undefined')var octo_color_buy_text = '#F5F5F5'; if(typeof(octo_color_buy_bg)=='undefined')var octo_color_buy_bg = '#1C58CC'; if(typeof(octo_color_buy_bg_over)=='undefined')var octo_color_buy_bg_over = '#0141BC'; var max_length = 16; var isCSS, isW3C, isIE4, isNN4, isIE6CSS; function initDHTMLAPI(){ if(document.images){ isCSS = (document.body && document.body.style)? true: false; isW3C = (isCSS && document.getElementById)? true: false; isIE4 = (isCSS && document.all)? true: false; isNN4 = (document.layers)? true: false; isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0)? true: false; } }; function getRawObject(obj) { var theObj; if(typeof obj == "string"){ if(isW3C){ theObj = document.getElementById(obj); } else if(isIE4) { theObj = document.all(obj); } else if(isNN4) { theObj = seekLayer(document,obj); } } else{ theObj = obj; } return theObj; }; function Octo__build(pdict,pDiv){ pDiv.style.fontFamily = 'arial'; pDiv.style.fontSize= '10pt'; pDiv.style.width = octo_client_width+'px'; var active = document.createElement("div"); active.style.backgroundColor=octo_color_background; active.style.border='1px solid '+octo_color_border; active.style.width =octo_client_width+'px'; var pld = document.createElement("div"); pld.style.margin='2px'; var pmb = document.createElement("div"); var ml = document.createElement("div"); ml.style.fontSize='11pt'; ml.style.marginLeft='5px'; ml.style.marginTop='5px'; ml.style.fontWeight='bold'; var tDiv = document.createElement("div"); var tLk = document.createElement('a'); tLk.href ='http://octopart.com/partlist/view?id='+pdict.pub; tLk.innerHTML = 'Doublet Amplifier Parts'; tLk.style.color = octo_color_title; tDiv.appendChild(tLk); ml.appendChild(tDiv); var creditDiv = document.createElement("div"); creditDiv.innerHTML = 'by: sam'; creditDiv.style.fontSize = '9pt'; creditDiv.style.marginLeft = '10px'; creditDiv.style.marginTop='2px'; creditDiv.style.marginBottom='5px'; creditDiv.style.color = octo_color_text; pmb.appendChild(ml); pmb.appendChild(creditDiv); pld.appendChild(pmb); var tbrk = document.createElement("div"); tbrk.style.backgroundColor=octo_color_break; tbrk.style.height='1px'; tbrk.style.lineHeight='1px'; tbrk.style.zIndex=9; tbrk.style.overflow='hidden'; pld.appendChild(tbrk); plb = document.createElement('div'); plb.style.fontSize='11pt'; plb.style.color='black'; plb.style.padding='5px 0px 0px 0px'; plb.style.height=octo_client_height+'px'; plb.style.overflow='auto'; pld.appendChild(plb); active.appendChild(pld); pDiv.appendChild(active); clrDiv = document.createElement('div'); clrDiv.style.clear = 'both'; pDiv.appendChild(clrDiv); Octo__bPList(pdict,plb); tbrk = document.createElement("div"); tbrk.style.backgroundColor=octo_color_break; tbrk.style.height='1px'; tbrk.style.lineHeight='1px'; tbrk.style.zIndex=9; tbrk.style.overflow='hidden'; pld.appendChild(tbrk); var infoDiv = document.createElement('div'); var lkDiv = document.createElement('div'); lkDiv.style.margin = '3px'; lkDiv.style.styleFloat = 'right'; lkDiv.style.cssFloat = 'right'; var infoLk = document.createElement('a'); infoLk.href= 'http://octopart.com/partlist/view?id='+pdict.pub; infoLk.innerHTML = 'details'; lkDiv.appendChild(infoLk); clrDiv = document.createElement('div'); clrDiv.style.clear = 'both'; infoDiv.appendChild(clrDiv); pld.appendChild(infoDiv); }; function Octo__bPList(dList,plb){ if(!dList.parts.length){ var noslct = document.createElement('table'); var plRow = noslct.insertRow(-1); var plcl = plRow.insertCell(0); noslct.style.color = '#003399'; noslct.style.padding = '0px 0px 0px 3px'; plcl.innerHTML = " no parts in partlist" plb.appendChild(noslct); } else{ var plTable = document.createElement("table"); plTable.style.width='100%'; plTable.cellPadding = '3'; plb.appendChild(plTable); for(var i=0; i1) manunumDiv.appendChild(document.createTextNode(' ')); if((num_lks+1)*max_length>=pDict.manu_number.length){ var end_index = pDict.manu_number.length; var this_string = pDict.manu_number.substring(num_lks*max_length,end_index); manLink.appendChild(document.createTextNode(this_string)); manLink.style.color = octo_color_link; manLink.style.fontSize= '11pt'; manunumDiv.appendChild(manLink); }else{ var end_index = (num_lks+1)*max_length; var this_string = pDict.manu_number.substring(num_lks*max_length,end_index); manLink.appendChild(document.createTextNode(this_string)); manLink.style.color = octo_color_link; manLink.style.fontSize= '11pt'; manunumDiv.appendChild(manLink); manunumDiv.appendChild(document.createTextNode('... ')); } num_lks +=1; } } nameCell.appendChild(manuDiv); nameCell.appendChild(manunumDiv); } var qtyCell = plRow.insertCell(1); qtyCell.align='right'; qtyCell.style.width = '25%'; qtyCell.style.color = octo_color_text; var qtyDiv = document.createElement('a'); qtyDiv.style.color = octo_color_text; qtyDiv.style.fontSize= '11pt'; pDict.qtyDiv = qtyDiv; qtyDiv.appendChild(document.createTextNode(pDict.quantity)); qtyCell.appendChild(qtyDiv); }; var pDiv = document.createElement("div"); document.write("
"); initDHTMLAPI(); Octo__build({"dsc": "These are the parts you'll need to build up a Doublet Amp. Good luck!", "parts": [{"comment": "", "manu": "Vishay", "info_url": "/info/Vishay/RN55D4021FB14", "img_link": "", "manu_number": "RN55D4021FB14", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/RN55D4021FB14-Vishay-datasheet-215.pdf", "quantity": "4", "id": "990601", "thumb_img": "", "name": "4kOhm Resistors, 1/8W"}, {"comment": "", "manu": "Vishay", "info_url": "/info/Vishay/RN55D1003FB14", "img_link": "", "manu_number": "RN55D1003FB14", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/RN55D1003FB14-Vishay-datasheet-215.pdf", "quantity": "4", "id": "990488", "thumb_img": "", "name": "100kOhm Resistors, 1/8W"}, {"comment": "", "manu": "IRC", "info_url": "/info/IRC/RN55D1001F", "img_link": "", "manu_number": "RN55D1001F", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/RN55D1001F-IRC-datasheet-1989.pdf", "quantity": "4", "id": "974698", "thumb_img": "", "name": "1kOhm Resistors, 1/8W"}, {"comment": "", "manu": "IRC", "info_url": "/info/IRC/RN55D1002F", "img_link": "", "manu_number": "RN55D1002F", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/RN55D1002F-IRC-datasheet-1989.pdf", "quantity": "2", "id": "974717", "thumb_img": "", "name": "10kOhm Resistor, 1/8W"}, {"comment": "", "manu": "Vishay", "info_url": "/info/Vishay/2222+150+65471", "img_link": "http://cdn.sigma.octopart.com/192125/image/Vishay-2222-150-65471.jpg", "manu_number": "2222 150 65471", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/2222-150-65471-Vishay-datasheet-6844.pdf", "quantity": "4", "id": "966706", "thumb_img": "http://cdn.sigma.octopart.com/1294896/image/Vishay-2222-150-65471.jpg", "name": "470uF Caps, Electrolytic"}, {"comment": "", "manu": "Avago", "info_url": "/info/Avago/HLMP-K150", "img_link": "http://cdn.sigma.octopart.com/547262/image/Avago-HLMP-K150.jpg", "manu_number": "HLMP-K150", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/HLMP-K150-Avago-datasheet-16985.pdf", "quantity": "2", "id": "17012", "thumb_img": "http://cdn.sigma.octopart.com/849330/image/Avago-HLMP-K150.jpg", "name": "Red Led"}, {"comment": "", "manu": "SPC", "info_url": "/info/SPC/8459-0674", "img_link": "", "manu_number": "8459-0674", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/8459-0674-SPC-datasheet-39909.pdf", "quantity": "1", "id": "994603", "thumb_img": "", "name": "Battery Strap"}, {"comment": "", "manu": "International Rectifier", "info_url": "/info/International+Rectifier/11DQ03", "img_link": "", "manu_number": "11DQ03", "swf_link": "", "pdf_link": "", "quantity": "1", "id": "82925", "thumb_img": "", "name": "Diode"}, {"comment": "", "manu": "Switchcraft", "info_url": "/info/Switchcraft/35RAPC4BH3", "img_link": "", "manu_number": "35RAPC4BH3", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/35RAPC4BH3-Switchcraft-datasheet-44251.pdf", "quantity": "3", "id": "604023", "thumb_img": "", "name": "1/8\" Audio Jacks"}, {"comment": "", "manu": "Multicomp", "info_url": "/info/Multicomp/MC21040", "img_link": "", "manu_number": "MC21040", "swf_link": "", "pdf_link": "", "quantity": "2", "id": "1490999", "thumb_img": "", "name": "Aluminum Knobs"}, {"comment": "", "manu": "Duracell", "info_url": "/info/Duracell/PC1604", "img_link": "", "manu_number": "PC1604", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/PC1604-Duracell-datasheet-58217.pdf", "quantity": "1", "id": "51", "thumb_img": "", "name": "9V Battery"}, {"comment": "", "manu": "Texas Instruments", "info_url": "/info/Texas+Instruments/TLE2426CLP", "img_link": "http://cdn.sigma.octopart.com/5234180/image/Texas-Instruments-TLE2426CLP.jpeg", "manu_number": "TLE2426CLP", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/TLE2426CLP-Texas-Instruments-datasheet-16434.pdf", "quantity": "2", "id": "522045", "thumb_img": "http://cdn.sigma.octopart.com/5234184/image/Texas-Instruments-TLE2426CLP.jpeg", "name": "Railsplitters"}, {"comment": "", "manu": "Texas Instruments", "info_url": "/info/Texas+Instruments/OPA2134PA", "img_link": "http://cdn.sigma.octopart.com/5233429/image/Texas-Instruments-OPA2134PA.jpeg", "manu_number": "OPA2134PA", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/OPA2134PA-Texas-Instruments-datasheet-148625.pdf", "quantity": "2", "id": "421744", "thumb_img": "http://cdn.sigma.octopart.com/5233432/image/Texas-Instruments-OPA2134PA.jpeg", "name": "Dual Channel Op-Amps"}, {"comment": "Available in small quantities here", "manu": "ALPS", "info_url": "/info/ALPS/RK0971221Z05", "img_link": "", "manu_number": "RK0971221Z05", "swf_link": "", "pdf_link": "", "quantity": "2", "id": "2824957", "thumb_img": "", "name": "Potentiometers"}, {"comment": "", "manu": "Areva", "info_url": "/info/Areva/DIP308-001BLF", "img_link": "", "manu_number": "DIP308-001BLF", "swf_link": "", "pdf_link": "", "quantity": "2", "id": "110961", "thumb_img": "", "name": "Op-Amp Sockets"}, {"comment": "You could also use the B32529C334K which might be easier to get a hold of.", "manu": "EPCOS", "info_url": "/info/EPCOS/B32529C5334J", "img_link": "", "manu_number": "B32529C5334J", "swf_link": "", "pdf_link": "http://datasheet.octopart.com/B32529C5334J-EPCOS-datasheet-357.pdf", "quantity": "4", "id": "215176", "thumb_img": "", "name": "Signal Capacitors"}], "id": 25, "pub": "NjEwMjE=", "title": "Doublet Amplifier Parts"},getRawObject('octo__pl'));