/********************************************
 * 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/front_rotating/Amy_N_Barretts.jpg",343,229,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Ed-Sunrise.jpg",343,257,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/ed_teaching_0507.jpg",343,260,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Ed_Tybee_Jan07.jpg",343,188,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/high_brace_student.jpg",343,241,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Lina_fall.jpg",360,197,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/student_0907_sm.jpg",435,231,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/tom_ed_triton_roll2_sm.jpg",460,278,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/triton_adv2_sm.jpg",330,217,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/rotating_products/book_cover_front.jpg",87,110,'Sea%20Kayak%20by%20Gordon%20Brown','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D3%26catid%3DBooks%2FDVDs','%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D3%22%3E%3Cbr%3E%3Cb%3EReviewed%20in%20Sea%20Kayaker%20Magazine%27s%20April%20issue%21%3C/b%3EA%20modern%20guide%20to%20sea%20kayaking%20by%20one%20of%20the%20leading%20experts%2C%20Scottsman%20Gordon%20Brown.%20%20The%20perfect%20book%20for%20kayakers%20of%20any%20skill%20level%20who%20wish%20to%20advance%20their%20abilities%20on%20the%20water.%20Buy%20now%20online%21%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Tony 12-29-07.jpg",343,251,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Full_moon_paddle.jpg",343,236,'Full%20Moon%20Paddle','/trips.htm','%3Cbr%3EOur%20Full%20Moon%20paddle%20is%20a%20great%20way%20to%3Cbr%3E%20experience%20an%20entirely%20new%20way%20of%20kayaking.%3Cbr%3E%20%20Plenty%20of%20fun%2C%20even%20in%20the%20winter%21');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Tony_surfing.jpg",343,184,'Sea%20Kayak%20Surfing','/instruction%23surfing','%3Cbr%3ESea%20Kayak%20Surfing%20is%20great%20fun%20and%20always%3Cbr%3Ebrings%20plenty%20of%20smiles.%20%20Try%20it.%20You%27ll%20like%20it%21');
kwimg[kwimg.length]=new kw_ei_img("/images/rotating_products/pacific_small.jpg",150,196,'Pacific%20Horizons','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D52','%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D52%22%3E%3Cbr%3E%3Cb%3EPacific%20Horizons%20Sea%20Kayaking%20DVD%3C/b%3E%20A%20must-have%20for%20any%20paddler%20who%20enjoys%20the%20sights%20and%20sounds%20of%20sea%20kayaking.%20%20Explore%20the%20beauty%20and%20waters%20of%20the%20Pacific%20Northwest%21%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/rotating_products/RescueLight.jpg",119,200,'Rescue%20Laser%20Flare','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D35','%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D35%22%3E%3Cbr%3E%3Cb%3ERescue%20Laser%20Flare%20-%20Waterproof%21%3C/b%3E%20A%20hand-held%20nighttime%20%28can%20be%20used%20during%20the%20day%2C%20too%29%20laser%20signaling%20device%20that%20provides%20a%20convenient%2C%20effective%20way%20to%20signal%20a%20rescue%20party%20over%2020%20miles%20away.%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/rotating_products/hadas_cag_cutout.jpg",100,218,'Storm%20Cag','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D23','%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D23%22%3E%3Cbr%3E%3Cb%3EStorm%20Cag%3C/b%3E%20Prevent%20hypothermia%20or%20just%20block%20the%20wind%20while%20taking%20a%20break%20on%20the%20beach.%20Our%20storm%20cag%20is%20made%20of%20the%20same%20material%20as%20paragliders%20to%20restict%20airflow%20and%20promote%20fast%20warming.%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/rafted-up.jpg",370,246,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/class1.jpg",360,268,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/class2.jpg",370,219,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/class3.jpg",370,222,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/back-bay.jpg",370,237,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/front_rotating/Bryan_surfing.jpg",370,242,'','','');
kwimg[kwimg.length]=new kw_ei_img("/images/Pesda_Press/sea_kayak_navigation2.jpg",150,150,'Sea%20Kayak%20Navigation%20-%202nd%20Edition','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D49','%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D49%22%3E%3Cbr%3E%3Cb%3ESea%20Kayak%20Navigation%2C%202nd%20Edition%3C/b%3E%20The%20long-awaited%20update%20to%20the%20classic%2C%20with%20color%20illustrations%2C%20expanded%20topics%20and%20more%20exercises.%20Get%20yours%20today.%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/Pesda_Press/sitontopkayak.jpg",150,150,'Sit%20on%20Top%20Kayak','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D45','%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D45%22%3E%3Cbr%3E%3Cb%3ESit%20on%20Top%20Kayak%3C/b%3E%20A%20great%20guide%20for%20beginners%20and%20those%20interested%20in%20paddling%20sit-on-top%20kayaks.%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/rotating_products/EasternHorizons.jpg",150,204,'','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D71%26new%3Dyes','%3Cbr%3EEastern%20Horizons%20%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D71%26new%3Dyes%22%3Eorder%20your%20copy%20today%21%3C/a%3E');
kwimg[kwimg.length]=new kw_ei_img("/images/rotating_products/SeaKayak_DVD.jpg",150,204,'','http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D76%26new%3Dyes','%3Cbr%3ESea%20Kayak%20with%20Gordon%20Brown%20%3Ca%20href%3D%22http%3A//virginiaseakayakcenter.com/catalog.php%3Fitem%3D76%26new%3Dyes%22%3EThe%20newest%20sea%20kayak%20DVD%20is%20now%20available%20in%20the%20US.%3C/a%3E');

kwei = new Array();
kwei[0]=new kw_ei("front_large_rotating",5000);
kwei[0].ai(kwimg[10]);
kwei[0].ai(kwimg[11]);
kwei[0].ai(kwimg[12]);
kwei[0].ai(kwimg[16]);
kwei[0].ai(kwimg[17]);
kwei[0].ai(kwimg[18]);
kwei[0].ai(kwimg[19]);
kwei[0].ai(kwimg[20]);
kwei[0].ai(kwimg[21]);
kwei[1]=new kw_ei("product_feature",5000);
kwei[1].ai(kwimg[24]);
kwei[1].ai(kwimg[25]);

