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];}
}


/////////////////////////////////////////////	

var dofade=true;     // ENABLES FADE-IN EFFECT FOR IE4+ AND NS6 ONLY
var center=false;     // CENTERS THE BOX UNER THE MOUSE, OTHERWISE DISPLAYS BOX TO THE RIGHT OF THE MOUSE
var centertext=false; // CENTERS THE TEXT INSIDE THE BOX. YOU CAN'T SIMPLY DO THIS VIA STYLE BECAUSE OF NS4.
                     // OTHERWISE, TEXT IS LEFT-JUSTIFIED. 


////////////////////////////// NO NEED TO EDIT BEYOND THIS POINT //////////////////////////////////////

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var IE4 = (document.all && !document.getElementById)? true : false;
var IE5 = (document.getElementById && document.all)? true : false;
var NS6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var W3C = (document.getElementById)? true : false;
var w_y, w_x, navtxt, boxheight, boxwidth;
var ishover=false;
var isloaded=false;
var ieop=0;
var op_id=0;

function getwindowdims(){
w_y=(NS4||NS6||window.opera)? window.innerHeight : (IE5||IE4)? document.body.clientHeight : 0;
w_x=(NS4||NS6||window.opera)? window.innerWidth : (IE5||IE4)? document.body.clientWidth : 0;
}

function getboxwidth(){
if(NS4)boxwidth=(navtxt.document.width)? navtxt.document.width : navtxt.clip.width;
if(IE5||IE4)boxwidth=(navtxt.style.pixelWidth)? navtxt.style.pixelWidth : navtxt.offsetWidth;
if(NS6)boxwidth=(navtxt.style.width)? parseInt(navtxt.style.width) : parseInt(navtxt.offsetWidth);
}

function getboxheight(){
if(NS4)boxheight=(navtxt.document.height)? navtxt.document.height : navtxt.clip.height;
if(IE4||IE5)boxheight=(navtxt.style.pixelHeight)? navtxt.style.pixelHeight : navtxt.offsetHeight;
if(NS6)boxheight=parseInt(navtxt.offsetHeight);

}

function movenavtxt(x,y){
if(NS4)navtxt.moveTo(x,y);
if(W3C||IE4){
navtxt.style.left=x+'px';
navtxt.style.top=y+'px';
}}

function getpagescrolly(){
if(NS4||NS6)return window.pageYOffset;
if(IE5||IE4)return ietruebody().scrollTop;
}

function getpagescrollx(){
if(NS4||NS6)return window.pageXOffset;
if(IE5||IE4)return ietruebody().scrollLeft;
}

function writeindiv(text){
if(NS4){
navtxt.document.open();
navtxt.document.write(text);
navtxt.document.close();
}
if(W3C||IE4)navtxt.innerHTML=text;
}

//**** END UTILITY FUNCTIONS ****//



function writetxt(text){
	
	if (text==0){
	
	
	
	var text ='';
			}
			
	else {
	
	var text ='';
	var ref= Math.floor(Math.random()*11+1);
	var randomnum=document.f1.rnum.value;
		
		while(ref==randomnum){
			
						var ref= Math.floor(Math.random()*11+1);
							}
			document.f1.rnum.value=ref;
			window.status=document.f1.rnum.value;
		}
	

	
switch (ref){
	     
    case 1: var text='<i>Peter has a rare talent of making all the design elements at his disposal work together to support the central message of every piece he produces.</i>';    
	text+=' <p class="lead">Ian Smith <br /> Principal, Lakeshore Campus <br /> Humber Institute of Technology and Advanced Learning <br /> </p>';
	break;
	
	case 2: var text='<i>EyeCue Design has done many of our design projects for us because Peter has a superb sense of design together with an appreciation  of what'; 
	text+='  we need. He has an uncanny ability to convey the very message we want to put out to our potential customers.</i> ';
	text+='<p class="lead"> Joe Kertes<br /> Dean School of Creative and Performing Arts <br />Humber Institute of Technology and Advanced Learning';
	break;
	
	case 3: var text='<i>Peter\'s work has been outstanding. His biggest asset is the way that he can take the many images and '; 
			text+='genres that make up our Festival and put them together in a bold and dynamic look .</i>';   
	        text+=' <p class="lead">Jefferson Mappin <br /> President<br /> Headwaters Arts Festival</p>';
	break;
	
	case 4: var text='<i>Eye Cue Design has done superb work for me for several years,and I would not want anyone else to do our design work, The results are really superior, and we get many compliments. Peter is also extremely nice to work with. He listens to your request, keys into the image you are trying to present, gives several good alternatives, and delivers in a timely fashion. I would highly recommend him to anyone.</i>';
	        text+=' <p class="lead">Laverne Smith<br /> President<br />Laverne Smith & Associates Inc.</p>';
	break;
	
	case 5: var text='<i>With Eye Cue you get quality communications designed in its trademark innovative style. Peter brings a calming influence to a project ensuring completion is always on time. Thankfully, he takes care of all those technical worries too and directs his discerning eye on quality control from start to finish.</i>';
	        text+=' <p class="lead">Nancy Dunbar  <br />Town of Halton Hills <br />Recreation & Parks <br /> Promotions Coordinator </p>';
	break;
	
	case 6: var text='<i>Peter did a treatment on our logo that we love, and it worked very well on both the web site and the print material that Eye Cue designed for us.</i>';
	        text+=' <p class="lead">Francis D’Oliviera <br />Vice-President<br />Icecorp Group Inc.</p>';
	break;
	
	case 7: var text='<i>Peter has a firm grasp of the education sector, with over 20 years \' experience in this particular market. Working on everything from a';
	        text+='full-scale marketing campaign and theme development, to individual print ads, brochures, e-mail templates, web banners, or posters, Eye Cue has consistently delivered high quality, creative work that resonates with the target audience. Reliable, flexible, professional, and creative is how I would describe the service we get from Eye Cue. <br /> I would not hesitate to recommend Eye Cue Design as a partner of choice to help you meet your marketing objectives.</i>';
	        text+=' <p class="lead">Andrea Jones<br />Marketing Manager<br />Humber Institute of Technology and Advanced Learning</p>';
	break;
	case 8: var text='<i>I count on Peter Perko of Eye Cue Design Communications to come up with problem-solving ideas as well as brilliant design.</i> ';
	        text+=' <p class="lead">Deb Bourk <br />Associate Director, Communications<br />Humber Institute of Technology and Advanced Learning</p>';
	break;
	
	case 9: var text='<i>Eye Cue Design has successfully assisted me with a wide range of graphic concept work, image development and production work for corporate purposes and for cultural events. I am impressed with Eye Cue\'s ability to filter vast amounts of information and distil it into simple but strong and evocative graphic messages.</i> ';
	        text+=' <p class="lead">Eriks Eglite <br />E.V. Eglite Ltd. <br />Development Advisors</p>';
	break;
	
	case 10: var text='<i>Eye Cue Design has shown excellent problem solving ability, and they work through design projects smoothly and efficiently. Peter has an excellent understanding of  marketing/ communications principles, and uses his creative ability in a focussed and appropriate way.</i>';
	        text+=' <p class="lead">Doug Brock <br />President<br />Caledon Laboratory Chemicals</p>';
	break;
	
	case 11: var text='<i>Eye Cue Design consistently exceed expectations – for innovative concept development, quality design and timely execution.  They make the difficult look easy and make my company look good in the process.</i>';
	        text+=' <p class="lead">Dan Wright <br />Principal<br />Dexio Group</p>';
	break;
		
		}
	


	
if(isloaded){
if(text!=0){
ishover=true;
if(NS4)text='<div class="navtext">'+((centertext)?'<center>':'')+text+((centertext)?'</center>':'')+'</div>';
writeindiv(text);
getboxheight();
if((W3C || IE4) && dofade){
ieop=0;
incropacity();
}}else{
if(NS4)navtxt.visibility="hide";
if(IE4||W3C){
if(dofade)clearTimeout(op_id);
navtxt.style.visibility="hidden";
}
writeindiv('');
ishover=false;
}}}

function incropacity(){
if(ieop<=90){
ieop+=7;
if(IE4 || IE5)navtxt.style.filter="alpha(opacity="+ieop+")";
if(NS6)navtxt.style.MozOpacity=ieop/100;
op_id=setTimeout('incropacity()', 20);
}}

function moveobj(evt){
if(isloaded && ishover){
margin=(IE4||IE5)? 1 : 23;
if(NS6)if(document.height+27-window.innerHeight<0)margin=15;
if(NS4)if(document.height-window.innerHeight<0)margin=10;
//mx=(NS4||NS6)? evt.pageX : (IE5||IE4)? event.clientX : 0;
//my=(NS4||NS6)? evt.pageY : (IE5||IE4)? event.clientY : 0;
if (NS4){
mx=evt.pageX
my=evt.pageY
}
else if (NS6){
mx=evt.clientX
my=evt.clientY
}
else if (IE5){
mx=event.clientX
my=event.clientY
}
else if (IE4){
mx=0
my=0
}

if(NS4){
mx-=getpagescrollx();
my-=getpagescrolly();
}
xoff=(center)? mx-boxwidth/2 : mx+5;
yoff=(my+boxheight+30-getpagescrolly()+margin>=w_y)? -15-boxheight: 30;
movenavtxt( Math.min(w_x-boxwidth-margin , Math.max(2,xoff))+getpagescrollx() , my+yoff+getpagescrolly());
if(NS4)navtxt.visibility="show";
if(W3C||IE4)navtxt.style.visibility="visible";
}}

if(NS4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=moveobj;
window.onload=function(){
  navtxt=(NS4)? document.layers['navtxt'] : (IE4)? document.all['navtxt'] : (W3C)? document.getElementById('navtxt') : null;
  getboxwidth();
  getboxheight();
  getwindowdims();
  isloaded=true;
  if((W3C || IE4) && centertext)navtxt.style.textAlign="center";
  if(W3C)navtxt.style.padding='4px';
  if(IE4 || IE5 && dofade)navtxt.style.filter="alpha(opacity=20)";
  }
window.onresize=getwindowdims;


