/*!	SWFObject v2.0 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

function valida_BagOfSling(){
	if(document.getElementById('xProdSling').value == ''){
		alert('Selecione a cor do produto');
	}else{
		document.getElementById('formProd').action = 'https://pagseguro.uol.com.br/security/webpagamentos/webpagto.aspx';
		document.getElementById('formProd').submit();
		return true;
	}
}

function valida_BagOfPijama(){
	if(document.getElementById('xProdPijama').value == ''){
		alert('Selecione a cor do produto');
	}else{
		document.getElementById('formProd').action = 'https://pagseguro.uol.com.br/security/webpagamentos/webpagto.aspx';
		document.getElementById('formProd').submit();
		return true;
	}
}

function validaStockProdSling(){
	if(document.getElementById('pSling1').value == 0){
		document.getElementById('colors1_BagOfSling').style.display = 'none';
		document.getElementById('ps1').style.display = 'inline';
		document.getElementById('colors1_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling2').value == 0){
		document.getElementById('colors2_BagOfSling').style.display = 'none';
		document.getElementById('ps2').style.display = 'inline';
		document.getElementById('colors2_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling3').value == 0){
		document.getElementById('colors3_BagOfSling').style.display = 'none';
		document.getElementById('ps3').style.display = 'inline';
		document.getElementById('colors3_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling4').value == 0){
		document.getElementById('colors4_BagOfSling').style.display = 'none';
		document.getElementById('ps4').style.display = 'inline';
		document.getElementById('colors4_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling5').value == 0){
		document.getElementById('colors5_BagOfSling').style.display = 'none';
		document.getElementById('ps5').style.display = 'inline';
		document.getElementById('colors5_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling6').value == 0){
		document.getElementById('colors6_BagOfSling').style.display = 'none';
		document.getElementById('ps6').style.display = 'inline';
		document.getElementById('colors6_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling7').value == 0){
		document.getElementById('colors7_BagOfSling').style.display = 'none';
		document.getElementById('ps7').style.display = 'inline';
		document.getElementById('colors7_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling8').value == 0){
		document.getElementById('colors8_BagOfSling').style.display = 'none';
		document.getElementById('ps8').style.display = 'inline';
		document.getElementById('colors8_BagOfSling_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSling9').value == 0){
		document.getElementById('colors9_BagOfSling').style.display = 'none';
		document.getElementById('ps9').style.display = 'inline';
		document.getElementById('colors9_BagOfSling_off').style.visibility = 'visible';
	}
}

function valida_BagOfTour(){
	if(document.getElementById('xProdTour').value == ''){
		alert('Selecione a cor do produto');
	}else{
		document.getElementById('formProd').action = 'https://pagseguro.uol.com.br/security/webpagamentos/webpagto.aspx';
		document.getElementById('formProd').submit();
		return true;
	}
}

function validaStockProdTour(){
	if(document.getElementById('pTour1').value == 0){
		document.getElementById('colors1_BagOfTour').style.display = 'none';
		document.getElementById('pp1').style.display = 'inline';
		document.getElementById('colors1_BagOfTour_off').style.visibility = 'visible';
	}
	if(document.getElementById('pTour2').value == 0){
		document.getElementById('colors2_BagOfTour').style.display = 'none';
		document.getElementById('pp2').style.display = 'inline';
		document.getElementById('colors2_BagOfTour_off').style.visibility = 'visible';
	}
	if(document.getElementById('pTour3').value == 0){
		document.getElementById('colors3_BagOfTour').style.display = 'none';
		document.getElementById('pp3').style.display = 'inline';
		document.getElementById('colors3_BagOfTour_off').style.visibility = 'visible';
	}
	if(document.getElementById('pTour4').value == 0){
		document.getElementById('colors4_BagOfTour').style.display = 'none';
		document.getElementById('pp4').style.display = 'inline';
		document.getElementById('colors4_BagOfTour_off').style.visibility = 'visible';
	}
	if(document.getElementById('pTour5').value == 0){
		document.getElementById('colors5_BagOfTour').style.display = 'none';
		document.getElementById('pp5').style.display = 'inline';
		document.getElementById('colors5_BagOfTour_off').style.visibility = 'visible';
	}
	if(document.getElementById('pTour6').value == 0){
		document.getElementById('colors6_BagOfTour').style.display = 'none';
		document.getElementById('pp6').style.display = 'inline';
		document.getElementById('colors6_BagOfTour_off').style.visibility = 'visible';
	}
	if(document.getElementById('pTour7').value == 0){
		document.getElementById('colors7_BagOfTour').style.display = 'none';
		document.getElementById('pp7').style.display = 'inline';
		document.getElementById('colors7_BagOfTour_off').style.visibility = 'visible';
	}
}

function valida_BagOfSleep(){
	if(document.getElementById('xProdSleep').value == ''){
		alert('Selecione a cor do produto');
	}else{
		document.getElementById('formProd').action = 'https://pagseguro.uol.com.br/security/webpagamentos/webpagto.aspx';
		document.getElementById('formProd').submit();
		return true;
	}
}

function validaStockProdPijama(){
	if(document.getElementById('pPijama1').value == 0){
		document.getElementById('colors1_BagOfPijama').style.display = 'none';
		document.getElementById('pijama1').style.display = 'inline';
		document.getElementById('colors1_BagOfPijama_off').style.visibility = 'visible';
	}
	if(document.getElementById('pPijama2').value == 0){
		document.getElementById('colors2_BagOfPijama').style.display = 'none';
		document.getElementById('pijama2').style.display = 'inline';
		document.getElementById('colors2_BagOfPijama_off').style.visibility = 'visible';
	}
	if(document.getElementById('pPijama3').value == 0){
		document.getElementById('colors3_BagOfPijama').style.display = 'none';
		document.getElementById('pijama3').style.display = 'inline';
		document.getElementById('colors3_BagOfPijama_off').style.visibility = 'visible';
	}
	if(document.getElementById('pPijama4').value == 0){
		document.getElementById('colors4_BagOfPijama').style.display = 'none';
		document.getElementById('pijama4').style.display = 'inline';
		document.getElementById('colors4_BagOfPijama_off').style.visibility = 'visible';
	}
	if(document.getElementById('pPijama5').value == 0){
		document.getElementById('colors5_BagOfPijama').style.display = 'none';
		document.getElementById('colors5_BagOfPijama_off').style.display = 'inline';
		document.getElementById('pijama5').style.display = 'inline';
		document.getElementById('colors5_BagOfPijama_off').style.visibility = 'visible';
	}
	if(document.getElementById('pPijama6').value == 0){
		document.getElementById('colors6_BagOfPijama').style.display = 'none';
		document.getElementById('colors6_BagOfPijama_off').style.display = 'inline';
		document.getElementById('pijama6').style.display = 'inline';
		document.getElementById('colors6_BagOfPijama_off').style.visibility = 'visible';
	}
	if(document.getElementById('pPijama7').value == 0){
		document.getElementById('colors7_BagOfPijama').style.display = 'none';
		document.getElementById('colors7_BagOfPijama_off').style.display = 'inline';
		document.getElementById('pijama7').style.display = 'inline';
		document.getElementById('colors7_BagOfPijama_off').style.visibility = 'visible';
	}
}

function validaStockProdSleep(){
	if(document.getElementById('pSleep1').value == 0){
		document.getElementById('colors1_BagOfSleep').style.display = 'none';
		document.getElementById('colors1_BagOfSleep_off').style.display = 'inline';
		document.getElementById('pd1').style.display = 'inline';
		document.getElementById('colors1_BagOfSleep_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSleep2').value == 0){
		document.getElementById('colors2_BagOfSleep').style.display = 'none';
		document.getElementById('pd2').style.display = 'inline';
		document.getElementById('colors2_BagOfSleep_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSleep3').value == 0){
		document.getElementById('colors3_BagOfSleep').style.display = 'none';
		document.getElementById('pd3').style.display = 'inline';
		document.getElementById('colors3_BagOfSleep_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSleep4').value == 0){
		document.getElementById('colors4_BagOfSleep').style.display = 'none';
		document.getElementById('pd4').style.display = 'inline';
		document.getElementById('colors4_BagOfSleep_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSleep5').value == 0){
		document.getElementById('colors5_BagOfSleep').style.display = 'none';
		document.getElementById('colors5_BagOfSleep_off').style.display = 'inline';
		document.getElementById('pd5').style.display = 'inline';
		document.getElementById('colors5_BagOfSleep_off').style.visibility = 'visible';
	}
	if(document.getElementById('pSleep6').value == 0){
		document.getElementById('colors6_BagOfSleep').style.display = 'none';
		document.getElementById('colors6_BagOfSleep_off').style.display = 'inline';
		document.getElementById('pd6').style.display = 'inline';
	}
}

function backToShop(){
	window.location='http://www.bebecasulo.com.br/';
}

function carregaPeso(){
	if(document.getElementById('pesoOld').value != 0){
		document.getElementById('peso').value = document.getElementById('pesoOld').value;
	}else{
		alert('Para calcular o frete o carrinho não pode estar vazio, você sejá direcionado para a Home');
		window.location='http://www.bebecasulo.com.br/';
		
	}
}

function resultShipping(){
	window.location='#result';
}

function copyCep(){
	document.getElementById('cepDestino').value = document.getElementById('valueShippingMaster').value;
}

function validaEsqueciMinhaSenha(){
	if(document.getElementById('email').value == ''){
		alert('Digite seu e-mail');
	}else{
		document.getElementById('exA').action = 'http://www.bebecasulo.com.br/clientes/cadUser.php';
		document.getElementById('exA').submit();
		return true;
	}
}

function validaTrocarSenha(){
	if(document.getElementById('senha').value == ''){
		alert('Campo Senha obrigatório');
	}else{
		if(document.getElementById('senha1').value == ''){
			alert('Campo Confirma senha obrigatório');
		}else{
			if(document.getElementById('senha').value != document.getElementById('senha1').value){
				alert('Campo Senha não confere com a confirmação');
			}else{
				document.getElementById('exA').action = 'http://www.bebecasulo.com.br/clientes/cadUser.php';
				document.getElementById('exA').submit();
				return true;
			}
		}
	}
}

function validaLogin(){
	if(document.getElementById('email').value == ''){
		alert('Campo E-mail obrigatório');
	}else{
		if(document.getElementById('senha').value == ''){
			alert('Campo Senha obrigatório');
		}else{
			document.getElementById('exA').action = 'http://www.bebecasulo.com.br/clientes/efetuaLogin.php';
			document.getElementById('exA').submit();
			return true;
		}
	}
}

function validaNovoDepoimento(){
	if(document.getElementById('author').value == ''){
		alert('Campo Nome obrigatório');
	}else{
		if(document.getElementById('email').value == ''){
			alert('Campo E-mail obrigatório');
		}else{
			if(document.getElementById('comment').value == ''){
				alert('Campo Mensagem obrigatório');
			}else{
				document.getElementById('commentform').action = 'http://www.bebecasulo.com.br/clientes/cadComment.php';
				document.getElementById('commentform').submit();
				return true;
			}
		}
	}
}

function validaNovoCadastro(){
	if(document.getElementById('nome').value == ''){
		alert('Campo Nome obrigatório');
	}else{
		if(document.getElementById('sobrenome').value == ''){
			alert('Campo Sobrenome obrigatório');
		}else{
			if(document.getElementById('sexo').value == ''){
				alert('Campo Sexo obrigatório');
			}else{
					if(document.getElementById('data_nasc').value == ''){
						alert('Campo Data de Nascimento obrigatório');
				}else{
						if(document.getElementById('cep').value == ''){
							alert('Campo CEP obrigatório');
					}else{
							if(document.getElementById('endereco').value == ''){
								alert('Campo Endereço obrigatório');
						}else{
								if(document.getElementById('complemento').value == ''){
									alert('Campo Número / Complemento obrigatório');
							}else{
									if(document.getElementById('bairro').value == ''){
										alert('Campo Bairro obrigatório');
								}else{
										if(document.getElementById('cidade').value == ''){
											alert('Campo Cidade obrigatório');
									}else{
											if(document.getElementById('estado').value == ''){
												alert('Campo Estado obrigatório');
										}else{
												if(document.getElementById('email').value == ''){
													alert('Campo E-mail obrigatório');
											}else{
													if(document.getElementById('telefone').value == ''){
														alert('Campo Telefone obrigatório');
												}else{
														if(
															document.getElementById('como_conheceu1').checked == 
															document.getElementById('como_conheceu2').checked == 
															document.getElementById('como_conheceu3').checked == 
															document.getElementById('como_conheceu4').checked == 
															document.getElementById('como_conheceu5').checked == 
															document.getElementById('como_conheceu6').checked == 
															document.getElementById('como_conheceu7').checked == 
															document.getElementById('como_conheceu8').checked == 
															document.getElementById('como_conheceu9').checked == 
															document.getElementById('como_conheceu10').checked){
															alert('Campo Como conheceu o site obrigatório');
													}else{
															if(document.getElementById('newslettersim').checked == document.getElementById('newsletternao').checked){
																alert('Campo Deseja receber newsletter obrigatório');
														}else{
																if(document.getElementById('senha').value == ''){
																	alert('Campo Senha obrigatório');
															}else{
																	if(document.getElementById('senha1').value == ''){
																		alert('Campo Confirma senha obrigatório');
																}else{
																		if(document.getElementById('senha').value != document.getElementById('senha1').value){
																			alert('Campo Senha não confere com a confirmação');
																	}else{
																			if(document.getElementById('concordo').checked == false){
																				alert('Favor concordar com a política de privacidade do site');
																		}else{ 
																			document.getElementById('exA').action = 'http://www.bebecasulo.com.br/clientes/cadUser.php';
																			document.getElementById('exA').submit();
																			return true;
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

function validaEditarCadastro(){
	if(document.getElementById('nome').value == ''){
		alert('Campo Nome obrigatório');
	}else{
		if(document.getElementById('sobrenome').value == ''){
			alert('Campo Sobrenome obrigatório');
		}else{
			if(document.getElementById('sexo').value == ''){
				alert('Campo Sexo obrigatório');
			}else{
					if(document.getElementById('data_nasc').value == ''){
						alert('Campo Data de Nascimento obrigatório');
				}else{
						if(document.getElementById('cep').value == ''){
							alert('Campo CEP obrigatório');
					}else{
							if(document.getElementById('endereco').value == ''){
								alert('Campo Endereço obrigatório');
						}else{
								if(document.getElementById('complemento').value == ''){
									alert('Campo Número / Complemento obrigatório');
							}else{
									if(document.getElementById('bairro').value == ''){
										alert('Campo Bairro obrigatório');
								}else{
										if(document.getElementById('cidade').value == ''){
											alert('Campo Cidade obrigatório');
									}else{
											if(document.getElementById('estado').value == ''){
												alert('Campo Estado obrigatório');
										}else{
												if(document.getElementById('email').value == ''){
													alert('Campo E-mail obrigatório');
											}else{
													if(document.getElementById('telefone').value == ''){
														alert('Campo Telefone obrigatório');
												}else{
														if(
															document.getElementById('como_conheceu1').checked == 
															document.getElementById('como_conheceu2').checked == 
															document.getElementById('como_conheceu3').checked == 
															document.getElementById('como_conheceu4').checked == 
															document.getElementById('como_conheceu5').checked == 
															document.getElementById('como_conheceu6').checked == 
															document.getElementById('como_conheceu7').checked == 
															document.getElementById('como_conheceu8').checked == 
															document.getElementById('como_conheceu9').checked == 
															document.getElementById('como_conheceu10').checked){
															alert('Campo Como conheceu o site obrigatório');
													}else{
															if(document.getElementById('newslettersim').checked == document.getElementById('newsletternao').checked){
																alert('Campo Deseja receber newsletter obrigatório');
														}else{
																if(document.getElementById('senha').value == ''){
																	alert('Campo Senha obrigatório');
															}else{
																	if(document.getElementById('senha1').value == ''){
																		alert('Campo Confirma senha obrigatório');
																}else{
																		if(document.getElementById('senha').value != document.getElementById('senha1').value){
																			alert('Campo Senha não confere com a confirmação');
																	}else{
																			if(document.getElementById('concordo').checked == false){
																				alert('Favor concordar com a política de privacidade do site');
																		}else{ 
																			document.getElementById('exA').action = 'http://www.bebecasulo.com.br/clientes/cadUser.php';
																			document.getElementById('exA').submit();
																			return true;
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

function validaNovoEndereco(){
	if(document.getElementById('nome_visualizacao').value == ''){
		alert('Campo Nome para Visualização obrigatório');
	}else{
		if(document.getElementById('cep').value == ''){
			alert('Campo CEP obrigatório');
		}else{
			if(document.getElementById('tipo').value == ''){
				alert('Campo Tipo de Endereço obrigatório');
			}else{
					if(document.getElementById('endereco').value == ''){
						alert('Campo Endereço obrigatório');
				}else{
						if(document.getElementById('complemento').value == ''){
							alert('Campo Número / Complemento obrigatório');
					}else{
							if(document.getElementById('bairro').value == ''){
								alert('Campo Bairro obrigatório');
						}else{
								if(document.getElementById('cidade').value == ''){
									alert('Campo Cidade obrigatório');
							}else{
									if(document.getElementById('estado').value == '0'){
										alert('Campo Estado obrigatório');
								}else{
										if(document.getElementById('telefone').value == ''){
											alert('Campo Telefone obrigatório');
									}else{
											if(document.getElementById('responsavel').value == ''){
												alert('Campo Responsável obrigatório');
										}else{
												document.getElementById('exA').action = 'http://www.bebecasulo.com.br/clientes/cadastroEndereco.php';
												document.getElementById('exA').submit();
												return true;
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

function validaEditarEndereco(){
	if(document.getElementById('nome_visualizacao').value == ''){
		alert('Campo Nome para Visualização obrigatório');
	}else{
		if(document.getElementById('cep').value == ''){
			alert('Campo CEP obrigatório');
		}else{
			if(document.getElementById('tipoendereco').value == ''){
				alert('Campo Tipo de Endereço obrigatório');
			}else{
					if(document.getElementById('endereco').value == ''){
						alert('Campo Endereço obrigatório');
				}else{
						if(document.getElementById('complemento').value == ''){
							alert('Campo Número / Complemento obrigatório');
					}else{
							if(document.getElementById('bairro').value == ''){
								alert('Campo Bairro obrigatório');
						}else{
								if(document.getElementById('cidade').value == ''){
									alert('Campo Cidade obrigatório');
							}else{
									if(document.getElementById('estado').value == '0'){
										alert('Campo Estado obrigatório');
								}else{
										if(document.getElementById('telefone').value == ''){
											alert('Campo Telefone obrigatório');
									}else{
											if(document.getElementById('responsavel').value == ''){
												alert('Campo Responsável obrigatório');
										}else{
												document.getElementById('exA').submit();
												return true;
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

function validaFreteShipping(){
	if(document.getElementById('cepDestino').value == ''){
		document.getElementById('formShipping').action = '';
		alert('Digite um CEP válido');
	}else{
		if(document.getElementById('priceCepPage').value == ''){
			document.getElementById('formShipping').action = '';
			alert('Selecione uma forma de envio');
		}else{
			if(document.getElementById('priceCepPage').value == '0.00'){
				document.getElementById('formShipping').action = '';
				alert('Serviço indisponível para o CEP fornecido');
			}else{
				document.getElementById('formShipping').action = 'http://www.bebecasulo.com.br/carrinhofinal/';
				document.getElementById('formShipping').submit();
				return true;
			}
		}
	}
}

function copieValueSedex(){
	document.getElementById('prodCepPage').value = '';
	document.getElementById('prodCepPage').value = 'Envio via Sedex &rsaquo; ' + document.getElementById('enderecoViewUserTemp').value;
	document.getElementById('priceCepPage').value = '';
	document.getElementById('priceCepPage').value = document.getElementById('valueSedex').value;
}

function copieValuePac(){
	document.getElementById('prodCepPage').value = '';
	document.getElementById('prodCepPage').value = 'Envio via PAC &rsaquo; ' + document.getElementById('enderecoViewUserTemp').value;
	document.getElementById('priceCepPage').value = '';
	document.getElementById('priceCepPage').value = document.getElementById('valuePac').value;
}

function copieValueSedex10(){
	document.getElementById('prodCepPage').value = '';
	document.getElementById('prodCepPage').value = 'Envio via Sedex 10 &rsaquo; ' + document.getElementById('enderecoViewUserTemp').value;
	document.getElementById('priceCepPage').value = '';
	document.getElementById('priceCepPage').value = document.getElementById('valueSedex10').value;
}

function copieValueSedexHoje(){
	document.getElementById('prodCepPage').value = '';
	document.getElementById('prodCepPage').value = 'Envio via Sedex Hoje &rsaquo; ' + document.getElementById('enderecoViewUserTemp').value;
	document.getElementById('priceCepPage').value = '';
	document.getElementById('priceCepPage').value = document.getElementById('valueSedexHoje').value;
}

function ajax()
{
    try {
        return new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        try {
            return new ActiveXObject("Msxml2.XMLHTTP");
        } catch(ex) {
            try {
                return new XMLHttpRequest();
            } catch(exc) {
                alert("Esse browser não tem recursos para uso do AJAX");
                return false;
            }
        }
    }
}


function actionCartSize(){
	document.getElementById('addcart').value == document.getElementById("sizeCart").value;
}

function sendFriends(){
		if(document.getElementById('name').value == ''){
		alert('Campo nome obrigatorio');
	}else{
			if(document.getElementById('name_friend').value == ''){
			alert('Campo nome do amigo obrigatorio');
		}else{	
				if(document.getElementById('mail_friend').value == ''){
				alert('Campo e-mail do amigo obrigatorio');
			}else{	
					if(document.getElementById('msg').value == ''){
					alert('Campo mensagem obrigatorio');
				}
			}
		}
	}
}

function contact(){
		if(document.getElementById('name').value == ''){
		alert('Campo nome obrigatorio');
	}else{
			if(document.getElementById('phone').value == ''){
			alert('Campo telefone obrigatorio');
		}else{	
				if(document.getElementById('city').value == ''){
				alert('Campo cidade obrigatorio');
			}else{	
					if(document.getElementById('email').value == ''){
					alert('Campo e-mail obrigatorio');
				}else{	
						if(document.getElementById('msg').value == ''){
						alert('Campo mensagem obrigatorio');
					}
				}
			}
		}
	}
}

function lojistas(){
		if(document.getElementById('empresa').value == ''){
		alert('Campo empresa obrigatorio');
	}else{
			if(document.getElementById('endereco').value == ''){
			alert('Campo endereco obrigatorio');
		}else{	
				if(document.getElementById('contato').value == ''){
				alert('Campo contato obrigatorio');
			}else{	
					if(document.getElementById('cargo').value == ''){
					alert('Campo cargo obrigatorio');
				}else{	
						if(document.getElementById('fone_comercial').value == ''){
						alert('Campo fone comercial obrigatorio');
					}else{	
							if(document.getElementById('celular').value == ''){
							alert('Campo celular obrigatorio');
						}else{	
								if(document.getElementById('email').value == ''){
								alert('Campo e-mail obrigatorio');
							}else{	
									if(document.getElementById('numero_de_lojas').value == ''){
									alert('Campo numero de lojas obrigatorio');
								}
							}
						}
					}
				}
			}
		}
	}
}

function addLine1(){		
	document.getElementById("addKids1").innerHTML="<div id='leftComment'><select name='saquinho_de_dormir' id='saquinho_de_dormir' value='' class='textInput racksTextarea'><option>Menino</option><option>Menina</option></select>&nbsp;&nbsp;&nbsp;Idade: <input type='text' name='phone' id='phone' value='' size='22' tabindex='2' class='textInput' /></div></div><div id='addKids2'><div id='leftComment'><label>&nbsp;&nbsp;<a href='javascript:addLine2()'>+ Adicionar filhos</a></label></div></div>";
}

function addLine2(){		
	document.getElementById("addKids2").innerHTML="<div id='leftComment'><select name='saquinho_de_dormir' id='saquinho_de_dormir' value='' class='textInput racksTextarea'><option>Menino</option><option>Menina</option></select>&nbsp;&nbsp;&nbsp;Idade: <input type='text' name='phone' id='phone' value='' size='22' tabindex='2' class='textInput' /></div></div><div id='addKids3'><div id='leftComment'><label>&nbsp;&nbsp;<a href='javascript:addLine3()'>+ Adicionar filhos</a></label></div></div>";
}

function addLine3(){		
	document.getElementById("addKids3").innerHTML="<div id='leftComment'><select name='saquinho_de_dormir' id='saquinho_de_dormir' value='' class='textInput racksTextarea'><option>Menino</option><option>Menina</option></select>&nbsp;&nbsp;&nbsp;Idade: <input type='text' name='phone' id='phone' value='' size='22' tabindex='2' class='textInput' /></div></div><div id='addKids4'><div id='leftComment'><label>&nbsp;&nbsp;<a href='javascript:addLine4()'>+ Adicionar filhos</a></label></div></div>";
}

function addLine4(){		
	document.getElementById("addKids4").innerHTML="<div id='leftComment'><select name='saquinho_de_dormir' id='saquinho_de_dormir' value='' class='textInput racksTextarea'><option>Menino</option><option>Menina</option></select>&nbsp;&nbsp;&nbsp;Idade: <input type='text' name='phone' id='phone' value='' size='22' tabindex='2' class='textInput' /></div></div><div id='addKids5'><div id='leftComment'><label>&nbsp;&nbsp;<a href='javascript:addLine5()'>+ Adicionar filhos</a></label></div></div>";
}

function addLine5(){		
	document.getElementById("addKids5").innerHTML="<div id='leftComment'><select name='saquinho_de_dormir' id='saquinho_de_dormir' value='' class='textInput racksTextarea'><option>Menino</option><option>Menina</option></select>&nbsp;&nbsp;&nbsp;Idade: <input type='text' name='phone' id='phone' value='' size='22' tabindex='2' class='textInput' /></div></div><div id='addKids6'><div id='leftComment'><label>&nbsp;&nbsp;<a href='javascript:maxKids()'>+ Adicionar filhos</a></label></div></div>";
}

function removeKids1(){
	document.getElementById("addKids1").innerHTML="<div id='leftComment'><label><i>&nbsp;&nbsp;<a href='javascript:addLine1()'>+ Adicionar filhos</a></i></label></div>";
}

function removeKids2(){
	document.getElementById("addKids2").innerHTML="<div id='leftComment'><label><i>&nbsp;&nbsp;<a href='javascript:addLine2()'>+ Adicionar filhos</a></i></label></div>";
}

function removeKids3(){
	document.getElementById("addKids3").innerHTML="<div id='leftComment'><label><i>&nbsp;&nbsp;<a href='javascript:addLine3()'>+ Adicionar filhos</a></i></label></div>";
}

function removeKids4(){
	document.getElementById("addKids4").innerHTML="<div id='leftComment'><label><i>&nbsp;&nbsp;<a href='javascript:addLine4()'>+ Adicionar filhos</a></i></label></div>";
}

function removeKids5(){
	document.getElementById("addKids5").innerHTML="<div id='leftComment'><label><i>&nbsp;&nbsp;<a href='javascript:addLine5()'>+ Adicionar filhos</a></i></label></div>";
}

function maxKids(){
	alert('Voce adicionou a quantidade maxima de filhos por cadastro.');
}

function colors1_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-06 - Saquinho de Passeio - Petit Poa Azul';
	document.getElementById('item_id').value = 'SP-06';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfTour'; 
}

function colors1_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfTour'; 
}

function colors2_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-07 - Saquinho de Passeio - Petit Poa Lilas';
	document.getElementById('item_id').value = 'SP-07';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfTour'; 
}

function colors2_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfTour'; 
}

function colors3_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-04 - Saquinho de Passeio - Azul';
	document.getElementById('item_id').value = 'SP-04';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfTour'; 	
}

function colors3_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfTour'; 	
}

function colors4_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-05 - Saquinho de Passeio - Lilas';
	document.getElementById('item_id').value = 'SP-05';	
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfTour'; 
}

function colors4_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';	
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfTour'; 
}

function colors5_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-01 - Saquinho de Passeio - Branco';
	document.getElementById('item_id').value = 'SP-01';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfTour'; 
}

function colors5_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfTour'; 
}

function colors6_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-03 - Saquinho de Passeio - Rosa';
	document.getElementById('item_id').value = 'SP-03';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfTour'; 	
}

function colors6_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfTour'; 	
}

function colors7_p(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/7.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = 'SP-02 - Saquinho de Passeio - Verde';
	document.getElementById('item_id').value = 'SP-02';
	document.getElementById('colorFinishProducts').className = 'colors7_BagOfTour'; 
} 

function colors7_p_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/passeio/7.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdTour').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors7_BagOfTour'; 
} 

function colors1_d(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = 'SD-05 - Saquinho de Dormir - Branco';
	document.getElementById('item_id').value = 'SD-05';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfSleep'; 
}

function colors1_d_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfSleep'; 
}

function colors2_d(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = 'SD-03 - Saquinho de Dormir - Branco com Marinho';
	document.getElementById('item_id').value = 'SD-03';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfSleep'; 
}

function colors2_d_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfSleep'; 
}

function colors3_d(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = 'SD-06 - Saquinho de Dormir - Azul';	
	document.getElementById('item_id').value = 'SD-06';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfSleep'; 
}

function colors3_d_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = '';	
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfSleep'; 
}

function colors4_d(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = 'SD-04 - Saquinho de Dormir - Lilas';
	document.getElementById('item_id').value = 'SD-05';
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfSleep'; 
} 

function colors4_d_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfSleep'; 
} 

function colors5_d(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = 'SD-02 - Saquinho de Dormir - Rosa';
	document.getElementById('item_id').value = 'SD-02';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfSleep'; 	
}

function colors5_d_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfSleep'; 	
}

function colors6_d(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = 'SD-01 - Saquinho de Dormir - Cru';
	document.getElementById('item_id').value = 'SD-01';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfSleep'; 	
} 

function colors6_d_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/dormir/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSleep').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfSleep'; 	
} 


function colors1_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-02 - Sling - Lilas';
	document.getElementById('item_id').value = 'SD-02';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfSling'; 
}

function colors1_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfSling'; 
}

function colors2_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-04 - Sling - Caqui';
	document.getElementById('item_id').value = 'SD-04';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfSling'; 
}

function colors2_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfSling'; 
}

function colors3_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-01 - Sling - Verde';	
	document.getElementById('item_id').value = 'SD-01';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfSling'; 
}

function colors3_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';	
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfSling'; 
}

function colors4_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-03 - Sling - Marinho';
	document.getElementById('item_id').value = 'SD-03';
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfSling'; 
} 

function colors4_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfSling'; 
} 

function colors5_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-05 - Sling - Vermelho';
	document.getElementById('item_id').value = 'SD-05';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfSling';
} 

function colors5_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfSling'; 
} 

function colors6_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-06 - Sling - Uva';
	document.getElementById('item_id').value = 'SD-06';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfSling';
} 

function colors6_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfSling'; 
} 

function colors7_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/7.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-07 - Sling - Verde musgo';
	document.getElementById('item_id').value = 'SD-07';
	document.getElementById('colorFinishProducts').className = 'colors7_BagOfSling';
} 

function colors7_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/7.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors7_BagOfSling'; 
} 

function colors8_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/8.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-08 - Sling - Azul indigo';
	document.getElementById('item_id').value = 'SD-08';
	document.getElementById('colorFinishProducts').className = 'colors8_BagOfSling';
} 

function colors8_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/8.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors8_BagOfSling'; 
} 

function colors9_s(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/9.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = 'SL-09 - Sling - Azul bebe';
	document.getElementById('item_id').value = 'SD-09';
	document.getElementById('colorFinishProducts').className = 'colors9_BagOfSling';
} 

function colors9_s_off(){
	document.getElementById('imgProd1').innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/sling/9.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdSling').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors9_BagOfSling'; 
} 

function cleanSearch(){
	document.getElementById('s').value = '';
}

function writeSearch(){
	document.getElementById('s').value = 'Buscar';
}

function onTextbox(){
	document.getElementById('textbox').value = '';
	document.getElementById('textbox').className = 'newsletterHomeOn';
}

function offTextbox(){
	document.getElementById('textbox').className = 'newsletterHomeOff';
}

var swfobject = function() {
	
	var UNDEF = "undefined",
		OBJECT = "object",
		SHOCKWAVE_FLASH = "Shockwave Flash",
		SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
		FLASH_MIME_TYPE = "application/x-shockwave-flash",
		EXPRESS_INSTALL_ID = "SWFObjectExprInst",
		
		win = window,
		doc = document,
		nav = navigator,
		
		domLoadFnArr = [],
		regObjArr = [],
		timer = null,
		storedAltContent = null,
		storedAltContentId = null,
		isDomLoaded = false,
		isExpressInstallActive = false;
	
	/* Centralized function for browser feature detection
		- Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features
		- User agent string detection is only used when no alternative is possible
		- Is executed directly for optimal performance
	*/	
	var ua = function() {
		var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF && typeof doc.appendChild != UNDEF && typeof doc.replaceChild != UNDEF && typeof doc.removeChild != UNDEF && typeof doc.cloneNode != UNDEF,
			playerVersion = [0,0,0],
			d = null;
		if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
			d = nav.plugins[SHOCKWAVE_FLASH].description;
			if (d) {
				d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
				playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
				playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
			}
		}
		else if (typeof win.ActiveXObject != UNDEF) {
			var a = null, fp6Crash = false;
			try {
				a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
			}
			catch(e) {
				try { 
					a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
					playerVersion = [6,0,21];
					a.AllowScriptAccess = "always";  // Introduced in fp6.0.47
				}
				catch(e) {
					if (playerVersion[0] == 6) {
						fp6Crash = true;
					}
				}
				if (!fp6Crash) {
					try {
						a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
					}
					catch(e) {}
				}
			}
			if (!fp6Crash && a) { // a will return null when ActiveX is disabled
				try {
					d = a.GetVariable("$version");  // Will crash fp6.0.21/23/29
					if (d) {
						d = d.split(" ")[1].split(",");
						playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
					}
				}
				catch(e) {}
			}
		}
		var u = nav.userAgent.toLowerCase(),
			p = nav.platform.toLowerCase(),
			webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
			ie = false,
			windows = p ? /win/.test(p) : /win/.test(u),
			mac = p ? /mac/.test(p) : /mac/.test(u);
		/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
		return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac };
	}();

	/* Cross-browser onDomLoad
		- Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
		- Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari)
	*/ 
	var onDomLoad = function() {
		if (!ua.w3cdom) {
			return;
		}
		addDomLoadEvent(main);
		if (ua.ie && ua.win) {
			try {  // Avoid a possible Operation Aborted error
				doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors 
				var s = getElementById("__ie_ondomload");
				if (s) {
					s.onreadystatechange = function() {
						if (this.readyState == "complete") {
							this.parentNode.removeChild(this);
							callDomLoadFunctions();
						}
					};
				}
			}
			catch(e) {}
		}
		if (ua.webkit && typeof doc.readyState != UNDEF) {
			timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10);
		}
		if (typeof doc.addEventListener != UNDEF) {
			doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null);
		}
		addLoadEvent(callDomLoadFunctions);
	}();
	
	function callDomLoadFunctions() {
		if (isDomLoaded) {
			return;
		}
		if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early
			var s = createElement("span");
			try { // Avoid a possible Operation Aborted error
				var t = doc.getElementsByTagName("body")[0].appendChild(s);
				t.parentNode.removeChild(t);
			}
			catch (e) {
				return;
			}
		}
		isDomLoaded = true;
		if (timer) {
			clearInterval(timer);
			timer = null;
		}
		var dl = domLoadFnArr.length;
		for (var i = 0; i < dl; i++) {
			domLoadFnArr[i]();
		}
	}
	
	function addDomLoadEvent(fn) {
		if (isDomLoaded) {
			fn();
		}
		else { 
			domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
		}
	}
	
	/* Cross-browser onload
		- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
		- Will fire an event as soon as a web page including all of its assets are loaded 
	 */
	function addLoadEvent(fn) {
		if (typeof win.addEventListener != UNDEF) {
			win.addEventListener("load", fn, false);
		}
		else if (typeof doc.addEventListener != UNDEF) {
			doc.addEventListener("load", fn, false);
		}
		else if (typeof win.attachEvent != UNDEF) {
			win.attachEvent("onload", fn);
		}
		else if (typeof win.onload == "function") {
			var fnOld = win.onload;
			win.onload = function() {
				fnOld();
				fn();
			};
		}
		else {
			win.onload = fn;
		}
	}
	
	/* Main function
		- Will preferably execute onDomLoad, otherwise onload (as a fallback)
	*/
	function main() { // Static publishing only
		var rl = regObjArr.length;
		for (var i = 0; i < rl; i++) { // For each registered object element
			var id = regObjArr[i].id;
			if (ua.pv[0] > 0) {
				var obj = getElementById(id);
				if (obj) {
					regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0";
					regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0";
					if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match!
						if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements
							fixParams(obj);
						}
						setVisibility(id, true);
					}
					else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only)
						showExpressInstall(regObjArr[i]);
					}
					else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content
						displayAltContent(obj);
					}
				}
			}
			else {  // If no fp is installed, we let the object element do its job (show alternative content)
				setVisibility(id, true);
			}
		}
	}
	
	/* Fix nested param elements, which are ignored by older webkit engines
		- This includes Safari up to and including version 1.2.2 on Mac OS 10.3
		- Fall back to the proprietary embed element
	*/
	function fixParams(obj) {
		var nestedObj = obj.getElementsByTagName(OBJECT)[0];
		if (nestedObj) {
			var e = createElement("embed"), a = nestedObj.attributes;
			if (a) {
				var al = a.length;
				for (var i = 0; i < al; i++) {
					if (a[i].nodeName.toLowerCase() == "data") {
						e.setAttribute("src", a[i].nodeValue);
					}
					else {
						e.setAttribute(a[i].nodeName, a[i].nodeValue);
					}
				}
			}
			var c = nestedObj.childNodes;
			if (c) {
				var cl = c.length;
				for (var j = 0; j < cl; j++) {
					if (c[j].nodeType == 1 && c[j].nodeName.toLowerCase() == "param") {
						e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value"));
					}
				}
			}
			obj.parentNode.replaceChild(e, obj);
		}
	}
	
	/* Fix hanging audio/video threads and force open sockets and NetConnections to disconnect
		- Occurs when unloading a web page in IE using fp8+ and innerHTML/outerHTML
		- Dynamic publishing only
	*/
	function fixObjectLeaks(id) {
		if (ua.ie && ua.win && hasPlayerVersion("8.0.0")) {
			win.attachEvent("onunload", function () {
				var obj = getElementById(id);
				if (obj) {
					for (var i in obj) {
						if (typeof obj[i] == "function") {
							obj[i] = function() {};
						}
					}
					obj.parentNode.removeChild(obj);
				}
			});
		}
	}
	
	/* Show the Adobe Express Install dialog
		- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
	*/
	function showExpressInstall(regObj) {
		isExpressInstallActive = true;
		var obj = getElementById(regObj.id);
		if (obj) {
			if (regObj.altContentId) {
				var ac = getElementById(regObj.altContentId);
				if (ac) {
					storedAltContent = ac;
					storedAltContentId = regObj.altContentId;
				}
			}
			else {
				storedAltContent = abstractAltContent(obj);
			}
			if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) {
				regObj.width = "310";
			}
			if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) {
				regObj.height = "137";
			}
			doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
			var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
				dt = doc.title,
				fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt,
				replaceId = regObj.id;
			// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
			// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			if (ua.ie && ua.win && obj.readyState != 4) {
				var newObj = createElement("div");
				replaceId += "SWFObjectNew";
				newObj.setAttribute("id", replaceId);
				obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf
				obj.style.display = "none";
				win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
			}
			createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId);
		}
	}
	
	/* Functions to abstract and display alternative content
	*/
	function displayAltContent(obj) {
		if (ua.ie && ua.win && obj.readyState != 4) {
			// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
			// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			var el = createElement("div");
			obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content
			el.parentNode.replaceChild(abstractAltContent(obj), el);
			obj.style.display = "none";
			win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
		}
		else {
			obj.parentNode.replaceChild(abstractAltContent(obj), obj);
		}
	}	

	function abstractAltContent(obj) {
		var ac = createElement("div");
		if (ua.win && ua.ie) {
			ac.innerHTML = obj.innerHTML;
		}
		else {
			var nestedObj = obj.getElementsByTagName(OBJECT)[0];
			if (nestedObj) {
				var c = nestedObj.childNodes;
				if (c) {
					var cl = c.length;
					for (var i = 0; i < cl; i++) {
						if (!(c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param") && !(c[i].nodeType == 8)) {
							ac.appendChild(c[i].cloneNode(true));
						}
					}
				}
			}
		}
		return ac;
	}
	
	/* Cross-browser dynamic SWF creation
	*/
	function createSWF(attObj, parObj, id) {
		var r, el = getElementById(id);
		if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
			attObj.id = id;
		}
		if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML
			var att = "";
			for (var i in attObj) {
				if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {}
					if (i == "data") {
						parObj.movie = attObj[i];
					}
					else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
						att += ' class="' + attObj[i] + '"';
					}
					else if (i != "classid") {
						att += ' ' + i + '="' + attObj[i] + '"';
					}
				}
			}
			var par = "";
			for (var j in parObj) {
				if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
					par += '<param name="' + j + '" value="' + parObj[j] + '" />';
				}
			}
			el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
			fixObjectLeaks(attObj.id); // This bug affects dynamic publishing only
			r = getElementById(attObj.id);	
		}
		else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
			var e = createElement("embed");
			e.setAttribute("type", FLASH_MIME_TYPE);
			for (var k in attObj) {
				if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
					if (k == "data") {
						e.setAttribute("src", attObj[k]);
					}
					else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
						e.setAttribute("class", attObj[k]);
					}
					else if (k != "classid") { // Filter out IE specific attribute
						e.setAttribute(k, attObj[k]);
					}
				}
			}
			for (var l in parObj) {
				if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries
					if (l != "movie") { // Filter out IE specific param element
						e.setAttribute(l, parObj[l]);
					}
				}
			}
			el.parentNode.replaceChild(e, el);
			r = e;
		}
		else { // Well-behaving browsers
			var o = createElement(OBJECT);
			o.setAttribute("type", FLASH_MIME_TYPE);
			for (var m in attObj) {
				if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries
					if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
						o.setAttribute("class", attObj[m]);
					}
					else if (m != "classid") { // Filter out IE specific attribute
						o.setAttribute(m, attObj[m]);
					}
				}
			}
			for (var n in parObj) {
				if (parObj[n] != Object.prototype[n] && n != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element
					createObjParam(o, n, parObj[n]);
				}
			}
			el.parentNode.replaceChild(o, el);
			r = o;
		}
		return r;
	}
	
	function createObjParam(el, pName, pValue) {
		var p = createElement("param");
		p.setAttribute("name", pName);	
		p.setAttribute("value", pValue);
		el.appendChild(p);
	}
	
	function getElementById(id) {
		return doc.getElementById(id);
	}
	
	function createElement(el) {
		return doc.createElement(el);
	}
	
	function hasPlayerVersion(rv) {
		var pv = ua.pv, v = rv.split(".");
		v[0] = parseInt(v[0], 10);
		v[1] = parseInt(v[1], 10);
		v[2] = parseInt(v[2], 10);
		return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
	}
	
	/* Cross-browser dynamic CSS creation
		- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
	*/	
	function createCSS(sel, decl) {
		if (ua.ie && ua.mac) {
			return;
		}
		var h = doc.getElementsByTagName("head")[0], s = createElement("style");
		s.setAttribute("type", "text/css");
		s.setAttribute("media", "screen");
		if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) {
			s.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
		}
		h.appendChild(s);
		if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
			var ls = doc.styleSheets[doc.styleSheets.length - 1];
			if (typeof ls.addRule == OBJECT) {
				ls.addRule(sel, decl);
			}
		}
	}
	
	function setVisibility(id, isVisible) {
		var v = isVisible ? "visible" : "hidden";
		if (isDomLoaded) {
			getElementById(id).style.visibility = v;
		}
		else {
			createCSS("#" + id, "visibility:" + v);
		}
	}
	
	function getTargetVersion(obj) {
	    if (!obj)
	        return 0;
		var c = obj.childNodes;
		var cl = c.length;
		for (var i = 0; i < cl; i++) {
			if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
			    c = c[i].childNodes;
			    cl = c.length;
			    i = 0;
			}     
			if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "swfversion") {
			   return c[i].getAttribute("value"); 
			}
		}
		return 0;
	}
    
	function getExpressInstall(obj) {
	    if (!obj)
	        return "";
		var c = obj.childNodes;
		var cl = c.length;
		for (var i = 0; i < cl; i++) {
			if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
			    c = c[i].childNodes;
			    cl = c.length;
			    i = 0;
			}     
			if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "expressinstall") { 
			    return c[i].getAttribute("value"); 
			}	       
		}
		return "";
	}
    
	return {
		/* Public API
			- Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation
		*/ 
		registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) {
			if (!ua.w3cdom || !objectIdStr) {
				return;
			}
			var obj = document.getElementById(objectIdStr);
			var xi = getExpressInstall(obj);
			var regObj = {};
			regObj.id = objectIdStr;
			regObj.swfVersion = swfVersionStr ? swfVersionStr : getTargetVersion(obj);
			regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : ((xi != "") ? xi : false);
			regObjArr[regObjArr.length] = regObj;
			setVisibility(objectIdStr, false);
		},
		
		getObjectById: function(objectIdStr) {
			var r = null;
			if (ua.w3cdom && isDomLoaded) {
				var o = getElementById(objectIdStr);
				if (o) {
					var n = o.getElementsByTagName(OBJECT)[0];
					if (!n || (n && typeof o.SetVariable != UNDEF)) {
				    	r = o;
					}
					else if (typeof n.SetVariable != UNDEF) {
						r = n;
					}
				}
			}
			return r;
		},
		
		embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) {
			if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) {
				return;
			}
			widthStr += ""; // Auto-convert to string to make it idiot proof
			heightStr += "";
			if (hasPlayerVersion(swfVersionStr)) {
				setVisibility(replaceElemIdStr, false);
				var att = (typeof attObj == OBJECT) ? attObj : {};
				att.data = swfUrlStr;
				att.width = widthStr;
				att.height = heightStr;
				var par = (typeof parObj == OBJECT) ? parObj : {};
				if (typeof flashvarsObj == OBJECT) {
					for (var i in flashvarsObj) {
						if (flashvarsObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries
							if (typeof par.flashvars != UNDEF) {
								par.flashvars += "&" + i + "=" + flashvarsObj[i];
							}
							else {
								par.flashvars = i + "=" + flashvarsObj[i];
							}
						}
					}
				}
				addDomLoadEvent(function() {
					createSWF(att, par, replaceElemIdStr);
					if (att.id == replaceElemIdStr) {
						setVisibility(replaceElemIdStr, true);
					}
				});
			}
			else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) {
				setVisibility(replaceElemIdStr, false);
				addDomLoadEvent(function() {
					var regObj = {};
					regObj.id = regObj.altContentId = replaceElemIdStr;
					regObj.width = widthStr;
					regObj.height = heightStr;
					regObj.expressInstall = xiSwfUrlStr;
					showExpressInstall(regObj);
				});
			}
		},
		
		getFlashPlayerVersion: function() {
			return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
		},
		
		hasFlashPlayerVersion:hasPlayerVersion,
		
		createSWF: function(attObj, parObj, replaceElemIdStr) {
			if (ua.w3cdom && isDomLoaded) {
				return createSWF(attObj, parObj, replaceElemIdStr);
			}
			else {
				return undefined;
			}
		},
		
		createCSS: function(sel, decl) {
			if (ua.w3cdom) {
				createCSS(sel, decl);
			}
		},
		
		addDomLoadEvent:addDomLoadEvent,
		
		addLoadEvent:addLoadEvent,
		
		getQueryParamValue: function(param) {
			var q = doc.location.search || doc.location.hash;
			if (param == null) {
				return q;
			}
		 	if(q) {
				var pairs = q.substring(1).split("&");
				for (var i = 0; i < pairs.length; i++) {
					if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
						return pairs[i].substring((pairs[i].indexOf("=") + 1));
					}
				}
			}
			return "";
		},
		
		// For internal usage only
		expressInstallCallback: function() {
			if (isExpressInstallActive && storedAltContent) {
				var obj = getElementById(EXPRESS_INSTALL_ID);
				if (obj) {
					obj.parentNode.replaceChild(storedAltContent, obj);
					if (storedAltContentId) {
						setVisibility(storedAltContentId, true);
						if (ua.ie && ua.win) {
							storedAltContent.style.display = "block";
						}
					}
					storedAltContent = null;
					storedAltContentId = null;
					isExpressInstallActive = false;
				}
			} 
		}
		
	};

}();

function deleteKids1(){
	document.getElementById("addKids1").innerHTML = '';
}

function deleteKids2(){
	document.getElementById("addKids2").innerHTML = '';
}

function deleteKids3(){
	document.getElementById("addKids3").innerHTML = '';
}

function deleteKids4(){
	document.getElementById("addKids4").innerHTML = '';
}

function deleteKids5(){
	document.getElementById("addKids5").innerHTML = '';
}

function deleteKids6(){
	document.getElementById("addKids6").innerHTML = '';
}

function tabsHowToUse1(){
	document.getElementById('tabsHowToUse1').className = 'tabsHowToUse1_On';
	document.getElementById('tabsHowToUse2').className = 'tabsHowToUse1_Off';
	document.getElementById('tabsHowToUse3').className = 'tabsHowToUse1_Off';
	window.location='#tabsHowToUse1';
}

function tabsHowToUse2(){
	document.getElementById('tabsHowToUse1').className = 'tabsHowToUse1_Off';
	document.getElementById('tabsHowToUse2').className = 'tabsHowToUse1_On';
	document.getElementById('tabsHowToUse3').className = 'tabsHowToUse1_Off';
	window.location='#tabsHowToUse2';
}

function tabsHowToUse3(){
	document.getElementById('tabsHowToUse1').className = 'tabsHowToUse1_Off';
	document.getElementById('tabsHowToUse2').className = 'tabsHowToUse1_Off';
	document.getElementById('tabsHowToUse3').className = 'tabsHowToUse1_On';
	window.location='#tabsHowToUse3';
}

function colors1_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-01 - Saquinho Pijama Cru';
	document.getElementById('item_id').value = 'SPI-01';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfPijama'; 
}

function colors1_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/1.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors1_BagOfPijama'; 
}


function colors2_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-02 - Saquinho Pijama Rosa';
	document.getElementById('item_id').value = 'SPI-02';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfPijama'; 
}

function colors2_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/2.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors2_BagOfPijama'; 
}

function colors3_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-03 - Saquinho Pijama Azul';
	document.getElementById('item_id').value = 'SPI-03';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfPijama'; 
}

function colors3_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/3.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors3_BagOfPijama'; 
}

function colors4_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-04 - Saquinho Pijama São Paulo';
	document.getElementById('item_id').value = 'SPI-04';
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfPijama'; 
}

function colors4_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/4.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors4_BagOfPijama'; 
}

function colors5_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-05 - Saquinho Pijama Santos';
	document.getElementById('item_id').value = 'SPI-05';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfPijama'; 
}

function colors5_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/5.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors5_BagOfPijama'; 
}

function colors6_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-06 - Saquinho Pijama Palmeiras';
	document.getElementById('item_id').value = 'SPI-06';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfPijama'; 
}

function colors6_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/6.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors6_BagOfPijama'; 
}

function colors7_pijama(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/7.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = 'SPI-07 - Saquinho Pijama Corinthians';
	document.getElementById('item_id').value = 'SPI-07';
	document.getElementById('colorFinishProducts').className = 'colors7_BagOfPijama'; 
}

function colors7_pijama_off(){
	document.getElementById("imgProd1").innerHTML="<img src='http://www.bebecasulo.com.br/wp-content/themes/bebecasulo/images/imgProducts/pijama/7.jpg' width='300' height='540' border='0' />";
	document.getElementById('xProdPijama').value = '';
	document.getElementById('item_id').value = '';
	document.getElementById('colorFinishProducts').className = 'colors7_BagOfPijama'; 
}
	