function clearCurrentLink(){
    var a = document.getElementsByTagName("A");
    for(var i=0;i<a.length;i++)
        if(a[i].href == window.location.href.split("#")[0]) {
			a[i].parentNode.setAttribute("class","selected");
			removeNode(a[i]);
		}
}

function removeNode(n){
    if(n.hasChildNodes())
        for(var i=0;i<n.childNodes.length;i++)
            n.parentNode.insertBefore(n.childNodes[i].cloneNode(true),n);
    n.parentNode.removeChild(n);
}

window.addEvent('domready', function(){
	clearCurrentLink();
	// var mySlide = new Fx.Slide('slideHead', {mode: 'horizontal', duration: 1000});
	// var mySlide1 = new Fx.Slide('content', 
	//	{duration: 1000, onComplete:function(){document.getElementById('content').parentNode.style.width="744px";}}
	//	);
	// mySlide.hide();
	// mySlide1.hide();
	

	var accordion = new Accordion('h3.atStart', 'div.atStart', {
		show: -1,
		alwaysHide: true,
		opacity: true
	}, $('menuBars'));


	var titleTip = new Tips($$('.roamingTip'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
		
	
	var aboutUsTip = new Tips($$('.aboutBubble'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		fixed: true,
		className: 'fixed',
		offsets: {'x': 130, 'y': -3},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});

	var servicesTip = new Tips($$('.servicesBubble'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		fixed: true,
		className: 'fixed',
		offsets: {'x': 130, 'y': -3},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});


	var collectionsTip = new Tips($$('.collectionsBubble'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		fixed: true,
		className: 'fixed',
		offsets: {'x': 130, 'y': -3},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	
	var collectionsTip = new Tips($$('.additionalProducts'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		fixed: true,
		//className: 'fixed',
		offsets: {'x': 60, 'y': 0},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	
	
	pic1= new Image(744,99);
	pic1.src="/images/logo_744x99.gif";
	// mySlide.slideIn();
	// mySlide1.slideIn.delay(500, mySlide1);
	
});


