<!--
function MM_displayStatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}
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];}
}
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_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_displayStatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}
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];}
}
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_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 pricematch_popup() {
	newWindow = window.open('http://www.easydevices.co.uk/html/price_match.aspx?partno={partno}&desc={prodname}','popup','status=0,scrollbars,height=550,width=630');
	newWindow.focus();
	return false;
}

function ask_question_popup() {
	newWindow = window.open('http://www.easydevices.co.uk/html/ask_question.aspx?partno={partno}&desc={prodname}','popup','status=0,scrollbars,height=550,width=630');
	newWindow.focus();
	return false;
}

function bulk_buy_popup() {
	newWindow = window.open('http://www.easydevices.co.uk/html/bulk_buy.aspx?partno={partno}&desc={prodname}','popup','status=0,scrollbars,height=550,width=630');
	newWindow.focus();
	return false;
}

function mytestpage() {
	newWindow = window.open('http://www.easydevices.co.uk/html/getpartnodesc.aspx?partno=xyz&desc=no description yet','popup','status=0,scrollbars,height=550,width=630');
	newWindow.focus();
	return false;
}
//-->

<!--
startList = function() {

if (document.getElementById) {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onclick=function() {
		
this.className = (this.className == "on") ? "off" : "on";

			}
   		}
  	}
 }
}
window.onload=startList;
//-->




<!--

 

 
 var topnavbartabs={
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu:function(curtabref){
	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //sub menu
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init:function(menuId, selectedIndex){
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu 
			if (i==selectedIndex){ //default
				tabItems[i].className="current"
				this.revealsubmenu(tabItems[i])
			}
		tabItems[i].onmouseover=function(){
		topnavbartabs.revealsubmenu(this)
		}
		} //END FOR LOOP
	}

}


//-->


<!--
today  = new Date();
todayEpoch  = today.getTime();

target = new Date("26 December, 2010"); 
targetEpoch = target.getTime();

daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);
//-->

                            
                         <!--   
                            
                            this.changeTab = function(ShowTab) {
                              $('#divProduct').attr('style', 'display:none;');
                              $('#divPricing').attr('style', 'display:none;');
                              $('#divDelivery').attr('style', 'display:none;');
                              switch (ShowTab) {
               
				              case 'Delivery':
                              $('#divDelivery').attr('style', 'display:block;');
                              $('#lnkDelivery').attr('class', ' activeTab activeTabDelivery firstTab');
                              $('#lnkPricing').removeAttr('class');
                              $('#lnkPricing').attr('class', ' inactiveTabReturns');
                              $('#lnkProduct').removeAttr('class');
                              $('#lnkProduct').attr('class', ' inactiveTabReturns');
                              break;
					
                              case 'Pricing':
                              $('#lnkDelivery').removeAttr('class');
                              $('#lnkDelivery').attr('class', ' inactiveTabDelivery ');
                              $('#divPricing').attr('style', 'display:block;');
                              $('#lnkPricing').attr('class', ' activeTab activeTabDelivery firstTab');
                              $('#lnkProduct').removeAttr('class');
                              $('#lnkProduct').attr('class', ' inactiveTabReturns');
                              break;
                              case 'Product':
                              $('#lnkDelivery').removeAttr('class');
                              $('#lnkDelivery').attr('class', ' inactiveTabDelivery');
                              $('#lnkPricing').removeAttr('class');
                              $('#lnkPricing').attr('class', ' inactiveTabDelivery ');
                              $('#divProduct').attr('style', 'display:block;');
                              $('#lnkProduct').attr('class', ' activeTab activeTabReturns firstTab');
                              break;
                              }
                            }
                            
                            
                            
                               //-->
                               
                               
                               
                               <!-- 
                               
                               
                               $(function() {

    // Set up variables
    var $el, $parentWrap, $otherWrap, 
        $allTitles = $("dt").css({
            padding: 5, // setting the padding here prevents a weird situation, where it would start animating at 0 padding instead of 5
            "cursor": "pointer" // make it seem clickable
        }),
        $allCells = $("dd").css({
            position: "relative",
            top: -1,
            left: 0,
            display: "none" // info cells are just kicked off the page with CSS (for accessibility)
        });
    
    // clicking image of inactive column just opens column, doesn't go to link   
    $("#page-wrap").delegate("a.image","click", function(e) { 
        
        if ( !$(this).parent().hasClass("curCol") ) {         
            e.preventDefault(); 
            $(this).next().find('dt:first').click(); 
        } 
        
    });
    
    // clicking on titles does stuff
    $("#page-wrap").delegate("dt", "click", function() {
        
        // cache this, as always, is good form
        $el = $(this);
        
        // if this is already the active cell, don't do anything
        if (!$el.hasClass("current")) {
        
            $parentWrap = $el.parent().parent();
            $otherWraps = $(".info-col").not($parentWrap);
            
            // remove current cell from selection of all cells
            $allTitles = $("dt").not(this);
            
            // close all info cells
            $allCells.slideUp();
            
            // return all titles (except current one) to normal size
            $allTitles.animate({
                fontSize: "14px",
                paddingTop: 5,
                paddingRight: 5,
                paddingBottom: 5,
                paddingLeft: 5
            });
            
            // animate current title to larger size            
            $el.animate({
                "font-size": "20px",
                paddingTop: 10,
                paddingRight: 5,
                paddingBottom: 0,
                paddingLeft: 10
            }).next().slideDown();
            
            // make the current column the large size
            $parentWrap.animate({
                width: 190
            }).addClass("curCol");
            
            // make other columns the small size
            $otherWraps.animate({
                width: 90
            }).removeClass("curCol");
            
            // make sure the correct column is current
            $allTitles.removeClass("current");
            $el.addClass("current");  
        
        }
        
    });
    
    $("#starter").trigger("click");
    
});
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               
                               //-->

