// JavaScript Document
<!--



function fill_promos(){

// News Box Headings and Content

// Set the default tab on page load
tab = "3";

// 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 = "accessories_sub_19.cfm"; // News item 1 landing page location within quotes
document.getElementById('news_text_p1_title').innerHTML = "Vic Firth Stick Bag"; // title within quotes
document.getElementById('news_text_p1_subject').innerHTML ="<b>&pound;12.99 </b>delivered"; // subject within quotes
// End News item 1

// News item 2
document.getElementById('news_text_p2_url').href = "accessories_sub_27.cfm"; // News item 2 landing page location within quotes
document.getElementById('news_text_p2_title').innerHTML = "NEW: Stagg Hardware Bag"; // title within quotes
document.getElementById('news_text_p2_subject').innerHTML ="<b>&pound;29.99 </b>delivered"; // subject within quotes
// End News item 2

// News item 3
document.getElementById('news_text_p3_url').href = "sticks_rods_stagg.cfm"; // News item 3 landing page location within quotes
document.getElementById('news_text_p3_title').innerHTML = "NEW: Stagg Hot Rods"; // title within quotes
document.getElementById('news_text_p3_subject').innerHTML = "<b>&pound;11.99 </b>delivered"; // subject within quotes
// End News item 3

// News item 4
document.getElementById('news_text_p4_url').href = "heads_remo_snare.cfm"; // News item 4 landing page location within quotes
document.getElementById('news_text_p4_title').innerHTML = "NEW: Remo Skyntone Snare Head"; // title within quotes
document.getElementById('news_text_p4_subject').innerHTML = "<b>&pound;19.99 </b>delivered"; // subject within quotes
// End News item 4

// News item 5
document.getElementById('news_text_p5_url').href = "hardware_sub_2.cfm" // News item 5 landing page location within quotes
document.getElementById('news_text_p5_title').innerHTML = "Mapex Falcon Bass Pedal"; // title within quotes
document.getElementById('news_text_p5_subject').innerHTML = "<b>&pound;139 </b>delivered"; // subject within quotes
// End News item 5

// News item 6
document.getElementById('news_text_p6_url').href = "drums_sub_4.cfm"; // News item 6 landing page location within quotes
document.getElementById('news_text_p6_title').innerHTML = "Traps A400 Portable Kit"; // title within quotes
document.getElementById('news_text_p6_subject').innerHTML = "<b>&pound;299 </b>delivered"; // subject within quotes
// End News item 6

// News item 7
document.getElementById('news_text_p7_url').href = "accessories_tshirts.cfm"; // News item 7 landing page location within quotes
document.getElementById('news_text_p7_title').innerHTML = "Cool off with idrums t-shirts!"; // title within quotes
document.getElementById('news_text_p7_subject').innerHTML = "<b>&pound;14.99 </b>delivered"; // subject within quotes
// End News item 7

// Start AD 1
document.getElementById('index_promo_ad_1_img').src = "img/index_banner_dst.jpg"; // Image location within quotes w353xh130
document.getElementById('index_promo_ad_1_landing').href = "percussion_dst_sub_2.cfm"; // Landing page from image within quotes
// End AD 1


// Start Ad 2
document.getElementById('index_promo_ad_2_img').src = "img/index_banner_mcs.jpg"; // Image location within quotes w353xh130
document.getElementById('index_promo_ad_2_landing').href = "cymbals_meinl_mcs_packs.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_promo_stealth.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_1_product_title').innerHTML = "LP Stealth Jam Block"; // Product title within quotes
document.getElementById('index_promo_right_1_product').innerHTML = "Powerful cutting sound with mount included"; // Product description within quotes
document.getElementById('index_promo_right_1_price').innerHTML = "34.99"; // Price within quotes
document.getElementById('index_promo_right_1_landing').href = "percussion_jamb_sub_1.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_1_landing_2').href = "percussion_jamb_sub_1.cfm"; // Landing page from more within quotes
// End Promo right 1


// Start Promo right 2
document.getElementById('index_promo_right_2_img').src = "img/index_promo_hqpad.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_2_product_title').innerHTML = "HQ Practice Pads"; // Product title within quotes
document.getElementById('index_promo_right_2_product').innerHTML = "Get the best start with HQ Premium Practice Pads"; // Product description within quotes
document.getElementById('index_promo_right_2_price').innerHTML = "18.99"; // Price within quotes
document.getElementById('index_promo_right_2_landing').href = "accessories_sub_5.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_2_landing_2').href = "accessories_sub_5.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_stagg_splash.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_3_product_title').innerHTML = "<b>Stagg Splash Cymbals</b>"; // Product title within quotes
document.getElementById('index_promo_right_3_product').innerHTML = "Super high quality as a super low price"; // Product description within quotes
document.getElementById('index_promo_right_3_price').innerHTML = "19"; // Price within quotes
document.getElementById('index_promo_right_3_landing').href = "cymbals_stagg_splash.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_3_landing_2').href = "cymbals_stagg_splash.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_cajons.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_4_product_title').innerHTML = "Acoustic Jammin"; // Product title within quotes
document.getElementById('index_promo_right_4_product').innerHTML = "A Cajon is your perfect outdoor rhythm maker"; // Product description within quotes
document.getElementById('index_promo_right_4_price').innerHTML = "114"; // Price within quotes
document.getElementById('index_promo_right_4_landing').href = "percussion_cajons_meinl_designer.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_4_landing_2').href = "percussion_cajons_meinl_designer.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_parts.jpg"; // Image location within quotes w80xh80
document.getElementById('index_promo_right_5_product_title').innerHTML = "All The Spare Parts You Need"; // Product title within quotes
document.getElementById('index_promo_right_5_product').innerHTML = "Don't replace it - fix it! Visit our parts section"; // Product description within quotes
document.getElementById('index_promo_right_5_price').innerHTML = "3.99"; // Price within quotes
document.getElementById('index_promo_right_5_landing').href = "parts_gibraltar_servicecentre.cfm"; // Landing page from image within quotes
document.getElementById('index_promo_right_5_landing_2').href = "parts_gibraltar_servicecentre.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";
}
}


