// JavaScript Document

//If using image buttons as controls, Set image buttons' image preload here true
//(use false for no preloading and for when using no image buttons as controls):
var preload_ctrl_images=true;

//And configure the image buttons' images here:
var previmg='left.gif';
var stopimg='stop.gif';
var playimg='play.gif';
var nextimg='right.gif';

var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own. 
slides[0] = ["../../images/slideshow1.jpg", "Houses in Carver are predominantly attached frame dwellings in the Italianate style that was popular during Reconstruction. Many of these houses were the designs of Robert K. Brock, a developer, architect and builder. Brick structures in the neighborhood tend to be located at or near corners, giving a coherent pattern to the Carver streetscape. These homes and stores were built of bricks made in one of the four large neighborhood brickyards."];
slides[1] = ["../../images/slideshow2.jpg", "<h3>1113 West Moore Street</h3><p>The Moore Street School, 1113 W. Moore St., opened in 1887 as a public school for African-American students. In 1914, the community expanded the building to accommodate the growing school population. Enrollment grew from 947 students in 1887 to 1,390 in 1921. A second addition was constructed in 1949. When this new building, facing Leigh Street, was opened in 1949, the school was renamed for George Washington Carver. Another addition was made in 1990 and the school continues to serve the community. It also is believed that the Carver community took its name from the naming of the school.</p>"];
slides[2] = ["../../images/slideshow3.jpg", "<h3>1408 West Leigh Street</h3><p>The oldest continuing church congregation in the Carver community is Moore Street Baptist Church. Members of Second Baptist Church organized the church in March 1875 as Moore Street Missionary Baptist Church. In 1909, they built the current Gothic Revival building at 1408 W. Leigh St.</p>"];
slides[3] = ["../../images/slideshow4.jpg", "<h3>807 Norton Street</h3><p>A curious early survivor in Carver is the house at 807 Norton St.  Located in the block between Clay and Catherine streets, the house is  oriented toward Clay Street rather than facing Norton Street like its  neighbors. It is a two-story, three-bay brick house set on a raised  basement with a low-pitched gable roof. The third bay to the east is of  frame construction and to the north is a two-story brick addition with  a shed roof that slopes into the gable roof. The origins of this  dwelling are unknown. But an undated manuscript, written by a member of  Dabney Carr&rsquo;s family, entitled &ldquo;The Garden,&rdquo; refers to a brick house at  the northwest corner of the Elba garden that was home to Sam Poser and  Sam Smith. Smith was &ldquo;the boss of the place and had charge of the fruit  trees, the vine yard, the berries and vegetables.&rdquo; The location of 807  Norton St. is near what would have been the northwest corner of the  Elba garden and it appears to date from the early 19th century.</p>"];
slides[4] = ["../../images/slideshow5.jpg", "<h3>808 West Clay Street</h3><p>The Hardin Davis House, built in 1842 at 808 W. Clay St., is typical of the antebellum brick houses found in Carver. It is a two-story, two-bay brick dwelling with an entry portico, a molded brick cornice and a low gable roof. Like several of its contemporaries, the Davis House has an irregular Flemish bond brick pattern &ndash; random numbers of rows of stretcher bond brickwork separates rows of Flemish bond.</p>"];
slides[5] = ["../../images/slideshow6.jpg", "<h3>1106-14 West Clay Street</h3><p>This delightful row of  cottages at 1106-14 W. Clay St. is unique in the Richmond area. Built  in the Classical Revival style circa 1910, this one-story, three-bay  dwelling has a pressed-brick facade with expressed quoining, water  table and frieze. The windows have tooled granite jack arches with  projecting keystones and granite sills.</p>"];
slides[6] = ["../../images/slideshow7.jpg", "<h3>706-08 East Clay Street</h3><p>The Greek Revival Jesse Franklin House at 706-08 E. Clay St. was built in 1843 and is a two-and-a-half-story, two-bay, brick double house. The two-bay, hip-roofed porch is set on brick piers and has turned posts, brackets and a modern picket balustrade. The door has a transom and sidelights. The gable-roofed building has a box cornice. There are stepped parapets on the sides and a central shared chimney. This type of house, built close to the street with a small entry porch, was typical of antebellum double houses in the city.</p>"];
slides[7] = ["../../images/slideshow8.jpg", "<h3>916-18 West Clay Street</h3><p>This late-Victorian double house at 916-18 W. Clay St. was constructed around 1880. The gable is in-filled with terra cotta and there is a decorative terra-cotta band at the cornice. The openings have shouldered terra-cotta lintels with a unique decoration of faces on the keystones and a floral motif on the shoulder. The metal cornice has heavy metal brackets with decorative panels and urns, and cresting on top. The amount of detail lavished on this double house is unusual for Carver, and is more reminiscent of high-style dwellings along Franklin Street.</p>"];
slides[8] = ["../../images/slideshow9.jpg", "<h3>1200 West Clay Street</h3><p>By 1868, Edward J. Euker was the proprietor of Buchanan&rsquo;s Spring, which  stood on this site and was a recreation destination for Richmonders  escaping the heat of what was then downtown. The area was a lush oasis  around which people congregated in an outdoor beer garden. The spring  was a source of water for the nearby Eagle Brewery (1200 block of West  Clay Street), which became the Home Brewing Company &mdash; maker of Richbrau  beer &mdash; in 1897. This portion of the brewery was built in 1891.</p>"];
slides[9] = ["../../images/slideshow10.jpg", "<h3>1400 West Marshall Street</h3><p>1400 W. Marshall St. (Eagle Hill Apartments) is typical of multi-story commercial buildings that arose on the edges of Carver circa 1910-20. This nicely detailed building is undergoing conversion to apartments and will be a valuable component in the renovation of the western end of the Carver neighborhood.</p>"];
slides[10] = ["../../images/slideshow11.jpg", "<h3>900 Catherine Street</h3><p>Bethany Baptist Church, located at 900 Catherine St., was built as Mt. Hermon Baptist Church circa 1934 in a Gothic style. This one-story, three-bay, brick church has a front-gabled roof, a corbelled cornice and narrow pointed-arch openings. The door is set flush with the facade, and the brickwork is a random bond pattern. The little church is an important part of the Carver streetscape and community.</p>"];
slides[11] = ["../../images/slideshow12.jpg", "<h3>604 Hancock Street</h3><p>604 Hancock St., built circa 1890, is typical of frame homes in Carver. This area of Hancock Street has become a pocket of renovation and restoration and demonstrates the sturdiness of houses from the period.</p>"];
slides[12] = ["../../images/slideshow13.jpg", "<h3>1401 West Leigh Street</h3><p>The Rueben T. Hill House at 1401 W. Leigh St. is a Queen Anne-style home built circa 1900. Built for a community leader of the day, the Hill House is among the most elaborate of high-style dwellings in Carver. There are ornate terra-cotta panels between the first and second stories of the turret. There is a rusticated block retaining wall on the east side along Kinney Street.</p>"];
slides[13] = ["../../images/slideshow14.jpg", "<h3>1112 West Marshall Street</h3><p>This home at 1112 W. Marshall St., one of six Queen Anne row houses, is typical of the style found in the Fan District and form an unusual block on West Marshall Street. Constructed around 1890, these row houses have a shed roof with no supports at the entry. There is a two-story, three-sided projecting bay with corbelled brick panels below the windows and corbelled brick below the sheet-metal cornice. An interesting feature is a brick retaining wall that encloses a one-story deep light well.</p>"];
slides[14] = ["../../images/slideshow15.jpg", "<h3>1128 West Marshall Street</h3><p>1128 W. Marshall St. is one of several Italianate two-story, three-bay, brick double houses that have hip-roofed porches with turned posts, sawn balustrade, a spindle frieze and elongated curved brackets that form an arch. There are heavy brackets at building line and corners. There are floor-to-ceiling windows on the first story, and the chimneys are shared. Most of these homes have been lovingly restored and now form a coherent block of dwellings along this mixed-use area of West Marshall Street.</p>"];
slides[15] = ["../../images/slideshow16.jpg", "<h3>803-05 West Clay Street</h3><p>Built around 1870 in the Italianate style, these homes at 803-05 W. Clay St. have some of the very fine ironwork and elaborate cast-iron posts, balustrade and frieze that are often seen in Jackson Ward, just a few blocks to the east of Carver. The box cornice has modillions, dentils and a decorative-paneled frieze. The windows have wooden flat arches and sills, and there is an arched transom above the entry door. These buildings are undergoing renovation and will soon be returned to their original magnificence.</p>"];
slides[16] = ["../../images/slideshow17.jpg", "<h3>729 Catherine Street</h3><p>The Harry M. Evans House at 729 Catherine St. was built around 1860 and was once half of a double house. The gable-roofed dwelling has a centered entrance with an arched transom. The flanking windows have segmental arched heads. The upper story and the porch have been altered and this unique survivor awaits suitable reuse. The Catherine Street area has become a center of suitable and sensitive infill by new homes.</p>"];
slides[17] = ["../../images/slideshow18.jpg", "<h3>1208 West Marshall Street</h3><p>1208 W. Marshall St. is a perfect example of the Art Deco style, circa 1915. This sturdy and stylish building with its strong pilasters and interesting detail is typical of the decoration and care put into even commercial buildings of the day.</p>"];
slides[18] = ["../../images/slideshow19.jpg", "<h3>900 West Marshall Street</h3><p>The Biggs Antique Company building was originally constructed in 1924 at 900 W. Marshall St. for the Baughman Stationery Company. This Classical Revival manufacturing facility has a two-story, three-bay by seven-bay office block at the eastern end and a one-story, seven-bay factory wing to the west. Biggs Antique Company was known as one of the largest users of solid mahogany and had a distinguished reputation as the manufacturer and importer of fine colonial reproduction furniture. The building  has been renovated as the Historical Biggs Apartments.</p>"];
slides[19] = ["../../images/slideshow20.jpg", "<h3>705-07 West Clay Street</h3><p>This late-Victorian double house at 705-07 W. Clay St. was built around 1900. It has a pressed-brick facade and bracketed-box cornice with dentils, and the porch cornice has brackets and dentils. The building has sawn decorative vents in the frieze. Reflecting the high-style seen in nearby Jackson Ward, this building will be an important part of the gateway to Carver when renovation is completed.</p>"];
			  
			  
			  
//above slide show uses only the defaults
slides.controls_top=1; //use for top controls
slides.height=200; //use to set height of tallest image if dimensions vary
//slides.image_controls=1; //use images for controls

//Notes:
//slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present
//slides#.specs will set new window specifications for a slide group, will be overridden by slides#[#][4], if present
//slides#.fadecolor will set fading images background color, defaults to white
//slides#.no_controls will set a slide show with no controls
//slides#.random will set a random slide sequence on each page load
//slides#.delay=3000 will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter
//slides#.jumpto=1 will display added controls to jump to a particular image by its number
//slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls

//use below to create a customized onclick event for linked images in a given show:
//slides#.onclick="window.open(this.href,this.target,'top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;"












////NO need to edit /////////////

/***********************************************
* Swiss Army Image slide show script  - © John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
***********************************************/

function preloadctrl(im){
if (typeof im=='string'){
var imo=new Image();
imo.src=im;
}
}

if(document.images&&typeof preload_ctrl_images!='undefined'&&preload_ctrl_images){
var ctrlimgs=[previmg, stopimg, playimg, nextimg]
for (var i_tem = 0; i_tem < ctrlimgs.length; i_tem++)
if (ctrlimgs[i_tem])
preloadctrl(ctrlimgs[i_tem])
}

var iss=[]; //array to cache inter_slide instances

function inter_slide(){
if(!document.images||arguments.length==0)
return;
var imgs=arguments[0];
var width=null, height=null, delay=null;
if(arguments.length==2)
delay=arguments[1];
else if(arguments.length==3||arguments.length==4)
width=arguments[1], height=arguments[2], delay=arguments[3]? arguments[3] : null;
this.dom=(document.getElementById) //modern dom browsers
this.da=document.all
this.delay=imgs.delay? imgs.delay : delay? delay : 3000+iss.length*750;
this.nextimgidx=0;
iss[this.issid=iss.length]=this;
this.imgs=imgs;
if (imgs.random)
this.imgs.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.imgborder=imgs.border? parseInt(imgs.border) : 0;
if (!this.dom){
this.postimgs=new Array() //preload imgs
for (p=0;p<imgs.length;p++){
this.postimgs[p]=new Image()
this.postimgs[p].src=this.imgs[p][0]
}
}

if (this.dom){ //if modern browsers (ie: Firefox, IE5+)
this.faded=0;
this.loadimgidx=[];
this.fade=!imgs.nofade;
if(this.fade)
this.degree=10 //initial opacity degree (10%)
this.pausecheck=imgs.pause;
this.mouseovercheck=0
this.canvasbase="canvas"+this.issid
this.curcanvas=this.canvasbase+"_0"
this.descriptions=!imgs.no_descriptions;
this.man_start=imgs.manual_start;
this.addbr=!imgs.no_added_linebreaks;
this.no_auto=imgs.no_auto;
this.onclick=imgs.onclick;
this.specs=imgs.specs;
this.counter=imgs.counter;
this.ics=imgs.image_controls;
this.jumpto=imgs.jumpto;
this.no_c=imgs.no_controls;
this.target=imgs.target;
this.ualt=imgs.use_alt;
this.utit=imgs.use_title;
this.fadecolor=imgs.fadecolor;
this.ibut_hc=imgs.button_highlight;
this.dp=imgs.desc_prefix? imgs.desc_prefix : ' ';
this.imbcolor=imgs.border_color;
this.imbstyle=imgs.border_style;
this.width=imgs.width? imgs.width : width? width : null
this.width=this.width? this.width+this.imgborder*2 : null;
this.height=imgs.height? imgs.height : height? height : null
this.height=this.height? this.height+this.imgborder*2 : null;
var ief='', dims='';
if(this.width||this.height)
dims=this.width&&this.height? 'width:'+this.width+'px;height:'+this.height+'px;' : this.width? 'width:'+this.width+'px;' : 'height:'+this.height+'px;';
if(this.fade&&document.body&&document.body.style)
ief=document.body.filters? 'filter:progid:DXImageTransform.Microsoft.alpha(opacity=0);' : typeof document.body.style.opacity=='string'? 'opacity:0;' : 'opacity:0.10;-moz-opacity:0.10;-khtml-opacity:0.10;';
var brs=this.addbr? '<br>' : '';
if (imgs.controls_top){
this.controls();
document.write(brs)
}
document.write('<div align="center"><div id="master'+this.issid+'" style="position:relative;'+dims+'overflow:hidden;margin:0 auto;"><div id="'+this.canvasbase+'_0" style="position:absolute;'+dims+'top:0;left:0;'+ief+'background-color:'+(imgs.fadecolor? imgs.fadecolor : '#c1c3ae')+'"><\/div><div id="'+this.canvasbase+'_1" style="position:absolute;'+dims+'top:0;left:0;'+ief+'background-color:'+(imgs.fadecolor? imgs.fadecolor : '#c1c3ae')+'"><\/div><\/div><\/div>')
if(this.descriptions)
document.write(brs+'<div align="left">'+this.dp+'<span id="imgdsc'+this.issid+'">&nbsp;<\/span></div>\n');
if(this.counter&&!this.descriptions)
document.write(brs);
if(this.counter)
this.cntrl()
if (!imgs.controls_top){
document.write(this.ics? '' : brs);
this.controls();
}
}
else
document.write('<div align="center"><img name="defaultslide'+this.issid+'" src="'+this.postimgs[0].src+'"><\/div>')


if (this.dom) //if modern browsers such as Firefox, IE5+
this.startit()
else{
this.nextimgidx++
setInterval("iss["+this.issid+"].rotateimg()", this.delay)
}
}

inter_slide.prototype.cntrl=function(){
this.cpad=this.imgs.length.toString().length;
document.write('<div align="center">Viewing Image: <b><span id="thecnt'+this.issid+'"><\/span><\/b> of<span style="font-size:1ex;">&nbsp;</span>&nbsp;<b>'+this.imgs.length+'<\/b><\/div>');
}

inter_slide.prototype.controls=function(){
var brs=this.addbr? '<br>' : ' &nbsp;';
if(!this.ics&&!this.no_c)
document.write('<div id="ss_controls" align="center"><input id="prev'+this.issid+'" disabled type="button" value=" << " onclick="iss['+this.issid+'].changeimg(false, \'nav\');">\n'+
(this.no_auto? '&nbsp;&nbsp;&nbsp;' : ' <input id="gostp'+this.issid+'" type="button" value=" Stop " onclick="iss['+this.issid+'].gostop(this);">\n')+
' <input id="next'+this.issid+'" disabled type="button" value=" >> " onclick="iss['+this.issid+'].changeimg(true, \'nav\');">'+(this.jumpto? brs+'Jump to: <input disabled type="text" size="'+this.imgs.length.toString().length+'" id="goto'+this.issid+'" onkeydown="iss['+this.issid+'].jumper(event);"><input id="go'+this.issid+'" disabled type="button" onclick="iss['+this.issid+'].jumper();" value="GO">' : '')+'<\/div>')
else if(this.ics&&!this.no_c){
var op=document.body.filters? ' style="filter:alpha(opacity=100);"' : ' style="opacity:'+(this.man_start? 0.99 : 0.45)+';"';
document.write('<table align="center" cellpadding="0" cellspacing="10"><tr><td valign="middle" align="center" style="padding:2px 2px 1px 2px;"><input'+op+' onmouseover="iss['+this.issid+'].ibute(this,1);" onmouseout="iss['+this.issid+'].ibute(this,2);" onmousedown="iss['+this.issid+'].ibute(this,3);" onmouseup="iss['+this.issid+'].ibute(this,4);" type="image" title="Previous" id="prev'+this.issid+'" src="'+previmg+'" onclick="iss['+this.issid+'].changeimg(false, \'nav\');"><\/td>'+(this.no_auto? '<td>&nbsp;<\/td>' : '<td valign="middle" align="center" style="padding:2px 2px 1px 2px;"><input onmouseover="iss['+this.issid+'].ibute(this,1);" onmouseout="iss['+this.issid+'].ibute(this,2);" onmousedown="iss['+this.issid+'].ibute(this,3);" onmouseup="iss['+this.issid+'].ibute(this,4);" title="Stop" type="image" id="gostp'+this.issid+'" src="'+(this.g_fPlayMode? playimg : stopimg)+'" onclick="iss['+this.issid+'].gostop(this);"><\/td>')+'<td valign="middle" align="center" style="padding:2px 2px 1px 2px;"><input'+op+' onmouseover="iss['+this.issid+'].ibute(this,1);" onmouseout="iss['+this.issid+'].ibute(this,2);" onmousedown="iss['+this.issid+'].ibute(this,3);" onmouseup="iss['+this.issid+'].ibute(this,4);" type="image" title="Next" id="next'+this.issid+'" src="'+nextimg+'" onclick="iss['+this.issid+'].changeimg(true, \'nav\');"><\/td><\/tr><\/table>\n');
}
else
this.no_c=1;
}

inter_slide.prototype.jumper=function(e){
var key;
if(typeof e=='object')
key=e.keyCode? e.keyCode : e.which? e.which : 1;
if(key&&key!==13)
return;
var num=typeof e=='number'? e : parseInt(this.go('goto'+this.issid).value);
if(num<=this.imgs.length&&num>0){
this.nextimgidx=num-2;
this.changeimg(true, 'jump');
}
}

inter_slide.prototype.ibute=function(obj, i){
if(!obj.parentNode)
return;
if(i==1)
obj.parentNode.style.backgroundColor=this.ibut_hc? this.ibut_hc : 'yellow';
else if(i==2)
obj.parentNode.style.backgroundColor='transparent';
else if(i==3){
obj.parentNode.style.borderTop=obj.parentNode.style.borderLeft='1px solid gray';
obj.parentNode.style.paddingRight='1px';obj.parentNode.style.paddingBottom=0;
}
if (i==2||i==4){
obj.parentNode.style.borderTop=obj.parentNode.style.borderLeft='none';
obj.parentNode.style.paddingRight='2px';obj.parentNode.style.paddingBottom='1px';
}
}

inter_slide.prototype.fadepic=function(){
if (this.fade&&this.degree<100){
this.faded=0
this.degree+=10
if (this.tempobj.filters&&this.tempobj.filters[0]){
if (typeof this.tempobj.filters[0].opacity=="number") //if IE6+
this.tempobj.filters[0].opacity=this.degree
else //else if IE5.5-
this.tempobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (this.tempobj.style.MozOpacity)
this.tempobj.style.MozOpacity=this.degree/101
else if (this.tempobj.style.KhtmlOpacity)
this.tempobj.style.KhtmlOpacity=this.degree/100
else if (this.tempobj.style.opacity&&!this.tempobj.filters)
this.tempobj.style.opacity=this.degree/101
}
else{
this.faded=1
clearInterval(this.fadeclear)
this.nextcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_0" : this.canvasbase+"_1"
this.tempobj=this.go(this.nextcanvas)
if(this.playing)
this.changeimg()
}
}

inter_slide.prototype.populateslide=function(picobj, picidx){
if(document.getElementsByTagName){
if(picobj.getElementsByTagName('a')[0]&&picobj.getElementsByTagName('a')[0].onclick)
picobj.getElementsByTagName('a')[0].onclick=null;
if(picobj.getElementsByTagName('img')[0]&&picobj.getElementsByTagName('img')[0].onload)
picobj.getElementsByTagName('img')[0].onload=null;
}
picobj.style.backgroundColor=this.imgs[picidx].fadecolor? this.imgs[picidx].fadecolor : this.fadecolor? this.fadecolor : '#c1c3ae';
var slideHTML='<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"><tr><td width="100%" height="100%" align="center" valign="middle" style="background:transparent none;">'
if (this.imgs[picidx][2]){ //if associated link exists for img
var specs=this.imgs[picidx][4]? ", '"+this.imgs[picidx][4]+"'" : this.specs? ", '"+this.specs+"'" : '';
slideHTML+='<a href="'+this.imgs[picidx][2]+'"'+(this.imgs[picidx][3]? ' target="'+this.imgs[picidx][3]+'"' : this.target? ' target="'+this.target+'"' : '')+' onclick="'+(this.onclick? this.onclick : 'window.open(this.href, (this.target? this.target : \'_self\')'+specs+');return false;')+'">'
}
slideHTML+='<img id="theimg'+picidx+'_'+this.issid+'" src="'+(this.loadimgidx[picidx]&&typeof this.loadimgidx[picidx].complete=='boolean'&&this.loadimgidx[picidx].complete? this.loadimgidx[picidx].src : this.imgs[picidx][0])+'" alt="'+(this.ualt? this.imgs[picidx][1] : 'Slide Show Image')+'" title="'+(this.utit? this.imgs[picidx][1] : '')+'" '+(this.imbcolor&&!this.imgs[picidx].noborder? 'style="border:'+this.imgborder+'px '+(this.imbstyle? this.imbstyle : 'solid')+' '+this.imbcolor+';"' : 'border="'+(this.imgs[picidx].noborder? '0' : this.imgborder)+'"')+(!this.width||!this.height? ' onload="iss['+this.issid+'].imgload(this);"' : '')+'>'
if (this.imgs[picidx][2]) //if associated link exists for img
slideHTML+='<\/a>'
slideHTML+='<\/td><\/tr><\/table>'
picobj.innerHTML=slideHTML
}

inter_slide.prototype.buttons=function(bool){
if(this.no_c)
return;
var next=this.go('next'+this.issid), prev=this.go('prev'+this.issid);
next.disabled=prev.disabled=!bool;
next.title=bool? 'next' : '';
prev.title=bool? 'previous' : '';
if(this.jumpto&&!this.ics)
this.go('go'+this.issid).disabled=this.go('goto'+this.issid).disabled=!bool;
if(this.ics){
if(!this.no_auto){
var go=this.go('gostp'+this.issid)
go.title=bool? 'Play' : 'Stop';
go.src=bool? playimg : stopimg;
}
if(prev.filters&&prev.parentNode)
prev.parentNode.style.filter=next.parentNode.style.filter='alpha(opacity='+(bool? 100 : 45)+')';
else if(prev.style.opacity&&!prev.filters)
prev.style.opacity=next.style.opacity=bool? 0.99 : 0.45;
}
}

inter_slide.prototype.imgload=function(el){
if(!el&&!this.imgel)
return;
var el=el? el : this.imgel;
if(el.width==0||el.height==0){
this.imgel=el;
var cacheobj=this;
clearTimeout(this.getdim)
this.getdim=setTimeout(function(){cacheobj.imgload()}, 300)
return;
}
var m=this.go('master'+this.issid).style, c0=this.go(this.canvasbase+'_0').style, c1=this.go(this.canvasbase+'_1').style;
if(!this.width){
this.width=el.width+this.imgborder*2;
m.width = c0.width = c1.width = this.width+'px';
}
if(!this.height){
this.height=el.height+this.imgborder*2;
m.height = c0.height = c1.height = this.height+'px';
}
}

inter_slide.prototype.changeimg=function(bool,nav){
if(this.playing){
this.buttons(false)
this.nextimgidx=(this.keeptrack()<this.imgs.length-1)? this.keeptrack()+1 : 0
this.populateslide(this.tempobj, this.nextimgidx)
if(bool)
this.rotateimg()
else{
clearTimeout(this.inprocess)
this.inprocess=setTimeout("iss["+this.issid+"].rotateimg()", this.delay)
}
}
else {
if(!this.faded){
if(nav&&nav=='nav')
return;
this.nextimgidx=this.keeptrack()+(bool? 1 : -1)
this.nextimgidx=(this.nextimgidx<this.imgs.length)? this.nextimgidx : this.nextimgidx-this.imgs.length
this.nextimgidx=(this.nextimgidx>-1)? this.nextimgidx : this.imgs.length+this.nextimgidx
return;
}
if(this.fadeclear)
clearInterval(this.fadeclear);
if(bool){
var loadidx=this.nextimgidx+2
loadidx=(loadidx<this.imgs.length)? loadidx : loadidx-this.imgs.length;
loadidx=(loadidx>-1)? loadidx : this.imgs.length+loadidx;
this.loadimgidx[loadidx]=new Image();
this.loadimgidx[loadidx].src=this.imgs[loadidx][0];
}
else{
var loadidx=this.nextimgidx-2
loadidx=(loadidx<this.imgs.length)? loadidx : loadidx-this.imgs.length
loadidx=(loadidx>-1)? loadidx : this.imgs.length+loadidx
this.loadimgidx[loadidx]=new Image();
this.loadimgidx[loadidx].src=this.imgs[loadidx][0];
}
if(nav&&nav=='jump')
this.nextimgidx++;
else
this.nextimgidx=this.keeptrack()+(bool? 1 : -1)
this.nextimgidx=(this.nextimgidx<this.imgs.length)? this.nextimgidx : this.nextimgidx-this.imgs.length
this.nextimgidx=(this.nextimgidx>-1)? this.nextimgidx : this.imgs.length+this.nextimgidx
this.populateslide(this.tempobj, this.nextimgidx)
this.rotateimg()
}
}

inter_slide.prototype.go=function(id){
return this.da? this.da[id] : document.getElementById(id);
}

inter_slide.prototype.rotateimg=function(){
if(this.dom){
var cimg=this.go('theimg'+this.nextimgidx+'_'+this.issid)? this.go('theimg'+this.nextimgidx+'_'+this.issid) : null;
if(cimg&&typeof cimg.complete=='boolean'&&!cimg.complete){
var cacheobj=this
clearTimeout(this.loading)
this.loading=setTimeout(function(){cacheobj.rotateimg()}, 300)
return;
}
if (this.mouseovercheck==1){
var cacheobj=this
clearTimeout(this.mousep)
this.mousep=setTimeout(function(){cacheobj.rotateimg()}, 100)
return;
}
if(this.fade)
this.resetit()
var crossobj=this.tempobj=this.go(this.curcanvas)
crossobj.style.zIndex++
var othercanvas=this.curcanvas==this.canvasbase+"_0"? this.go(this.canvasbase+"_1") : this.go(this.canvasbase+"_0");
othercanvas.style.zIndex=0;
if(this.descriptions)
this.go('imgdsc'+this.issid).innerHTML = this.imgs[this.keeptrack()][1];
if(this.counter){
var padit='';
for (var p=0; p<this.cpad-(this.nextimgidx+1).toString().length; p++)
padit+='<span style="visibility:hidden;">0</span>';
this.go('thecnt'+this.issid).innerHTML = padit+(this.keeptrack()<this.imgs.length? this.keeptrack()+1 : 1);
}
if (this.jumpto)
this.go('goto'+this.issid).value=this.keeptrack()<this.imgs.length? this.keeptrack()+1 : 1;
this.jumperidx=this.keeptrack()<this.imgs.length? this.keeptrack()+1 : 1;
var fadeobj=this
clearInterval(this.fadeclear)
this.fadeclear=setInterval(function(){fadeobj.fadepic()},50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var v4imgobj=document.images['defaultslide'+this.issid]
v4imgobj.src=this.postimgs[this.nextimgidx].src
this.nextimgidx=(this.nextimgidx<this.imgs.length-1)? this.nextimgidx+1 : 0
}
}

inter_slide.prototype.resetit=function(){
this.degree=10
var crossobj=this.go(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}

inter_slide.prototype.startit=function(){
this.playing=1
var crossobj=this.go(this.curcanvas)
this.populateslide(crossobj, this.nextimgidx)
if (this.pausecheck==1){ //if slideshow should pause onmouseover
var cacheobj=this
var crossobjcontainer=this.go("master"+this.issid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimg()
if(this.no_auto)
this.gostop();
else if(this.man_start)
this.gostop(this.go('gostp'+this.issid));
else if(this.ics&&document.body.filters){ //kludge for IE5.5 bug
this.buttons(false);
}
}

inter_slide.prototype.gostop=function(el){
if(el)
el.value=el.value==' Stop '? ' Play ' : ' Stop ';
if(this.inprocess&&this.playing){
clearTimeout(this.inprocess);
this.nextimgidx-=this.faded;
}
this.playing=!this.playing;
if(this.playing){
clearInterval(this.fadeclear)
this.faded=1
this.changeimg(true);
}
else{
var loadidx=(this.keeptrack()<this.imgs.length-1)? this.keeptrack()+1 : 0
this.loadimgidx[loadidx]=new Image();
this.loadimgidx[loadidx].src=this.imgs[loadidx][0];
this.jumper(this.jumperidx? this.jumperidx : 0)
this.buttons(true);
}
}

inter_slide.prototype.keeptrack=function(){
if(!document.getElementsByTagName)
return this.nextimgidx;
var canvases=[this.go('canvas'+this.issid+'_0'), this.go('canvas'+this.issid+'_1')]
if(canvases[0].style.zIndex>canvases[1].style.zIndex&&canvases[0].getElementsByTagName("img")[0])
return parseInt(canvases[0].getElementsByTagName('img')[0].id.replace(/theimg/, ''))
else if(canvases[1].getElementsByTagName("img")[0])
return parseInt(canvases[1].getElementsByTagName('img')[0].id.replace(/theimg/, ''))
else
return this.nextimgidx;
}