/** GOOGLE ANALYTICS **/
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
	var pageTracker = _gat._getTracker("UA-6539622-22");
	pageTracker._trackPageview();
} catch(err) {}



/** BOOKMARKS **/
function bookmark(){

    var title="Georgia Personal Injury Attorneys - The Law Offices of Wayne Grant, P.C."

    var url="http://www.waynegrant.com/"

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )

    {

    var mbm = document.createElement('a');

    mbm.setAttribute('rel','sidebar');

    mbm.setAttribute('href',url);

    mbm.setAttribute('title',title);

    mbm.click();

    }

    else if( document.all ) window.external.AddFavorite( url, title);



}



var news = "addlist.php"



function infoPop(url){

        window.open(url, "new", "status=yes, width=250, height=300")

    } 



// Submit Reset form button rollover java load

var submitRolls = new Object();

var resetRolls = new Object();

function submitroll(src, oversrc, name)

{

this.src=src;

this.oversrc=oversrc;

this.name=name;

this.alt="Submit";

this.write=submitroll_write;

}



function resetroll(src, oversrc, name)

{

this.src=src;

this.oversrc=oversrc;

this.name=name;

this.alt="Reset";

this.write=resetroll_write;

}



function submitroll_write()

{

var thisform = 'document.forms[' + (document.forms.length - 1) + ']';

submitRolls[this.name] = new Object();

submitRolls[this.name].over = new Image();

submitRolls[this.name].over.src = this.oversrc;

submitRolls[this.name].out = new Image();

submitRolls[this.name].out.src = this.src;



document.write

	(

	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 

	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 

	' HREF="javascript:'

	);



if (this.sendfield)

	{

	if (! this.sendvalue)

		this.sendvalue = 1;

	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");

	}



document.write(thisform + '.submit();void(0);"');

if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');

document.write('>');



document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');

if (this.height)document.write(' HEIGHT=' + this.height);

if (this.width)document.write(' WIDTH='  + this.width);

if (this.otheratts)document.write(' ' + this.otheratts);

document.write('></A>');

if (this.sendfield)

	{

	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');

	document.forms[document.forms.length - 1].elements[this.sendfield].value='';

	}

}



function resetroll_write()

{

var thisform = 'document.forms[' + (document.forms.length - 1) + ']';

resetRolls[this.name] = new Object();

resetRolls[this.name].over = new Image();

resetRolls[this.name].over.src = this.oversrc;

resetRolls[this.name].out = new Image();

resetRolls[this.name].out.src = this.src;



document.write

	(

	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=resetRolls['" + this.name + '\'].over.src"' + 

	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=resetRolls['" + this.name + '\'].out.src"' + 

	' HREF="javascript:'

	);



if (this.sendfield)

	{

	if (! this.sendvalue)

		this.sendvalue = 1;

	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");

	}



document.write(thisform + '.reset();void(0);"');

if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');

document.write('>');



document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');

if (this.height)document.write(' HEIGHT=' + this.height);

if (this.width)document.write(' WIDTH='  + this.width);

if (this.otheratts)document.write(' ' + this.otheratts);

document.write('></A>');

if (this.sendfield)

	{

	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');

	document.forms[document.forms.length - 1].elements[this.sendfield].value='';

	}

}



// IE6 dropdown fix

sfHover = function() {

	var sfEls = document.getElementById("menu").getElementsByTagName("LI");

	for (var i=0; i<sfEls.length; i++) {

		sfEls[i].onmouseover=function() {

			this.className+=" sfhover";

		}

		sfEls[i].onmouseout=function() {

			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");

		}

	}

}

if (window.attachEvent) window.attachEvent("onload", sfHover);


