

function webQuote(style, pages, type, images, serverScript, clientScript, cms, ppc, esc, blog, forum, quote) 
{
	var total = 0;
	
	// Site Style
	if (style == 1)			// Basic ($300)
		total += 300
	else if (style == 2)	// Normal ($400)
		total += 400
	else if (style == 3)	// Complex ($600)
		total += 600
	else
	{
		quote.innerHTML = '';
		alert('Please select the site style.');
		return;
	}
	
	// # of Pages
	if (pages != '' || pages != 1)
		total += (pages-1)*50;
	
	// Page Type
	if (type== 1)			// Static HTML - included in price
		total += 0
	else if (type== 2)		// Dynamic ($1000)
	{
		total += 1000
	}
	else
	{
		quote.innerHTML = '';
		alert('Please select the page type.');
		return;
	}

	// Image Provision
	if (images == 0)
	{
		quote.innerHTML = '';
		alert('Please select the image provision.');
		return;
	}
	
	if (images == 2)
		total += 60;
	
	// Server Script
	if (serverScript == 1)
		total += 1000;
	
	// Client Script
	if (clientScript == 1)
		total += 75;
		
	if (cms == 1)
	{
		if (type == 1)
			total += 500; 
	}
		
	if (ppc == 1)
		total += 20; 
		
	if (esc == 1)
		total += 1000; 
		
	if (blog == 1)
		total += 200; 
		
	if (forum == 1)
		total += 250;
	
	quote.innerHTML = '<h3>Total: $' + total + '</h3><br/><span style="font-size:10px; line-height:100%;">*This quote is a free instant estimate and only contains general possibilities. For more information or an exact quote please contact <a href="mailto:quote@purecustomsolutions.com?subject=Web Development Quote Request">Pure Custom Solutions</a> directly.</span>';		
	
	document.getElementById('total').value = total;
	
	document.getElementById('quoteButton').style.display='none';
	document.getElementById('emailQuote').style.display='block';
}

function submitWebQuote()
{
	if (document.getElementById('Name').value != "" && document.getElementById('Email').value != "")
		document.web_quote.submit();
	else
		alert('Please insert your name and a valid e-mail address.');
}

function webQuote2(quote)
{
	quote.innerHTML = 'Total: $1,000'
}

function resetQuote()
{
	
}

var ourClients = '<br />' +
				'<a href="http://www.birchwoodconsulting.net/">' +
				'<img alt="Birchwood Consulting" src="images/clients/birchwood.jpg" width="258" height="73" /></a>' +
				'<br />' +
				'Service(s) Provided: IT Consulting' +
				'<br />' +
				'<br/>' +
				'<hr style="height:1px;"/>' +
				'<br />' +
				'<a href="http://lylab.net/">' +
				'<img alt="Lylab Network Consulting" src="images/clients/lylab.png" /></a>' +
				'<br />' +
				'Service(s) Provided: IT Consulting' +
				'<br/>' +
				'<br />' +
				'<hr style="height:1px;"/>' +
				'<br />' +
				'<a href="http://www.scheffey.com/">' +
				'<img alt="Scheffey" src="images/clients/scheffey.png" /></a>' +
				'<br />' +
				'Service(s) Provided: IT Consulting' +
				'<br />' +
				'<br/>' +
				'<hr style="height:1px;"/>' +
				'<br />' +
				'<a href="http://bird-in-hand.com/">' +
				'<img alt="Bird in Hand" src="images/clients/birdinhand.png" /></a><br />' +
				'Service(s) Provided: IT Consulting' +
				'<br />' +
				'<br/>' +
				'<hr style="height:1px;"/>' +
				'<br />' +
				'<a href="http://controlhealthinc.com">' +
				'<img alt="Control Healtlh Inc." src="images/clients/controlhealthinc.png" width="285" height="86" /></a>' +
				'<br />' +
				'Service(s) Provided: Web Development / Web Hosting' +
				'<br/>' +
				'<br/>' +
				'<hr style="height:1px;"/>' +
				'<br />' +
				'<a href="http://ekbare.com">' +
				'<img alt="EKBare" src="images/clients/ekbare.jpg" width="285"/></a>' +
				'<br />' +
				'Service(s) Provided: IT Consulting / Web Development / Web Hosting' +
				'<br />' +
				'<br/>' +
				'<hr style="height:1px;"/>' +
				'<br />' +
				'<a href="http://halladayphotography.com">' +
				'<img alt="HalladayPhotography" src="images/clients/halladayphotography.png"/></a>' +
				'<br />' +
				'Service(s) Provided: Web Development / Web Hosting' +
				'<br />' +
				'<br/>' +
				'<hr style="height:1px;"/>';

/***********************************************
* 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.
*
* Modified by Pure Custom Solutions - 07-01-2009
*	Includes continuous scrolling
***********************************************/

var delayb4scroll=2000 //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=''

var cross_marquee;
var corss_marquee2;

function scrollmarquee(){

	if (parseInt(cross_marquee.style.top)>(actualheight*(-1))) //if scroller hasn't reached the end of its height
	{
		cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"; //move scroller upwards
	}
	else //else, reset to original position
	{
		cross_marquee.style.top=parseInt(marqueeheight)+100+"px";
		//cross_marquee.style.top=(parseInt(cross_marquee2.style.top) + parseInt(actualheight)) + "px";
	}

	/*if (parseInt(cross_marquee2.style.top)>(actualheight*(-1))) //if scroller hasn't reached the end of its height
	{
		cross_marquee2.style.top=parseInt(cross_marquee2.style.top)-copyspeed+"px";
	}
	else //else, reset to original position
	{
		//cross_marquee2.style.top=parseInt(actualheight+20)+"px";
		cross_marquee2.style.top=(parseInt(cross_marquee.style.top) + parseInt(actualheight)) + "px";
	}*/
}

function initializemarquee(scrollHeight){
	cross_marquee=document.getElementById("vmarquee");
	cross_marquee.innerHTML = ourClients;
	cross_marquee.style.top=0;
	cross_marquee.style.zIndex=997;
	cross_marquee.style.bgcolor="#FFFFFF";
	
	marqueeheight=document.getElementById("marqueecontainer").offsetHeight;
	actualheight=cross_marquee.scrollHeight; //height of marquee content (much of which is hidden from view)

	cross_marquee.style.top=parseInt(marqueeheight)+"px";	
	//cross_marquee2 = document.getElementById("vmarquee2");
	//cross_marquee2.innerHTML = "Schedule a consultation today!";
	//cross_marquee2.style.top=(parseInt(cross_marquee.style.top) + parseInt(actualheight)) + "px";
	//cross_marquee2.style.zIndex=996;
	
	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()",30)', delayb4scroll);
}

//if (window.addEventListener)
//window.addEventListener("load", initializemarquee, false)
//else if (window.attachEvent)
//window.attachEvent("onload", initializemarquee)
//else if (document.getElementById)
//window.onload=initializemarquee



function showImage(imageSRC)
{
	document.getElementById('Image').src = imageSRC;
	document.getElementById('ImageBackground').style.display = 'block';
	document.getElementById('ImageTop').style.display = 'block';
}
function hideImage()
{
	document.getElementById('ImageBackground').style.display = 'none';
	document.getElementById('ImageTop').style.display = 'none';
}

function showConsultingClients(curID)
{
	document.getElementById('EKBare').style.display = 'none';
	
	var curDiv = document.getElementById(curID);
	curDiv.style.display = 'block';
}

function showClients(curID)
{
	document.getElementById('HalladayPhotography').style.display = 'none';
	document.getElementById('FindAmish').style.display = 'none';
	document.getElementById('EKBare').style.display = 'none';
	
	var curDiv = document.getElementById(curID);
	curDiv.style.display = 'block';
}

function menu()
{
	document.write("" +
"				<ul>" +
"					<li>" +
"					<a title='Pure Custom Solutions' href='http://purecustomsolutions.com'>" +
"					Pure Custom Solutions, LLC</a></li>" +
"					<li></li>" +
"					<li></li>" +
"					<li><a title='Technology Support' href='http://purecustomsolutions.com/support.html'>Technology Support</a></li>" +
"					<li>|</li>" +
"					<li><a title='Software Development' href='http://purecustomsolutions.com/software.html'>Software " +
"					Development</a></li>" +
"					<li>|</li>" +
"					<li><a title='Web Development' href='http://purecustomsolutions.com/web.html'>Web Development</a></li>" +
"					<li>|</li>" +
"					<li><a title='Web Hosting' href='http://purecustomsolutions.com/hosting.html'>Web Hosting</a></li>" +
"				</ul>" +
"");
}

function submenu()
{
//<span style='color:#ff7109'>** NEW **</span>
document.write("<a title='Tech Tips' href='/blog'>Check out our Tech Tips and News today!</a><br/><br/>" + 
			   "<a title='Photography' href='http://halladayphotography.com'>Need to hire a photographer?  Visit http://halladayphotography.com!</a>");

}

function buttonHover (curID)
{
	var curButton = document.getElementById(curID);
	curButton.src = 'images/' + curID + '_gray.png';
}
function buttonLeave (curID)
{
	var curButton = document.getElementById(curID);
	curButton.src = 'images/' + curID + '.png';
}

/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["images/clients/findamish.png", "http://www.findamish.com", "_blank"]
fadeimages[1]=["images/clients/halladayphotography.png", "http://www.halladayphotography.com", "_blank"]
fadeimages[2]=["images/clients/ekbare.png", "http://www.ekbare.com", "_blank"]
fadeimages[3]=["images/clients/lylab.png", "http://lylab.net", "_blank"]
fadeimages[4]=["images/clients/birdinhand.png", "https://lodging.bird-in-hand.com/", "_blank"]
fadeimages[5]=["images/clients/scheffey.png", "http://www.scheffey.com/", "_blank"]
fadeimages[6]=["images/clients/birchwood.jpg", "http://www.birchwoodconsulting.net/", "_blank"]
fadeimages[7]=["images/clients/controlhealthinc.png", "http://controlhealthinc.com/", "_blank"]

//var fadebgcolor="black"
//var fadebgcolor="#f0ede4"
var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all 

function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;" align=left><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}


function toTop(id){
document.getElementById(id).scrollTop=0
}

defaultStep=50
step=defaultStep

function scrollDivDown(id){
document.getElementById(id).scrollTop+=step
}

function scrollDivUp(id){
document.getElementById(id).scrollTop-=step
}

function toBottom(id){
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}

function toPoint(id){
document.getElementById(id).scrollTop=100
}
