var festus = { src: '/wp-content/themes/wp-szalai/flash/festus.swf' };
sIFR.activate(festus);

sIFR.replace(festus, {
	selector: 'h1#hometagline, h2 span',
	css: ['.sIFR-root { letter-spacing: 0; background-color: #ffffff; color: #003958; leading: -8 }',
	'a {color: #003958; text-decoration: none; }',
	'a:hover {color: #00899f; }'
	],
	tuneHeight: -5
});



activateMenu = function(nav) {
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
            if(lis[i].lastChild.tagName=="UL"){
             	lis[i].onmouseover=function() {	
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {   
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}


function uniqueString() {
	var mydate = new Date;
	var myday = mydate.getDate();
	var mymonth = mydate.getMonth()+1;
	var myhour = mydate.getHours();
	var myminutes = mydate.getMinutes();
	var myseconds = mydate.getSeconds();
	if(mymonth < 10) mymonth = "0" + mymonth;
	if(myday < 10) myday = "0" + myday;
	if(myhour < 10) myhour = "0" + myhour;
	if(myminutes < 10) myminutes = "0" + myminutes;
	if(myseconds < 10) myseconds = "0" + myseconds;

	uniq = 1 + mymonth + myday + myhour + myminutes + myseconds;

	document.getElementById('transid').value = uniq;

	document.getElementById('redirect').value = "http://www.allenparkdentists.com/contact-us/thanks/?transid=" + uniq;

}