// x-coordinate of top left corner of dropdown menu 
var initX             = 0;



// y-coordinate of top left corner of dropdown menu 
//var initY             = 134; 
var initY             = 136;

// the background color of dropdown menu (set empty '' for transparent)
var backColor         = '#336699'; 

// the background color of selected menu items, set empty '' for transparent
var activeBackColor   = '#9FD0FF'; 

// the color of dropdown menu border
var borderColor = '#6699CC'; 

// the width of menu border
var borderSize  = '1'; 

// height of menu itesm
var itemHeight  = 20;

// overlapping between 
var xOverlap    = 5;
var yOverlap    = 10;

// end of constants


menuContent     = new Array ();

menuContent [0] = new Array ( 
-1, 
-1, 
110, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Dinning Menus', '../restaurant/dinning_menu.php',
'Take Out Menus', '../restaurant/takeout_menu.php',
'Table Mats', '../restaurant/table_mats.php',
'Table Tents', '../promotional/table_tents.php',
'Flyers', '../promotional/flyers.php',
'Door Hangers', '../promotional/economy_doorhanger.php',
'Posters', '../promotional/posters.php',
'Business Cards', '../identity/business_card.php',
'Postcards', '../cards/postcard.php'
));

menuContent [1] = new Array ( 
-1, 
-1,
112, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Posters', '../promotional/posters.php', 
'Flyers', '../promotional/flyers.php', 
'Business Flyers', '../promotional/business_flyers.php',
'Event Tickets', '../promotional/event.php',
'Door Hangers', '../promotional/doorhanger.php', 
'Rack Cards', '../promotional/rackcard.php', 
'Vinyl Banners', '../promotional/banners.php', 
'Table Tents', '../promotional/table_tents.php', 
'Stickers', '../promotional/stickers.php', 
'Record Flats', '../promotional/flats.php',
'Bookmarkers', '../promotional/bookmarks.php',
'Autographs', '../promotional/glossy.php',
'Street Promotional Package', '../street_promo/street_promo.php',
'Club Promotional Package', '../clubpromo/club_promo.php'
));

menuContent [2] = new Array ( 
-1, 
-1,
108, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Business Cards', '../identity/business_card.php', 
'Letterhead', '../identity/letterhead.php', 
'Envelopes', '../identity/envelope.php',
'Presentation Folders', '../identity/presentation.php',
'Carbonless Forms', '../identity/carbonlessforms.php',
'Note Pads', '../identity/notepad.php'
));

menuContent [3] = new Array ( 
-1, 
1,
106, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Post Cards', '../cards/postcard.php', 
'Greeting Cards', '../cards/greeting.php'

));

menuContent [4] = new Array ( 
-1, 
1,
110, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'CD Inserts', '../packaging/cd_insert.php',
'DVD Inserts', '../packaging/dvd_insert.php',
'CD/DVD Sleeves', '../packaging/cddvd_sleeve.php',
'Product Hang Tags', '../packaging/product_tag.php'
));

menuContent [5] = new Array ( 
-1, 
1,
106, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Brochures', '../sales/brochure_catalog.php', 
'Sales/ Data Sheets', '../sales/sales_data.php' 

));

menuContent [6] = new Array ( 
-1, 
1,
109, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Booklets', '../multipage/booklets.php', 
'Newsletters', '../multipage/newsletters.php', 
'Calendars', '../multipage/calendar.php'
));

menuContent [7] = new Array ( 
1, 
4, 
110, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Premium', '../promotional/doorhanger.php',
'Economy', '../promotional/economy_doorhanger.php'
));


//call the function when enter the button
//created by sanjiv 13 sept 2011
function handleEnter(e){

    if (e.keyCode == 13 || e.which == 13){
       getzipcode();	
		return false;   
	   }
	
}


//this is use for show the alert message when add to cart product without know the shipping estimate of the products.
//created by sanjiv 20 sept 2011
function estimateView(){
	var conf;
    var zipcode;
	
	zipcode = document.getElementById('destZipcode').value;
	
	if(zipcode == ''){
		conf = confirm("Please don't forget to select your shipping if you have it. Otherwise click ok to continue");

		if(conf){
		  return true;
		}else{
		 return false;
		}
	
	}
  
}
