sfHover = function() {
	var sfEls = document.getElementById("mainnav").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);

function rollover(id){
	var text;
	if (id=='community'){
		text="Forums, how-to articles, free samples, blogs";
	}else if (id=='training'){
		text="InfoPath & SharePoint best practices, workflow, Web forms...";
	}else if (id=='webhosting'){
		text="Create an online forms site, share forms with others";
	}else if (id=='products'){
		text="Tools for InfoPath and SharePoint, SQL database accelerators, Web services";
	}else if (id=='consulting'){
		text="Business analysis, project management, application development, quick InfoPath help";
	}


 	document.getElementById('caption').innerHTML = text;
 	document.getElementById('rolloverimg').src = '/style/img/rtitle-'+id+'.gif';

	document.getElementById('rollover').style.display='block';


}

function unr(){
	document.getElementById('rollover').style.display='none';	
}



var id;
id=0;
quote_array=new Array(
[id++,'Who loves <a href="products/qRules.aspx">qRules</a>?','I was able to insert data with CopyTable using the data from QuerySharePoint\'s 2DS. After copying, I can use the inputted values over and over again. I think DBXL is great but qRules is really wonderful!','by Soichiro Oka, CEO of Wistech','http://www.qdabra.com/en/products/qRules.aspx'],
//[id++,'Follow us on Twitter - InfoPathDev','Stay connected!<br />Qdabra is now sharing useful tips and tricks.<br /><a href="http://twitter.com/InfoPathDev">Click here for more information...</a>','','http://twitter.com/InfoPathDev'],

[id++,'Who loves <a href="products/DBXL.aspx">DBXL</a>?','DBXL is a fantastic product and has saved me no end of time and problems.','by Ged C.','http://www.qdabra.com/en/products/DBXL.aspx'],

[id++,'Who loves <a href="products/DBXL.aspx">DBXL</a>?','We could not have handled a national account without this solution. It has improved efficiency by at least 70% if not more.','by Ed Taylor, Chairman of Technical Assurance','http://www.qdabra.com/en/products/DBXL.aspx'],
[id++,'Who loves <a href="products/DBXL.aspx">DBXL</a> document level security?','I think DBXL is the only solution I found to implement dynamic permissions within the form. The Qdabra team was incredibly responsive and knowledgeable. I would recommend an InfoPath/DBXL solution to my next SharePoint client without hesitation.','by Cynthia Nalley, Performaware LLC','http://www.qdabra.com/en/products/DBXL.aspx'],/*[id++,'qRules ver. 2.0 released!','qRules 2.0 contains important new integration with SharePoint to enable reporting on repeating data and dynamic filtering.','<a href="http://www.qdabra.com/en/products/qRules.aspx">Click here for more information...</a>','http://www.qdabra.com/en/products/qRules.aspx'],*/
/* [id++,'"Qdabra Quarterly Newsletter Oct 2009" published','Check our news, hot fixes, blog highlights, etc.<br /><a href="http://www.qdabra.com/en/press/Newsletter/QdabraNewsletter200910.htm">Click here for more information...</a>','','http://www.qdabra.com/en/press/Newsletter/QdabraNewsletter200910.htm'],*/
[id++,'Who loves our Training?','I  just wanted to drop you a quick note to thank you for the great training session and for your hospitality while we were with you in Kirkland. You&#39;ve got a great team.','By Sam C.','http://www.qdabra.com/en/training/training.aspx']);

//[id++,'title','second quote','source','url'])



function desplay_quote(i){
	if (i>=quote_array.length) i=0;
	document.getElementById('quotetitle').innerHTML=quote_array[i][1];
	document.getElementById('quotebox').innerHTML='<p>'+quote_array[i][2]+'</p><p>'+quote_array[i][3]+'</p>';

	i++;
	var recur_call = "desplay_quote("+i+")";
	setTimeout(recur_call, 20000);
	
}	
