﻿/***************************/
//@Author: Adrian "yEnS" Mato Gondelle
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

//SETTING UP OUR POPUP
//0 means disabled; 1 means enabled;
var popupStatus = 0;



//loading popup with jQuery magic!
function loadPopup(){
	//loads popup only if it is disabled
	if(popupStatus==0){
		$("#backgroundPopup").css({
			"opacity": "0.7"
		});
		$("#backgroundPopup").fadeIn("slow");
		$("#popupContact").fadeIn("slow");
		popupStatus = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup(){
	//disables popup only if it is enabled
	if(popupStatus==1){
		$("#backgroundPopup").fadeOut("slow");
		$("#popupContact").fadeOut("slow");
		popupStatus = 0;
	}
}

//centering popup
function centerPopup(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popupContact").height();
	var popupWidth = $("#popupContact").width();
	//centering
	$("#popupContact").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#backgroundPopup").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button").click(function(){
		//centering with css
		centerPopup();
		//load popup
		loadPopup();
		
		setMeta();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$("#popupContactClose").click(function(){
		disablePopup();
		resetMeta();
	});
	//Click out event!
	$("#backgroundPopup").click(function(){
		disablePopup();
		resetMeta();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus==1){
			disablePopup();
			resetMeta();
		}
	});

});

function setMeta(){
	document.title="THE CARP GROUP  MEMBERSHIP PROGRAM";
	
	var metatags = document.getElementsByTagName("meta");
	  // Iterate through the array, listing them all

    // Update only the Title meta tag

    for (cnt = 0; cnt < metatags.length; cnt++)

    {

        var name = metatags[cnt].getAttribute("name");

        var content = metatags[cnt].getAttribute("content");



      
        //alert(name + " = " + content + "");



        // Update the Title meta tag

        if (metatags[cnt].getAttribute("name") == "description")

              metatags[cnt].setAttribute("content", "The CARP Group Membership Program enables companies, associations, clubs, labor unions and other organizations to offer CARP membership to their employees, retirees or members – at a significant discount, and with important benefits to the sponsoring organization. CARP is Canada’s oldest, largest and most influential association for Zoomers. CARP members benefit three ways: Advocacy CARP works hard at all levels of government to promote policies that are important to Zoomers. Benefits CARP members can save hundreds, even thousands, of dollars a year in “members-only” discounts and value added services. Members also receive ZOOMER Magazine (issued 9 times a year), covering the latest trends and hot-button issues of the Zoomer revolution. Community CARP has a rapidly-expanding network of Chapters throughout the country, that provide opportunities for members to get involved and support community activity. CARP membership is valuable – and by being able to offer it to your employees, associates or members at a discount, you enhance the value of your own organization. We are pleased to offer you this CARP Group Membership Program, and we look forward to working with your organization. PROFILE OF CARP Founded in 1984, CARP has over 330,000 members across Canada. Over the years CARP has built a reputation as a strong advocate, fighting for programs and policies that affect the vital interests of Canada’s 14.5 million people over the age of 45. CARP is now led by media legend Moses Znaimer, who popularized the term “Zoomers” to refer to this age group, and who refocused and redefined CARP’s mission as “A New Vision Of Aging For Canada.” Moses Znaimer saw that people today want to stay active and involved, that they still have hopes and dreams and plans for the future, that aging does not have to be only about decline or helplessness. His insights immediately resonated with the audience – the word “Zoomer” swept into popular usage overnight, and Znaimer declared a ‘March to a Million’ to make CARP even more powerful…and to deliver even more value to members. Since assuming the leadership of CARP at the beginning of 2008, Moses Znaimer has moved quickly to strengthen the organization: SUSAN ENG was named Vice President, Advocacy A noted community activist, Susan has sharpened the focus of CARP’s advocacy efforts, drawing on her long experience in working with all levels of government. ERIC VENGROFF was named Vice President, Benefits & General Manager Eric has served as a senior executive with both CARP and ZoomerMedia. An experienced businessman, he has been actively involved in building CARP member benefits for over 10 years. ROSS MAYOT was named Vice President, Community Development As a former educational broadcasting executive, Ross has quickly expanded the number of CARP Chapters, and is continuously reaching out to constituencies not previously served. CARP Magazine was re-launched as ZOOMER Magazine, under the editorship of magazine icon Suzanne Boyd, former editor of FLARE. For the first time, the magazine is available on newsstands nationwide. CARP became the exclusive Canadian member of the AARP Global Network, a growing network of like-minded organizations worldwide. This gives CARP access to the policy research, experience and ideas of AARP and other international members; and it gives CARP members access to benefits and discounts when they visit other countries in the network. CARP’s portfolio of member benefits expanded, with a new added focus on health care and health management. CARP has invested more in technology, to streamline its handling of member inquiries and renewals. CARP always had a strong name and reputation. Now CARP is an even more dynamic driving force for A New Vision Of Aging. CARP’s credibility, recognition and value will reflect positively on your organization as you deliver CARP membership at a very attractive discount. WHAT DOES IT MEAN TO BE A CARP MEMBER? ADVOCACY CARP is committed to enhancing the quality of life for all Canadians as we age. CARP’s advocacy program is built on three major pillars: HEALTH Wait time guarantees National pharmacare Caregiver benefits FINANCES RRIF reform Increased income support Universal pension plan Investor protection RIGHTS No mandatory retirement End to elder abuse End to ageism in the media BENEFITS CARP members can save hundreds, even thousands, of dollars a year through “members-only” discounts and value added benefits on products and services that Zoomers need: The new no-fee CARP Zoomer Mastercard – get 1% cash back Best Doctors medical concierge service (included with your Zoomer Mastercard) Home and auto insurance Health and dental insurance Critical illness insurance Long term care insurance Accidental Death & Dismemberment insurance Travel – check out the new online CARP Vacation Club (www.cwtvacationclub.ca/carp) Hotels – save 10% or more at 21 different major chains Urgent medical care in the USA Hearing health services Home alarm systems Home safety and security systems Long distance phone rates Home cleaning Adjustable mattresses Moving services Driver training Computers Cultural benefits coming soon COMMUNITY CARP is committed to building a strong sense of common cause and common voice, with a broad diversity of individuals, groups and communities. We’re strengthening our national influence by forming new active, goal-oriented Chapters where you can meet interesting and like-minded individuals. ZOOMER Magazine covers all the trends and hot-button issues driving the Zoomer Revolution – health and wellness, finance, beauty, travel, fashion, sex, longevity, entertainment, and culture. ZOOMER also provides in-depth coverage of CARP activities and policies. CARP members receive 9 issues of ZOOMER every year – it’s one more great reason to be a member of CARP! HOW THE CARP GROUP MEMBERSHIP CAN BENEFIT YOU CARP’s Group Membership Program enables you to offer employees, retirees, members, and associates, a significant saving on the cost of CARP membership. This, in and of itself, enhances the value of your organization in their eyes. It not only confers a tangible benefit on them, it also sends a message that your organization understands their needs and concerns, and is always on the lookout for ways to deliver more value. You will certainly benefit from association with CARP and with the Zoomer Revolution! Implementation is easy. CARP will handle all the details, and will work closely with you. We have a variety of communications vehicles, both online and offline, so that you can communicate this new program quickly and efficiently, while ensuring that your branding is not diluted. We look forward to working with you! CHOOSE THE PROGRAM RIGHT FOR YOU Let CARP help you recognize your employees, retirees, members and/or associates and have it reflect well on you. Our Group Membership Program enables you to enjoy a special offer to purchase Group Memberships at a reduced rate. Your Group will enjoy: A one-year membership to CARP, including access to exclusive member benefits PLUS, 9 issues of the popular ZOOMER Magazine CHOOSE THE PROGRAM THAT’S RIGHT FOR YOU. CARP is pleased to offer two great options for enrolment. Option 1:  35% OFF. Only $22.70 from $34.95 regularly – you save $12.25 each. CARP Memberships are purchased by a Group and offered to individuals as a reward, incentive, gift or benefit Minimum of 20 Memberships Organization to supply a list of interested parties with required information (soft or hard copy) CARP to receive ONE payment for Group Membership, due at the same time the list is provided Option 2:  25% OFF. Only $25.95 from $34.95 regularly – you save $9.00 each. CARP Memberships are offered to your Group as part of your existing programs, or through a communications solution we create for you No minimum requirement Employees sign up individually under your Group name CARP receives individual applications and payments NOTE: CARP will offer a renewal extension to existing Members under either Option. CONTACT US 27 Queen St. E., Suite 702 Toronto, Ontario  M5C 2M6 416-363-2277 toll free: 1-800-363-2279 email: ericv@carp.ca ALREADY A MEMBER? If you would like to find out whether you already belong to a group and are entitled to the Group Membership Rate, go to www.carp.ca/groupdiscount and scroll the list of registered Groups.");



    }

};
	

function resetMeta(){
	document.title="CARP - A New Vision of Aging for Canada - Advocacy, Benefits, Community & Zoomer.";
	
	var metatags = document.getElementsByTagName("meta");
	  // Iterate through the array, listing them all

    // Update only the Title meta tag

    for (cnt = 0; cnt < metatags.length; cnt++)

    {

        var name = metatags[cnt].getAttribute("name");

        var content = metatags[cnt].getAttribute("content");



      
        //alert(name + " = " + content + "");



        // Update the Title meta tag

        if (metatags[cnt].getAttribute("name") == "description")

              metatags[cnt].setAttribute("content", "Canada's association for Zoomers, Boomers, Seniors and those who care for them. CARP fights for pensions, health care, & your rights. Save on insurance and travel.");



    }

};


function closeFlash(){
	disablePopup();
	resetMeta();
	}
	
function doDownload() 
{ 
window.open("http://www.carp.ca/membership/Carp%20group%20Membership%20program.pdf"); 
}