﻿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="InfoPathのコミュニティサイト。フォーラム、ハウツー、ブログ等";
	}else if (id=='training'){
		text="InfoPath & SharePointをマスターするために。オンラインコース有";
	}else if (id=='webhosting'){
		text="もっとも手軽に、オンラインフォームをスタートするために";
	}else if (id=='products'){
		text="InfoPathやSharePointを活用する製品群、SQLデータベースアクセレレータ、Webサービス";
	}else if (id=='consulting'){
		text="ビジネス分析、プロジェクト管理、アプリ開発、InfoPathクイックヘルプ";
	}


 	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++,'qRules利用者の声','2DSにQuerySharePointで取得したデータを使用して、CopyTableでデータを挿入することが出来ました。DBXLも素晴らしいですが、qRuleも本当に素晴らしいです。','WISTECH株式会社 代表取締役 岡荘一郎','http://www.qdabra.com/ja/products/qRules.aspx'],
[id++,'Twitter - InfoPathDev','InfoPathコミュニティサイト「InfoPathDev」の最新情報をフォローしましょう。便利なTipsやトリック情報を提供します。<br /><a href="http://twitter.com/InfoPathDev">InfoPathDev Twitter</a>はこちらから','','http://twitter.com/InfoPathDev'],
[id++,'DBXL利用者の声','DBXL無しでは、我々の全国的なアカウントの処理はうまく出来なかったでしょう。少なくとも70%の効率アップとなりました。','Ed Taylor, Chairman of Technical Assurance','http://www.qdabra.com/ja/products/qRules.aspx'],
[id++,'"Qdabra Quarterly Newsletter Oct 2009"が発行されました','最新ニュースやホットフィックス、ブログのハイライトなどをご覧ください。<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++,'トレーニング参加者の声','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, 5000);
	
}	