var my_track="erector";var my_initial="http://www.erector-sets.net/include/initial.asp";var my_detail="http://www.erector-sets.net/product_detail.asp";var myStyle='&linecolor='+escape('#AAAAAA')+
'&menu=category'+
'&body=bodyblue'+
'&bold=bodyheading'+
'&hlcolor='+escape('#88C4FF')+
'&bgcolor='+escape('#E0E0E0')+
'&menucolor='+escape('#E0E0E0')+
'&hdcolor='+escape('#B0B0B0')+
'&idcolor='+escape('#FFFFFF')+
'&header=bodywhite'+
'&rowcolor='+escape('#E0E0E0')+
'&row=bodyblack'+
'&label=bodyblue'+
'&heading=heading'+
'&detail='+escape(my_detail)+
'&popup=yes'+
'&zoom=yes'+
'';InitialHeader(false);function InitialHeader(bRefresh)
{var i,sStr,page,curPage=""+window.location,myid="";curPage=curPage.toLowerCase();sStr='engine.asp?track='+my_track.toLowerCase()+'+';i=curPage.indexOf(sStr);if(i>0)
{curPage=curPage.substring(i+sStr.length,curPage.length);sStr='&page=';i=curPage.indexOf(sStr);if(i>0)sStr=curPage.substring(i+sStr.length,curPage.length);else sStr='';i=curPage.indexOf('&')
if(i>0)curPage=curPage.substring(0,i);i=sStr.indexOf('&')
if(i>0)sStr=sStr.substring(0,i);curPage+=sStr;curPage=unescape(curPage);alert(curPage);}
else if(curPage.indexOf('.asp')>0&&window.goback&&window.goback.length)
{sStr=curPage;i=sStr.lastIndexOf("/");if(i>0)sStr=sStr.substring(0,i+1);curPage=goback.toLowerCase();if(curPage.indexOf(sStr)==0)curPage="";i=curPage.lastIndexOf('.asp?pid=');if(i<=0)i=curPage.lastIndexOf('.asp?file=');if(i>0&&my_detail.indexOf('.asp')<0)
{i=curPage.lastIndexOf('/',i);sStr=curPage.substring(i+1,curPage.length);i=sStr.indexOf('?');sStr=sStr.substring(0,i);my_detail=sStr+'?file='+my_detail;}}
i=curPage.lastIndexOf("?");if(i>0)
{myid='&'+curPage.substring(i+1,curPage.length);curPage=curPage.substring(0,i);i=myid.lastIndexOf('&id=');if(i<0)
myid='';else
{if(i>0)myid=myid.substring(i,myid.length);i=myid.indexOf('#',1)
if(i>0)myid=myid.substring(0,i);i=myid.indexOf('&',1)
if(i>0)myid=myid.substring(0,i);}}
if(window.seohandler)
{i=curPage.indexOf(seohandler);if(i>0)curPage=curPage.substring(0,i+1);}
i=curPage.lastIndexOf("/");if(i>7)
curPage=curPage.substring(0,i+1);else if(curPage.length&&i<0)
curPage+='/';page=my_initial+"?track="+my_track+"+"+escape(curPage);if(window.sessionid)
page+="&id="+sessionid;else if(myid.length)
page+=myid;if(bRefresh)
page+='&rnd='+Math.round(Math.random()*100000);if(curPage.indexOf('http')<0&&my_initial.indexOf('://')<0&&curPage.length)
{alert('To properly preview the page: \n\nEdit "header.js" file to Prefix "my_initial" variable with a full domain URL.');}
else if(!window.parent||(!window.parent.sitename&&!window.parent.fixHTMLArea))
{document.write('<'+'script language="JavaScript" src="'+
page+'"></'+'script>\r\n');}}
if(window.parent&&window.parent.sitename&&!window.parent.fixHTMLArea)
{eval("var sessionid = window.parent.sessionid;");eval("var cart = window.parent.cart;");eval("function quickcart(sParams) {window.parent.quickcart(sParams, window)}");eval("function insertstatic(sURL) {window.parent.insertstatic(sURL, window)}");eval("function insertpage(sURL) {window.parent.insertpage(sURL, window)}");eval("function submitform(sForm, sURL) {window.parent.submitform(sForm, sURL, window)}");}
var myStyle0='?'+myStyle.substring(1,myStyle.length);function setStyle(sField,sValue)
{var thisStyle=myStyle;var i,j,sStr;i=thisStyle.indexOf('&'+sField+'=');if(i>=0)
{j=thisStyle.indexOf('&',i+1);if(j<0)j=thisStyle.length;sStr=thisStyle.substring(i,j);thisStyle=thisStyle.replace(sStr,'&'+sField+'='+escape(sValue));}
else
thisStyle+='&'+sField+'='+escape(sValue);return thisStyle;}

function doSearch()
{if(document.Search_Keyword&&document.Search_Keyword.Keywords)
{var keyword=document.Search_Keyword.Keywords.value;setcookie("Keywords",keyword,1);var index=0,i=0;if(document.Search_Keyword.SQL&&document.Search_Keyword.SQL[0])
{for(i=1;i<document.Search_Keyword.SQL.length;i++)
{if(document.Search_Keyword.SQL[i].type.indexOf('select')>=0)
{index=document.Search_Keyword.SQL[i].selectedIndex;setcookie("SQL_"+i,index,1);}}}
document.Search_Keyword.onsubmit=null;if(window.sessionid&&document.Search_Keyword.ID)document.Search_Keyword.ID.value=sessionid;if(window.submitform)submitform('Search_Keyword','');else document.Search_Keyword.submit();return false;}}
function getSearch()
{if(!window.getcookie)return;if(document.Search_Keyword&&document.Search_Keyword.Keywords)
{var keyword=getcookie("Keywords");if(keyword.length)document.Search_Keyword.Keywords.value=keyword;var index=0,i=0;if(document.Search_Keyword.SQL&&document.Search_Keyword.SQL[0])
{for(i=1;i<document.Search_Keyword.SQL.length;i++)
{if(document.Search_Keyword.SQL[i].type.indexOf('select')>=0)
{index=getcookie("SQL_"+i);if(index.length&&!isNaN(parseInt(index)))
document.Search_Keyword.SQL[i].selectedIndex=parseInt(index);}}}}}
if(window.getcookie&&(getcookie("REMEMBER_KEYWORDS")=='true'||getcookie("REMEMBER_KEYWORDS")==''))getSearch();function clearDefault(ctrl,sDef)
{if(ctrl.value==sDef)
ctrl.value='';else
ctrl.select();}
autoSearch();function autoSearch()
{var i,sQuery="";var curPage=""+window.location;if(!document.Search_Keyword||!document.Search_Keyword.Keywords)return;if(curPage.indexOf('?')>0)
{sQuery=curPage.substring(curPage.indexOf('?'),curPage.length);sQuery=sQuery.toLowerCase();}
if(sQuery.length&&((i=sQuery.indexOf('keywords='))>=0))
{sQuery=sQuery.substring(i+'keywords='.length,sQuery.length);if(sQuery.length&&((i=sQuery.indexOf('&'))>=0))sQuery=sQuery.substring(0,i);if(sQuery.length&&((i=sQuery.indexOf('#'))>=0))sQuery=sQuery.substring(0,i);if(sQuery.length)
{sQuery=unescape(sQuery);sQuery=sQuery.replace(/\+/g,' ');document.Search_Keyword.Keywords.value=sQuery;doSearch();}}}
var iSearch_Delay=300,iSearch_Timer=0,ctrSearch=null,frameSearch=null,frameKeywords='';function instantSearch(ctr)
{ctrSearch=ctr;if(iSearch_Timer)clearTimeout(iSearch_Timer);iSearch_Timer=setTimeout("instantSearch0(ctrSearch)",iSearch_Delay);}
function hideSearchFrame(ctr)
{var obj=frameSearch;if(obj&&obj.style&&obj.style.display)obj.style.display='none';}
function instantSearch0(ctr)
{if(!(window.INSTANT_SEARCH&&window.INSTANT_SEARCH.name=='INSTANT_SEARCH'))return;var obj=document.all?document.all.SEARCH_FRAME:(document.getElementById?document.getElementById('SEARCH_FRAME'):document.SEARCH_FRAME);frameSearch=obj;if(ctr.value.length>1)
{var sTarget=ctr.form.target,sMethod=ctr.form.method;var sPage=ctr.form.Page.value;ctr.form.target='INSTANT_SEARCH';ctr.form.method='POST';var sIPage='Keywords='+escape(ctr.value);if(ctr.form.iPage.value.lastIndexOf('?')>0)sIPage=ctr.form.iPage.value+'&'+sIPage;else sIPage=ctr.form.iPage.value+'?'+sIPage;ctr.form.Page.value=sIPage;if(ctr.value.toLowerCase()!=frameKeywords)doSearch();ctr.form.Page.value=sPage;ctr.form.target=sTarget;ctr.form.method=sMethod;if(obj&&obj.style&&obj.style.display)obj.style.display='block';if(obj&&obj.style&&obj.style.height)obj.style.height='450px';if(obj&&obj.style&&obj.style.width)obj.style.width='750px';if(!document.all)window.onclick=hideSearchFrame;else document.onclick=hideSearchFrame;frameKeywords=ctr.value.toLowerCase();}
else
{if(obj&&obj.style&&obj.style.display)obj.style.display='none';}}
function focusSearch(e)
{var keyCode,obj,bRet;bRet=true;if(window.event)
keyCode=e.keyCode
else if(e.which)
keyCode=e.which
if(keyCode==38||keyCode==40)
{var obj=frameSearch
if(obj&&obj.style&&obj.style.display&&obj.style.display=='block')
{var wnd=window.INSTANT_SEARCH;wnd.focus();bRet=false;}}
return bRet;}
function getElementPosition(element)
{var x=0,y=0;while(element!=null)
{x+=element.offsetLeft;y+=element.offsetTop;element=element.offsetParent;}
return{x:x,y:y};}
function setBrowse(sTable,sSQL,sFeature)
{var i,frm=null;for(i=0;i<document.forms.length;i++)
{if(document.forms[i].name==sTable)
{frm=document.forms[i];break;}}
if(frm!=null)
{frm.SQL.value=sSQL;frm.Feature.value=sFeature;frm.Move.value="";if(window.sessionid)frm.ID.value=sessionid;if(window.submitform)submitform(sTable,'');else frm.submit();}
else
alert("Cannot find Form "+sTable+"!");}
function setBrowse3(sTable,sSQL,sFeature){setBrowse(sTable,sSQL,sFeature);}


var delay=6000;var maxsteps=30;var stepdelay=40;var startcolor=new Array(255,255,255);var endcolor=new Array(0,0,0);var fcontent=new Array();begintag='';fcontent[0]="\"Excellent product! Very prompt, courteous! Buy with confidence! A+ Great!\"<br>(Melissa and Doug - Chef and Cowgirl Hand Puppets)<br>-- <i>Mike S, Idaho</i>";fcontent[1]="\"Can't wait to open this and play. Thanks for the great prices and loved the combined shipping.\"<br>(Melissa and Doug - Shut the Box)<br>-- <i>Jennifer B., Virginia</i>";fcontent[2]="\"Great price! It arrived early and my grandson was so happy! Thanks so much! Would definitely order from you again!!!\"<br>(Razor A2 Kick Scooter - Blue)<br>-- <i>Lana P., Utah</i>";fcontent[3]="\"Ordered on the first delivered on the third.... Wow!  Great item, will be back. Thank You!\"<br>(Melissa and Doug - Magnetic Calendar)</br>-- <i>Jennifer D., Idaho</i>";fcontent[4]="\"Fastest shipping I've seen. Great transaction. Thank you.\"<br>(Melissa and Doug - Deluxe Wire Puzzle Rack)<br>-- <i>Wendy Z., Oklahoma</i>";fcontent[5]="\"Great customer service, quick shipping, excellent price, will buy again!\"<br>(Melissa and Doug - 100 piece Wood Blocks Set) <br>-- <i>James S, Illinois</i>";fcontent[6]="\"Fast delivery, well packaged and just an all around great experience!\"<br>(Melissa and Doug - Magnetic Calendar)<br> --<i> Chad A., Ohio</i>";fcontent[7]="\"Great business! Item arrived quickly and packaged very well. It was the hit of the day!\"<br>(Razor Scooter MS-130A2 - Green Wheels) <br>-- <i>Dave M., New Jersey</i>";fcontent[8]="\"I will recommend to my family and friends that they too purchase through your company!\"<br>(Razor Scooter MS-130A3 125mm Wheels and Disco Light-up Wheels)<br>-- <i>Genny C., California</i>";fcontent[9]="\"Prices were competitive on a hard to find item and shipment was in a timely fashion. I'll be coming back around the holidays!\"<br>(Erector Sets: Build and Play - Mechanical Bucket)<br>-- <i>Sandra B., Indiana</i>";fcontent[10]="\"It was great, especially since I ordered so close to Christmas. Nice to work with, even when I called daily to check on my order!\"<br>(Melissa and Doug - Deluxe Puppet Theater)<br>-- <i>Angel H., Utah</i>";fcontent[11]="\"Excellent service will do business again!\"<br>(Lincoln Logs: Commemorative Edition)<br>-- <i>Linda W., Connecticut</i>";fcontent[12]="\"Excellent!  The products I ordered arrived extremely fast, were packed well and the toys themselves are just as pictured on your website!\"<br>(Automoblox: X9 Sport Utility Wooden Car - Purple)<br>-- <i>Mary H., California</i>";fcontent[13]="\"This company is absolutely wonderful! They bend over backwards to assist customers, have great prices and I couldn't be happier.\"<br>(Automoblox: S9 Sedan Wooden Car - Blue)<br>-- <i>Marcia D., Michigan</i>";fcontent[14]="\"Kept me well informed about the order, which was shipped on time.\"<br>(Erector Sets: Multi-Model - 40 Model Set)<br>-- <i>Dieter B., Maryland</i>";fcontent[15]="\"Prompt reply when I send inquiries. Speedy delivery. Item packaged well and shipped as ordered in excellent condition. I would definitely buy from them again.\"<br>(Erector Sets: Multi-Model - 40 Model Set)<br>-- <i>JL, Arizona</i>";fcontent[16]="\"I still can't believe how fast my item was delivered. This was a birthday gift for my grandson (age 2) and it went directly to their home. Thank you so very much!\"<br>(Razor Jr. Folding Kiddie Kick)<br>-- <i>Owen S., California</i>";closetag='';var fwidth='145px';var fheight='210px';var fadelinks=1;var ie4=document.all&&!document.getElementById;var DOM2=document.getElementById;var faderdelay=0;var index=Math.floor(Math.random()*(fcontent.length));function changecontent(){if(index>=fcontent.length)
index=0
if(DOM2){document.getElementById("marqueefs1").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
document.getElementById("marqueefs1").innerHTML=fcontent[index]
if(fadelinks)
linkcolorchange(1);colorfade(1,15);}
else if(ie4)
document.all.marqueefs1.innerHTML=fcontent[index];index++}
function linkcolorchange(step){var obj=document.getElementById("marqueefs1").getElementsByTagName("A");if(obj.length>0){for(i=0;i<obj.length;i++)
obj[i].style.color=getstepcolor(step);}}
var fadecounter;function colorfade(step){if(step<=maxsteps){document.getElementById("marqueefs1").style.color=getstepcolor(step);if(fadelinks)
linkcolorchange(step);step++;fadecounter=setTimeout("colorfade("+step+")",stepdelay);}else{clearTimeout(fadecounter);document.getElementById("marqueefs1").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";setTimeout("changecontent()",delay);}}
function getstepcolor(step){var diff
var newcolor=new Array(3);for(var i=0;i<3;i++){diff=(startcolor[i]-endcolor[i]);if(diff>0){newcolor[i]=startcolor[i]-(Math.round((diff/maxsteps))*step);}else{newcolor[i]=startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);}}
return("rgb("+newcolor[0]+", "+newcolor[1]+", "+newcolor[2]+")");}
if(ie4||DOM2)
if(window.addEventListener)
window.addEventListener("load",changecontent,false)
else if(window.attachEvent)
window.attachEvent("onload",changecontent)
else if(document.getElementById)
window.onload=changecontent

function displayZoom(a,b,c){var d=0,e,f;if(!MojoZoom||!b||!b.length||!c||!c.length)return;for(d=0;d<document.images.length;d++){e=document.images[d];if(e.getAttribute("name")==c||e.getAttribute("id")==c){f=e.getAttribute("data-zoomsrc");if(f!=b){e.setAttribute("data-zoomsrc",b);setTimeout("MojoZoom.init()",100);a.onmousemove=null}break}}}var MojoZoom=function(){function init(){var a=document.getElementsByTagName("img");for(var b=0;b<a.length;b++){var c=a[b];var d=c.getAttribute("data-zoomsrc");if(d){makeZoomable(c,d,document.getElementById(c.getAttribute("id")+"_zoom"),null,null,c.getAttribute("data-zoomalwaysshow")=="true")}}}function makeZoomable(img,zoomSrc,zoomImgCtr,zoomWidth,zoomHeight,alwaysShow){if(!img.complete&&!img.__mojoZoomQueued){addEvent(img,"load",function(){img.__mojoZoomQueued=true;setTimeout(function(){makeZoomable(img,zoomSrc,zoomImgCtr,zoomWidth,zoomHeight,alwaysShow)},1)});return}img.__mojoZoomQueued=false;setTimeout(function(){var u=navigator.userAgent;var isIE9=u.match(/Trident\/5.0/i)!=null&&u.match(/compatible\; MSIE 9.0/i)!=null;var isIE=!!document.all&&!!window.attachEvent&&!window.opera&&!isIE9;var w=img.offsetWidth;var h=img.offsetHeight;var oldParent=img.parentNode;if(oldParent.nodeName!="A"){var linkParent=dc("a");oldParent.replaceChild(linkParent,img);linkParent.appendChild(img)}else{var linkParent=oldParent}linkParent.style.position="relative";linkParent.style.display="inline-block";linkParent.style.width=w+"px";linkParent.style.height=h+"px";var imgLeft=img.offsetLeft;var imgTop=img.offsetTop;var zoom=dc("div");zoom.className="mojozoom_marker";var zoomImg=dc("img");zoomImg.className="mojozoom_img";zoomImg.style.position="absolute";zoomImg.style.left="-9999px";zoomImg.style.top="-9999px";document.body.appendChild(zoomImg);var parent=img.parentNode;var ctr=dc("div");with(ctr.style){position="absolute";left=imgLeft+"px";top=imgTop+"px";width=w+"px";height=h+"px";overflow="hidden";display="none"}ctr.appendChild(zoom);parent.appendChild(ctr);var zoomInput=parent;if(img.__mojoZoomOverlay)parent.removeChild(img.__mojoZoomOverlay);img.__mojoZoomOverlay=ctr;if(img.__mojoZoomImage&&img.__mojoZoomImage.parentNode)img.__mojoZoomImage.parentNode.removeChild(img.__mojoZoomImage);img.__mojoZoomImage=zoomImg;var useDefaultCtr=false;if(!zoomImgCtr){zoomImgCtr=dc("div");zoomImgCtr.className="mojozoom_imgctr";var imgPos=getElementPos(img);zoomImgCtr.style.left=w+imgPos.x+"px";zoomImgCtr.style.top=imgPos.y+"px";zoomImgCtr.style.width=(zoomWidth?zoomWidth:defaultWidth)+"px";zoomImgCtr.style.height=(zoomHeight?zoomHeight:defaultHeight)+"px";document.body.appendChild(zoomImgCtr);useDefaultCtr=true}zoomImgCtr.style.overflow="hidden";if(!alwaysShow){zoomImgCtr.style.visibility="hidden"}addEvent(zoomImg,"load",function(){if(!zoomImg.parentNode)return;var a=zoomImg.offsetWidth;var b=zoomImg.offsetHeight;var c=zoomImgCtr.offsetWidth;var d=zoomImgCtr.offsetHeight;var e=a/w;var f=b/h;var g=Math.round(c/e);var i=Math.round(d/f);document.body.removeChild(zoomImg);zoomImgCtr.appendChild(zoomImg);var j=dc("div");j.className="mojozoom_fill";zoom.appendChild(j);var k=dc("div");k.className="mojozoom_border";zoom.appendChild(k);zoom.style.width=g+"px";zoom.style.height=i+"px";if(alwaysShow){zoom.style.left="0px";zoom.style.top="0px";zoomImg.style.left="0px";zoomImg.style.top="0px"}var l=false;if(!alwaysShow){addEvent(zoomInput,"mouseout",function(a){var b=a.target||a.srcElement;if(!b)return;if(b.nodeName!="DIV")return;var c=a.relatedTarget||a.toElement;if(!c)return;while(c!=b&&c.nodeName!="BODY"&&c.parentNode){c=c.parentNode}if(c!=b){l=false;ctr.style.display="none";zoomImgCtr.style.visibility="hidden"}});addEvent(document.body,"mouseover",function(a){if(l&&!(a.toElement==k||a.target==k)){ctr.style.display="none";zoomImgCtr.style.visibility="hidden";l=false}})}addEvent(zoomInput,"mousemove",function(a){l=true;var b=getElementPos(img);if(useDefaultCtr){var j,k,m=document.getElementById("zoom_position");if(m&&img.offsetWidth/defaultWidth>.5&&img.offsetHeight/defaultHeight>.5){var n=getElementPos(m);j=-40+n.x+"px";k=n.y+"px"}else{var o=0,p=0,q=1,r=1;if(window.innerWidth&&typeof window.innerWidth=="number"){q=window.innerWidth;r=window.innerHeight}else if(document.documentElement&&document.documentElement.clientWidth){q=document.documentElement.clientWidth;r=document.documentElement.clientHeight}else if(document.body&&document.body.clientWidth){q=document.body.clientWidth;r=document.body.clientHeight}if(window.event){p=window.event.clientY;o=window.event.clientX}else{o=a.clientX;p=a.clientY}if(o<q*2/3)j=w+b.x+"px";else j=-40-defaultWidth+b.x+"px";if(p<r*2/3)k=b.y+"px";else k=-defaultHeight+b.y+"px"}if(zoomImgCtr.style.visibility=="hidden"){zoomImgCtr.style.left=j;zoomImgCtr.style.top=k}}ctr.style.display="block";zoomImgCtr.style.visibility="visible";zoomImgCtr.style.backgroundColor="#FFFFFF";var s=getEventMousePos(zoomInput,a);if(a.srcElement&&isIE){if(a.srcElement==zoom)return;if(a.srcElement!=zoomInput){var t=getElementPos(a.srcElement);s.x-=b.x-t.x;s.y-=b.y-t.y}}var u=g/2;var v=i/2;if(!isIE){s.x-=imgLeft;s.y-=imgTop}if(s.x<u)s.x=u;if(s.x>w-u)s.x=w-u;if(s.y<v)s.y=v;if(s.y>h-v)s.y=h-v;var x=s.x-u|0;var y=s.y-v|0;zoom.style.left=x+"px";zoom.style.top=y+"px";zoomImg.style.left=-(s.x*e-c/2|0)+"px";zoomImg.style.top=-(s.y*f-d/2|0)+"px"})});setTimeout(function(){zoomImg.src=img.getAttribute("data-zoomsrc")},1)},1)}function getEventMousePos(a,b){var c=document.body.scrollLeft||document.documentElement.scrollLeft;var d=document.body.scrollTop||document.documentElement.scrollTop;if(b.currentTarget){var e=getElementPos(a);return{x:b.clientX-e.x+c,y:b.clientY-e.y+d}}return{x:b.offsetX,y:b.offsetY}}function getElementPos(a){var b=a.offsetLeft;var c=a.offsetTop;var d=a.offsetParent;while(d){b+=d.offsetLeft;c+=d.offsetTop;d=d.offsetParent}return{x:b,y:c}}function addEvent(a,b,c){var d=function(a){return c(a||window.event)};if(a.addEventListener){a.addEventListener(b,d,false)}else if(a.attachEvent){a.attachEvent("on"+b,d)}}var $=function(a){return document.getElementById(a)};var dc=function(a){return document.createElement(a)};var defaultWidth=300;var defaultHeight=300;return{addEvent:addEvent,init:init,makeZoomable:makeZoomable}}();MojoZoom.addEvent(window,"load",MojoZoom.init)
