		
	var num_stores = 1;
	var currentTitle = "";
	var isUS = false;
	
	$(function() {
		$('#countries A').click(function() {
			// fade out details
			$('#details').fadeOut('normal');
			
			currentTitle = $(this).attr('title');
			
			// fade in details overlay
			$('#details_overlay').fadeIn('normal');
			
			// remove bold class from all country links
			$('#countries A').removeClass('bold');
			
			// add bold class to current country
			$(this).addClass('bold');			
			
			// handle postback
			$.post(reiss_base_url+'store_locations/', {
				'ajax'		:	true,
				'country'	:	$(this).attr('title'),
				'act'		:	'get_stores'
			}, function(data, textStatus) {
				if(num_stores == 1) {
					// remove bold class from all store links
					$('#stores A').removeClass('bold').css('text-decoration', 'none');
					
					// add bold class to current store
					$('#stores A').addClass('bold').css('text-decoration', 'underline');
					
					$('#stores_overlay').fadeOut('normal', function() {
						// handle postback
						$.post(reiss_base_url+'store_locations/', {
							'ajax'		: true,
							'storeID' 	: $('#stores A').attr('title'),
							'act'		: 'get_store'
						}, function(data) {
							$('#details').html(data).css('display', 'none').fadeIn('normal');
							$('#details_overlay').fadeOut('normal');
							$('#details').fadeIn('normal');
						}, "script");
					});
					$('#stores').css('display', 'none').fadeIn('normal');
					return false;
				}
				
				if(currentTitle == 'USA') {
					if(isUS == false) {
						$('#stores').css('display', 'none');
						$('#stores_overlay').fadeOut('normal');
						$('#details_overlay').fadeOut('normal', function() {
							$('#details_overlay').css('backgroundImage', 'url(' + reiss_base_url + 'images/la.jpg)');
							$('#details_overlay').fadeIn('normal');
							$('#stores').fadeIn('normal');
						});
						isUS = true;
					}
				} else {
					if(isUS == true) {
						$('#stores').css('display', 'none');			
						$('#stores_overlay').fadeOut('normal');
						$('#details_overlay').fadeOut('normal', function() {
							$('#details_overlay').css('backgroundImage', 'url(' + reiss_base_url + 'images/reiss_storefront_3.jpg)');
							$('#details_overlay').fadeIn('normal');
							$('#stores').fadeIn('normal');
						});
						isUS = false;
					}
				}
				
				$('#stores').css('display', 'none').fadeIn('normal');				
				$('#stores_overlay').fadeOut('normal');
				$('#stores').fadeIn('normal');
				
				$('#stores A').click(function() {
					// remove bold class from all store links
					$('#stores A').removeClass('bold').css('text-decoration', 'none');
					
					// add bold class to current store
					$(this).addClass('bold').css('text-decoration', 'underline');
					
					// handle postback
					$.post(reiss_base_url+'store_locations/', {
						'ajax'		: true,
						'storeID' 	: $(this).attr('title'),
						'act'		: 'get_store'
					}, function(data) {
						$('#details').html(data).css('display', 'none').fadeIn('normal');
						$('#details_overlay').fadeOut('normal');
						$('#details').fadeIn('normal');
					});
					return false;
				});
			}, "script")		
			return false;
		});
		return false;
	});

	
	
	
	
	/*
	var num_stores = 1;
	var currentTitle = "";
	var isUS = false;
	
	$(function() {
		$('#countries A').click(function() {
			// fade out details
			$('#details').fadeOut('normal');
				
			currentTitle = $(this).attr('title');
		
			// fade in details overlay
			$('#details_overlay').fadeIn('normal');
			
			// remove bold class from all country links
			$('#countries A').removeClass('bold');
			
			// add bold class to current country
			$(this).addClass('bold');			
			
			// handle postback
			$.post(reiss_base_url+'store_locations/', {
				'ajax'		:	true,
				'country'	:	$(this).attr('title'),
				'act'		:	'get_stores'
			}, function(data, textStatus) {
				if(num_stores == 1) {
					// remove bold class from all store links
					$('#stores A').removeClass('bold').css('text-decoration', 'none');
					
					// add bold class to current store
					$('#stores A').addClass('bold').css('text-decoration', 'underline');
					
					$('#stores_overlay').fadeOut('normal', function() {
							// handle postback
						$.post(reiss_base_url+'store_locations/', {
							'ajax'		: true,
							'storeID' 	: $('#stores A').attr('title'),
							'act'		: 'get_store'
						}, function(data) {
							$('#details').html(data).css('display', 'none').fadeIn('normal');
							$('#details_overlay').fadeOut('normal');
							details_overlay = 'off';
							$('#details').fadeIn('normal');
						}, "script");
					});
					$('#stores').css('display', 'none').fadeIn('normal');
					return false;			
				}
				
				if(currentTitle == 'USA') {
					if(isUS == false) {
						$('#stores').css('display', 'none');
						$('#stores_overlay').fadeOut('normal');
						$('#details_overlay').fadeOut('normal', function() {
							$('#details_overlay').css('backgroundImage', 'url(' + reiss_base_url + 'images/la.jpg)');
							$('#details_overlay').fadeIn('normal');
							$('#stores').fadeIn('normal');
						});
						isUS = true;
					}
				} else {
					if(isUS == true) {
						$('#stores').css('display', 'none');			
						$('#stores_overlay').fadeOut('normal');
						$('#details_overlay').fadeOut('normal', function() {
							$('#details_overlay').css('backgroundImage', 'url(' + reiss_base_url + 'images/reiss_storefront_3.jpg)');
							$('#details_overlay').fadeIn('normal');
							$('#stores').fadeIn('normal');
						});
						isUS = false;
					}
				}
				
				$('#stores A').click(function() {
					// remove bold class from all store links
					$('#stores A').removeClass('bold').css('text-decoration', 'none');
					
					// add bold class to current store
					$(this).addClass('bold').css('text-decoration', 'underline');
					
					// handle postback
					$.post(reiss_base_url+'store_locations/', {
						'ajax'		: true,
						'storeID' 	: $(this).attr('title'),
						'act'		: 'get_store'
					}, function(data) {
						$('#details').html(data).css('display', 'none').fadeIn('normal');
						$('#details_overlay').fadeOut('normal');
						$('#details').fadeIn('normal');
					});
					return false;
				});
			}, "script")		
			return false;
		});
		return false;
	});
	*/