// BASIC MOUSEOVER FUNCTIONS USED TO SHORTEN CODE (CCTD - <TD>; CC - ANY COLORED ELEMENT;)

var chatwinl = (screen.width - 350) / 2
var chatwint = (screen.height - 380) / 2

function cctd(t,c){t.style.backgroundColor=c;}
function cctdb(t,c){t.style.backgroundColor="";}

function cc(t,c){t.style.color=c;}
function ccb(t){t.style.color="";}

function showTerms()
	{ window.open('/terms-of-use.asp','AAWPTerms','height='+ (screen.height-58) +',width=366,scrollbars=1,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left=0,top=0'); }

function showPrivacy()
	{ window.open('/privacy-policy.asp','AAWPPrivacy','height='+ (screen.height-58) +',width=366,scrollbars=1,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left=0,top=0'); }

function openQuiz(xPage)
		{ window.open('/wedding-planning/quiz-'+xPage+'/info/','Quiz','height=400,width=600,scrollbars=1,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left='+(screen.width-600)/2+',top='+(screen.height-440)/2) }

function openlivechat()
	{
		window.open('/livechat/','liveChat','height=380,width=350,scrollbars=0,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left=' + chatwinl + ',top='+chatwint)
	}

function openlivechatpro()
	{
		window.open('/livechatpro/','liveChat','height=380,width=350,scrollbars=0,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left=' + chatwinl + ',top='+chatwint)
	}

function openVideoProfessor(eVideo)
	{
		window.open('/myaawp/video-lessons.asp?filename='+eVideo,'videoProfessor','height=400,width=500,scrollbars=0,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left=' + chatwinl + ',top='+chatwint)
	}

function watchIntroVideo()
	{
		window.open('/welcome-video.asp','videoProfessor','height=350,width=390,scrollbars=0,status=0,menubar=0,toolbar=0,location=0,resizable=0,directories=0,left=' + chatwinl + ',top='+chatwint)
	}