<!--

if ( screen.availWidth <= 640 || screen.availHeight <= 640 ) {
	window.location = "http://m.raveneyes.com";
	}

function JJ_ScreenCheck() {
	var availHeight=screen.availHeight;
    if (availHeight < 775 ){
      new Ajax.Updater("replace", "index.lowres.html");
      }
    }
    
function JJ_SmallScreenCheck() {
	var availHeight=screen.availHeight;
    if (availHeight >= 775 ){
      new Ajax.Updater("html", "index.html");
      }
    }
    
var lastBG = "";

function JJ_BGSwap(newBG) {
     lastBG = document.images['theBackground'].src;
  if ( newBG != lastBG ){
     document.images['theBackground'].src = newBG;
     }else{
     return true;
     }
  }

function JJ_Show(obj) {
  document.getElementById(obj).style.display= "inline";
  }

var lastShown = "";

function JJ_ShowDisplay(obj) {
  if ( obj != "" ){
    document.getElementById(obj).style.display= "block";
    if (obj!="blank"){document.getElementById('displayback').style.display= "block";}
    lastShown = obj;
    }
  }

function JJ_HideDisplayBack(thisDisplay) {
  if (lastShown != thisDisplay){
    document.getElementById('displayback').style.display= "none";
    }
  }

function JJ_Hide(obj) {
  document.getElementById(obj).style.display= "none";
  }

var dataSource = new Array();
dataSource[0] = "fashion.html";
dataSource[1] = "creative.html";
dataSource[2] = "published.html";
dataSource[3] = "fashion.lowres.html";
dataSource[4] = "creative.lowres.html";
dataSource[5] = "published.lowres.html";
dataSource[6] = "motion.html";
var dataDestination = new Array();
dataDestination[0] = "fashiondisplay";
dataDestination[1] = "creativedisplay";
dataDestination[2] = "publisheddisplay";
dataDestination[3] = "fashiondisplay";
dataDestination[4] = "creativedisplay";
dataDestination[5] = "publisheddisplay";
dataDestination[6] = "motiondisplay";

function JJ_LoadData(data) {
  new Ajax.Updater(dataDestination[data], dataSource[data]);
  dataSource[data] = "";
  dataDestination[data] = "";
  }

function surfto(form) {
  var Contact=form.Contact.selectedIndex
    if (form.Contact.options[Contact].value == "email") {
      window.open('mailto:raVen@raveneyes.com?Subject=Hey this is groovy!','_top'); 
      }
  }

//-->
