<!--

//DeCrypt Email START
function UCM(s, shift) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(shift)); 
	}
	return r;
}
function emcr(s, shift)	{
	location.href=UCM(s, shift);
}
//DeCrypt Email END

//Blur Anttrail on links START
function blurAnchors(){ 
if(document.getElementsByTagName) { 
var a = document.getElementsByTagName("a"); 
//collect all anchors A 
for(var i = 0; i < a.length; i++){ 
// mouse onfocus, blur anchors 
a[i].onfocus = function(){this.blur();}; 
} 
} 
} 
window.onload = blurAnchors; 
//Blur Anttrail on links END


// -->

     /***********************************************
        * Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
        * This notice MUST stay intact for legal use
        * Visit http://www.dynamicdrive.com/ for this script and 100s more.
        ***********************************************/

        var delayb4scroll = 75;  //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
        var marqueespeed = 1;  //Specify marquee scroll speed (larger is faster 1-10)
        var pauseit = 1;  //Pause marquee onMousever (0=no. 1=yes)?

        ////NO NEED TO EDIT BELOW THIS LINE////////////

        var copyspeed = marqueespeed;
        var pausespeed = (pauseit == 0) ? copyspeed : 0;
        var actualheight = '';

        function scrollmarquee() {
            if (parseInt(cross_marquee.style.top) > (actualheight * (-1) + 8))
                cross_marquee.style.top = parseInt(cross_marquee.style.top) - copyspeed + "px";
            else
                cross_marquee.style.top = parseInt(marqueeheight) + 8 + "px";
        }

        function initializemarquee() {
            cross_marquee = document.getElementById("vmarquee");
            cross_marquee.style.top = 0;
            marqueeheight = document.getElementById("marqueecontainer").offsetHeight;
            actualheight = cross_marquee.offsetHeight;
            if (window.opera || navigator.userAgent.indexOf("Netscape/7") != -1) { //if Opera or Netscape 7x, add scrollbars to scroll and exit
                cross_marquee.style.height = marqueeheight + "px";
                cross_marquee.style.overflow = "scroll";
                return
            }
            setTimeout('lefttime=setInterval("scrollmarquee()",50)', delayb4scroll)
        }

        if (window.addEventListener)
            window.addEventListener("load", initializemarquee, false)
        else if (window.attachEvent)
            window.attachEvent("onload", initializemarquee);
        else if (document.getElementById)
            window.onload = initializemarquee; 

        var delayb4scroll2 = 75;  //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
        var marqueespeed2 = 1;  //Specify marquee scroll speed (larger is faster 1-10)
        var pauseit2 = 1;  //Pause marquee onMousever (0=no. 1=yes)?

        ////NO NEED TO EDIT BELOW THIS LINE////////////

        var copyspeed2 = marqueespeed2;
        var pausespeed2 = (pauseit2 == 0) ? copyspeed2 : 0;
        var actualheight2 = '';


        function scrollmarquee2() {
            if (parseInt(cross_marquee2.style.top) > (actualheight2 * (-1) + 8))
                cross_marquee2.style.top = parseInt(cross_marquee2.style.top) - copyspeed2 + "px";
            else
                cross_marquee2.style.top = parseInt(marqueeheight2) + 8 + "px";
        }

        function initializemarquee2() {
            cross_marquee2 = document.getElementById("vmarquee2");
            cross_marquee2.style.top = 0;
            marqueeheight2 = document.getElementById("marqueecontainer2").offsetHeight;
            actualheight2 = cross_marquee2.offsetHeight;
            if (window.opera || navigator.userAgent.indexOf("Netscape/7") != -1) { //if Opera or Netscape 7x, add scrollbars to scroll and exit
                cross_marquee2.style.height = marqueeheight2 + "px";
                cross_marquee2.style.overflow = "scroll";
                return
            }
            setTimeout('lefttime=setInterval("scrollmarquee2()",50)', delayb4scroll)
        }

        if (window.addEventListener)
            window.addEventListener("load", initializemarquee2, false)
        else if (window.attachEvent)
            window.attachEvent("onload", initializemarquee2);
        else if (document.getElementById)
            window.onload = initializemarquee2; 




	  


// BANNER OBJECT
function Banner(objName, basePath){
	this.obj = objName;
    this.basePath = basePath;
	this.aNodes = [];
	this.currentBanner = 0;
	
};

// ADD NEW BANNER
Banner.prototype.add = function(bannerType, bannerPath, bannerDuration, height, width, hyperlink, target) {
	this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, bannerType, bannerPath, bannerDuration, height, width, hyperlink, target);
};

// Node object
function Node(name, bannerType, bannerPath, bannerDuration, height, width, hyperlink, target) {
	this.name = name;
	this.bannerType = bannerType;
	this.bannerPath = bannerPath;
	this.bannerDuration = bannerDuration;
	this.height = height
	this.width = width;
	this.hyperlink= hyperlink;
	this.target= target;
//	alert (name +"|" + bannerType +"|" + bannerPath +"|" + bannerDuration +"|" + height +"|" + width + "|" + hyperlink);
};

// Outputs the banner to the page
Banner.prototype.toString = function() {
	var str = ""
	for (var iCtr=0; iCtr < this.aNodes.length; iCtr++){
		str = str + '<span name="'+this.aNodes[iCtr].name+'" '
		str = str + 'id="'+this.aNodes[iCtr].name+'" ';
		str = str + 'class="m_banner_hide" ';
		str = str + 'bgcolor="#FFFFFF" ';	// CHANGE BANNER COLOR HERE
		str = str + 'align="center" ';
		str = str + 'valign="top" >\n';
		if (this.aNodes[iCtr].target != ""){
			str = str + '<a target="'+this.aNodes[iCtr].target+'" href="'+this.aNodes[iCtr].hyperlink+'">';
		}
			
		if ( this.aNodes[iCtr].bannerType == "FLASH" ){
			str = str + '<OBJECT '
			str = str + 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
			str = str + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
			str = str + 'WIDTH="'+this.aNodes[iCtr].width+'" '
			str = str + 'HEIGHT="'+this.aNodes[iCtr].height+'" '
			str = str + 'id="bnr_'+this.aNodes[iCtr].name+'" '
			str = str + 'ALIGN="" '
			str = str + 'VIEWASTEXT>'
			str = str + '<PARAM NAME=movie VALUE="'+ this.aNodes[iCtr].bannerPath + '">'
			str = str + '<PARAM NAME=quality VALUE=high>'
			str = str + '<PARAM NAME=bgcolor VALUE=#FFFCDA>'
			str = str + '<EMBED ';
			str = str + 'src="'+this.aNodes[iCtr].bannerPath+'" '
			str = str + 'quality=high '
//			str = str + 'bgcolor=#FFFCDA '
			str = str + 'WIDTH="'+this.aNodes[iCtr].width+'" '
			str = str + 'HEIGHT="'+this.aNodes[iCtr].height+'" '
			str = str + 'NAME="bnr_'+this.aNodes[iCtr].name+'" '
			str = str + 'ALIGN="center" '
			str = str + 'TYPE="application/x-shockwave-flash" '
			str = str + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'
			str = str + '</EMBED>'
			str = str + '</OBJECT>'
		}else if ( this.aNodes[iCtr].bannerType == "IMAGE" ){
			str = str + '<img src="'+this.basePath+this.aNodes[iCtr].bannerPath+'" ';
			str = str + 'border="0" ';
			str = str + 'height="'+this.aNodes[iCtr].height+'" ';
			str = str + 'width="'+this.aNodes[iCtr].width+'" alt="">';
		}

		if (this.aNodes[iCtr].target != ""){
			str = str + '</a>';
		}

		str += '</span>';
	}
	return str;
};

// START THE BANNER ROTATION
Banner.prototype.start = function(){
	this.changeBanner();
	var thisBannerObj = this.obj;
	// CURRENT BANNER IS ALREADY INCREMENTED IN cahngeBanner() FUNCTION
	setTimeout(thisBannerObj+".start()", this.aNodes[this.currentBanner].bannerDuration * 1000);
}

// CHANGE BANNER
Banner.prototype.changeBanner = function(){
	var thisBanner;
	var prevBanner = -1;
	if (this.currentBanner < this.aNodes.length ){
		thisBanner = this.currentBanner;
		if (this.aNodes.length > 1){
			if ( thisBanner > 0 ){
				prevBanner = thisBanner - 1;
			}else{
				prevBanner = this.aNodes.length-1;
			}
		}
		if (this.currentBanner < this.aNodes.length - 1){
			this.currentBanner = this.currentBanner + 1;
		}else{
			this.currentBanner = 0;
		}
	}
	

	if (prevBanner >= 0){
		document.getElementById(this.aNodes[prevBanner].name).className = "m_banner_hide";
	}
	document.getElementById(this.aNodes[thisBanner].name).className = "m_banner_show";
}

