	$(document).ready(function() { 
		$("#subscribe .input-text").click(function(){
			$("#subscribe .input-text").addClass("clicked");							
		});		
		
		$("#product-thumbs-inner a").click(function(){
			$("#product-hero img").attr("src",$(this).attr("href"));
			return false;
		});
		
		$("img.product-option-select").click(function(){
			//$("div.product-style-highlight:has('.show')").removeClass('show').addClass("hide");
			$(".product-style-highlight:visible").removeClass('show').addClass("hide");
			var whichSelect = $(this).attr("rel");
			var whichOption = $(this).attr("option");
			$('select option:nth('+whichOption+')').attr("selected","selected");
			$(this).siblings('.product-style-highlight').removeClass('hide').addClass("show");
		});
		
	});
	
    var dontpanic = {
      src: 'catalog/view/theme/default/swf/dontpanic.swf'
      ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
    };

    //sIFR.useStyleCheck = true;
    sIFR.activate(dontpanic);
	
    sIFR.replace(dontpanic, {
      selector: '#navigation-top span.current'
      ,css: [
        '.sIFR-root { color: #ffffff; text-align: center; text-decoration: underline; font-size: 12px; }'
        ,'a { color: #ffffff; text-decoration: underline; }'
        ,'a:link { color: #ffffff; }'
        ,'a:hover { color: #ffffff; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	
	
    sIFR.replace(dontpanic, {
      selector: '#navigation-top span.link'
      ,css: [
        '.sIFR-root { color: #ffffff; text-align: center; font-size: 12px; }'
        ,'a { color: #ffffff; text-decoration: none; }'
        ,'a:link { color: #ffffff; }'
        ,'a:hover { color: #ffffff; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });		
	
    sIFR.replace(dontpanic, {
      selector: ' .blog-item-header h2, #header-subscribe h2, #zine-header h2, #store-header h2, .product span, #family-header h2, .member span, #contact-alpha h2, #contact-beta h2, fieldset.field label, fieldset.textarea label, #locator-alpha-header h2, #product-wt-alpha h2, #product-wt-beta h2, #cart-header h2, .cart-item-body h2, h2'
      ,css: [
        '.sIFR-root { color: #000000; text-align: center; font-size: 12px; }'
        ,'a { color: #000000; text-decoration: none; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #000000; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	
	
	jQuery.each(jQuery.browser, function(i) {
	  if($.browser.msie){

	  }else{
	  
		sIFR.replace(dontpanic, {
		  selector: '#navigation-bottom span.current, #navigation-bottom span.section'
		  ,css: [
			'.sIFR-root { color: #808080; text-align: center; text-decoration: underline; font-size: 12px; }'
			,'a { color: #808080; text-decoration: underline; }'
			,'a:link { color: #808080; }'
			,'a:hover { color: #ffffff; text-decoration: underline; }'
		  ]
		  ,wmode: 'transparent'
		  ,forceSingleLine: true
		});		  
	  
		sIFR.replace(dontpanic, {
		  selector: '#navigation-bottom span.link'
		  ,css: [
			'.sIFR-root { color: #808080; text-align: center; font-size: 12px; }'
			,'a { color: #808080; text-decoration: none; }'
			,'a:link { color: #808080; }'
			,'a:hover { color: #ffffff; text-decoration: underline; }'
		  ]
		  ,wmode: 'transparent'
		  ,forceSingleLine: true
		});
	  }
	});
	
    sIFR.replace(dontpanic, {
      selector: '#contact-alpha-body p, .product-body p, .cart-item-body p'
      ,css: [
        '.sIFR-root { color: #000000; text-align: left; font-size: 12px; }'
        ,'a { color: #000000; text-decoration: underline; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #878787; text-decoration: none; }'
      ]
	  ,wmode: 'transparent'
    });		

    sIFR.replace(dontpanic, {
      selector: '#header-cart span'
      ,css: [
        '.sIFR-root { color: #000000; text-align: right; font-size: 12px; }'
        ,'a { color: #878787; text-decoration: none; }'
        ,'a:link { color: #878787; }'
        ,'a:hover { color: #000000; text-decoration: none; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	
	
    sIFR.replace(dontpanic, {
      selector: '#footer-pagination-left span'
      ,css: [
        '.sIFR-root { color: #878787; text-align: left; font-size: 12px; }'
        ,'a { color: #000000; text-decoration: none; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #000000; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	

    sIFR.replace(dontpanic, {
      selector: '#footer-pagination-right span'
      ,css: [
        '.sIFR-root { color: #878787; text-align: right; font-size: 12px; }'
        ,'a { color: #000000; text-decoration: none; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #000000; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	

	sIFR.replace(dontpanic, {
      selector: '#footer-copyright span'
      ,css: [
        '.sIFR-root { color: #878787; text-align: left; font-size: 12px; }'
        ,'a { color: #878787; text-decoration: none; }'
        ,'a:link { color: #878787; }'
        ,'a:hover { color: #878787; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	
	
    sIFR.replace(dontpanic, {
      selector: '#footer-credit span'
      ,css: [
        '.sIFR-root { color: #878787; text-align: right; font-size: 12px; }'
        ,'a { color: #878787; text-decoration: none; }'
        ,'a:link { color: #878787; }'
        ,'a:hover { color: #878787; text-decoration: underline; }'
      ]
	  ,wmode: 'transparent'
	  ,forceSingleLine: true
    });	
	
  
  
