// Specifically Don't Replace Certain Text
// Syntax: sIFR.replace(cochin, {selector: "h1, h2:not(.example)"});
parseSelector.pseudoClasses = {
  'not': function(nodes, selector) {
    var result = [];
    each: for(var i = 0, node; i < nodes.length; i++) {
      node = nodes[i];
      var ignore = parseSelector(selector, node.parentNode);
      for(var j = 0; j < ignore.length; j++) {
        if(ignore[j] == node) continue each;
      }
      result.push(node);
    }
    return result;
  }
}

// When true the dimensions of the Flash movie will fit exactly around the width and height of the text in the movie. 
// *Note:* this is as reported by Flash, so you might need to manually tune the dimensions.
sIFR.fitExactly = true;
//sIFR.tuneWidth = 100;

//  Allow sIFR to run when loaded from the localhost domain. 
// You don't have to add localhost to the domains. 
// sIFR.fromLocal = true;

// sIFR.domains = ['hotelcorpltd.com', '*.hotelcorpltd.com', '*.id3.co.th' ]; // Uncomment before launch!

var futura = {
  src: '/f/futura.swf'
  ,ratios: [7, 1.32, 9, 1.24, 13, 1.25, 16, 1.21, 22, 1.2, 23, 1.17, 25, 1.19, 27, 1.17, 32, 1.16, 33, 1.17, 42, 1.16, 47, 1.15, 48, 1.16, 58, 1.15, 59, 1.14, 63, 1.15, 64, 1.14, 65, 1.15, 71, 1.14, 72, 1.15, 103, 1.14, 104, 1.13, 110, 1.14, 112, 1.13, 115, 1.14, 119, 1.13, 121, 1.14, 1.13]
};

sIFR.activate(futura);
// sIFR.debug.ratios({ src: '/beta/f/futura.swf', selector: 'h2' });
    sIFR.replace(futura, {
    selector: '#nav h2'
   	,forceSingleLine: true
	 ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 21px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #ffffff; }'
    ]
  });
	sIFR.replace(futura, {
    selector: '#pressclippings #mainright h2, #club #main h2, #courses #mainright h2, #contact #mainright h2, #showcase #showcaseright h1'
   	,forceSingleLine: true
	 ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #ffffff; }'
    ]
  });
   sIFR.replace(futura, {
    selector: '#pressclippings h3, #pressclippings #extended h4 a'
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 16px; color: #ed1e79; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #ffffff; }'
    ]
  });
  sIFR.replace(futura, {
    selector: '#products h2'
   	,forceSingleLine: true
	 ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 24px; color: #000000; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
  sIFR.replace(futura, {
    selector: '#products #detailsleft h3'
   	,forceSingleLine: true
	 ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 30px; color: #000000; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
sIFR.replace(futura, {
    selector: '#images #contact h1'
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 16px; color: #ed1e79; text-transform: capitalize; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
sIFR.replace(futura, {
    selector: '#clublog #clubcontent h1, #clubaskpopup h2, #clublog #clubdetails h2, #search #contentright h2'
	,forceSingleLine: true
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 16px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
 sIFR.replace(futura, {
    selector: '#clublog h1'
	,forceSingleLine: true
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 16px; color: #000000; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
sIFR.replace(futura, {
    selector: 'h1'
	,forceSingleLine: true
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 16px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
sIFR.replace(futura, {
    selector: '#sidebar h2'
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
  sIFR.replace(futura, {
    selector: '#pressclippings h2, #clubcontestframe h2'
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
sIFR.replace(futura, {
    selector: 'h2'
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #000000; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
    sIFR.replace(futura, {
    selector: '#contact h3'
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #ffffff; text-transform: capitalize; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #4b4f54; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });
	sIFR.replace(futura, {
    selector: '#popup h3'
   	,forceSingleLine: false
	 ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #000000; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #cccccc; }'
    ]
  });

  sIFR.replace(futura, {
    selector: 'h3, #products #extended dt, #mmagazine #extended h3'
   	,forceSingleLine: true
	 ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #ffffff; text-transform: uppercase; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #ffffff; }'
    ]
  });
    sIFR.replace(futura, {
    selector: '#home #navhome, #products #navproducts, #club #navclub, #courses #navcourses, #showcase #navshowcase, #stores #navstores, #franchising #navfranchising, #contact #navcontact, #pressclippings #navpress'
    ,wmode: 'transparent'
    ,forceSingleLine: true
    ,css: [
      '.sIFR-root { text-align: left; font-size: 12px; text-transform: uppercase; cursor: pointer; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #ffffff; }'
    ]
  });
  sIFR.replace(futura, {
    selector: '#navigation li, #splash ul li'
	,forceSingleLine: true
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 12px; text-transform: uppercase; }'
      ,'a { text-decoration: none;}'
      ,'a:link { color: #ffffff; }'
      ,'a:hover { color: #ed1e79; }'
    ]
  });
 sIFR.replace(futura, {
    selector: '#signin h5'
	,forceSingleLine: true
    ,wmode: 'transparent'
    ,css: [
      '.sIFR-root { text-align: left; font-size: 14px; color: #ffffff; text-transform: capitalize; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #ed1e79; }'
      ,'a:hover { color: #ffffff; }'
    ]
  });