

function changeExampleList( selected){
 oPanel3.setHeader("Example Services we provide");
 oPanel3.setBody ( getExampleServicesHTML(selected) ) ;			
}


function OpenTCs( ){

	var iframeHTML = "<IFRAME SRC=\"terms.htm\" WIDTH=470 HEIGHT=500  FRAMEBORDER=0 ></IFRAME>";

	oPanel3.setBody ( iframeHTML) ;	
	oPanel3.setHeader("<h5><font color=\"#1983d5\">Headconcierge.com </font>Terms and Conditions</h5>");
	
	oPanel3.show();
	


}

function OpenPrivacy( ){

	var iframeHTML = "<IFRAME SRC=\"privacy.htm\" WIDTH=470 HEIGHT=500  FRAMEBORDER=0 ></IFRAME>";

	oPanel3.setBody ( iframeHTML) ;	
	oPanel3.setHeader("<h5><font color=\"#1983d5\">Headconcierge.com </font>Privacy Statement</h5>");
	
	oPanel3.show();
	


}




function startMembershipAnimation() {
	var myGallery = new gallery($('membershipAnimate'), {
		timed: true,
		showArrows: false,
		showInfopane: false,
		showCarousel: false,
		embedLinks: true,
		delay: 5000
	});
	document.gallery = myGallery;
	
}

function startHomeAnimation() {
	var myGallerya = new gallery($('animatedGallery'), {
		timed: true,
		showArrows: false,
		showInfopane: false,
		showCarousel: false,
		embedLinks: true,
		delay: 5000
	});
	document.gallery = myGallerya;
	
}

function startGallery() {
	var myGallery = new gallery($('myGallery'), {
		timed: true,
		showArrows: false,
		showInfopane: false,
		showCarousel: false,
		embedLinks: true,
		delay: 5000
	});
	document.gallery = myGallery;
	
}


function startQuotesGallery() {
	var myGallery = new gallery($('quotesGallery'), {
		timed: true,
		showArrows: false,
		showInfopane: false,
		showCarousel: false,
		embedLinks: true,
		delay: 10000
	});
	document.gallery = myGallery;
	
}




function doFade(){
YAHOO.util.Dom.setStyle(document.body, 'opacity', '0');
var ani = new YAHOO.util.Anim(document.body , {
 opacity: {from: 0, to: 1 }
 }, 3, YAHOO.util.Easing.easeOut);
ani.animate();
}


var oPanel3;


function initPanels(selected) {

		
	
		var Event = YAHOO.util.Event,
			Dom = YAHOO.util.Dom;


		Event.onDOMReady(function () {			


			var handleOK = function() {
				this.cancel();
			};
			
			oPanel3 = new YAHOO.widget.SimpleDialog("panel-3", {
				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "500px",
				role: "alertdialog",
				buttons: [ { text:"close", handler:handleOK, isDefault:true } ],
				text: ""
			
			});	
			

			oPanel3.setHeader("Example Services we provide");
			
						
			oPanel3.render(document.body);
			
			var html =  "hello";
			var a = getExampleServicesHTML(selected) ;
			
			oPanel3.setBody ( a) ;	


			var oTooltip3 = new YAHOO.widget.Tooltip("tooltip-3", { 
				context:"show-dialog-2", 
				text:"shows some example services we provide.",
				iframe: true,
				showDelay:700 } );
			
			Event.on("show-dialog-3", "click", oPanel3.show, null, oPanel3);					
			Event.on("show-dialog-4", "click", oPanel3.show, null, oPanel3);

		});
		
		
		
	
	}




var tcPrivacyPanel;


function ShowTCPanel(selected) {

		
	
		var Event = YAHOO.util.Event,
			Dom = YAHOO.util.Dom;


		Event.onDOMReady(function () {			


			var handleOK = function() {
				this.cancel();
			};
			
			oPanel3 = new YAHOO.widget.SimpleDialog("panel-3", {
				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "500px",
				role: "alertdialog",
				buttons: [ { text:"close", handler:handleOK, isDefault:true } ],
				text: ""
			
			});	
			

			oPanel3.setHeader("Example Services we provide");
			
						
			oPanel3.render(document.body);
			
			var html =  "hello";
			var a = getExampleServicesHTML(selected) ;
			
			oPanel3.setBody ( a) ;	


			var oTooltip3 = new YAHOO.widget.Tooltip("tooltip-3", { 
				context:"show-dialog-2", 
				text:"shows some example services we provide.",
				iframe: true,
				showDelay:700 } );
			
			Event.on("show-dialog-3", "click", oPanel3.show, null, oPanel3);					

		});
		
		
		
	
	}






