$(function(){
	var platform = window.navigator.platform.toLowerCase();
	var video = $("#video_conteiner").attr("class");
	var video2 = $("#video_conteiner2").attr("class");
	var video3 = $("#video_conteiner3").attr("class");
	if((platform.indexOf("iphone")!=-1) || (platform.indexOf("mac")!=-1) || (platform.indexOf("ipad")!=-1))
		$("#video_conteiner").html('<object id="player" width="475" height="378" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="http://www.breathslim.com/templates/user/inc/'+video+'.mov" /><param name="controller" value="true" /><object type="video/quicktime" data="http://www.breathslim.com/templates/user/inc/'+video+'.mov" width="790" height="448" class="mov"><param name="controller" value="true" /></object></object>');

	if((platform.indexOf("iphone")!=-1) || (platform.indexOf("mac")!=-1) || (platform.indexOf("ipad")!=-1))
		$("#video_conteiner2").html('<object id="player" width="475" height="378" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="http://www.breathslim.com/templates/user/inc/'+video2+'.mov" /><param name="controller" value="true" /><object type="video/quicktime" data="http://www.breathslim.com/templates/user/inc/'+video2+'.mov" width="790" height="448" class="mov"><param name="controller" value="true" /></object></object>');

	if((platform.indexOf("iphone")!=-1) || (platform.indexOf("mac")!=-1) || (platform.indexOf("ipad")!=-1))
		$("#video_conteiner3").html('<object id="player2" width="475" height="378" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="http://www.breathslim.com/templates/user/inc/'+video3+'.mov" /><param name="controller" value="true" /><object type="video/quicktime" data="http://www.breathslim.com/templates/user/inc/'+video3+'.mov" width="790" height="448" class="mov"><param name="controller" value="true" /></object></object>');

	if ($(this).attr('name') != 'qty') {
		$('input:password, input:text, textarea').each(function() {
			var default_value = this.value;
			//$(this).css('color','#BBBBBB');
			$(this).focus(function() {
				if (this.value == default_value) {
					$(this).css('color','#000');
					this.value = '';
				}
			});
			$(this).blur(function() {
				if (this.value == '') {
					$(this).css('color','#666');
					this.value = default_value;
				}
			});
		});
	}
});

