$(function() {
   $('a[rel*=lightbox]').lightBox();
});

Cufon.replace('#contentMain h2', { fontFamily: 'headline' });
Cufon.replace('#contentMain h3', { fontFamily: 'headline' });
Cufon.replace('#claim blockquote', { textShadow: '#000000 2px 1px' });

$(document).ready(function() {
	$('#slideshow').innerfade({
		animationtype: 'fade',
		speed: 2000,
		timeout: 8000,
		type: 'sequence',
		containerheight: '344px'
	});				
});

$(document).ready(function() {
		$(function() {
		$('input[type=text][title!=""]').each(function() {
		if ($.trim($(this).val()) == '') $(this).val($(this).attr('title'));
		if ($(this).val() == $(this).attr('title')) $(this).addClass('exampleText');
	  }).focus(switchText).blur(switchText);
	  
	  $('form').submit(function() {
		$(this).find('input[type=text][title!=""]').each(function() {
		 if ($(this).val() == $(this).attr('title')) $(this).val('');
		});
	  });
		
	});
	
	 function switchText()
	{
	 if ($(this).val() == $(this).attr('title'))
	  $(this).val('').removeClass('exampleText');
	 else if ($.trim($(this).val()) == '')
	  $(this).addClass('exampleText').val($(this).attr('title'));
	}
});


var flashvars={
image1: "../flash/images/panorama.jpg",
panoramaAlign: "center",
panoramaAlpha: "1",
speed: "800",
cursorFade: "on",
cursorAlpha: "1",
cursorColor: "0xFFFFFF",
locatorAlign: "top",
locatorMode: "auto",
locatorBackgroundColor: "0x000000",
locatorBackgroundAlpha: "1",
locatorAlpha: "1",
locatorButtonAlpha: "1",
locatorButtonColor: "0xFFFFFF",
locatorImageAlpha: "1",
scopeColor: "0xFFFFFF",
scopeAlpha: "1",
hotspotAlpha: "1",
hotSpotColor: "0xFFFFFF",
preloaderBackgroundColor: "0x000000",
preloaderAlpha: "1",
preloaderBarColor: "0xFFFFFF",
preloaderTextColor: "0x000000",
author: "ew",
infinite: "on",
debug: "off"
}
 var params={
menu: "false",
scale: "noScale"
}
 var attributes={
id: "Panorama"
}
swfobject.embedSWF("../flash/panorama.swf", "pixaround1", 398, 254, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
