﻿// JScript File
function DivSlider() {
	$('div.divSlider> div').filter('.hiddenDiv').hide();
    $('div.divSlider> 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("btnContract.gif") != -1) ? "/images/buttons/btnExpand.gif" : "/images/buttons/btnContract.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();
  })
}