/*$(document).ready(function(){  $("#navmenu-h li,#navmenu-v li").hover(    function() { $(this).addClass("iehover"); },    function() { $(this).removeClass("iehover"); }  );});*/function mainmenu(){$(" #navmenu-h ul ").css({display: "none"}); // Opera Fix$(" #navmenu-h li").hover(function(){		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(100);		},function(){		$(this).find('ul:first').css({visibility: "hidden"});		});}$(document).ready(function(){  mainmenu();  $("#navmenu-h li,#navmenu-v li").hover(    function() { $(this).addClass("iehover"); },    function() { $(this).removeClass("iehover"); }  );});	google_ad_client = 'pub-8018961511459774';	google_ad_width = 468;	google_ad_height = 60;	google_ad_format = '468x60_as';

	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}

	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
	x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
	x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_jumpMenuGo(selName,targ,restore){ //v3.0
	  var selObj = MM_findObj(selName); if (selObj)
	MM_jumpMenu(targ,selObj,restore);
	}


	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}







// popup scripts

var popupCounter = 0;

function destroyPopup(window_base, w, h) {
    var txt = "height=" + h + ",width=" + w;
    oldWin = window.open("", window_base, txt);
    oldWin.close();
}

function createPopup(url_name, window_base, w, h) {
 var txt = "toolbar=no,location=no,menubar=no,resizable=yes,scrollbars=yes,width=";
	txt = txt + w + ",height=" + h;
    if (popupCounter)
      destroyPopup(window_base, w, h);
    var popup = window.open(url_name, window_base, txt);
    ++popupCounter;
    popup.focus();
}



// code for doing popups
var guideWinNum=0;
function destroyPopup(window_base, counter, w, h) {
        var txt = "height=" + h + ",width=" + w;
    if (counter > 0) {
        oldWin = window.open("", window_base + (counter-1), txt);
        oldWin.close();
    };
}
//if(top.location == self.location){
	//top.location.href = "http://www.toyboxdx.com/index.html?" + window.location.href;
//}
function createPopup(url_name, window_base, counter, w, h)
{
 var txt = "toolbar=no,location=no,menubar=no,resizable=yes,scrollbars=no,width=";
        txt = txt + w + ",height=" + h;
    destroyPopup(window_base, counter, w, h);
    window.open(url_name, window_base + counter,txt);
}

// end of code for doing popups

 //-->



<!--
agent = navigator.userAgent;
browserVer = 2;
if (agent.indexOf("a/3",6) == -1 & agent.indexOf("a/4",6) == -1) {browserVer = 2}
else {browserVer = 3}
 
function changeimg(img, name) {
if (browserVer == 3) {
        document.images[name].src=img;
        }
}
//-->




// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/function create() {        this.width = ''        this.height = ''        this.src = ''        this.href = ''        this.border = ''        this.mouseover = ''        this.sponsor = ''}ads = new Array()for(var i=1; i<=5; i++) { ads[i] = new create() }ads[1].width = "468"ads[1].height = "60"ads[1].src = "http://www.toyboxdx.com/banners/superone.jpg"ads[1].href = "http://www.supernumber1robot.com"ads[1].border = "0"ads[1].mouseover = "Super Number 1 Robot"ads[1].sponsor = "Super Number 1 Robot"ads[2].width = "468"ads[2].height = "60"ads[2].src = "/banners/mytoyboxdx.jpg"ads[2].href = "http://toyboxdx.ning.com"ads[2].border = "0"ads[2].mouseover = "Check out the MyToyboxDX Beta"ads[2].sponsor = "Check out the MyToyboxDX Beta"

ads[3].width = "468"ads[3].height = "60"ads[3].src = "/banners/cafepress.jpg"ads[3].href = "http://www.cafepress.com/toyboxdx"ads[3].border = "0"ads[3].mouseover = "ToyboxDX Schwag at Cafepress"ads[3].sponsor = "ToyboxDX Schwag at Cafepress"

ads[4].width = "468"ads[4].height = "60"ads[4].src = "/banners/superone.jpg"ads[4].href = "http://www.supernumber1robot.com"ads[4].border = "0"ads[4].mouseover = "Super Number 1 Robot"ads[4].sponsor = "Super Number 1 Robot"

ads[5].width = "468"ads[5].height = "60"ads[5].src = "/banners/superone.jpg"ads[5].href = "http://www.supernumber1robot.com"ads[5].border = "0"ads[5].mouseover = "Super Number 1 Robot"ads[5].sponsor = "Super Number 1 Robot"var n = Math.random() + ''n = parseInt(n.charAt(5))if(n >5) {        n = n - 5}else if(n==0) {        n = n + 5}n += ""var image = ads[n]var ad = ""ad += '<a href="' + image.href + '" \n'ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'ad += 'onMouseOut="self.status=\'\'"> \n'ad += '<img src="' + image.src + '" width=' + image.widthad += '\n height=' + image.height + ' border=' + image.borderad += '\n></a>'





