		
		  
		
		  sIFR.useStyleCheck = true;
		  sIFR.activate(clarendon, neutra);
		
			  sIFR.replace(clarendon, {
			    selector: '.nw_prod_block li',
				css: [
					'.sIFR-root { text-decoration:none; list-style:none; line-height: 1em; font-size:17px; text-transform:uppercase;  }',
					'a { color: #ffffff; text-decoration: none; }',
					'a:link { color: #ffffff; }',
					'a:hover { color: #cc0066; }'
				],	
			   wmode: 'transparent'	
				});
				
			 sIFR.replace(clarendon, {
			    selector: '.nw_coll_block li.on',
				css: [
					'.sIFR-root { text-decoration:none;  color: #999900; list-style:none; line-height: 1em; font-size:17px; text-transform:uppercase;  }',
				],	
			   wmode: 'transparent'	
				});
			
			
			sIFR.replace(clarendon, {
			    selector: '.nw_coll_block li',
				css: [
					'.sIFR-root { text-decoration:none; list-style:none; line-height: 1em; font-size:17px; text-transform:uppercase;  }',
					'a { color: #ffffff; text-decoration: none; }',
					'a:link { color: #ffffff; }',
					'a:hover { color: #999900; }'
				],	
			   wmode: 'transparent'	
				});
			
			
			/*sIFR.replace(neutra, {
			    selector: '#header h1',
				css: [
					'.sIFR-root { text-decoration:none; line-height: 1em; font-size:40px;  }',
					'a { color: #ffffff; text-decoration: none; }',
					'a:link { color: #ffffff; }',
					'a:hover { color: #ffffff; }'
				],	
			   wmode: 'transparent'	
			}); */
			
			sIFR.replace(clarendon, {
			    selector: '#content_full h1',
				css: [
					'.sIFR-root { font-size:15px; color:#ff9900; text-transform:uppercase; }'
				],	
			   wmode: 'transparent'	
			});
				
			sIFR.replace(neutra, {
			    selector: '#prod_specs_col h1',
				css: [
					'.sIFR-root { font-size:20px; color:#cc0066; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; }'
				],	
			   wmode: 'transparent'	
			});
			
			sIFR.replace(neutra, {
			    selector: '#prod_specs_col h2',
				css: [
					'.sIFR-root { font-size:12px; text-transform:lowercase; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;  }'
				],	
			   wmode: 'transparent'	
			}); 
			
			
			
			
			
			
		document.observe('dom:loaded', function(){ 
			
			 if($('prod_image_children')){
				 new Control.Tabs($('prod_image_children'),{  
			     linkSelector: 'ul li a' 
				 }); 
			}  
				
			
			if($('tab_controls')){
				 var paControl = new Control.Tabs('tab_controls',{  
			     defaultTab: 'slide_1',  
			     linkSelector: 'li a' 
				 });
			
				$$('.controls').invoke('observe', 'click',  function(event){
					element = event.element(event)
					
					if(element.id == "next"){
						this.next();
					}else{
						this.previous();
					}
					
					// Stops the link submission
					Event.stop(event);
					
				}.bindAsEventListener(paControl))
				
				$$('.controls img').invoke('observe', 'mouseover', image.mouse_over)
				$$('.controls img').invoke('observe', 'mouseout',  image.mouse_out)
				
				var preload_these_images = [
					'/_assets/common/submit_your_photos.png',
					'/_assets/common/navigation/previous_off.png',
					'/_assets/common/navigation/next_off.png'
				 ]
				
				image.preload(preload_these_images);
			}
			 
			
			// Preps the printout for the product_info.php page
			$$('.prod_image_tabs_icons').invoke('observe', 'click',  function(event){
					element = event.element(event);
					
					print_img = element.src.gsub('small', 'large');
					shown = $(element.up().hash.gsub('#', ''))
					
					$('print_prod_image').update('<img src=' + print_img + ' />');
					$('print_image_name').update(shown.down(2).innerHTML)
					
			});
			
			 // GENERIC ROLLOVERS
			 // In an effort to speed up the rendering of the site, we will only preload the images when needed. 
			$$('.rollover img, .rollover input').invoke('observe', 'mouseover', image.mouse_over)
			$$('.rollover img, .rollover input').invoke('observe', 'mouseout',  image.mouse_out)
			
			var preload_these_images = [
					'/_assets/common/place_order_on.png',
					'/_assets/common/place_order_off.png',
					'/_assets/common/email_a_friend_on.png',
					'/_assets/common/email_a_friend_off.png',
					'/_assets/common/submit_on.png',
					'/_assets/common/submit_off.png',
					'/_assets/common/print_on.png',
					'/_assets/common/print_off.png'
				 ]
				
			
			if($$('.rollover img, .rollover input') != ''){
				image.preload(preload_these_images);
			}
			
			// Press
			if($('loding_status')){
				$('loding_status').toggle()
				$('blockit').toggle();
			}
			
			// Find a retailer
			if($('country_header')){
				$('country_header').observe('click', far.open_country);
				$('online_header').observe('click', far.open_online);
			} 
			
			
			//pngFix.pngObj();
			//nav.add_assets();
			//nav.observe_map();
			
			// Generic Functions
			analytics.analize();
			
			
			//Fancy Catalog ToolTip
			if($$('.detail') != ''){
				$$('.detail').each(function(link){	
						new Control.Modal(link,{
					        hover:true,
							opacity: 0.8,
							position: 'mouse',
							offsetLeft: 30,
							offsetTop: 30
						});
		    	});
			}
			
			if($('slide_box')){
				$('slide_box').observe('click', function(event){
					element = event.element(event);
					
					clicked = event.findElement('area')
					window.location = $(clicked.id).getAttribute('rel')
				});
			}
			
			popout();
			
			
			
			// Product Options code
			if($('furniture_code')){
				
				pSelector.build();
				pSelector.load_default();
				$$('.selector li img, .selector li input').invoke('observe', 'click', pSelector.destroy)
				
				$$('.selector li img').invoke('observe', 'mouseover', pSelector.mover)
				$$('.selector li img').invoke('observe', 'mouseout',  pSelector.mout)
				
				//ANOTHER SPECIAL CASE
				// Refers to Loom Storage specifically where base unit is selected by Default, reason being that you can have just a trolley

				switch($('furniture_code').value){
					case "lss":
						if($('checked_options_base_unit').value != 'on'){
							$('checked_options_base_unit').value = 'on';
							$('options-base_unit').checked = true;
						}
					break;
				}
		
			
			
			}
			
			
			
			
		});
		
		

	
	
	