

function showDescription( descType ) {
	if ( document.getElementById("divText") ) removeDiv();
	var displayText = "";
	var destDiv = document.getElementById("divDescription");
	var newDiv = document.createElement("div");
	newDiv.setAttribute("id", "divText");
	switch ( descType ) {
		case 'imagination':
			displayText = "<p> <span class=\"descHead\">imagination :: </span><br/><br/>We believe original solutions are born from original minds with an active "
			displayText += "imagination. To be able to imagine or visualize what you ";
			displayText += "want and translate in an understandable and meaningful fashion can be a trying experience. Working together, we can come up with not ";
			displayText += "just one, but multiple ideas that may suit your needs.</p>";
			break;
		case 'creativity':
			displayText = "<p> <span class=\"descHead\">creativity :: </span><br/><br/>Creativity works hand in hand with imagination to bring new ideas to life. ";
			displayText += "It is one of the most difficult hurdles to overcome when ";
			displayText += "trying to solve a problem that must cover both aesthetically pleasing <em>and</em> functional demands. Using your ideas, or a ";
			displayText += "combination of yours and ours, we can create images and designs that will satisfy your needs.</p>";
			break;
		case 'design':
			displayText = "<p> <span class=\"descHead\">design :: </span><br/><br/>This is one of the most looked forward to parts of our mission to help you ";
			displayText += "- to actually see results that can be tested and ";
			displayText += "critiqued.  We enjoy working with you, the customer, to analize what has been designed and start making necessary adjustments ";
			displayText += "and tweaks to perfect the solution.</p>";
			break;
		case 'functionality':
			displayText = "<p> <span class=\"descHead\">functionality :: </span><br/><br/>So often overlooked in the previous processes,  functionality is ";
			displayText += "just as important, if not, more so that any of the other stages ";
			displayText += "combined.  Business succeeds on the internet based on customers' ability to navigate their site, easily have access to information ";
			displayText += "needed, and, in the case of e-commerce, be able to quickly and painlessly shop and checkout. We will provide you a site that ";
			displayText += "efficiently satisfies all of these requirements.</p>";
			break;
		default : 
			break;
	}
	newDiv.innerHTML = displayText;
	destDiv.appendChild(newDiv);
}

function removeDiv( ) {
	destDiv = document.getElementById('divDescription');
	if ( document.getElementById('divText') ) {
		var divDelete = document.getElementById('divText');
		destDiv.removeChild(divDelete);	
	}
}

	
function printSidebar() {
	var destDiv = document.getElementById('divDescription');
	if ( document.getElementById('divText') ) {
		removeDiv();
	}
	var newDiv = document.createElement('div');
	newDiv.setAttribute('id', 'divText');
	//newDiv.setAttribute('class', 'show');
	var newText = "<br/><br/><br/><p><img src=\"images/sites.jpg\"></p>";
	newDiv.innerHTML = newText;
	destDiv.appendChild(newDiv);
	MM_effectAppearFade('divText', 700, 0, 100, false );
}

function updateOpts( ) {
	
	var sourceOpt = document.getElementById('service');
	var serviceType = sourceOpt.options[sourceOpt.selectedIndex].value;
	var webOpts = {"service": "web", "php": "PHP", "java": "Javascript", "sql": "MySQL", "flash": "Flash", "css": "CSS"}
	var photoOpts = {"service": "photo", "subject": "Subject Photography", "color": "Color Correction", "touchup": "Photo Touchup"}

	switch (serviceType) {
		case "":
		case "graphics":
			removeOpts();
			break;
		case "web":
			removeOpts();
			showOpts(webOpts);
			break;
		case "photo":
			removeOpts();
			showOpts(photoOpts);
			break;
		default:
			break;
	}

}

function showOpts ( opts ) {
	var destDiv = document.getElementById('divAddOpts');
	
	var display = "";
	display += "<label for=\"addOpts\" class=\"labelCheck\">Additional options you're interested in: </label>";
	
	var i = 0;
	for ( var type in opts ) {
		if ( type == "service" ) continue;
		
		display += "<input type=\"checkbox\" class=\"check\" name=\"addOpts" + i + "\" value=\"" + type + "\"><span class=\"frmDesc\">" + opts[type] + 
		"</span></input>";
		i++;
		//alert(display);
	}
	display += "<br/><a href=\"" + opts["service"] + "overview.php\" class=\"infoText\" target=\"_blank\">Learn more...</a>";
	//alert(display);
	var newDiv = document.createElement('div');
	newDiv.setAttribute('id', 'divExtraOpts');
	newDiv.innerHTML = display;
	destDiv.appendChild(newDiv);
}

function removeOpts () {
	var destDiv = document.getElementById('divAddOpts');
	if ( document.getElementById('divExtraOpts') ) {
		var deleteDiv = document.getElementById('divExtraOpts');
		destDiv.removeChild(deleteDiv);
	}
}

function testAdd() {
	if ( document.getElementById('divAddOpts').offsetHeight >= 200 ) {
		var direction = "sub";
	} else {
		var direction = "add";
	}	
	change = setInterval ( "modify(\"" + direction + "\")", 15 ) ;	
}

function modify( dir ) {
	var height = document.getElementById('divAddOpts').offsetHeight;
	
	if ( (height < 200) && (dir == "add") ) {
		document.getElementById ( 'divAddOpts' ).style.height = height + 5 + "px";	
	} else if ( (height > 0) && (dir == "sub") ) {
		document.getElementById ( 'divAddOpts' ).style.height = height - 5 + "px";
	} else {
		clearInterval ( change ) ;
	}
	
}

