/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jeroen Haan | http://www.haan.net/ */
/* -----------------------------------------------
Streaming banners - v.1
(c) 2006 www.haan.net
You may use this script but please leave the credits on top intact.
Please inform us of any improvements made.
When usefull we will add your credits.
------------------------------------------------ */
function clip() {
// width of the banner container
var contWidth = 316;
// height of the banner container
var contHeight = 1079;

var id1 = document.getElementById('slideA');
var id2 = document.getElementById('slideB');

id1.style.top = parseInt(id1.style.top)-1 + 'px';

document.getElementById('slideCont').style.Height = contHeight + "px";
document.getElementById('slideCont').style.clip = 'rect(auto,'+ contHeight +'px,' + contWidth +'px,auto)';
id2.style.display = '';
if(parseFloat(id1.style.top) == -(contHeight)) {
id1.style.top = '0px';
}
setTimeout(clip,30)
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}

addLoadEvent(function() {
clip();
});

