
// Click FAQ
// FAQ Launcher JS 

function mwqFAQlaunch(){
	mwqFAQopenwindow('','','');
}

function mwqFAQopenwindow(faqid,topicid,question){
	if (document.all) {
		windowheight = screen.availHeight;
		windowwidth=screen.availWidth;
		rightwidth=300;
		leftwidth=screen.availWidth-rightwidth-11;
		FAQwindow=window.open('http://www.kirbyinternational.com/controlpanel/faqmanager/faqmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question ,'mwqFAQ','width='+rightwidth+',height='+windowheight+',screenX='+leftwidth+',screenY=0,top=0,left=' +leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1');
		FAQwindow.focus();
		
		// Resize Current Window //
		top.resizeTo(leftwidth,windowheight);
		top.moveTo(0,0);
		top.focus();
	} else {
		FAQwindow=window.open('http://www.kirbyinternational.com/controlpanel/faqmanager/faqmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question  ,'','width=300,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1');
	}
}

function mwqFAQopentopic(what){
	mwqFAQopenwindow('',what,'');
}

function mwqFAQopenfaq(what){
	mwqFAQopenwindow(what,'','');
}

function mwqFAQsearch(what,topicid,selfpage){
	if (selfpage==''){
		mwqFAQopenwindow('',topicid,what);
	} else {
		self.location.href='http://www.kirbyinternational.com/controlpanel/faqmanager/faqmain.aspx?topicid=' + topicid + '&question=' + what;
	}
}



