	function checkrequired(which) 
	{ 
		var pass=true; 
		if (document.images) 
		{ 
			for (i=0;i<which.length;i++) 
			{ 
				
				var tempobj=which.elements[i]; 
				if (tempobj.name.substring(0,8)=="required") 
				{ 
					if ((tempobj.type=="file" || tempobj.type=="text"||tempobj.type=="textarea"||tempobj.type=="password" ||tempobj.type.toString().charAt(0)=="s" ) && tempobj.value=='')
					{ 
						if(tempobj.disabled==false)
						{
							pass=false; 
							break;
						}
					}
				} 
			} 
		} 
	
		if (!pass) 
		{
			if(tempobj.alt)
			{
				shortFieldName=tempobj.alt ; 
			}
			else if(tempobj.title)
			{
				shortFieldName=tempobj.title ; 
			}
			else
			{
				shortFieldName=tempobj.name.substring(8,30).toUpperCase(); 
			}
			alert("Please make sure the "+shortFieldName+" field was properly completed.") ;
			tempobj.focus() ;
			return false ;
		} 
		else 
			return true; 
	} 

	function verifyMail(obj)
	{
		if(obj.value.length != 0)
		{
		  var str = obj.value;
		  var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		  var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
		  if (!reg1.test(str) && reg2.test(str))
		  {
			 // return true;
		  }else
		  {
			 alert("\"" + str + "\" is an invalid e-mail!");
			 obj.focus();
			 return false;
		   }
		}
	}

	function checkValidation(frm)
	{
		if (verifyMail(frm.requiredEmail) == false) return false;
		if (checkrequired(frm) == false) return false;

		return true ;
	}


var fader = new Array(), fadeQ = new Array();
var RGB = new Array(256), k = 0, hex = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];
for (var i = 0; i < 16; i++) for (var j = 0; j < 16; j++) RGB[k++] = hex[i] + hex[j];

function fadeObj(number, id, colOff, colOn, spdIn, spdOut, def) {
this.number = number;
this.id = id;
this.colOff = [parseInt(colOff.substr(0, 2), 16), parseInt(colOff.substr(2, 2), 16), parseInt(colOff.substr(4, 2), 16)];
this.colOn = [parseInt(colOn.substr(0, 2), 16), parseInt(colOn.substr(2, 2), 16), parseInt(colOn.substr(4, 2), 16)];
this.colNow = [parseInt(colOff.substr(0, 2), 16), parseInt(colOff.substr(2, 2), 16), parseInt(colOff.substr(4, 2), 16)];
this.spdIn = spdIn;
this.spdOut = spdOut;
this.def = def;
this.direction = false;
this.active = false;
this.message = new Array();
this.messageNow = 0;
}

function fadeCmd(number, message, direction) {
this.number = number;
this.message = message;
this.direction = direction;
}

function fade(number, message, direction) {
if (fader[number].def && fader[number].messageNow == 0 && fader[number].direction) {
fadeQ[fadeQ.length] = new fadeCmd(number, 0, false);
fadeQ[fadeQ.length] = new fadeCmd(number, message, direction);
message = 0;
direction = false;
} else fadeQ[fadeQ.length] = new fadeCmd(number, message, direction);
setTimeout("fadeBegin(" + number + ");", 20);
}

function fadeBegin(number) {
for (var x = 0; x < fadeQ.length; x++) {
for (var y = x + 1; y < fadeQ.length; y++) {
  if (fadeQ[x].number == fadeQ[y].number && fadeQ[x].message == fadeQ[y].message && fadeQ[x].direction != fadeQ[y].direction) {
	fadeQ.splice(x, 1);
	fadeQ.splice(y - 1, 1);
  }
}
}
if (!fader[number].active) {
for (var x = 0; x < fadeQ.length; x++) {
  if (fadeQ[x].number == number && fadeQ[x].direction != fader[number].direction) {
	var del = fadeQ.splice(x, 1);
	setTimeout("fadeEng(" + number + ", " + del[0].message + ", " + del[0].direction + ");", 0);
	break;
  }
}
}
}

function fadeEng(number, message, direction) {
if (!fader[number].active) {
fader[number].active = true;
fader[number].direction = direction;
fader[number].messageNow = message;
document.getElementById(fader[number].id).innerHTML = fader[number].message[message];
}
var iniCol = (direction) ? fader[number].colOff : fader[number].colOn;
var endCol = (direction) ? fader[number].colOn : fader[number].colOff;
var incCol = fader[number].colNow;
var spd = (direction) ? fader[number].spdIn : fader[number].spdOut;
for (var x = 0; x < 3; x++) {
var incr = (endCol[x] - iniCol[x]) / spd;
incCol[x] = (incr < 0) ? Math.max(incCol[x] + incr, endCol[x]) : Math.min(incCol[x] + incr, endCol[x]);
}
document.getElementById(fader[number].id).style.color = "#" + RGB[parseInt(incCol[0])] + RGB[parseInt(incCol[1])] + RGB[parseInt(incCol[2])];
if (incCol[0] == endCol[0] && incCol[1] == endCol[1] && incCol[2] == endCol[2]) {
fader[number].active = false;
for (var x = 0; x < fadeQ.length; x++) {
  if (fadeQ[x].number == number) {
	var del = fadeQ.splice(x, 1);
	setTimeout("fadeEng(" + number + ", " + del[0].message + ", " + del[0].direction + ");", 0);
	return false;
  }
}
if (!direction) {
  if (fader[number].def) {
	setTimeout("fadeEng(" + number + ", 0, true);", 0);
  } else document.getElementById(fader[number].id).innerHTML = "&nbsp;";
}
} else setTimeout("fadeEng(" + number + ", " + message + ", " + direction + ");", 0);
}

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}
var quote = new StringArray(5);
quote[0] = ' <div class="Padding10 BgColor4 TextColor1">&quot;Triguns are amazing to work with and on time. Great communication skills and its an absolute pleasure working with their team. Looking forward to many more projects! &quot;</div>'
quote[1] = '<div class="Padding10 BgColor4 TextColor1">&quot;Very Professional and easy to work with. Creative designs and great job at understanding our instructions and building just what we want. We are looking forward to working with Triguns again on future projects. &quot;</div>'
quote[2] = '<div class="Padding10 BgColor4 TextColor1">&quot;Triguns went beyond what I asked them to do to make sure that the project is successful. Anybody who expects the best web design on the web should choose TRIGUNS.  &quot;</div>' ;
quote[3] = '<div class="Padding10 BgColor4 TextColor1">&quot;They were able to work through several key design issues. They were professional at all times. Work was consistently on time and on budget. &quot;</div>' ;
quote[4] = '<div class="Padding10 BgColor4 TextColor1">&quot;Outstanding!! Amazing !! Great work !!! It describes Triguns work..Don\'t go anywhere on web.&quot;</div>' ;

var author = new StringArray(5) ;

author[0] = '<div class="TestimonialBoxBottom"><div style="margin-right:55px; padding-top:10px;" align="right"><strong>Greg Weinstien - Director, SWIFT SBS</strong></div>'
author[1] = '<div class="TestimonialBoxBottom"><div style="margin-right:55px; padding-top:10px;" align="right"><strong>Stephen - CEO, MWeb Solutions</strong></div>'
author[2] = '<div class="TestimonialBoxBottom"><div style="margin-right:55px; padding-top:10px;" align="right"><strong>Mounir Siraji - Director, Trianon Catering</strong></div>'
author[3] = '<div class="TestimonialBoxBottom"><div style="margin-right:55px; padding-top:10px;" align="right"><strong>Billy Lowe - Hair stylish</strong></div>'
author[4] = '<div class="TestimonialBoxBottom"><div style="margin-right:55px; padding-top:10px;" align="right"><strong>Tom Ryan - Internetgrill.com</strong></div>'

//configure the below 3 variables to set the dimension/background color of the slideshow
var slidewidth="159px" //set to width of LARGEST image in your slideshow
var slideheight="116px" //set to height of LARGEST iamge in your slideshow
var slidecycles="continous" //number of cycles before slideshow stops (ie: "2" or "continous")
var randomorder="no" //randomize the order in which images are displayed? "yes" or "no"
var preloadimages="no" //preload images? "yes" or "no"
var slidebgcolor=''

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=10000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById
var curcycle=0

var currentslide=0

function randomize(targetarray){
quoteCopy=new Array()
var the_one
var z=0
while (z<targetarray.length){
the_one=Math.floor(Math.random()*targetarray.length)
if (targetarray[the_one]!="_selected!"){
quoteCopy[z]=targetarray[the_one]
targetarray[the_one]="_selected!"
z++
}
}
}

if (randomorder=="yes")
randomize(quote)
else
quoteCopy=quote
var thebegin = '<div style="width:300px;"><img src="images/testimonial-box-top.gif" alt=""></div>'
var thebreak = ''
var theq = ''
var theend = ''
var theauthorbreak = ''

function rotateimages(){
curcycle=(currentslide==0)? curcycle+1 : curcycle
ultcontainer=''
if (quoteCopy[currentslide][1]!="")
{
var thequote = quote[currentslide]
var theauthor = author[currentslide]
ultcontainer+= thebegin + theq +  thequote + theq + thebreak +  theauthorbreak + theauthor + theend
}
ultcontainer+=''
fader[0] = new fadeObj(0, 'fade0', 'E9E8E8', '333333', 30, 50, true);
fader[0].message[0] = ultcontainer;

/*if (ie||dom)
crossrotateobj.innerHTML=ultcontainer*/
fade(0, 0, true);
if (currentslide==quote.length-1) currentslide=0
else currentslide++
if (curcycle==parseInt(slidecycles) && currentslide==0)
return
setTimeout("rotateimages()",slidedelay)
}

/*if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';"></div>')*/

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : document.all.slidedom
rotateimages()
}

