﻿function getURL ()
{
	var strHref = window.location.href;
	var strPage = top.document.title;
	var strURL = "mailto:?subject=You might want to see this&body=" + strPage + ":  " + strHref;
	window.location = strURL;
	window.location = strHref
}

if (document.images)
{
	roll = 1;
}
else
{
	roll = 0;
}

// rollover buttons

if (roll)
{
	
	but1 = new Image() ;
	but1.src = "nav/b1_ov.gif";

	but2 = new Image() ;
	but2.src = "nav/b1.gif";
	
	but3 = new Image() ;
	but3.src = "nav/b2_ov.gif";

	but4 = new Image() ;
	but4.src = "nav/b2.gif";

	but5 = new Image() ;
	but5.src = "nav/b3_ov.gif";

	but6 = new Image() ;
	but6.src = "nav/b3.gif";

	but7 = new Image() ;
	but7.src = "nav/b4_ov.gif";

	but8 = new Image() ;
	but8.src = "nav/b4.gif";
	
	but9 = new Image() ;
	but9.src = "nav/b5_ov.gif";

	but10 = new Image() ;
	but10.src = "nav/b5.gif";

	but11 = new Image() ;
	but11.src = "nav/b6_ov.gif";

	but12 = new Image() ;
	but12.src = "nav/b6.gif";

	but13 = new Image() ;
	but13.src = "nav/b7_ov.gif";

	but14 = new Image() ;
	but14.src = "nav/b7.gif";

	but15 = new Image() ;
	but15.src = "nav/b8_ov.gif";

	but16 = new Image() ;
	but16.src = "nav/b8.gif";

	but17 = new Image() ;
	but17.src = "nav/b9_ov.gif";

	but18 = new Image() ;
	but18.src = "nav/b9.gif";
	
	but19 = new Image() ;
	but19.src = "nav/b10_ov.gif";

	but20 = new Image() ;
	but20.src = "nav/b10.gif";
	
	but21 = new Image() ;
	but21.src = "nav/b11_ov.gif";

	but22 = new Image() ;
	but22.src = "nav/b11.gif";
	
	but23 = new Image() ;
	but23.src = "nav/b12_ov.gif";

	but24 = new Image() ;
	but24.src = "nav/b12.gif";
}
function hiLite(imgDocID,imgObjName)
{
	if (roll)
	{
		document.images[imgDocID].src = eval(imgObjName + ".src");
	}
}

function validate() {
   if (document.Contact.FirstName.value < 1) { 
      	window.alert("Please enter your first name.");
      	document.Contact.FirstName.focus();
      	return false;
	}
	if (document.Contact.LastName.value < 1) { 
      	window.alert("Please enter your last name.");
      	document.Contact.LastName.focus();
      	return false;
	}
   if (document.Contact.Telephone.value < 1) { 
   		if (document.Contact.Email.value < 1) {
      	window.alert("Please enter your telephone number.");
      	document.Contact.Telephone.focus();
      	return false;
		}
	}
   if (document.Contact.Email.value < 1) { 
   		if (document.Contact.Telephone.value < 1) { 
      	window.alert("You must enter your e-mail address.");
      	document.Contact.Email.focus();
      	return false;
		}
	}
   if (document.Contact.CaseInfo.value < 1) { 
      	window.alert("You did not enter case information.");
      	document.Contact.CaseInfo.focus();
      	return false;
	}
}


function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}


var pausecontent=new Array()

pausecontent[0]="Bauerlien v. Lotus & Windoware, Inc., Jumbo Surplus Corporation, Equity Residential Properties Management Corporation";
pausecontent[1]="Naber v. Jencraft Corporation, Wal-Mart Stores, Inc., Ching Feng Home Fashions Company Ltd., Ching Feng Industries (USA) Inc., Pacific Resource Export (USA) Ltd.";
pausecontent[2]="Behling v. Home Depot, Nien Made Window Fashions Co., Ltd., Custom Craft Company, International Window Treatments, Norman International, Inc. Dongguan Fanchang Curtain";
pausecontent[3]="Horvath v. All Strong Industries (USA) Inc., Marc's Deep-Er Discount";
pausecontent[4]="Carrillo v. Verticals Unlimited, C. Apollo Realty, Inc.";
pausecontent[5]="Danks v. Spring Window Fashions, UDRT Maryland, Inc., United Dominion Realty Trust, Inc.";
pausecontent[6]="Garcia v. Nien Made (USA) Inc., Richfield Window Coverings, Inc., K Mart Corporation";
pausecontent[7]="Graham v. All Strong Industry, Inc., Lowe's Homecenters, Inc., LG Sourcing, Inc.";
pausecontent[8]="Doe v. Ching Feng, Venture Stores, Inc., The May Department Stores Company";
pausecontent[9]="Kluth v. Spring Window Fashions, Ching Feng Industry (USA), Inc. Coastal International, Inc.";
pausecontent[10]="Maradiaga v. Main Fine USA, LLC, Wilmer, Inc., Interline Brands, Inc., Grand Oaks Apartments, Alliance SH2 GP, Inc.";
pausecontent[11]="McGee v. Wal-Mart Stores, Inc, Beautiful Windows Enterprise Co., Inc.";
pausecontent[12]="Noddin v. Whole Space Industries Co., Ltd, Family Dollar, Inc.";
pausecontent[13]="Olen v. Kirsch, Inc., Newell Rubbermaid Inc., Sears, Roebuck & Co.";
pausecontent[14]="Valle v. Hunter Douglas Window Fashions, Montgomery Ward & Co., Inc.";
pausecontent[15]="Wentz v. Spring Window Fashions, Dave & Court Interior, Jill Speth d/b/a Jill's Day Care";
pausecontent[16]="Williams v. Just Blinds,  Hunter Douglas Inc, Timber Blinds & Shutter, Timberblinds, LLC, and Turnils North America, Inc."; 
pausecontent[17]="Hawk v Hunter Douglas, Inc, and Hunter Douglas Fabrication Company";
pausecontent[18]="Mase v. HT Window Fashions";
pausecontent[19]="Rittenhouse v. Springs Window Fashions, LP and Springs Industries, Inc.";
pausecontent[20]="Schenk v. JC Penney  Company, Inc., Vinatech Trading, LTD. et.al."; 
pausecontent[21]="Thompson v. Target Corporation, Lewis Hyman, Inc., and  Whole Space Industries Company, Ltd";
pausecontent[22]="Estate of Weslea v. U.S. Military Housing";
pausecontent[23]="Betton v. Wal-Mart Stores, Ching Home Fashions Co, Ltd., All Strong Industry (USA) Inc and Marc’s Deep-er Discount";
pausecontent[24]="Robinson v. Kirsch, Newell Rubbermaid and Caldwell Banker";
pausecontent[25]="Mar v.  Century Blinds, Inc, Hunter Douglas, Inc, and Upright Installations d/b/a Keep it Cool – Solar Solutions and Two Blind Guys.";