
var rof = document.cookie.match ( "referreronfile" + '=(.*?)(;|$)' );
if (rof == null) {
    document.cookie = "referreronfile=" + (document.referrer) + "; path=/" ; 
}

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_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

function my_phone() {
msg0 = "TOLL FREE 866.660.SIGN(7446)";
msg1 = "in Phoenix area";
msg2 = "602.943.9000";
msg3 = "FAX : 602.943.9123";
alert(msg0 + "\r\n" + msg1 + "\r\n" + msg2 + "\r\n" + msg3);
 }


function my_address() {
msg0 = "Labels-USA";
msg1 = "927 West Hatcher Road";
msg2 = "Phoenix, Arizona 85021";
alert(msg0 + "\r\n" + msg1 + "\r\n" + msg2);
 }

function samples_email() {
m = "Sample request";
u = "Please include the following in your email (1) Company Name, Shipping Address, City, State, Zip (2) The label your are requesting. - We will mail samples generally within 1 - 2 working days.";
window.location = "mailto:SAMPLES@labels-USA.com?subject="+m+"&body="+u; // the following expression must be all on one line...
}

function quotes_email() {
m = "Please email me with the below quote ASAP";
u = "Please include the following in your email (1) Name of label (2) Number of colors or attach artwork (3) Quantity (4) Any special requirements. - We will generally respond within 1 working day.";
window.location = "mailto:QUOTES@labels-USA.com?subject="+m+"&body="+u;
}

function order_email() {
m = "Please start on the following order ASAP";
u = "Please include the following in your email (1) The label you are ordering (2) Quantity (3) Attach Art or Verbiage to be printed (4) Company Name, Shipping Address, City, State, Zip (5) Phone Number (6) Credit Card Number/Expiration We will generally confirm your email within 1 working day.";
window.location = "mailto:ORDERS@labels-USA.com?subject="+m+"&body="+u;
}

function webmaster_email() {
m = "what an awesome site";
u = "Please include the following in your email (Flattery, Obsequiousness, Sycophancy, Adulation), I will generally respond within 3-4 working days.";
window.location = "mailto:Webmaster@labels-USA.com?subject="+m+"&body="+u;
}

var slideShowSpeed = 1500  // Set slideShowSpeed (milliseconds)
var crossFadeDuration = 5 // Duration of crossfade (seconds)
var Pic = new Array() // don't touch this
Pic[0] = '_animal-label-sheets.jpg'
Pic[1] = '_barricade-tape.jpg'
Pic[2] = '_butt-cut-roll-labels.jpg'
Pic[3] = '_embossed-labels.jpg'
Pic[4] = '_oval-roll-labels.jpg'
Pic[5] = '_rectangle-roll-labels.jpg'
Pic[6] = '_round-roll-labels.jpg'
Pic[7] = '_screen-printed-roll-labels.jpg'
Pic[8] = '_shipping-lables.jpg'
Pic[9] = '_square-roll-labels.jpg'
Pic[10] = '_recognition-labels.jpg'
Pic[11] = '_thermal-foil-stamped-roll-labels.jpg'
Pic[12] = '_education-festive-sticker-sheets.jpg'

var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
