	<!-- Begin
	/* This script and many more are available free online at
	The JavaScript Source!! http://javascript.internet.com
	Created by: Ultimater :: http://ultimiacian.tripod.com/
	Add this snippet to the very beginning of your script. */

	if(!document.getElementById){
	if(document.all)
	document.getElementById=function(){
		if(typeof document.all[arguments[0]]!="undefined")
		return document.all[arguments[0]]
		else
		return null
	}
	else if(document.layers)
	document.getElementById=function(){
		if(typeof document[arguments[0]]!="undefined")
		return document[arguments[0]]
		else
		return null
	}
	}
	// End -->

	browserName=navigator.appName;
	browserVer=parseInt(navigator.appVersion);
	
	if (browserVer > 2) {
	
	Home_R = new Image(100, 21);
	Home_R.src="images/Home_R.jpg";
	Home_O = new Image(100, 21);
	Home_O.src="images/Home_O.jpg";
	
	Portfolio_R = new Image(93, 21);
	Portfolio_R.src="images/Portfolio_R.jpg";
	Portfolio_O = new Image(93, 21);
	Portfolio_O.src="images/Portfolio_O.jpg";	
	
    People_R = new Image(68, 21);
	People_R.src="images/People_R.jpg";
	People_O = new Image(68, 21);
	People_O.src="images/People_O.jpg";	
	
    Events_R = new Image(72, 21);
	Events_R.src="images/Events_R.jpg";
	Events_O = new Image(72, 21);
	Events_O.src="images/Events_O.jpg";		
	
    News_R = new Image(59, 21);
	News_R.src="images/News_R.jpg";
	News_O = new Image(59, 21);
	News_O.src="images/News_O.jpg";	
		
    About_Gialamas_R = new Image(135, 21);
	About_Gialamas_R.src="images/About_Gialamas_R.jpg";
	About_Gialamas_O = new Image(135, 21);
	About_Gialamas_O.src="images/About_Gialamas_O.jpg";		
	
    Testimonials_R = new Image(112, 21);
	Testimonials_R.src="images/Testimonials_R.jpg";
	Testimonials_O = new Image(112, 21);
	Testimonials_O.src="images/Testimonials_O.jpg";			
	
    Contact_R = new Image(121, 21);
	Contact_R.src="images/Contact_R.jpg";
	Contact_O = new Image(121, 21);
	Contact_O.src="images/Contact_O.jpg";				
		
	DashImg = new Image(8, 8);
	DashImg.src="images/SideNavDash.gif";
	ClearImg = new Image(8, 8);
	ClearImg.src="images/Clear.gif";
	}
	
	function Dash_Roll(imgName) {
		var el = document.getElementById(imgName);
		if (el != null) {
				el.src = DashImg.src;
		}
	}
		
	function Dash_UnRoll(imgName) {
		var el = document.getElementById(imgName);
		if (el != null) {
				el.src = ClearImg.src;
		}

	}		
	
	function RollIt(imgName) {
		var el = document.getElementById(imgName);
		el.src = eval(imgName + "_O.src");
	}
	
	function UnRollIt(imgName) {
		var el = document.getElementById(imgName);
		el.src = eval(imgName + "_R.src");
	}
	
	function RollMiddle(imgName) {
		
		var el = document.getElementById(imgName);
		if (el != null) {
			el.src = eval(imgName + "_O.src");
			if (imgName == 'TB_Image2') { clearTimeout(tmr2); Cnt2 = 0; if (navigator.appName.indexOf("Microsoft") != -1) { el.filters.alpha.opacity = 100 } else { el.style.MozOpacity = 1 } }
			if (imgName == 'TB_Image3') { clearTimeout(tmr3); Cnt3 = 0; if (navigator.appName.indexOf("Microsoft") != -1) { el.filters.alpha.opacity = 100 } else { el.style.MozOpacity = 1 }}
			if (imgName == 'TB_Image4') { clearTimeout(tmr4); Cnt4 = 0; if (navigator.appName.indexOf("Microsoft") != -1) { el.filters.alpha.opacity = 100 } else { el.style.MozOpacity = 1 }}
		}
	}
	
	function UnRollMiddle_All() {
		var el;
		
		el = document.getElementById('TB_Image2');
		if (el != null) {
			el.src = TB_Image2_R.src
		}	
		el = document.getElementById('TB_Image3');
		if (el != null) {
			el.src = TB_Image3_R.src
		}	
		el = document.getElementById('TB_Image4');
		if (el != null) {
			el.src = TB_Image4_R.src
		}			
		
	}
	
	function UnRollMiddle(imgName) {	
	
		var el = document.getElementById(imgName);
		if (el != null) {
			Set_Up_Counter(imgName)
			//el.src = eval(imgName + "_R.src");
		}
	}
	
	function addToFavorites(URL, PageName) 
	{ 
		if (window.external) { window.external.AddFavorite(URL,PageName) } 
		else { alert("Sorry! Your browser doesn't support this function."); } 
	}	
	
	function PrintToHTML(Link) {
		var w = window.open(Link, 'PrintToHTML', 'width=625,height=475,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=20,left=20');
		w.focus();
	}		
	
	function EmailPage(Link) {
		var Loc = "EmailPage.aspx?Link=" + escape(Link)
		var w = 	window.open(Loc, 'EmailPage', 'width=350,height=420,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=100,left=100');
		w.focus();
	}		

	function Print_Page_As_PDF() {
	     
	    var f, IDFld, IDVal, PageMode;
	    
	    f = FindMyControl('hdIDFld');
	    IDFld = f.value
	    f = FindMyControl('hdIDVal');
	    IDVal = f.value
	    f = FindMyControl('hdPageMode');
	    PageMode = f.value
	    
		var lnk = 'PrintIt.aspx?' + IDFld + '=' + IDVal + '&Mode=' + PageMode + '&PrintMode=PDF';
		PrintToHTML(lnk);
		
	}

	function Add_To_Brochure() {
	
		 var f, IDFld, IDVal, PageMode;
	    
	    f = FindMyControl('hdIDFld');
	    IDFld = f.value
	    f = FindMyControl('hdIDVal');
	    IDVal = f.value
	    f = FindMyControl('hdPageMode');
	    PageMode = f.value
	
		var lnk = 'BrochureBuilder.aspx?' + IDFld + '=' + IDVal + '&Mode=' + PageMode + '&Action=Add&ReturnLink=' + escape(location.href);
		location.href=lnk;
		
	}

	function View_Brochure_Selections() {
		var lnk = 'BrochureBuilder.aspx?ReturnLink=' + escape(location.href);
		location.href=lnk;
	}
	
    function SubmitLetter(L) {
        var f =  FindMyControl('txtLastName');
        f.value = L;
        f.form.submit();
       }
      
function FindMyControl(MyID) {

	var frmElements,i,t,ctl;
	
	// Since the use of master pages mangles the names of child controls, we need a method 
	// of searching through the form elements and returning a reference to the control we are 
	// looking for that control by the name we know it as instead of the dumb-ass name ASP.Net creates.
	// First scan through all of the input elements and look for our control
    frmElements=document.getElementsByTagName('input');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }
   // Still not found, scan through all of the select elements
    frmElements=document.getElementsByTagName('select');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    } 
   
   // Still not found, scan through all of the textarea elements
    frmElements=document.getElementsByTagName('textarea');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }   

   // Still not found, scan through all of the iframe elements
    frmElements=document.getElementsByTagName('iframe');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }        
   
    return false;         

}       

function PositionLayer(LayerName, OffSetX, OffSetY) {

	var imgX;
	var imgY;
	
	if (OffSetX == 450 ) { OffSetX = 325 }		// correction
	if (navigator.appVersion.indexOf('MSIE 7') > -1) { OffSetY = OffSetY + 20 } // correct for IE 7
	
	imgX = (document.body.clientWidth / 2);	// find the center of the window
	imgX = imgX - OffSetX
	imgY = OffSetY;
	// adjust for scroll position
	imgY = imgY + document.body.scrollTop;
	
	document.all[LayerName].style.left = imgX; document.all[LayerName].style.top = imgY; 
}

function ShowLayer(LayerName) {		

	// determine our browser type for layer usage, since Netscape is 6 is the devil in disguise
	var BrowserType = "";
	if(document.layers) { BrowserType="NN4" }
	if(document.all) { BrowserType="IE"  }
	if(!document.all && document.getElementById) { BrowserType="NN6" } // what is Netscape smoking????
	if (BrowserType=="") { BrowserType="IE"  }	// default to IE, just because....

	if (BrowserType=="IE") { document.all[LayerName].style.visibility = 'visible' }
	if (BrowserType=="NN4") { document.layers[LayerName].visibility = 'visible' }
	if (BrowserType=="NN6") { document.getElementById(LayerName).style.visibility='visible' }
	
}

function CancelLayer(LayerName) {

	// determine our browser type for layer usage, since Netscape is 6 is the devil in disguise
	var BrowserType = "";
	if(document.layers) { BrowserType="NN4" }
	if(document.all) { BrowserType="IE"  }
	if(!document.all && document.getElementById) { BrowserType="NN6" } // what is Netscape smoking????
	if (BrowserType=="") { BrowserType="IE"  }	// default to IE, just because....

	if (BrowserType=="IE") { parent.document.all[LayerName].style.visibility = 'hidden' }
	if (BrowserType=="NN4") { parent.document.layers[LayerName].visibility = 'hidden' }
	if (BrowserType=="NN6") { parent.document.getElementById(LayerName).style.visibility='hidden' }
}	

function FindMyControl(MyID) {

	var frmElements,i,t,ctl;
	
	// Since the use of master pages mangles the names of child controls, we need a method 
	// of searching through the form elements and returning a reference to the control we are 
	// looking for that control by the name we know it as instead of the dumb-ass name ASP.Net creates.
	// First scan through all of the input elements and look for our control
    frmElements=document.getElementsByTagName('input');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }
   // Still not found, scan through all of the select elements
    frmElements=document.getElementsByTagName('select');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    } 
   
   // Still not found, scan through all of the textarea elements
    frmElements=document.getElementsByTagName('textarea');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }   
   
   // Still not found, scan through all of the iframe elements
    frmElements=document.getElementsByTagName('td');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }         
   
   // Still not found, scan through all of the iframe elements
    frmElements=document.getElementsByTagName('iframe');
    for(i in frmElements)
    {
        t = String(frmElements[i].id); 
        t = '_' + t;
        if (t.indexOf(MyID) > -1 )
            { return frmElements[i] }
    }         
   
  return false;  

}

function Validate_Register_Form() {

    var OkToGo = true;
   
   if (OkToGo && document.forms[0].txtName.value.length < 2) 
        { OkToGo = false; alert('A valid name is required to continue.  Please enter a valid name.'); }   
        
   if (OkToGo && document.forms[0].txtCompany.value.length < 2) 
        { OkToGo = false; alert('A valid company is required to continue.  Please enter a valid company.'); }        

   if (OkToGo && document.forms[0].txtEmail.value.length < 2) 
        { OkToGo = false; alert('A valid email is required to continue.  Please enter a valid email.'); }        
   
   if (OkToGo)
        { document.forms[0].submit(); }  

}


// Home page slide show
var slideShowSpeed = 6000
var crossFadeDuration = 3

function runSlideShow()
{
	if (document.all){
		document.images.imgHmPg_Building.style.filter="blendTrans(duration=2)"
		document.images.imgHmPg_Building.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.imgHmPg_Building.filters.blendTrans.Apply()
	}
	document.images.imgHmPg_Building.src = preLoad[j].src
	if (document.all){
		document.images.imgHmPg_Building.filters.blendTrans.Play()
	}

	j = j + 1
	if (j > (p-1)) j=0
	t = setTimeout('runSlideShow()', slideShowSpeed)
}

function ShowLarger(f, w, h) 
{
		var w = window.open(f, 'ShowLarger', 'width=' + w + ',height=' + h + ',directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,top=20,left=20');
		w.focus();

}