// JavaScript Document
<!--



function fill_promos(){

// News Box Headings and Content

// Set the default tab on page load
tab = "1";

// Sets the default tab on page load - do not change this!
function defaultTab(){
if (tab==1){
sw_news_box_1();
}
if (tab==2){
sw_news_box_2();
}
if (tab==3){
sw_news_box_3();
}
}
defaultTab();

// End News Box Headings and Content


// News item 1
document.getElementById('news_text_p1_url').href = "http://www.idrums.co.uk/drums_sub_3.cfm"; // News item 1 landing page location within quotes
document.getElementById('news_text_p1_title').innerHTML = "Mapex Tornado Starter Kit"; // title within quotes
document.getElementById('news_text_p1_subject').innerHTML ="<b>&pound;249"; // subject within quotes
// End News item 1

// News item 2
document.getElementById('news_text_p2_url').href = "sticks_zildjian.cfm"; // News item 2 landing page location within quotes
document.getElementById('news_text_p2_title').innerHTML = "Zildjian Dave Grohl Artist Stick"; // title within quotes
document.getElementById('news_text_p2_subject').innerHTML =" <b>&pound;10.99 "; // subject within quotes
// End News item 2

// News item 3
document.getElementById('news_text_p3_url').href = "accessories_sub_30.cfm"; // News item 3 landing page location within quotes
document.getElementById('news_text_p3_title').innerHTML = "Gibraltar Black Web Drink Holder"; // title within quotes
document.getElementById('news_text_p3_subject').innerHTML = "<b>&pound;19.99"; // subject within quotes
// End News item 3

// News item 4
document.getElementById('news_text_p4_url').href = "accessories_sub_5.cfm"; // News item 4 landing page location within quotes
document.getElementById('news_text_p4_title').innerHTML = "ProMark Pocket Practice Pad"; // title within quotes
document.getElementById('news_text_p4_subject').innerHTML = "<b>&pound;21.99"; // subject within quotes
// End News item 4

// News item 5
document.getElementById('news_text_p5_url').href = "accessories_tshirts.cfm"// News item 5 landing page location within quotes
document.getElementById('news_text_p5_title').innerHTML = "Drum & Drummer T-Shirt "; // title within quotes
document.getElementById('news_text_p5_subject').innerHTML = "<b>&pound;12.99 "; // subject within quotes
// End News item 5

// News item 6
document.getElementById('news_text_p6_url').href = "sticks_hotsticks.cfm"; // News item 6 landing page location within quotes
document.getElementById('news_text_p6_title').innerHTML = "Hotsticks Designer Drum Sticks"; // title within quotes
document.getElementById('news_text_p6_subject').innerHTML = "<b>&pound;11.99 "; // subject within quotes
// End News item 6

// News item 7
document.getElementById('news_text_p7_url').href = "accessories_sub_8.cfm"; // News item 7 landing page location within quotes
document.getElementById('news_text_p7_title').innerHTML = "Music Safe Pro Ear Protection"; // title within quotes
document.getElementById('news_text_p7_subject').innerHTML = "<b>&pound;18.99"; // subject within quotes
// End News item 7

// Start AD 1
document.getElementById('index_promo_ad_1_img').src = "img/index_banner_catalinamaple.jpg"; // Image location within quotes w353xh130
document.getElementById('index_promo_ad_1_landing').href = "http://www.idrums.co.uk/splash.cfm?id=49"; // Landing page from image within quotes
// End AD 1


// Start Ad 2
document.getElementById('index_promo_ad_2_img').src = "img/index_banner_staggsh.jpg"; // Image location within quotes w353xh130
document.getElementById('index_promo_ad_2_landing').href = "cymbals_stagg_splash.cfm"; // Landing page from image within quotes
// End AD 2

/*// Start Ad 3 NOT uSED ANYMORE BUT IN CASE
document.getElementById('index_promo_ad_3_img').src = "img/index_promo_tompack.jpg"; // Image location within quotes w175xh130
document.getElementById('index_promo_ad_3_landing').href = "heads_evans_tompacks.cfm"; // Landing page from image within quotes
// End AD 3

// Start Ad 4
document.getElementById('index_promo_ad_4_img').src = "img/index_promo_cbstarter.jpg"; // Image location within quotes w175xh130
document.getElementById('index_promo_ad_4_landing').href = "drums_sub_3.cfm"; // Landing page from image within quotes
// End AD 4*/


/* Start additional Promo next to email signup
document.getElementById('additionalPromo_img').src = "img/index_offers.jpg"; // Image location within quotes
document.getElementById('additionalPromo_landing').href = "drums_offers.cfm"; // Landing page from image within quotes
// End additional Promo next to email signup */


// Start Promo right 1


document.getElementById('index_promo_right_1_img').src = "img/index_clearance.jpg"; // Product title within quotes
document.getElementById('index_promo_right_1_product_title').innerHTML = "Clearance Items</b>"; // Product title within quotes
document.getElementById('index_promo_right_1_product').innerHTML = "Grab a one off bargain from our clearance items!. "; // Product description within quotes
document.getElementById('index_promo_right_1_price').innerHTML = "3.99"; // Price within quotes
document.getElementById('index_promo_right_1_landing').href = "sale.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_1_landing_2').href = "sale.cfm"; // Landing page froms more within quotes
// End Promo right 1


// Start Promo right 2
document.getElementById('index_promo_right_2_img').src = "img/index_promo_gretschmaple.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_2_product_title').innerHTML = "Full Gretsch Range"; // Product description within quotes
document.getElementById('index_promo_right_2_product').innerHTML = "Looking for a Gretsch Drum Kit? Buy Online or call us!"; // Product description within quotes
document.getElementById('index_promo_right_2_price').innerHTML = "449"; // Price within quotes
document.getElementById('index_promo_right_2_landing').href = "http://www.idrums.co.uk/drums_gretsch.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_2_landing_2').href = "http://www.idrums.co.uk/drums_gretsch.cfm"; // Landing page from more within quotes
// End Promo right 2


// Start Promo right 3
document.getElementById('index_promo_right_3_img').src = "img/index_promo_xs20pack.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_3_product_title').innerHTML = "Sabian XS20 Cymbal Pack w/FREE 18 Crash"; // Product title within quotes
document.getElementById('index_promo_right_3_product').innerHTML = "Our best selling cymbal pack with a beautiful refined sound."; // Product description within quotes
document.getElementById('index_promo_right_3_price').innerHTML = "379"; // Price within quotes
document.getElementById('index_promo_right_3_landing').href = "cymbals_packs_sabian.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_3_landing_2').href = "cymbals_packs_sabian.cfm"; // Landing page from more within quotes
// End Promo right 3


// Start Promo right 4
document.getElementById('index_promo_right_4_img').src = "img/index_promo_davegrohl.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_4_product_title').innerHTML = "NEW: Zildjian Dave Grohl"; // Product title within quotes
document.getElementById('index_promo_right_4_product').innerHTML = "The Dave Grohl Artist Series Drumstick features metallic, two-color artwork of Grohl's famous tattoos on both of his arms."; // Product description within quotes
document.getElementById('index_promo_right_4_price').innerHTML = "10.99"; // Price within quotes
document.getElementById('index_promo_right_4_landing').href = "sticks_zildjian.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_4_landing_2').href = "sticks_zildjian.cfm"; // Landing page from more within quotes
// End Promo right 4

// Start Promo right 5
document.getElementById('index_promo_right_5_img').src = "img/index_promo_qcn8.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_5_product_title').innerHTML = "NEW: QCN-8 Quick-Set Cymbal Nut "; // Product title within quotes
document.getElementById('index_promo_right_5_product').innerHTML = "The best cymbal nut you will ever own!"; // Product description within quotes
document.getElementById('index_promo_right_5_price').innerHTML = "9.99"; // Price within quotes
document.getElementById('index_promo_right_5_landing').href = "accessories_sub_15.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_5_landing_2').href = "accessories_sub_15.cfm"; // Landing page from more within quotes
// End Promo right 5

}

/// do not edit this function
function promoPopup(id){
var url = document.getElementById(id).href;
window.open(url,'_blank','toolbar=0','location=0','directories=0','status=0','scrollbars=0','resizable=0','copyhistory=0','menuBar=0','width=1000','height=1000','left=100','top=100');
parent.document.getElementById(id).href = "#";
setTimeout("fill_promos()",1000);
}


//menu constructor do not change below this line **********
var time = 3000;
var numofitems = 10;


function menu(allitems,thisitem,startstate){ 
  callname= "gl"+thisitem;
  divname="subglobal"+thisitem;  
  this.numberofmenuitems = allitems;
  this.caller = document.getElementById(callname);
  this.thediv = document.getElementById(divname);
  this.thediv.style.visibility = startstate;
}
//menu methods
function ehandler(event,theobj){
  for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
  }
  theobj.thediv.style.visibility="visible";
}				
function closesubnav(event){
  if ((event.clientY <48)||(event.clientY > 107)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');
      shutdiv.style.visibility='hidden';
    }
  }
}

function iclear(){
document.getElementById('join').value= " ";
}


function thanks(){
var checker = document.getElementById('join').value; 
if (checker == ' Type your email address here'){
alert('Please type your email address in the box to sign-up for our newsletter');
}
else {
document.getElementById('mail_thanks').innerHTML= "Thank you";
}
}



