
 
// Determing left of each menu per browser type

var now = new Date();
var month = now.getMonth();
var iyear = now.getYear();
var year = ' ' + iyear
var months = new Array();
months[0] = "JANUARY";
months[1] = "FEBRUARY";
months[2] = "MARCH";
months[3] = "APRIL";
months[4] = "MAY";
months[5] = "JUNE";
months[6] = "JULY";
months[7] = "AUGUST";
months[8] = "SEPTEMBER";
months[9] = "OCTOBER";
months[10] = "NOVEMBER";
months[11] = "DECEMBER";

// Left Menu 1

	var intLeftMenu = 0;

	

if      (screen.width >= 1600)   {intLeftMenu = 365;}

else if (screen.width >= 1280)   {intLeftMenu = 195;}

else if (screen.width >= 1152)   {intLeftMenu = 175;}

else if (screen.width >= 1024)   {intLeftMenu = 110;}

else if (screen.width >= 800)    {intLeftMenu = 15;}

else if (screen.width >= 640)    {intLeftMenu = 5;}

var siteroot="http://www.TheSquareYard.com";	

	 var MyTop_1 = 65;
  	 var MyTop_2 = 251;
	 var MyTop_3 = 276;
	 var MyTop_4 = 301;
	 var MyTop_5 = 340;
  	 var MyTop_6 = 353;
	 var MyTop_7 = 370;
	 var MyTop_8 = 310;	 
	 var MenuWidth_1 = 200
	 var MenuWidth_2 = 160
	 var MenuWidth_3 = 180
	 var MenuWidth_4 = 205	 	 
	 var MenuWidth_5 = 160	 
	 var MenuWidth_6 = 150
	 var MenuWidth_7 = 225
	 var MenuWidth_8 = 180
	 	 
	 var MyLeft = intLeftMenu + 195
	 var MyLeft_1 = intLeftMenu + 510;
 

//Products
arMenu1 = new Array(
MenuWidth_1,
MyLeft_1, MyTop_1,
"","",
"#107B52","",
"","",
"&nbsp•&nbsp<B>NEW YORK</B>","http://www.coastalfinancialgroup.com/aboutus/locations.asp#NY",0,
"&nbsp•&nbsp<B>PENNSYLVANIA</B>","http://www.coastalfinancialgroup.com/aboutus/locations.asp#PA",0)


			arMenu1_4 = new Array(
			"&nbsp•&nbsp<B>ONE LAYER MORE</B>","#",0,
			"&nbsp•&nbsp<B>ONE LAYER MORE</B>","#",0,
			"&nbsp•&nbsp<B>ONE LAYER MORE</B>","#",0)

//Carriers We Represent
arMenu2 = new Array(
MenuWidth_2,
MyLeft, MyTop_2,
"","",
"","",
"","",
"&nbsp•&nbsp<B>NEW JERSEY</B>","http://www.coastalfinancialgroup.com/carriers/#NJ",0,
"&nbsp•&nbsp<B>NEW YORK</B>","http://www.coastalfinancialgroup.com/carriers/#NY",0,
"&nbsp•&nbsp<B>PENNSYLVANIA	</B>","http://www.coastalfinancialgroup.com/carriers/#PA",0)


			arMenu2_3 = new Array(
			"&nbsp•&nbsp<B>ONE LAYER MORE</B>","#",0,
			"&nbsp•&nbsp<B>ONE LAYER MORE</B>","#",0,
			"&nbsp•&nbsp<B>ONE LAYER MORE</B>","#",0)


//Presecription Drugs
arMenu3 = new Array(
MenuWidth_3,
MyLeft, MyTop_3,
"","",
"","",
"","",
"&nbsp•&nbsp<B>PROGRAMS</B>","http://www.coastalfinancialgroup.com/prescription/",0)

//Insurance Forms
arMenu4 = new Array(
MenuWidth_4,
MyLeft, MyTop_4,
"","",
"","",
"","",
"&nbsp•&nbsp<B>NEW JERSEY CARRIERS</B>","http://www.coastalfinancialgroup.com/forms/",0,
"&nbsp•&nbsp<B>NEW YORK CARRIERS</B>","http://www.coastalfinancialgroup.com/forms/",0)

			arMenu4_1 = new Array(
			"&nbsp•&nbsp<B>AETNA</B>","http://www.coastalfinancialgroup.com/forms/Aetna-NJ .asp",0,
			"&nbsp•&nbsp<B>AMERIHEALTH</B>","http://www.coastalfinancialgroup.com/forms/amerihealth-nj.asp",0,
			"&nbsp•&nbsp<B>CIGNA HEALTHCARE</B>","http://www.coastalfinancialgroup.com/forms/CignaHealthCare-NJ.asp",0,
			"&nbsp•&nbsp<B>GUARDIAN/HEALTH NET</B>","http://www.coastalfinancialgroup.com/forms/GuardianHealthNet-NJ.asp",0,
			"&nbsp•&nbsp<B>HORIZON BCBS</B>","http://www.coastalfinancialgroup.com/forms/HorizonBCBS.asp",0,
			"&nbsp•&nbsp<B>OXFORD HEALTH PLANS</B>","http://www.coastalfinancialgroup.com/forms/OxfordHealthPlans-NJ.asp",0,
			"&nbsp•&nbsp<B>UNITED HEALTHCARE</B>","http://www.coastalfinancialgroup.com/forms/UnitedHealthcare-NJ.asp",0,
			"&nbsp•&nbsp<B>UNIVERSITY HEALTH PLANS</B>","http://www.coastalfinancialgroup.com/forms/UniversityHealthPlans.asp",0,
			"&nbsp•&nbsp<B>WELLCHOICE </B>","http://www.coastalfinancialgroup.com/forms/WellChoice.asp",0)

			arMenu4_2 = new Array(
			"&nbsp•&nbsp<B>AETNA </B>","http://www.coastalfinancialgroup.com/forms/Aetna-NY.asp",0,
			"&nbsp•&nbsp<B>ATLANTIS HEALTH PLANS </B>","http://www.coastalfinancialgroup.com/forms/AtlantisHealthPlans.asp",0,
			"&nbsp•&nbsp<B>CIGNA HEALTHCARE</B>","http://www.coastalfinancialgroup.com/forms/CignaHealthCare-NY.asp",0,
			"&nbsp•&nbsp<B>EMPIRE (DOWNSTATE)</B>","http://www.oastalfinancialgroup.com/forms/Empire.asp",0,
			"&nbsp•&nbsp<B>GHI</B>","http://www.coastalfinancialgroup.com/forms/GHI.asp",0,
			"&nbsp•&nbsp<B>GUARDIAN/HEALTH NET</B>","http://www.coastalfinancialgroup.com/forms/GuardianHealthNet-NY.asp",0,
			"&nbsp•&nbsp<B>HIP</B>","http://www.coastalfinancialgroup.com/forms/HIP.asp",0,
			"&nbsp•&nbsp<B>HORIZON</B>","http://www.coastalfinancialgroup.com/forms/Horizon-NY.asp",0,
			"&nbsp•&nbsp<B>LIA</B>","http://www.coastalfinancialgroup.com/forms/LIA.asp",0,
			"&nbsp•&nbsp<B>MDNY</B>","http://www.coastalfinancialgroup.com/forms/MDNY.asp",0,
			"&nbsp•&nbsp<B>OXFORD HEALTH PLANS</B>","http://www.coastalfinancialgroup.com/forms/OxfordHealthPlans-NY.asp",0,
			"&nbsp•&nbsp<B>OXFORD METRO</B>","http://www.coastalfinancialgroup.com/forms/OxfordMetro.asp",0,
			"&nbsp•&nbsp<B>UNITED HEALTHCARE</B>","http://www.coastalfinancialgroup.com/forms/UnitedHealthcare-NY.asp",0,
			"&nbsp•&nbsp<B>VYTRA HEALTH PLANS </B>","http://www.coastalfinancialgroup.com/forms/VytraHealthPlans.asp",0)


//Broker Services
arMenu5 = new Array(
MenuWidth_5,
MyLeft, MyTop_5,
"","",
"","",
"","",
"&nbsp•&nbsp<B>ONLINE SERVICES</B>","Javascript:Online()",0)

//Updates
arMenu6 = new Array(
MenuWidth_6,
MyLeft, MyTop_6,
"","",
"","",
"","",
"&nbsp•&nbsp<B>COMPANY UPDATES</B>","Javascript:OpenCompany()",0,
"&nbsp•&nbsp<B>INDUSTRY UPDATES</B>","Javascript:OpenIndustry()",0)


//Alliances
arMenu7 = new Array(
MenuWidth_7,
MyLeft, MyTop_7,
"","",
"","",
"","",
"&nbsp•&nbsp<B>MORRIS COUNTY <br>&nbsp;&nbsp;&nbsp;CHAMBER OF COMMERCE</B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>MANHATTAN <br>&nbsp;&nbsp;&nbsp;CHAMBER OF COMMERCE</B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>ASIAN INDIAN <br>&nbsp;&nbsp;&nbsp;CHAMBER OF COMMERCE</B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>IRISH BUSINESS <br>&nbsp;&nbsp;&nbsp;ORGANIZATION </B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>LEHIGH VALLEY <br>&nbsp;&nbsp;&nbsp;CHAMBER OF COMMERCE </B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>LE TIP <br>&nbsp;&nbsp;&nbsp;INTERNATIONAL</B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>NEW YORK BUSINESS<br>&nbsp;&nbsp;&nbsp;RESOURCE CENTER</B>","http://www.coastalfinancialgroup.com/alliances/",0,
"&nbsp•&nbsp<B>BUSINESS NETWORK <br>&nbsp;&nbsp;&nbsp;INTERNATIONAL</B>","http://www.coastalfinancialgroup.com/alliances/",0)


//Title
arMenu8 = new Array(
MenuWidth_8,
MyLeft, MyTop_8,
"","",
"","",
"","",
"&nbsp•&nbsp<B>INFO REQUEST</B>","http://www.coastalfinancialgroup.com/mail/",0,
"&nbsp•&nbsp<B>QUOTE REQUEST</B>","http://www.coastalfinancialgroup.com/forms/request_quote.asp",0)



function PrintIt(){  
if (window.print) {
    window.print() ;  
} else {
    var EcommerceBrowser = '<OBJECT ID="EcommerceBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-3MyTopA-MyTopD0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', EcommerceBrowser);
    EcommerceBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    EcommerceBrowser1.outerHTML = "";  
}
}



function AddtoFav()
{window.external.AddFavorite('http://www.coastalfinancialgroup.com/','Coastal Financial Group - group and individual health needs')}



//Refer
function Refer()
	{MedWindow= open("http://www.coastalfinancialgroup.com/library/referral/referral.asp", "Refer","status=0;" +",scrollbars=0;"+ ",location=0;" + ",toolbar=no" + ",menu bar=no" + ",resizable=0;" + ",width=500;" +",height=600;" +",left=100;" +",top=0;");}

//Online
function Online()
	{MedWindow= open("https://coastal.healthconnectsystems.com", "Refer","status=0;" +",scrollbars=1;"+ ",location=0;" + ",toolbar=no" + ",menu bar=no" + ",resizable=1;" + ",width=600;" +",height=600;" +",left=100;" +",top=0;");}


//COMPANY UPDATES
function OpenCompany()
	{MedWindow= open("http://www.coastalfinancialgroup.com/pdfs/CompanyUpdates.pdf", "Refer","status=0;" +",scrollbars=1;"+ ",location=0;" + ",toolbar=no" + ",menu bar=no" + ",resizable=1;" + ",width=600;" +",height=600;" +",left=100;" +",top=0;");}


//INDUSTRY UNDATES
function OpenIndustry()
	{MedWindow= open("http://www.coastalfinancialgroup.com/pdfs/IndustryUpdates.pdf", "Refer","status=0;" +",scrollbars=1;"+ ",location=0;" + ",toolbar=no" + ",menu bar=no" + ",resizable=1;" + ",width=600;" +",height=600;" +",left=100;" +",top=0;");}


//Upload
function Upload()
	{MedWindow= open("http://www.coastalfinancialgroup.com/admin/upload/UploadForm.asp", "Upload","status=0;" +",scrollbars=0;"+ ",location=0;" + ",toolbar=no" + ",menu bar=no" + ",resizable=0;" + ",width=350;" +",height=125;" +",left=400;" +",top=400;");}






