// Use complete jQuery namespace variable to avoid .NET clashes
jQuery(document).ready(function() {
	// set defaults for all future calls
	jQuery.sifr({
		path: '/hotels/metrobangkok/central/flash/',
		font: 'helveticaneuelt_ttf.swf',
		textAlign: 'left'
	});

	// activate replacements
	jQuery('#content.intro h1').sifr({
		textTransform: 'uppercase'
	});

	jQuery('#content.section h1').sifr();

	//Non roman characters
	var matchString = new RegExp("[^\x00-\x80]+");
	var mainTitle = jQuery('#content.page h1 .maintitle').html();

	if (mainTitle != null) {
		if (!mainTitle.match(matchString)) {
			jQuery('#content.page h1 .maintitle').sifr();
		} 
	}

	jQuery('#content.page h1 .subtitle').sifr();

	jQuery('#linkboxes h4').sifr();

	jQuery('#hotellinkbar .hotelpanel h4').sifr({
		height: 30,
		width: 330,
		flashvars: {
			h: 30
		}
	});

});

