/********************************************
 * Kaosweaver Expert Images                 *
 * by Kaosweaver http://www.kaosweaver.com  * 
 * Copyright 2003, 2005 all rights reserved *
 ********************************************/
function kw_ei_img (i,w,h,t,u,d) {this.i=i;this.w=w;this.h=h;this.t=unescape(t);this.u=unescape(u);this.d=unescape(d)}
function kw_ei (n,t) {  // Expert Images - Copyright Kaosweaver, All Rights Reserved.
	this.n=n;this.t=t;this.s=new Array();this.p=0;this.gp=function(a){if(!a)a=0;j=this.p+a;if(j<0)
	j=this.s.length+j;if (j>this.s.length-1) j=(j-this.s.length);this.p=j;return this.s[j];};this.h="";
	this.ai=function(a){this.s[this.s.length]=a;};this.gn=function(){if (this.p==this.s.length-1) 
	this.p=-1;return this.s[++this.p];};this.gl=function(){if (this.p==0) this.p=this.s.length; 
	return this.s[--this.p];};this.gr=function(){j=parseInt(Math.random()*this.s.length);j=(isNaN(j))?0:j;
	this.p=j;return this.s[j];};this.c=function(){if (this.h!="") clearTimeout(this.h);};this.o=n+"Object";
	this.gd=function(){d=new Date();j=(parseInt(d.getTime()/86400000))%this.s.length;j=(isNaN(j))?0:j; 
	this.p=j; return this.s[j];};eval(this.o+"=this");this.gm=function(){dt=new Date();this.p=dt.getDate();
	return this.s[--this.p];};this.gw=function(){dt=new Date();this.p=dt.getDay();return this.s[this.p];}
	this.gc= function(){tc=document;c=tc.cookie;m=c.indexOf("kwei_"+this.n+"=");j=-1;if (m!=-1){
	p=c.indexOf("=",m)+1;p2=c.indexOf(";",m);p2=(p2==-1)?c.length:p2;j=c.substring(p,p2);j=(isNaN(j))?0:j;
	}j++;if (j>this.s.length-1)j=0;this.p=j;d=new Date();d.setTime(d.getTime()+(2592000000));
	ep = "; expires="+d.toGMTString()+"; path=/"; tc.cookie="kwei_"+this.n+"="+j+ep+";";return this.s[j];}
	this.ge=function(){return this.s.length-1;};this.gg=function(){dt=new Date();this.p=dt.getMonth();
	return this.s[this.p];};this.stt=function(a){this.t=a;}
}
function kwsetx(x,o){x.src=o.i;if (o.h)x.height=o.h; if (o.w)x.width=o.w; if (o.t){x.alt=o.t;x.title=o.t}}
function kwsetu(a,b,m,tn,tl){x=eval("document."+a);z=-1;y=-1;for(var i=0;i<kwei.length;i++)if(kwei[i].n==b) z=i;
	if (z!=-1)for(var i=0;i<kwei[z].s.length;i++)if (x.src.indexOf(kwei[z].s[i].i)!=-1) y=i;if (y!=-1)
	if (kwei[z].s[y].u!="") {if (m==1)window.location=kwei[z].s[y].u; else window.open(kwei[z].s[y].u,tn,tl);}}
function kweisi(n,a,m,q){dc=document;dc.getElementById(q).style.backgroundImage="";obj=dc.getElementById(a).style;obj.opacity=100;
	obj['-moz-opacity']=100;obj.filter="alpha(opacity=100)";kwsetx(eval("document."+a),eval("n.g"+m+"()"));
	n.h=setTimeout("kweisi("+n.o+",'"+a+"','"+m+"','"+q+"')",n.t);kweisd(n,a)}
function kweifs(n,a,m,f) {if (document.all) {eval(a+".style.filter=\"blendTrans(duration=.5)\"");
	eval(a+".filters.blendTrans.apply()");kwsetx(eval("document."+a),eval("n.g"+m+"()"))
	eval(a+".filters.blendTrans.play()");} else {KW_eifadeOut(eval("n.g"+m+"()"),100,f,a);}
	n.h=setTimeout("kweifs("+n.o+",'"+a+"','"+m+"','"+f+"')",n.t);kweisd(n,a)}
function kweicnt(n,c,a){kwsetx(eval("document."+a),n.gp(c));}
function kweicto(n){n.c();}
function kweistt(n,a){n.stt(a);}
function kweici(n,a,m){kwsetx(eval("document."+a),eval("n.g"+m+"()"));kweisd(n,a)}
function kweipi(n,a,m){eval("n.g"+m+"()");kweiwi(n,a);}
function kweiwi(n,a) {s="";if (n.gp().u!="")s="<a href=\""+n.gp().u+"\">";s+="<img src=\""+n.gp().i+"\" "
	s+="width=\""+n.gp().w+"\" height=\""+n.gp().h+"\" alt=\""+n.gp().t+"\" title=\""+n.gp().t+"\" name=\""
	s+=a+"\" border=0>";if (n.gp().u!="")s+="</"+"a>";document.write(s);kweisd(n,a)}
function kweiwss(n,a,b,m,p){n.p=n.ge();s="<div style=\"background-image: url("+n.gp().i+"); background-repeat: no-repeat; width: "+n.gp().w+"px; height: "+n.gp().h+"px;\" id=\""+p+"\"><a href=\"#\" onClick=\"kwsetu('"+a+"','"+b+"',"+m+",'','')\"><img src=\""
	s+=n.gp().i+"\" width=\""+n.gp().w+"\" height=\""+n.gp().h+"\" alt=\""+n.gp().t+"\" title=\""+n.gp().t
	s+="\" id=\""+a+"\" name=\""+a+"\" border=0 style=\"filter:blendTrans(duration=3); width: "+n.gp().w+"px; height:  "+n.gp().h+"px; border: 0 none; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0;\"></a></div>";document.write(s);}
function KW_eiqf(a,oP,i,w,h) {obj=document.getElementById(a);if (oP>=5) {KW_eisetO(obj,oP);	oP=oP-5;
	window.setTimeout("KW_eiqf('"+a+"',"+oP+",'"+i+"',"+w+","+h+")", 20);} else {obj.src=i;obj.height=h;obj.width=w;
	KW_eifadeIn(0,a)}}
function KW_eifadeOut(nI,oP,f,a) {
	document.getElementById(f).style.backgroundImage="url("+ document.getElementById(a).src+")";
	KW_eiqf(a,oP,nI.i,nI.w,nI.h)}
function KW_eifadeIn(oP,a) {obj=document.getElementById(a);if (oP<=100) {KW_eisetO(obj, oP);oP += 5;
	window.setTimeout("KW_eifadeIn("+oP+",'"+a+"')", 50);}}
function KW_eisetO(obj, oP) {oP=(oP==100)?99.999:oP;obj.style.KHTMLopacity = oP/100;
	obj.style.MozOpacity = oP/100;obj.style.opacity = oP/100;}
function kweiwd(n,a) {document.write("<span id=\"kwei_"+a+"\">"+n.gp().d+"</span>")}
function kweisd(n,a) {obj=document.getElementById("kwei_"+a);if (obj) obj.innerHTML=n.gp().d;}
function kweibw(n,m,b) {eval("n.g"+m+"()");s='<style type="text/css"> body { background-image: url('+n.gp().i+');\n'+b+'}\n</style>';
	document.write(s);}

kwimg=new Array();
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/01.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/02.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/03.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/04.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/05.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/06.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/07.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/08.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/09.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/10.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/11.jpg",740,395,'','','');
kwimg[kwimg.length]=new kw_ei_img("images/indexslideshow/12.jpg",740,395,'','','');

kwei = new Array();
kwei[0]=new kw_ei("coursepics",5000);
kwei[0].ai(kwimg[0]);
kwei[0].ai(kwimg[1]);
kwei[0].ai(kwimg[2]);
kwei[0].ai(kwimg[3]);
kwei[0].ai(kwimg[4]);
kwei[0].ai(kwimg[5]);
kwei[0].ai(kwimg[6]);
kwei[0].ai(kwimg[7]);
kwei[0].ai(kwimg[8]);
kwei[0].ai(kwimg[9]);
kwei[0].ai(kwimg[10]);
kwei[0].ai(kwimg[11]);

