// JavaScript Document

var imagenumber = 2 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "assets/images/home/main2.jpg"
images[2] = "assets/images/home/main3.jpg"
var image = images[rand1]

var quotenumber = 4 ;
var randomnum = Math.random() ;
var rand2 = Math.round( (quotenumber-1) * randomnum) + 1 ;
quotes = new Array
quotes[1] = "assets/includes/quote1.asp"
quotes[2] = "assets/includes/quote2.asp"
quotes[3] = "assets/includes/quote3.asp"
quotes[4] = "assets/includes/quote4.asp"
var quote = quotes[rand2]




var Quotation=new Array()

Quotation[0] = "<em>\"Principle Solutions Group understood what I was looking for, was in constant contact through my job search, and continued to be in touch on a regular basis for several months after helping me find a new job. They went above and beyond any other company I've worked with.\"</em><br><br>- Jeff P.<br>Software Developer";
Quotation[1] = "<em>\"I would say working for Principle Solutions Group has been a great experience from the professionalism of the staff to finding positions quickly, whether it's a contract or permanent position. In the future I would most definitely use PSG as my number one choice in finding employment.\"</em><br><br>- Gary T.<br>Network Engineer";
Quotation[2] = "<em>\"The staff at Principle Solutions Group made the transition to my current contract position very smooth. The timesheet and payroll process has also been easy to work with.\"</em><br><br>- Steve G.<br>Crystal Reports Developer";
Quotation[3] = "<em>\"I've worked with a lot of staffing companies over the years. Most are fly-by-night operations, shamelessly exploiting hard-working folks in order to turn a quick buck. With PSG, I don't feel like a 'human resource.' I'm part of a team of capable professionals that build lasting industry relationships and provide clients with top-quality, affordable IT solutions. It's a welcomed change, and I couldn't be happier.\"</em><br><br>- Nick Z.<br>Usability Design Engineer";
Quotation[4] = "<em>\"My experience with Principle Solutions Group has been very positive. Everyone has been supportive, friendly and professional.\"</em><br><br>- Michael D.<br>Network Engineer";
Quotation[5] = "<em>\"Principle Solutions Group is wonderful to work with. The people at PSG are always on top of things, and they make sure my needs are met. I would strongly recommend their services to anyone.\"</em><br><br>- Shawn S.<br>SQL Server DBA";
Quotation[6] = "<em>\"As a Systems Compliance Best Practices Consultant, I can personally attest to PSG's effective management, a high level of proficiency and commitment to excellence. PSG has a unique business model that places their consultants and candidates in a contiguous relationship with their impressive portfolio of clients to provide measurable and achievable results!\"</em><br><br>- Tamara S.<br>Business Process Consultant";

var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function P7_autoHide() { //auto hide layers
 var i,g,args=P7_autoHide.arguments;
 for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){
  g.p7aHide=true;if(document.layers){
  g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;g.p7ahD=true;}}
}

function MM_showHideLayers() { //show layers
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function P7_hideDiv(evt) { //mouseout hide layers
 var b,relT,mT=false; 
 if(document.layers){b=evt.target;if(b.p7aHide){
  b.visibility="hidden";}else{routeEvent(evt);}
 }else if(document.all&&!window.opera){b=event.srcElement;
  while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;}
  if(!b.contains(event.toElement)){b.style.visibility="hidden";}
 }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
  while(relT!=null){if(b==relT){mT=true;break;}
  relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
