/* product demo ajax */
function showDemo()
{
    var currTabElem;

    currTabElem = document.getElementById("intro");
    currTabElem.style.visibility = "hidden";

    currTabElem = document.getElementById("product_tour");
    currTabElem.style.visibility = "visible";
}

function hideDemo()
{
    var currTabElem;

    currTabElem = document.getElementById("intro");
    currTabElem.style.visibility = "visible";

    currTabElem = document.getElementById("product_tour");
    currTabElem.style.visibility = "hidden";
}


/*jason is here*/
function playVideo(num) {
    //toggle now!
    if (document.getElementById('shareblock').style.display == 'block'){
        document.getElementById('vsource').src = 'templates/flash/video/blank.html';
        document.getElementById('shareblock').style.display = 'none';//disable popflash
        
        document.getElementById('flash_piece').style.display = 'block';//enable main flash
    }else {
        document.getElementById('vsource').src = 'templates/flash/video/player'+num+'/index.html';
        document.getElementById('flash_piece').style.display = 'none';//disable main flash
        document.getElementById('shareblock').style.display = 'block';//enable pop flsh
    }
}

function resetClasses() {
	$("#left_nav #contour").css({backgroundImage: "url(templates/content/left_nav_1.gif)"});
	$("#left_nav #breeze2").css({backgroundImage: "url(templates/content/left_nav_2.gif)"});
	$("#left_nav #a1cnow_selfcheck").css({backgroundImage: "url(templates/content/left_nav_39.gif)"});
	$("#left_nav #no_coding_technology").css({backgroundImage: "url(templates/content/leftnav_nocodingtech.gif)"});
	$("#left_nav #lancing_devices").css({backgroundImage: "url(templates/content/left_nav_3.gif)"});
	$("#left_nav #medicare_coverage").css({backgroundImage: "url(templates/content/left_nav_4.gif)"});
	$("#left_nav #registration").css({backgroundImage: "url(templates/content/left_nav_9.gif)"});
	$("#left_nav #upgrade").css({backgroundImage: "url(templates/content/left_nav_10.gif)"});
	$("#left_nav #software").css({backgroundImage: "url(templates/content/left_nav_11.gif)"});
	$("#left_nav #product_support").css({backgroundImage: "url(templates/content/left_nav_12.gif)"});
	$("#left_nav #newly_diagnosed").css({backgroundImage: "url(templates/content/left_nav_17.gif)"});
	$("#left_nav #treatment").css({backgroundImage: "url(templates/content/left_nav_18.gif)"});
	$("#left_nav #controlling").css({backgroundImage: "url(templates/content/left_nav_19.gif)"});
	$("#left_nav #testing").css({backgroundImage: "url(templates/content/left_nav_20.gif)"});
	$("#left_nav #complications").css({backgroundImage: "url(templates/content/left_nav_21.gif)"});
	$("#left_nav #resources").css({backgroundImage: "url(templates/content/left_nav_22.gif)"});
	}
	
function clickLeftNav(leftNavName,leftNavNum) {
	//$("#left_nav .tertiary").css({display: "none"});
	//$(leftNavName).next('ul').css({display: "block"});	
	resetClasses();
	$(leftNavName).css({backgroundImage: "url(templates/content/left_nav_" + leftNavNum + ".gif)"});
	}

function resetHovers() {
	$("#callout3 h4 .href_01").hover(function() {
		$(this).css({backgroundPosition: "-10px -39px"});
		}, function() {
		$(this).css({backgroundPosition: "-10px top"});
	});
	$("#callout3 h4 .href_02").hover(function() {
		$(this).css({backgroundPosition: "-32px -39px"});
		}, function() {
		$(this).css({backgroundPosition: "-32px top"});
	});
	$("#callout3 h4 .href_03").hover(function() {
		$(this).css({backgroundPosition: "-54px -39px"});
		}, function() {
		$(this).css({backgroundPosition: "-54px top"});
	});
	$("#callout3 h4 .href_04").hover(function() {
		$(this).css({backgroundPosition: "-76px -39px"});
		}, function() {
		$(this).css({backgroundPosition: "-76px top"});
	});
	$("#callout3 h4 .href_05").hover(function() {
		$(this).css({backgroundPosition: "-98px -39px"});
		}, function() {
		$(this).css({backgroundPosition: "-98px top"});
	}); //enabled
	$("#callout3 h4 .href_06").hover(function() {
		$(this).css({backgroundPosition: "-120px -39px"});
		}, function() {
		$(this).css({backgroundPosition: "-120px top"});
	});
	}	
	
function nextSlide(slideNum) {
	slideNum++;
	
	
	// define loop slide (last slide)
	if(slideNum==5) {slideNum=1;}
	//if(slideNum==7) {slideNum=1;}
	
	$("#callout3 #cslide_01").css({display: "none"});
	$("#callout3 #cslide_02").css({display: "none"});
	$("#callout3 #cslide_03").css({display: "none"});
	$("#callout3 #cslide_04").css({display: "none"});
	$("#callout3 #cslide_05").css({display: "none"});//enabled
	$("#callout3 #cslide_06").css({display: "none"});

	$("#callout3 #cslide_0" + slideNum).css({display: "block"});
	//$("#callout3 #cslide_0" + slideNum + " img").css({display: "none"});
	//$("#callout3 #cslide_0" + slideNum + " img").fadeIn('slow');
	
	$("#callout3 h4 .href_01").css({backgroundPosition: "-10px top"});
	$("#callout3 h4 .href_02").css({backgroundPosition: "-32px top"});
	$("#callout3 h4 .href_03").css({backgroundPosition: "-54px top"});
	$("#callout3 h4 .href_04").css({backgroundPosition: "-76px top"});
	$("#callout3 h4 .href_05").css({backgroundPosition: "-98px top"});//enabled
	$("#callout3 h4 .href_06").css({backgroundPosition: "-120px top"});
	
	$("#callout3 h4 .href_0" + slideNum).css({backgroundPosition: -10 + -22 * (slideNum - 1) + "px -39px"});
	
	resetHovers();
	
	$("#callout3 h4 .href_0" + slideNum).hover(function() {
		$(this).css({backgroundPosition: -10 + -22 * (slideNum - 1) + "px -39px"});
		}, function() {
		$(this).css({backgroundPosition: -10 + -22 * (slideNum - 1) + "px -39px"});
	});
	
	t = setTimeout("nextSlide(" + slideNum + ")",5000);
	}
	
function stopSlide(slideNum) {
	clearTimeout(t);
	
	$("#callout3 #cslide_01").css({display: "none"});
	$("#callout3 #cslide_02").css({display: "none"});
	$("#callout3 #cslide_03").css({display: "none"});
	$("#callout3 #cslide_04").css({display: "none"});
	$("#callout3 #cslide_05").css({display: "none"});
	$("#callout3 #cslide_06").css({display: "none"});//enabled

	$("#callout3 #cslide_0" + slideNum).css({display: "block"});
	
	$("#callout3 h4 .href_01").css({backgroundPosition: "-10px top"});
	$("#callout3 h4 .href_02").css({backgroundPosition: "-32px top"});
	$("#callout3 h4 .href_03").css({backgroundPosition: "-54px top"});
	$("#callout3 h4 .href_04").css({backgroundPosition: "-76px top"});
	$("#callout3 h4 .href_05").css({backgroundPosition: "-98px top"});
	$("#callout3 h4 .href_06").css({backgroundPosition: "-120px top"});//enabled
	
	$("#callout3 h4 .href_0" + slideNum).css({backgroundPosition: -10 + -22 * (slideNum - 1) + "px -39px"});
	
	resetHovers();
	
	$("#callout3 h4 .href_0" + slideNum).hover(function() {
		$(this).css({backgroundPosition: -10 + -22 * (slideNum - 1) + "px -39px"});
		}, function() {
		$(this).css({backgroundPosition: -10 + -22 * (slideNum - 1) + "px -39px"});
	});
	}

$(document).ready(function(){
	$("#header #mini_nav li:last-child").css({padding: "0 0 0 9px", background: "none"});
	$("#footer .bottom_nav li:last-child").css({padding: "0 0 0 7px", background: "none"});
	
	$("#callout1 h4 a").hover(function() {
		$(this).parent().addClass('hover');
		}, function() {
		$(this).parent().removeClass('hover');
	});
	$("#callout2 h4 a").hover(function() {
		$(this).parent().addClass('hover');
		}, function() {
		$(this).parent().removeClass('hover');
	});
	$("#already_have_meter #register a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_register.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_register.gif) left 0px no-repeat;"});
	});
	$("#already_have_meter #easy_care a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_easy_care.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_easy_care.gif) left 0px no-repeat;"});
	});
	$("#have_an_old_meter h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_upgrade_for_free.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_upgrade_for_free.gif) left 0px no-repeat;"});
	});
	$("#looking_for_tools h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_join_easy_care.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_join_easy_care.gif) left 0px no-repeat;"});
	});
	$("#want_to_upgrade h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_get_a_new.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_get_a_new.gif) left 0px no-repeat;"});
	});
	$("#product_360 h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/free_breeze.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/free_breeze.gif) left 0px no-repeat;"});
	});
	$("#contour_360 h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_get_free_contour.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_get_free_contour.gif) left 0px no-repeat;"});
	});
	$("#callout_contour h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_learn_more.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_learn_more.gif) left 0px no-repeat;"});
	});
	$("#callout_breeze2 h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_learn_more.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_learn_more.gif) left 0px no-repeat;"});
	});
	$("#get_free_contour h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_sign_up.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_sign_up.gif) left 0px no-repeat;"});
	});
	$("#get_free_breeze2 h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_sign_up.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_sign_up.gif) left 0px no-repeat;"});
	});
	$("#whats_medicare h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_learn_more.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_learn_more.gif) left 0px no-repeat;"});
	});
	$("#which_bayer_meter h4 a").hover(function() {
		$(this).parent().css({background: "transparent url(templates/content/op_find_out_now.gif) left bottom no-repeat;"});
		}, function() {
		$(this).parent().css({background: "transparent url(templates/content/op_find_out_now.gif) left 0px no-repeat;"});
	});
	
	$("#left_nav .tertiary").css({display: "none"});
	
	$("#product_360 #see_360_demo").click(function(){
		window.open(this.href,'BREEZEDemo','width=760,height=542,left=100,top=100,screenX=100,screenY=100');
		return false;
		});
	$("#breeze_demo").click(function(){
		window.open(this.href,'BREEZEDemo','width=760,height=542,left=100,top=100,screenX=100,screenY=100');
		return false;
		});
	$("#breeze_360_demo").click(function(){
		window.open(this.href,'BREEZEDemo','width=760,height=542,left=100,top=100,screenX=100,screenY=100');
		return false;
		});
	$("#contour_360 #see_360_demo").click(function(){
		window.open(this.href,'CONTOURDemo','width=708,height=532,left=100,top=100,screenX=100,screenY=100');
		return false;
		});
	$("#contour_demo").click(function(){
		window.open(this.href,'CONTOURDemo','width=708,height=532,left=100,top=100,screenX=100,screenY=100');
		return false;
		});

	$("#contour_360_demo").click(function(){
		window.open(this.href,'CONTOURDemo','width=708,height=532,left=100,top=100,screenX=100,screenY=100');
		return false;
		});
		
	$("#callout3_video").click(function(){
		window.open(this.href,'callout3_video','width=488,height=288');
		return false;
		});	
	$("#callout3_video2").click(function(){
		window.open(this.href,'callout3_video2','width=488,height=288');
		return false;
		});
	
	$("#left_nav #contour").click(function(){
		//clickLeftNav("#left_nav #contour",5);
		});
	$("#left_nav #breeze2").click(function(){
		//clickLeftNav("#left_nav #breeze2",6);
		});
	$("#left_nav #a1cnow_selfcheck").click(function(){
		//clickLeftNav("#left_nav #a1cnow_selfcheck",40);
		});
	$("#left_nav #no_coding_technology").click(function(){
		//clickLeftNav("#left_nav #lancing_devices",7);
		});
	$("#left_nav #lancing_devices").click(function(){
		//clickLeftNav("#left_nav #lancing_devices",7);
		});
	$("#left_nav #medicare_coverage").click(function(){
		//clickLeftNav("#left_nav #medicare_coverage",8);		
		});
	$("#left_nav #registration").click(function(){
		//clickLeftNav("#left_nav #registration",13);		
		});
	$("#left_nav #upgrade").click(function(){
		//clickLeftNav("#left_nav #upgrade",14);		
		});
	$("#left_nav #software").click(function(){
		//clickLeftNav("#left_nav #software",15);		
		});
	$("#left_nav #product_support").click(function(){
		//clickLeftNav("#left_nav #product_support",16);		
		});
	$("#left_nav #newly_diagnosed").click(function(){
		//clickLeftNav("#left_nav #newly_diagnosed",23);		
		});
	$("#left_nav #treatment").click(function(){
		//clickLeftNav("#left_nav #treatment",24);		
		});
	$("#left_nav #controlling").click(function(){
		//clickLeftNav("#left_nav #controlling",25);		
		});
	$("#left_nav #testing").click(function(){
		//clickLeftNav("#left_nav #testing",26);		
		});
	$("#left_nav #complications").click(function(){
		//clickLeftNav("#left_nav #complications",27);		
		});
	$("#left_nav #resources").click(function(){
		//clickLeftNav("#left_nav #resources",28);		
		});
	$("#left_nav #contour_meter").click(function(){
		//clickLeftNav("#left_nav #contour_meter",33);		
		});
	$("#left_nav #breeze2_meter").click(function(){
		//clickLeftNav("#left_nav #resources",34);		
		});
	$("#left_nav #a1cnow").click(function(){
		//clickLeftNav("#left_nav #a1cnow",38);		
		});
	$("#left_nav #winglucofacts").click(function(){
		//clickLeftNav("#left_nav #resources",35);		
		});
		
	$("#left_nav > li > a, #left_nav ul.tertiary li > a").hover(function() {
		$(this).css({backgroundColor: "#d5f2fb"});
		}, function() {
		$(this).css({backgroundColor: "#eaf6fd"});
	});
		
	$("#light_blue_box p:last-child").css({margin: "0"});
	
	$("#callout3 h4 .href_01").click(function(){stopSlide(1);});
	$("#callout3 h4 .href_02").click(function(){stopSlide(2);});
	$("#callout3 h4 .href_03").click(function(){stopSlide(3);});
	$("#callout3 h4 .href_04").click(function(){stopSlide(4);});
	$("#callout3 h4 .href_05").click(function(){stopSlide(5);});//enabled
	$("#callout3 h4 .href_06").click(function(){stopSlide(6);});
	
	$("body.contour_meter #left_nav #contour").css({backgroundImage: "url(templates/content/left_nav_5.gif)"});
	$("body.contour_meter #left_nav #contour").next('ul').css({display: "block"});
	$("body.contour_no_coding #left_nav #contour").css({backgroundImage: "url(templates/content/left_nav_5.gif)"});
	$("body.contour_no_coding #left_nav #contour").next('ul').css({display: "block"});
	$("body.contour_color #left_nav #contour").css({backgroundImage: "url(templates/content/left_nav_5.gif)"});
	$("body.contour_color #left_nav #contour").next('ul').css({display: "block"});
	$("body.contour_ts_meter #left_nav #contour").css({backgroundImage: "url(templates/content/left_nav_5.gif)"});
	$("body.contour_ts_meter #left_nav #contour").next('ul').css({display: "block"});
	$("body.breeze2_meter #left_nav #breeze2").css({backgroundImage: "url(templates/content/left_nav_6.gif)"});
	$("body.breeze2_meter #left_nav #breeze2").next('ul').css({display: "block"});
	$("body.breeze2_no_coding #left_nav #breeze2").css({backgroundImage: "url(templates/content/left_nav_6.gif)"});
	$("body.breeze2_no_coding #left_nav #breeze2").next('ul').css({display: "block"});
	$("body.a1cnow_selfcheck #left_nav #a1cnow_selfcheck").css({backgroundImage: "url(templates/content/left_nav_40.gif)"});
	$("body.a1cnow_selfcheck #left_nav #a1cnow_selfcheck").next('ul').css({display: "block"});
	$("body.no_coding_technology #left_nav #no_coding_technology").css({backgroundImage: "url(templates/content/leftnav_nocodingtech_on.gif)"});
	$("body.no_coding_technology #left_nav #no_coding_technology").next('ul').css({display: "block"});
	$("body.lancing_devices #left_nav #lancing_devices").css({backgroundImage: "url(templates/content/left_nav_7.gif)"});
	$("body.lancing_devices #left_nav #lancing_devices").next('ul').css({display: "block"});
	$("body.medicare_coverage #left_nav #medicare_coverage").css({backgroundImage: "url(templates/content/left_nav_8.gif)"});
	$("body.medicare_coverage #left_nav #medicare_coverage").next('ul').css({display: "block"});
	$("body.registration #left_nav #registration").css({backgroundImage: "url(templates/content/left_nav_13.gif)"});
	$("body.registration #left_nav #registration").next('ul').css({display: "block"});
	$("body.upgrade #left_nav #upgrade").css({backgroundImage: "url(templates/content/left_nav_14.gif)"});
	$("body.upgrade #left_nav #upgrade").next('ul').css({display: "block"});
	$("body.software #left_nav #software").css({backgroundImage: "url(templates/content/left_nav_15.gif)"});
	$("body.software #left_nav #software").next('ul').css({display: "block"});
	$("body.product_support #left_nav #product_support").css({backgroundImage: "url(templates/content/left_nav_16.gif)"});
	$("body.product_support #left_nav #product_support").next('ul').css({display: "block"});
	$("body.newly_diagnosed #left_nav #newly_diagnosed").css({backgroundImage: "url(templates/content/left_nav_23.gif)"});
	$("body.newly_diagnosed #left_nav #newly_diagnosed").next('ul').css({display: "block"});
	$("body.treatment #left_nav #treatment").css({backgroundImage: "url(templates/content/left_nav_24.gif)"});
	$("body.treatment #left_nav #treatment").next('ul').css({display: "block"});
	$("body.controlling #left_nav #controlling").css({backgroundImage: "url(templates/content/left_nav_25.gif)"});
	$("body.controlling #left_nav #controlling").next('ul').css({display: "block"});
	$("body.testing #left_nav #testing").css({backgroundImage: "url(templates/content/left_nav_26.gif)"});
	$("body.testing #left_nav #testing").next('ul').css({display: "block"});
	$("body.complications #left_nav #complications").css({backgroundImage: "url(templates/content/left_nav_27.gif)"});
	$("body.complications #left_nav #complications").next('ul').css({display: "block"});
	$("body.resources #left_nav #resources").css({backgroundImage: "url(templates/content/left_nav_28.gif)"});
	$("body.resources #left_nav #resources").next('ul').css({display: "block"});
	$("body.hcp_contour_meter #left_nav #contour_meter").css({backgroundImage: "url(templates/content/left_nav_33.gif)"});
	$("body.hcp_contour_meter #left_nav #contour_meter").next('ul').css({display: "block"});
	$("body.hcp_breeze2_meter #left_nav #breeze2_meter").css({backgroundImage: "url(templates/content/left_nav_34.gif)"});
	$("body.hcp_breeze2_meter #left_nav #breeze2_meter").next('ul').css({display: "block"});
	$("body.hcp_a1cnow #left_nav #a1cnow").css({backgroundImage: "url(templates/content/left_nav_38.gif)"});
	$("body.hcp_a1cnow #left_nav #a1cnow").next('ul').css({display: "block"});
	$("body.hcp_winglucofacts #left_nav #winglucofacts").css({backgroundImage: "url(templates/content/left_nav_35.gif)"});
	$("body.hcp_winglucofacts #left_nav #winglucofacts").next('ul').css({display: "block"});
	$("body.hcp_product_support #left_nav #product_support").css({backgroundImage: "url(templates/content/left_nav_36.gif)"});
	$("body.hcp_product_support #left_nav #product_support").next('ul').css({display: "block"});
	
	//$("body.our_products #our_products .td:even").css({backgroundColor: "#cceafc"});
	//$("body.our_products #our_products .td:odd").css({backgroundColor: "#e6f4fd"});
		
	resetHovers();
	nextSlide(0);
	
	/* Simple Meter Registration Validation */
	$("body.registration #next").click(function(){
		if (document.registration.first_name.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#first_name").css({color: "#CC0000"});
			alert('Error: "First Name" is a required field');
			return false;
			}
		if (document.registration.last_name.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#last_name").css({color: "#CC0000"});
			alert('Error: "Last Name" is a required field');
			return false;
			}
		if (document.registration.home_address.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#home_address").css({color: "#CC0000"});
			alert('Error: "Home Address" is a required field');
			return false;
			}
		if (document.registration.city.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#city").css({color: "#CC0000"});
			alert('Error: "City" is a required field');
			return false;
			}
		if (document.registration.state.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#state").css({color: "#CC0000"});
			alert('Error: "State" is a required field');
			return false;
			}
		if (document.registration.zip.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#zip").css({color: "#CC0000"});
			alert('Error: "Zip" is a required field');
			return false;
			}
		if (document.registration.home_phone.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#home_phone").css({color: "#CC0000"});
			alert('Error: "Home Phone" is a required field');
			return false;
			}
		if (document.registration.model_number.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#model_number").css({color: "#CC0000"});
			alert('Error: "Model Number" is a required field');
			return false;
			}
		if (document.registration.serial_number.value == "") {
			$("label").css({color: "#5A5A5A"});
			$("label#serial_number").css({color: "#CC0000"});
			alert('Error: "Serial Number" is a required field');
			return false;
			}
		document.registration.submit();
		});
	
	$("body.registration #clear_all").click(function(){
		document.registration.salutation.value = "";
		document.registration.first_name.value = "";
		document.registration.middle_initial.value = "";
		document.registration.last_name.value = "";
		document.registration.home_address.value = "";
		document.registration.address_line_2.value = "";
		document.registration.city.value = "";
		document.registration.state.value = "";
		document.registration.zip.value = "";
		document.registration.zip2.value = "";
		document.registration.home_phone.value = "";
		document.registration.work_phone.value = "";
		document.registration.email.value = "";
		document.registration.model_number.value = "";
		document.registration.serial_number.value = "";
		document.registration.month_received.value = "";
		document.registration.day_received.value = "";
		document.registration.year_received.value = "";
	});
		
	$("#print_page a").click(function(){
		window.print();
		return false;
		});
		
	$("body.medicare_coverage").parent().addClass('no_background');
	$("body.treatment").parent().addClass('no_background');
	$("body.complications").parent().addClass('no_background');
	$("body.resources").parent().addClass('no_background');
	$("body.hcp_winglucofacts").parent().addClass('no_background');
	$("body.hcp_product_support").parent().addClass('no_background');
	$("body.hcp_events_and_research").parent().addClass('no_background');
	$("body.hcp_patient_tools").parent().addClass('no_background');
	
	$(document).pngFix();
});

