﻿// JScript File





function DivSlider() {
	$('div#onlineFAQbody> div').filter('.questionBlock').hide();
    $('div#onlineFAQbody> div').filter('.plusMinus').click(function() {
  		var $nextDiv = $(this).next().next();
  		$nextDiv.slideToggle('fast');
  		var $image=$(this).children('img');
  		$image.attr('src',function() {
			this.src=(this.src.indexOf("minus.jpg") != -1) ? "images/plus.gif" : "images/minus.jpg";
		});
	});
	$('div#onlineFAQbody> div').filter('.questionBlock').each(function(i) {
		$(this).children('.question').click(function() {
	  		var $nextDiv = $(this).next();
  			$nextDiv.slideToggle('fast');
  			var $image=$(this).children('img');
  			$image.attr('src',function() {
  				this.src=(this.src.indexOf("bulletDown.gif") != -1) ? "images/bulletRight.jpg" : "images/bulletDown.gif";	
  			});
  		});
	});
}

var IECheck;
function IEContentLoaded(w,f){
    // document has loaded (IE method 2) using behavior
    var load=false,d=w.document,s=d.createStyleSheet().owningElement;
    s.styleSheet.cssText='body{behavior:expression(IECheck(this));}';
    var fire=function(e){if(!load)
{load=true;f.call(d,e);setTimeout(function()
{s.parentNode.removeChild(s);},10);}};
    IECheck=function(n)
{try{d.documentElement.doScroll('left');n.runtimeStyle.behavior='none';}catch(e)
{return;}fire(null);};
}

if($.browser.msie) {
  IEContentLoaded(window,function() {
   DivSlider();
  })
} else {
  $(document).ready(function() {
    DivSlider();
  })
}