////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
***********************************************/


//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=false;

//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=[]; //FSLIDESHOW ZITATE
//configure the below images and descriptions to your own. 
slides[0] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaajyns", "<p style='padding:0 5px'><em>&quot;I firmly believe that integrated energy solutions will be the long-term solution in order to secure energy supply and to fight climate change.&quot;</em><br /><br /><a href='/go/id/djk/' target='_self'>Klaus Töpfer</a><br />Former Executive Director United Nations Environment Programme (UNEP),<br />Chair GEB Advisory Board</p>"];

slides[1] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakdce", "<p style='padding:0 5px'><em>&quot;Reducing global emissions in a way that preserves economic well-being and achieves environmental integrity will require an approach that is comprehensive, fair and ultimately must be incorporated into all aspects of our lives. Integrated energy systems will contribute significantly to our efforts as we work to meet this challenge.&quot;</em><br /><br /> <a href='/go/id/djk/' target='_self'>Eileen Claussen</a><br />President Pew Center on Global Climate Change,<br />GEB Advisory Board</p>"];

slides[2] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakdcf", "<p style='padding:0 5px'><em>&quot;We are facing extraordinary challenges with regard to a secure and sustainable energy future. Partnerships with new players and innovative collaboration models are crucial to tackle those challenges. GEB is about the creation of such partnerships.&quot;</em><br /><br /><a href='/go/id/djk/' target='_self'>Christoph Frei</a><br />Senior Director World Economic Forum,<br />GEB Advisory Board</p>"];

slides[3] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaihgz", "<p style='padding:0 5px'><em>&quot;The world is a village. Negotiations on the global stage feature the same mechanisms as in municipal assemblies: group dynamics emerge and therefore also mutual influence through sentiment and emotion. I support Global Energy Basel as an event which unites countries, cities, companies and NGO’s to find practical, integrated solutions – as on a village square.&quot;</em><br /><br /> <a href='/go/id/djz/' target='_self'>Moritz Leuenberger</a><br />Swiss Federal Councillor,<br />Patron Global Energy Basel</p>"];

slides[4] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakhbc", "<p style='padding:0 5px'><em>&quot;A sustainable energy policy can be put into practice only through close collaboration of governments, regions, cities and their partners in economy and environmental and consumer organizations.&quot;</em><br /><br /> <a href='/go/id/djk/' target='_self'>Claude Martin</a><br />Former Director General WWF,<br />GEB Advisory Board</p>"];

slides[5] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakhca", "<p style='padding:0 5px'><em>&quot;If we want large agglomerations to be places where people enjoy living we need an integrated and cross-sectoral approach.&quot;</em><br /><br /> <a href='/go/id/djk/' target='_self'>Chris Luebkeman</a><br />Engineer and Director at Arup,<br />GEB Advisory Board</p>"];

slides[6] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakjjf", "<p style='padding:0 5px'><em>&quot;Fostering the implementation of secure, efficient and environmentally friendly energy supply in developing countries is absolutely crucial – for the global environment as well as the global economy.&quot;</em><br /><br /> <a href='/go/id/djk/' target='_self'>Walter Fust</a><br />Former General Director, Swiss Agency for Development and Cooperation,<br />GEB Advisory Board</p>"];

slides[7] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakosq", "<p style='padding:0 5px'><em>&quot;Integrated energy solutions grant a secure, carbon-free and affordable energy supply. They help to fight energy shortage, price explosion and climate change.&quot;</em><br /><br /> <a href='/go/id/dsx/' target='_self'>Claudia Kemfert</a><br />Head Energy Department German Institute for Economic Research,<br />GEB Moderator</p>"];

slides[8] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakphv", "<p style='padding:0 5px'><em>&quot;Global Energy Basel has emerged as a leading forum for the energy community to showcase good practice and new solutions. It is my hope that this unique platform will guide us towards making the policy decisions we need to stimulate innovation, promote efficiency, tackle climate change and secure a sustainable energy future for all.&quot;</em><br /><br /> <a href='/go/id/dip/' target='_self'>Ban Ki-moon</a><br />UN Secretary-General</p>"];

slides[9] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakshd", "<p style='padding:0 5px'><em>&quot;The need for integrated energy solutions based on decentralized and renewable sources is obvious and urgent. Promising technical solutions are available and improved daily. Considerable amounts of capital are looking for investment opportunities in this attractive area. The challenge is yet to build up new and support established industry players to match them and their products with the financing criteria of debt- and equity investors at all levels.&quot;</em><br /><br /> <a href='/go/id/dip/' target='_self'>Georg Fankhauser</a><br />Partner Remaco Merger AG</p>"];

//slides[10] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakykf", "<p style='padding:0 5px'><em>&quot;In earlier decades it was easy to believe that technology would solve it all. Today we have to prove that technology can indeed play an important role in confronting the challenges facing our planet's future.&quot;</em><br /><br /> <a href='/go/id/dip/' target='_self'>Oliver Denzler</a><br />CEO Neoperl Holding,<br />Member GEB Business Board</p></p>"];

//above slide show uses only the defaults
slides.random=1; //set a random slide sequence on each page load
slides.image_controls=0; //use images for controls
slides.delay=12000;
slides.no_controls=1;

var slides2=[]; //SLIDESHOW PARTNERS ORGANISATION
//configure the below images and descriptions to your own. 
slides2[0] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakthp", "", "http://www.basel.ch/", "_blank"];
slides2[1] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakthq", "", "http://www.iclei.org/", "_blank"];
slides2[2] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakthr", "", "http://www.unglobalcompact.org/", "_blank"];
slides2[3] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakths", "", "http://www.weforum.org/", "_blank"];
slides2[4] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalamu", "", "http://www.cleantech.com/", "_blank"];
//above slide show uses only the defaults
slides2.random=1; //set a random slide sequence on each page load
slides2.image_controls=0; //use images for controls
slides2.delay=5000;
slides2.no_controls=1;
slides2.no_descriptions=1
slides2.border=0


var slides3=[]; //SLIDESHOW MEDIA PARTNERS
//configure the below images and descriptions to your own. 
slides3[0] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakthn", "", "http://www.eep.org", "_blank"];
slides3[1] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaktho", "", "http://www.vdi-nachrichten.com", "_blank"];
slides3[2] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakxgq", "", "http://www.zfk.de", "_blank"];
slides3[3] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaleyx", "", "http://www.energy-business-review.com", "_blank"];
//above slide show uses only the defaults
slides3.random=1; //set a random slide sequence on each page load
slides3.image_controls=0; //use images for controls
slides3.delay=5000;
slides3.no_controls=1;
slides3.no_descriptions=1
slides3.border=0

var slides4=[]; //SLIDESHOW BUSINESS PARTNERS
//configure the below images and descriptions to your own. 
slides4[0] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaktgn", "", "http://w1.siemens.com/entry/cc/en/", "_blank"];
slides4[1] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaktgm", "", "http://www.itag.ch/Corporate-Finance.588+M52087573ab0.0.html", "_blank"];
slides4[2] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakxiz", "", "http://www.credit-suisse.com/ch/en/", "_blank"];
slides4[3] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakyoc", "", "http://www.oerlikon.com/", "_blank"];
slides4[4] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakyuj", "", "http://www.bp.com/", "_blank"];
slides4[5] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaakyuk", "", "http://www.osram.com/", "_blank"];
slides4[6] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalccd", "", "http://www.bkw-fmb.ch", "_blank"];
slides4[7] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaldse", "", "http://www.airlightenergy.com", "_blank"];
slides4[8] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaldsf", "", "http://www.myclimate.org", "_blank"];
slides4[9] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaldsg", "", "http://www.sarasin.ch/sustainability", "_blank"];
slides4[10] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaldsh", "", "http://www.zouk.com", "_blank"];
slides4[11] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaldtw", "", "http://www.edisunpower.com", "_blank"];
slides4[12] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaleck", "", "http://www.atonsunpower.ch/", "_blank"];
slides4[13] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalecm", "", "http://www.ventizz.de/en/index.html", "_blank"];
slides4[14] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalecj", "", "http://www.manferrostaal.com/", "_blank"];
slides4[15] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalecl", "", "http://www.swx.com/index_en.html", "_blank"];
slides4[16] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaaleva", "", "http://www.sarasin.ch/internet/iech/en/index_iech.htm", "_blank"];
slides4[17] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalevb", "", "http://www.solantis.eu/EN/index_en.html", "_blank"];
slides4[18] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalfab", "", "http://www.poyry.com", "_blank"];
slides4[19] = ["http://www.globalenergybasel.com/global/show_picture.asp?id=aaaaaaaaaaalfaa", "", "http://www.enviromena.com", "_blank"];


//above slide show uses only the defaults
slides4.random=1; //set a random slide sequence on each page load
slides4.image_controls=0; //use images for controls
slides4.delay=5000;
slides4.no_controls=1;
slides4.no_descriptions=1
slides4.border=0






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 : 'white')+'"><\/div><div id="'+this.canvasbase+'_1" style="position:absolute;'+dims+'top:0;left:0;'+ief+'background-color:'+(imgs.fadecolor? imgs.fadecolor : 'white')+'"><\/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<p 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 align="left"><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 : 'white';
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+='<p 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;
}

