// Make calls to other operations from this file. 





// fired at the end of the page once all html has loaded

function onDOMload () {

	if(typeof sIFR == "function"){

		switchFonts();

	};

	if(typeof buildTransitions == "function") {

		buildTransitions();

	};

};



// fired once all content has loaded

function onPageLoad () {

	

};


function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}



function MM_jumpMenu2(targ,selObj,restore){ //v3.0



  eval(targ+".location='/basket/?action=delivery_update&method="+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}



function MM_jumpMenu3(targ,selObj,restore){ //v3.0



  eval(targ+".location='/basket/?action=delivery_update&region="+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}







//Script for changing switching forms
  function toggle_it(itemID)

      {

      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'block'))
      {
        document.getElementById(itemID).style.display = 'none';
      } else {
        document.getElementById(itemID).style.display = 'block';
      }
  }
		function toggle_it2(itemID)

      {

      
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'block';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }

// function addLoadEvent(func) {

//   var oldonload = window.onload;

//   if (typeof window.onload != 'function') {

//     window.onload = func;

//   } else {

//     window.onload = function() {

//       if (oldonload) {

//         oldonload();

//       }

//       func();

//     }

//   }

// }



document.onload = onPageLoad();