
 
// 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 = 370;}

else if (screen.width >= 1280)   {intLeftMenu = 200;}

else if (screen.width >= 1152)   {intLeftMenu = 180;}

else if (screen.width >= 1024)   {intLeftMenu = 115;}

else if (screen.width >= 800)    {intLeftMenu = 20;}

else if (screen.width >= 640)    {intLeftMenu = 10;}

var siteroot="http://www.SquareYard.com";	

	 var MyLeft_1 = intLeftMenu - 15 ;
  	 var MyLeft_2 = intLeftMenu + 42;
	 var MyLeft_3 = intLeftMenu + 126;
	 var MyLeft_4 = intLeftMenu + 202;
	 var MyLeft_5 = intLeftMenu + 252;
  	 var MyLeft_6 = intLeftMenu + 345;
	 var MyLeft_7 = intLeftMenu + 505;
	 var MenuWidth_1 = 180
	 var MenuWidth_2 = 210
	 var MenuWidth_3 = 225
	 var MenuWidth_4 = 180	 	 
	 var MenuWidth_5 = 160	 
	 var MenuWidth_6 = 170
	 var MenuWidth_7 = 180

	 var MyTop = 168
 

//Carpet
arMenu1 = new Array(
MenuWidth_1,
MyLeft_1,MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>WILTONS</B>","./carpeting.shtml#wilton",0,
"&nbsp•&nbsp<B>AXMINISTER</B>","./carpeting.shtml#axminister",0,
"&nbsp•&nbsp<B>KARASTAN</B>","./carpeting.shtml#karastan",0,
"&nbsp•&nbsp<B>RALPH LAUREN</B>","./carpeting.shtml#ralph",0,
"&nbsp•&nbsp<B>LAURA ASHLEY</B>","./carpeting.shtml#ashley",0,
"&nbsp•&nbsp<B>SISAL</B>","./carpeting.shtml#sisal",0,
"&nbsp•&nbsp<B>PATTERNS IN <br>&nbsp;&nbsp;&nbsp;TEXTURE</B>","./carpeting.shtml#patterns",0,
"&nbsp•&nbsp<B>THE BEST OF <br>&nbsp;&nbsp;&nbsp;AMERICAN MILLS</B>","./carpeting.shtml#mills",0,
"&nbsp•&nbsp<B>911 IN CARPET</B>","./911.shtml",0,
"&nbsp•&nbsp<B>REQUEST A QUOTE</B>","./cgi-bin/contact.cgi",0)


//Hardwood
arMenu2 = new Array(
MenuWidth_2,
MyLeft_2,MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>UNFINISHED STRIP & PLANK</B>","./hardwoodFloors.shtml#unfinished",0,
"&nbsp•&nbsp<B>PREFINISHED STRIP & PLANK</B>","./hardwoodFloors.shtml#prefinished",0,
"&nbsp•&nbsp<B>PARQUET, INSETS & BORDERS</B>","./hardwoodFloors.shtml#parquet",0,
"&nbsp•&nbsp<B>CORK FLOORING</B>","./hardwoodFloors.shtml#cork",0,
"&nbsp•&nbsp<B>REQUEST A QUOTE</B>","./cgi-bin/contact.cgi",0)


//Laminate
arMenu3 = new Array(
MenuWidth_3,
MyLeft_3,MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>REQUEST A QUOTE</B>","./cgi-bin/contact.cgi",0)



//Tile
arMenu4 = new Array(
MenuWidth_4,
MyLeft_4,MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>REQUEST A QUOTE</B>","./cgi-bin/contact.cgi",0)


//Area Rugs
arMenu5 = new Array(
MenuWidth_5,
MyLeft_5,MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>ORIENTAL</B>","areaRugs.shtml#oriental",0,
"&nbsp•&nbsp<B>NEEDLEPOINT</B>","areaRugs.shtml#needlepoint",0,
"&nbsp•&nbsp<B>AUBUSSONS</B>","areaRugs.shtml#aubusson",0,
"&nbsp•&nbsp<B>CUSTOM</B>","areaRugs.shtml#custom",0,
"&nbsp•&nbsp<B>STAIR RUNNER</B>","areaRugs.shtml#stair_runner",0,
"&nbsp•&nbsp<B>REQUEST A QUOTE</B>","./cgi-bin/contact.cgi",0)

		
	
//Window Treatments
arMenu6 = new Array(
MenuWidth_6,
(MyLeft_6-8),MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>WALLCOVERING</B>","designStudio.shtml#wallpaper",0,
"&nbsp•&nbsp<B>FABRICS</B>","designStudio.shtml#fabrics",0,
"&nbsp•&nbsp<B>WINDOW TREATMENTS</B>","designStudio.shtml#window_treatments",0,
"&nbsp•&nbsp<B>CUSTOM FURNITURE</B>","designStudio.shtml#custom_furniture",0,
"&nbsp•&nbsp<B>REQUEST A QUOTE</B>","./cgi-bin/contact.cgi",0)


//Contact Us
arMenu7 = new Array(
MenuWidth_7,
MyLeft_7,MyTop,
"","",
"","",
"","",
"&nbsp•&nbsp<B>DESIGN STUDIO</B>","http://www.squareyard.com/^TheSquareYard/mail/default.asp?var=design_studio",0,
"&nbsp•&nbsp<B>WOOD FLOORING</B>","http://www.squareyard.com/^TheSquareYard/mail/default.asp?var=wood_flooring",0,
"&nbsp•&nbsp<B>CERAMIC TILE</B>","http://www.squareyard.com/^TheSquareYard/mail/default.asp?var=ceramic_stone",0,
"&nbsp•&nbsp<B>CARPET</B>","http://www.squareyard.com/^TheSquareYard/mail/default.asp?var=carpet",0,
"&nbsp•&nbsp<B>911 IN CARPET</B>","http://www.squareyard.com/^TheSquareYard/carpet/911.asp",0,
"&nbsp•&nbsp<B>AREA RUGS</B>","http://www.squareyard.com/^TheSquareYard/mail/default.asp?var=area_rugs",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.SquareYard.com/','The Square Yard - Custom Carpet, Rugs & Flooring')}





//TellAFriend
function Refer()
	{MedWindow= open("http://www.squareyard.com/^TheSquareYard/library/referral/referral.asp", "Friend","status=0;" +",scrollbars=0;"+ ",location=0;" + ",toolbar=no" + ",menu bar=no" + ",resizable=0;" + ",width=500;" +",height=600;" +",left=100;" +",top=0;");}





