// 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 grandesign = {  src: 'http://www.sky-tours.com/mt-static/js/sifr/grandesign.swf'};
var century = {  src: 'http://www.sky-tours.com/mt-static/js/sifr/century.swf'};
var futuramd = {  src: 'http://www.sky-tours.com/mt-static/js/sifr/futuramd.swf'};





sIFR.activate(grandesign, century, futuramd);

// sIFR.debug.ratios({ src: '/beta/f/franklin.swf', selector: 'h2' });
    sIFR.replace(grandesign, {
    selector: '.asset-name, .entry-title'
   	,forceSingleLine: false
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #2672c0; background: transparent; text-align: left; font-weight:normal; font-size: 30px; leading: -6; letter-spacing: -0.7; text-transform: normal;  margin-right:10px !important; }'
	    ,'a { color: #2672c0; text-decoration: none; cursor: pointer; outline: none; background: transparent;  }'  
      ,'a:link { color: #2672c0; }'  
      ,'a:hover { color: #00a0c1; }' 
    ]
  });



    sIFR.replace(grandesign, {
    selector: 'p.widgetSearchBig'
   	,forceSingleLine: false
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #2672c0; background: transparent; text-align: left; font-weight:normal; font-size: 30px; line-height:30px; margin:0; leading: -10; letter-spacing: -0.7; text-transform: normal;  margin-right:10px !important; }'
	    ,'a { color: #2672c0; text-decoration: none; cursor: pointer; outline: none; background: transparent;  }'  
      ,'a:link { color: #2672c0; }'  
      ,'a:hover { color: #00a0c1; }' 
    ]
  });
	
	
	sIFR.replace(grandesign, {
    selector: 'p.widgetSearch'
   	,forceSingleLine: false
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #ff802b; font-weight:normal; font-size: 18px; leading: -6; letter-spacing:-0.5;  padding:0px;  text-transform: inherit;}'
    ]
  });
	
	
	
	
    sIFR.replace(grandesign, {
    selector: '.titleOuter > #page-title, .archive-title'
   	,forceSingleLine: false
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color:#788C96; background: transparent; text-align: left; font-weight:normal; margin:0 10px 0 0; padding:0; line-height:20px; font-size: 20px; leading: -6; letter-spacing: -0.7; text-transform: normal;  margin-right:10px !important; }'
	    ,'a { color: #2672c0; text-decoration: none; cursor: pointer; outline: none; background: transparent;  }'  
      ,'a:link { color: #2672c0; }'  
      ,'a:hover { color: #00a0c1; }' 
    ]
  });
	
sIFR.replace(century, {
    selector: '.date p'
   	,forceSingleLine: false
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #06347a; text-align: center !important; font-weight:bold; font-size: 30px; leading:0; padding:0; letter-spacing: -0.7; display: block; width:100%;  text-transform: normal;}'
    ]
  });

	
sIFR.replace(grandesign, {
    selector: '.trackbacks-header, .comments-open-header'
   	,forceSingleLine: false
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #ff802b; font-weight:normal; font-size: 18px; leading:-5; letter-spacing:-0.5; margin:0px; padding:0px;  text-transform: inherit;}'
    ]
  });



    sIFR.replace(futuramd, {
    selector: 'h3.widget-header'
   	,forceSingleLine: true
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #2672c0; background: transparent; text-align: left; font-weight:normal; font-size: 13px; line-height:25px; text-transform: uppercase; margin-right: 10px; }'
	    ,'a { color: #2672c0; text-decoration: none; cursor: pointer; outline: none; background: transparent;  }'  
      ,'a:link { color: #2672c0; }'  
      ,'a:hover { color: #039acc; }' 
    ]
  });
	
	
	    sIFR.replace(futuramd, {
    selector: '.archive-category > .archive-header, .archive-monthly > .archive-header, .archive-author-monthly > .archive-header'
   	,forceSingleLine: true
	,selectable: true
	,leading: true
	 ,wmode: 'transparent'
    ,css: [   
      '.sIFR-root {color: #2672c0; background: transparent; text-align: left; font-weight:normal; font-size: 15px; text-transform: uppercase; margin-right: 10px; }'
	    ,'a { color: #2672c0; text-decoration: none; cursor: pointer; outline: none; background: transparent;  }'  
      ,'a:link { color: #2672c0; }'  
      ,'a:hover { color: #039acc; }' 
    ]
  });



