

var panelTrader 		= "up";
var panelSerices 		= "up";
var panelDevelopment 	= "up";
var panelMarket 		= "up";


function togglePanel(id){




	if(panelTrader == "down" && id != 'traderPanel') {
		document.getElementById('traderHeader').src = 'http://www.online-marketing-services.allthingsgreen.net/images/trader_button.gif';
		new Effect.BlindUp('traderPanel', {duration:0.5});		
		panelTrader = "up";
	}
	if(panelSerices == "down" && id != 'servicesPanel') {
		document.getElementById('serviceHeader').src = 'http://www.online-marketing-services.allthingsgreen.net/images/services_button.gif';
		new Effect.BlindUp('servicesPanel', {duration:0.5});
		panelSerices = "up";
	}
	if(panelDevelopment == "down" && id != 'webdevPanel') {
		document.getElementById('developmentHeader').src = 'http://www.online-marketing-services.allthingsgreen.net/images/development_button.gif';
		new Effect.BlindUp('webdevPanel', {duration:0.5});
		panelDevelopment = "up";
	}
	if(panelMarket == "down" && id != 'marketPanel') {
		new Effect.BlindUp('marketPanel', {duration:0.5});
		panelMarket = "up";
	}


	
	if(id == 'traderPanel' && panelTrader != "down") {	panelTrader = "down"; new Effect.BlindDown(id, {duration:0.5});	
														document.getElementById('traderHeader').src = 'http://www.online-marketing-services.allthingsgreen.net/images/trader_button1.gif';
													}
	if(id == 'servicesPanel' && panelSerices != "down") {	panelSerices = "down";	new Effect.BlindDown(id, {duration:0.5});
															document.getElementById('serviceHeader').src = 'http://www.online-marketing-services.allthingsgreen.net/images/services_button1.gif';
														 }
	if(id == 'webdevPanel' && panelDevelopment != "down") {	panelDevelopment = "down";	new Effect.BlindDown(id, {duration:0.5}); 
															document.getElementById('developmentHeader').src = 'http://www.online-marketing-services.allthingsgreen.net/images/development_button1.gif';
														  }
	if(id == 'marketPanel' && panelMarket != "down") {	panelMarket = "down";	new Effect.BlindDown(id, {duration:0.5}); }


}

var down = "no";

function toggleLogin(login){

	if(login == "hidden" && down == "no") {
		document.getElementById('loginImg').src = 'http://www.online-marketing-services.allthingsgreen.net/images/login_on.png';
		document.getElementById('loginImg').style.cursor = 'default';
		new Effect.BlindDown('loginInfo', {duration:0.7});
		down = "yes";
	} else if(login == "visible") {
		new Effect.BlindUp('loginInfo', {duration:0.7});
		document.getElementById('loginImg').src = 'http://www.online-marketing-services.allthingsgreen.net/images/login.png';
		document.getElementById('loginImg').style.cursor = 'pointer';
		down = "no";
	}
	
}




function slideImg(img){
	
	if(document.getElementById('intro').style.display != 'none' && img != 'intro'){
		new Effect.SlideLeftOut('intro', {duration:1.2});
	}
	if(document.getElementById('starter').style.display != 'none' && img != 'starter'){
		new Effect.SlideLeftOut('starter', {duration:1.2});
	}
	if(document.getElementById('managed').style.display != 'none' && img != 'managed'){
		new Effect.SlideLeftOut('managed', {duration:1.2});
	}
	if(document.getElementById('accelerator').style.display != 'none' && img != 'accelerator'){
		new Effect.SlideLeftOut('accelerator', {duration:1.2});
	}
	
	 if(document.getElementById(img).style.display == 'none'){
	 	new Effect.SlideRightIn(img, {duration:1.2});
     }
	
}


function openVideo(){
	var w = window.open ('http://demos.allthingsgreen.net/video.php?flv=overview', "video", "width=610,height=530");
	w.focus();
}


function buyMembership (page) {
	var w = window.open ('https://www.allthingsgreen.net/online-marketing-services/signup.php?package=' + page, "membershippopup", "width=830,scrollbars=1");
	w.focus();
}

