var rotator1 = {
    path:   '/images/toureiffel/',
    id:   'r1',
    speed:  4000, // default 4500
	bMouse: true,
    images: ["BK_ODLB_000098FR_xlg_image.jpg", "022010_nouveautes_xlg_image.jpg", "022010_sherlock_holmes_xlg_image.jpg", 
	"022010_jeunesse_xlg_image.jpg","022010_histoire_xlg_image.jpg"],
    bTrans: true, // ie win filter
	actions:	[	"http://www.audible.fr/adfr/site/product.jsp?productID=BK_ODLB_000098FR&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/nouveautes/nouveautesLivresAudio.jsp?Ns=P_Release_Date|1&N=1071+1059&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?D=Les-enquetes+de+Sherlock+Holmes&Ntt=Les+enquetes+de+Sherlock+Holmes&Dx=mode%2bmatchallpartial&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes&Ns=P_Title_Sort|0",
					"http://www.audible.fr/adfr/site/smallprices/smallPrices.jsp?N=2485+1071+2377&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?Ntt=De+Vive+Voix&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=2387&BV_UseBVCookie=Yes"
				],
	title: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"],
	alt: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"]
}

function initRotator() {
    dw_Rotator.setup(rotator1);
}
	
	
	//  dw_event.js version date Apr 2008
//  basic event handling file from dyn-web.com

var dw_Event = {
  
    add: function(obj, etype, fp, cap) {
        cap = cap || false;
        if (obj.addEventListener) obj.addEventListener(etype, fp, cap);
        else if (obj.attachEvent) obj.attachEvent("on" + etype, fp);
    }, 

    remove: function(obj, etype, fp, cap) {
        cap = cap || false;
        if (obj.removeEventListener) obj.removeEventListener(etype, fp, cap);
        else if (obj.detachEvent) obj.detachEvent("on" + etype, fp);
    }, 
    
    DOMit: function(e) { 
        e = e? e: window.event; // e IS passed when using attachEvent though ...
        if (!e.target) e.target = e.srcElement;
        if (!e.preventDefault) e.preventDefault = function () { e.returnValue = false; return false; }
        if (!e.stopPropagation) e.stopPropagation = function () { e.cancelBubble = true; }
        return e;
    },
    
    getTarget: function(e) {
        e = dw_Event.DOMit(e); var tgt = e.target; 
        if (tgt.nodeType != 1) tgt = tgt.parentNode; // safari...
        return tgt;
    }
    
}

// Danny Goodman's version (DHTML def ref)
function addLoadEvent(func) {
    var oldQueue = window.onload? window.onload: function() {};
    window.onload = function() {
        oldQueue();
        func();
    }
}

var imgpath = "/images/toureiffel/BK_ODLB_000098FR_xlg_image.jpg";

	 
	 

	 //Tiles

		$(document).ready(function() {
		  $("#auTab1").click(function() {
			$("#auTile1").fadeIn();
			$("#auTile2, #auTile3, #auTile4, #auTile5").hide();	
			document.getElementById("auTile1").innerHTML = "<a href=\"http://www.audible.fr/adfr/site/product.jsp?productID=BK_ODLB_000098FR&BV_UseBVCookie=Yes\" title=\"Le symbole perdu\" alt=\"Le symbole perdu\"><img id=\"r1\" src=\"/images/toureiffel/BK_ODLB_000098FR_xlg_image.jpg\" border=\"0\"/></a>";
			document.getElementById("auTab1").style.color = '#e40e42';
			document.getElementById("auTab2").style.color = '#000000';
			document.getElementById("auTab3").style.color = '#000000';
			document.getElementById("auTab4").style.color = '#000000';
			document.getElementById("auTab5").style.color = '#000000';
				SubmitPause();
			 });
			});	 
		 $(document).ready(function() {
		  $("#auTab2").click(function() {
			$("#auTile2").fadeIn(500);
			$("#auTile1, #auTile3, #auTile4, #auTile5").hide();	
			document.getElementById("auTile2").innerHTML = "<a href=\"http://www.audible.fr/adfr/site/nouveautes/nouveautesLivresAudio.jsp?Ns=P_Release_Date|1&N=1071+1059&BV_UseBVCookie=Yes\" title=\"Les Nouveautés\" alt=\"Les Nouveautés\"><img id=\"r2\" src=\"/images/toureiffel/022010_nouveautes_xlg_image.jpg\" border=\"0\"/></a>";                                           			
			document.getElementById("auTab1").style.color = '#000000';
			document.getElementById("auTab2").style.color = '#e40e42';
			document.getElementById("auTab3").style.color = '#000000';
			document.getElementById("auTab4").style.color = '#000000';
			document.getElementById("auTab5").style.color = '#000000';			
			var rotator2 = {
				path:   '/images/toureiffel/',
				id:   'r2',
				speed:  4000, // default 4500
				bMouse: true,
    images: ["BK_ODLB_000098FR_xlg_image.jpg", "022010_nouveautes_xlg_image.jpg", "022010_sherlock_holmes_xlg_image.jpg", 
	"022010_jeunesse_xlg_image.jpg","022010_histoire_xlg_image.jpg"],
				bTrans: true, // ie win filter
	actions:	[	"http://www.audible.fr/adfr/site/product.jsp?productID=BK_ODLB_000098FR&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/nouveautes/nouveautesLivresAudio.jsp?Ns=P_Release_Date|1&N=1071+1059&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?D=Les-enquetes+de+Sherlock+Holmes&Ntt=Les+enquetes+de+Sherlock+Holmes&Dx=mode%2bmatchallpartial&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes&Ns=P_Title_Sort|0",
					"http://www.audible.fr/adfr/site/smallprices/smallPrices.jsp?N=2485+1071+2377&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?Ntt=De+Vive+Voix&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=2387&BV_UseBVCookie=Yes"
				],
	title: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"],
	alt: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"]
}

			dw_Rotator.setup(rotator2);
			SubmitPause();
			 });
			});
		$(document).ready(function() {
		  $("#auTab3").click(function() {
			$("#auTile3").fadeIn();
			$("#auTile2, #auTile1, #auTile4, #auTile5").hide();	
			document.getElementById("auTile3").innerHTML = "<a href=\"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?D=Les-enquetes+de+Sherlock+Holmes&Ntt=Les+enquetes+de+Sherlock+Holmes&Dx=mode%2bmatchallpartial&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes&Ns=P_Title_Sort|0\" title=\"Sherlock Holmes\" alt=\"Sherlock Holmes\"><img id=\"r3\" src=\"/images/toureiffel/022010_sherlock_holmes_xlg_image.jpg\" border=\"0\"/></a>";    
			document.getElementById("auTab1").style.color = '#000000';
			document.getElementById("auTab2").style.color = '#000000';
			document.getElementById("auTab3").style.color = '#e40e42';
			document.getElementById("auTab4").style.color = '#000000';
			document.getElementById("auTab5").style.color = '#000000';
				var rotator3 = {
				path:   '/images/toureiffel/',
				id:   'r3',
				speed:  4000, // default 4500
				bMouse: true,
    images: ["BK_ODLB_000098FR_xlg_image.jpg", "022010_nouveautes_xlg_image.jpg", "022010_sherlock_holmes_xlg_image.jpg", 
	"022010_jeunesse_xlg_image.jpg","022010_histoire_xlg_image.jpg"],
				bTrans: true, // ie win filter
	actions:	[	"http://www.audible.fr/adfr/site/product.jsp?productID=BK_ODLB_000098FR&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/nouveautes/nouveautesLivresAudio.jsp?Ns=P_Release_Date|1&N=1071+1059&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?D=Les-enquetes+de+Sherlock+Holmes&Ntt=Les+enquetes+de+Sherlock+Holmes&Dx=mode%2bmatchallpartial&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes&Ns=P_Title_Sort|0",
					"http://www.audible.fr/adfr/site/smallprices/smallPrices.jsp?N=2485+1071+2377&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?Ntt=De+Vive+Voix&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=2387&BV_UseBVCookie=Yes"
				],
	title: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"],
	alt: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"]
}
			dw_Rotator.setup(rotator3);	
			SubmitPause();
			 });
			});
		$(document).ready(function() {
		  $("#auTab4").click(function() {
			$("#auTile4").fadeIn();
			$("#auTile2, #auTile1, #auTile3, #auTile5").hide();	
			document.getElementById("auTile4").innerHTML = "<a href=\"http://www.audible.fr/adfr/site/smallprices/smallPrices.jsp?N=2485+1071+2377&BV_UseBVCookie=Yes\" title=\"Contes pour enfants à petits prix\" alt=\"Contes pour enfants à petits prix\"><img id=\"r4\" src=\"/images/toureiffel/022010_jeunesse_xlg_image.jpg\" border=\"0\"/></a>"; 
			document.getElementById("auTab1").style.color = '#000000';
			document.getElementById("auTab2").style.color = '#000000';
			document.getElementById("auTab3").style.color = '#000000';
			document.getElementById("auTab4").style.color = '#e40e42';
			document.getElementById("auTab5").style.color = '#000000';
			var rotator4 = {
				path:   '/images/toureiffel/',
				id:   'r4',
				speed:  4000, // default 4500
				bMouse: true,
    images: ["BK_ODLB_000098FR_xlg_image.jpg", "022010_nouveautes_xlg_image.jpg", "022010_sherlock_holmes_xlg_image.jpg", 
	"022010_jeunesse_xlg_image.jpg","022010_histoire_xlg_image.jpg"],
				bTrans: true, // ie win filter
	actions:	[	"http://www.audible.fr/adfr/site/product.jsp?productID=BK_ODLB_000098FR&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/nouveautes/nouveautesLivresAudio.jsp?Ns=P_Release_Date|1&N=1071+1059&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?D=Les-enquetes+de+Sherlock+Holmes&Ntt=Les+enquetes+de+Sherlock+Holmes&Dx=mode%2bmatchallpartial&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes&Ns=P_Title_Sort|0",
					"http://www.audible.fr/adfr/site/smallprices/smallPrices.jsp?N=2485+1071+2377&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?Ntt=De+Vive+Voix&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=2387&BV_UseBVCookie=Yes"
				],
	title: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"],
	alt: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"]
}
			dw_Rotator.setup(rotator4);
			SubmitPause();
			 });
			});	
		$(document).ready(function() {
		  $("#auTab5").click(function() {
			$("#auTile5").fadeIn();
			$("#auTile2, #auTile1, #auTile3, #auTile4").hide();	
			document.getElementById("auTile5").innerHTML = "<a href=\"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?Ntt=De+Vive+Voix&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=2387&BV_UseBVCookie=Yes\" title=\"Revisitez les grandes pages de l'Histoire\" alt=\"Revisitez les grandes pages de l'Histoire\"><img id=\"r5\" src=\"/images/toureiffel/022010_histoire_xlg_image.jpg\" border=\"0\"/></a>";
			document.getElementById("auTab1").style.color = '#000000';
			document.getElementById("auTab2").style.color = '#000000';
			document.getElementById("auTab3").style.color = '#000000';
			document.getElementById("auTab4").style.color = '#000000';
			document.getElementById("auTab5").style.color = '#e40e42';
			dw_Rotator.resume;
			var rotator5 = {
				path:   '/images/toureiffel/',
				id:   'r5',
				speed:  4000, // default 4500
				bMouse: true,
    images: ["BK_ODLB_000098FR_xlg_image.jpg", "022010_nouveautes_xlg_image.jpg", "022010_sherlock_holmes_xlg_image.jpg", 
	"022010_jeunesse_xlg_image.jpg","022010_histoire_xlg_image.jpg"],
				bTrans: true, // ie win filter
	actions:	[	"http://www.audible.fr/adfr/site/product.jsp?productID=BK_ODLB_000098FR&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/nouveautes/nouveautesLivresAudio.jsp?Ns=P_Release_Date|1&N=1071+1059&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?D=Les-enquetes+de+Sherlock+Holmes&Ntt=Les+enquetes+de+Sherlock+Holmes&Dx=mode%2bmatchallpartial&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes&Ns=P_Title_Sort|0",
					"http://www.audible.fr/adfr/site/smallprices/smallPrices.jsp?N=2485+1071+2377&BV_UseBVCookie=Yes",
					"http://www.audible.fr/adfr/site/audibleSearch/searchResults.jsp?Ntt=De+Vive+Voix&Ntk=S_Keywords_FR&Ntx=mode%2bmatchallpartial&N=2387&BV_UseBVCookie=Yes"
				],
	title: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"],
	alt: ["Le symbole perdu","Les Nouveautés","Sherlock Holmes","Contes pour enfants à petits prix","Revisitez les grandes pages de l'Histoire"]
}
			
			dw_Rotator.setup(rotator5);	
			SubmitPause();			
			 });			 
			});


function SubmitPause() {
setTimeout("pause()",4000);
return false;
}

function pause() {	
	document.getElementById("auTab5").style.color = '#000000';
	document.getElementById("auTab1").style.color = '#000000';
	document.getElementById("auTab2").style.color = '#000000';
	document.getElementById("auTab3").style.color = '#000000';
	document.getElementById("auTab4").style.color = '#000000';
return false;
} 



/*************************************************************************
    This code is from Dynamic Web Coding at dyn-web.com
    Copyright 2001-2009 by Sharon Paine 
    See Terms of Use at www.dyn-web.com/business/terms.php
    regarding conditions under which you may use this code.
    This notice must be retained in the code as is!
    
    Version date: April 2009
    supports sequential and random rotation and IE win transition filter
    requires dw_event.js 2008 version
*************************************************************************/

// arguments: image id, rotation speed, path to images (optional), 
// new (optional) arguments: for transitions, mouse events and random rotation 
function dw_Rotator(id, speed, path, bTrans, bMouse, bRand) {
    var imgObj = document.getElementById(id); 
    if (!imgObj) { // in case name, not id attached to image
        imgObj = document.images[id];
        if (!imgObj) return;
        imgObj.id = id;
    }
    this.id = id; this.speed = speed || 4500; // default speed of rotation
    this.path = path || "";  this.bRand = bRand;
    this.ctr = 0; this.timer = 0; this.imgs = []; 
    this._setupLink(imgObj, bMouse);
    this.bTrans = bTrans && typeof imgObj.filters != 'undefined';
    var index = dw_Rotator.col.length; dw_Rotator.col[index] = this;
    this.animString = "dw_Rotator.col[" + index + "]";
}

dw_Rotator.col = []; // hold instances
dw_Rotator.resumeDelay = 4000; // onmouseout resume rotation after delay

// mouse events pause/resume
dw_Rotator.prototype._setupLink = function(imgObj, bMouse) { 
    if ( imgObj.parentNode /*&& imgObj.parentNode.tagName.toLowerCase() == 'a' */) {
        var parentLink = this.parentLink = imgObj.parentNode;		
        if (bMouse) {			
            dw_Event.add(parentLink, 'mouseover', dw_Rotator.pause);
            dw_Event.add(parentLink, 'mouseout', dw_Rotator.resume);
        }
    }
}

// so instance can be retrieved by id (as well as by looping through col)
dw_Rotator.getInstanceById = function(id) {
    var len = dw_Rotator.col.length, obj;
    for (var i=0; i<len; i++) {
        obj = dw_Rotator.col[i];
        if (obj.id && obj.id == id ) {
            return obj;
        }
    }
    return null;
}

dw_Rotator.prototype.on_rotate = function() {}

dw_Rotator.prototype.addImages = function() { // preloads images
    var img;
    for (var i=0; arguments[i]; i++) {
        img = new Image();
        img.src = this.path + arguments[i];
        this.imgs[this.imgs.length] = img;
    }
}

dw_Rotator.prototype.rotate = function() {
    clearTimeout(this.timer); this.timer = null;
    var imgObj = document.getElementById(this.id);
    if ( this.bRand ) {
        this.setRandomCtr();
    } else {
        if (this.ctr < this.imgs.length-1) this.ctr++;
        else this.ctr = 0;
    }
    if ( this.bTrans ) {
        this.doImageTrans(imgObj);
    } else {
        imgObj.src = this.imgs[this.ctr].src;
    }
    this.swapAlt(imgObj); this.prepAction(); this.on_rotate();
    this.timer = setTimeout( this.animString + ".rotate()", this.speed);   
}

dw_Rotator.prototype.setRandomCtr = function() {
    var i = 0, ctr;
    do { 
        ctr = Math.floor( Math.random() * this.imgs.length );
        i++; 
    } while ( ctr == this.ctr && i < 6 )// repeat attempts to get new image, if necessary
    this.ctr = ctr;
}

dw_Rotator.prototype.doImageTrans = function(imgObj) {
    imgObj.style.filter = 'blendTrans(duration=1)';
    if (imgObj.filters.blendTrans) imgObj.filters.blendTrans.Apply();
    imgObj.src = this.imgs[this.ctr].src;
    imgObj.filters.blendTrans.Play(); 
}

dw_Rotator.prototype.swapAlt = function(imgObj) {
    if ( !imgObj.setAttribute ) return;
    if ( this.alt && this.alt[this.ctr] ) {
        imgObj.setAttribute('alt', this.alt[this.ctr]);
    }
    if ( this.title && this.title[this.ctr] ) {
        imgObj.setAttribute('title', this.title[this.ctr]);
    }
}

dw_Rotator.prototype.prepAction = function() {	
    if ( this.actions && this.parentLink && this.actions[this.ctr] ) {
        if ( typeof this.actions[this.ctr] == 'string' ) {			
            this.parentLink.href = this.actions[this.ctr];
        } else if ( typeof this.actions[this.ctr] == 'function' ) {
            // to execute function when linked image clicked 
            // passes id used to uniquely identify instance  
            // retrieve it using the dw_Rotator.getInstanceById function 
            // so any property of the instance could be obtained for use in the function 
            var id = this.id;
            this.parentLink.href = "javascript: void " + this.actions[this.ctr] + "('" + id + "')";
        } 
    }
}

dw_Rotator.prototype.showCaption = function() {
    if ( this.captions && this.captionId ) {
        var el = document.getElementById( this.captionId );
        if ( el && this.captions[this.ctr] ) {
            el.innerHTML = this.captions[this.ctr];
        }
    }
}

// Start rotation for all instances 
dw_Rotator.start = function() {
    var len = dw_Rotator.col.length, obj;
    for (var i=0; i<len; i++) {
        obj = dw_Rotator.col[i];
        if (obj && obj.id ) {
            clearTimeout( obj.timer ); obj.timer = null; 
            obj.timer = setTimeout( obj.animString + ".rotate()", obj.speed);
        }
    }	
}

// Stop rotation for all instances 
dw_Rotator.stop = function() {
    var len = dw_Rotator.col.length, obj;
    for (var i=0; i<len; i++) {
        obj = dw_Rotator.col[i];
        if (obj ) { clearTimeout(obj.timer); obj.timer = null; }
    }
}

// for stopping/starting (onmouseover/out)
dw_Rotator.pause = function(e) {	
    e = dw_Event.DOMit(e);
    var id = e.target.id;
    var obj = dw_Rotator.getInstanceById(id);
    if ( obj ) { clearTimeout( obj.timer ); obj.timer = null; }
}

dw_Rotator.resume = function(e) {
    e = dw_Event.DOMit(e);
    var id = e.target.id;	
    var obj = dw_Rotator.getInstanceById(id);
    if ( obj && obj.id ) {
        obj.timer = setTimeout( obj.animString + ".rotate()", dw_Rotator.resumeDelay );
    }
}

// calls constructor, addImages, adds actions, etc.
dw_Rotator.setup = function () {
    if (!document.getElementById) return;
	
	//document.getElementById("auTab5").style.color = '#000000';
	//alert("step 1");
    var i, j, rObj, r, imgAr, len;
    for (i=0; arguments[i]; i++) {
        rObj = arguments[i];
        r = new dw_Rotator(rObj.id, rObj.speed, rObj.path, rObj.bTrans, rObj.bMouse, rObj.bRand);
        try {
            imgAr = rObj.images; len = imgAr.length;
            for (j=0; j<len; j++) { r.addImages( imgAr[j] ); }
            if( rObj.num ) r.ctr = rObj.num; // for seq after random selection
            if ( rObj.actions && rObj.actions.length == len ) {
                r.addProp('actions', rObj.actions);
            }
            if ( rObj.alt && rObj.alt.length == len ) {
                r.addProp('alt', rObj.alt);
            }
            if ( rObj.title && rObj.title.length == len ) {
                r.addProp('title', rObj.title);
            }
            if ( rObj.captions ) {
                r.addProp('captions', rObj.captions);
                r.captionId = rObj.captionId;
                dw_Rotator.addRotateEvent(r, function (id) { 
                    return function() { dw_Rotator.getInstanceById(id).showCaption(); }
                }(rObj.id) ); // see Crockford js good parts pg 39
            }
        } catch (e) { 
            //alert(e.message); 
        }
    }
    dw_Rotator.start();

}

// add to on_rotate for specified instance (r)
// see usage above for captions
dw_Rotator.addRotateEvent = function( r, fp ) {
    var old_on_rotate = r.on_rotate;
    r.on_rotate = function() { old_on_rotate(); fp(); }
}

// for adding actions, alt, title
dw_Rotator.prototype.addProp = function(prop, ar) {
    if ( !this[prop] ) {
        this[prop] = [];
    }
    var len = ar.length; 
    for (var i=0; i < len; i++) {
        this[prop][ this[prop].length ] = ar[i]; 
    }
}

/////////////////////////////////////////////////////////////////////
// Reminder about licensing requirements
// See Terms of Use at www.dyn-web.com/business/terms.php
// OK to remove after purchasing a license or if using on a personal site.
function dw_checkAuth() {
	/*
    var loc = window.location.hostname.toLowerCase();
    var msg = 'A license is required for all but personal use of this code.\n' + 
        'Please adhere to our Terms of Use if you use dyn-web code.';
    if ( !( loc == '' || loc == '127.0.0.1' || loc.indexOf('localhost') != -1 
         || loc.indexOf('192.168.') != -1 || loc.indexOf('dyn-web.com') != -1 ) ) {
        alert(msg);
    }*/
}
dw_Event.add( window, 'load', dw_checkAuth);
/////////////////////////////////////////////////////////////////////






