var IS_IPAD = navigator.userAgent.match(/iPad/i) != null;
var IS_IPHONE = navigator.userAgent.match(/iPhone/i) != null;
var IS_FIREFOX = navigator.userAgent.match(/Firefox/i) != null;
var IS_ANDROID = navigator.userAgent.match(/Android/i) != null;

//if(!console){
//  console = { log: function(arg){} };
//}


$(function(){
  $(".link").each( function(x) {
    
    $(this).bind("mouseover", function() {
      $(this).addClass("highlight");
    });
    
    $(this).bind("mouseout", function() {
      $(this).removeClass("highlight");
    });
  
  });
  
  
  // formatting hooks for iPhone and Android
  
  
	if (IS_IPHONE || IS_ANDROID) {
  	
  	addEventListener("load", function() { setTimeout(function() { window.scrollTo(0,1); }, 0); }, false);

		/* $("#wrapper").css({marginTop: 100}) */

		$("#close").css({zIndex: "5000",left: 606});
		
		$(".links-wrapper").hide();
		$(".phone-links").show();
  	
  	/*

  	$(".links").css({ 
  		width: 320,
  		height: 120
  	});
  	
		*/
  	/*
$(".links").css({ 
  		width: 120,
  		height: 320,
  		position: "absolute",
  		top: -193,
  		left: 394,
  		zIndex: 200
  	});
  
  	$(".link").css({
  		width: 94, 
  		height: 94,
  		fontSize: 22,
  		
  		paddingTop: 35,
  		float: "left",
  		marginRight: 3,
  		marginBottom: 2
  		
  	});
  	
  	$(".link span").css({
  		marginLeft: 8, 
  		
  		
  	});
  	
  	$(".link:first").css({ marginTop: 2 });
*/
  	
  	
  	
  	$(".box-of-four:not(.vids)").css({
  		
  		position: "absolute",
  		top: 575
  	
  	});
  	
  	
  	/*
$("#vid16").css({
  		position: "absolute",
  		top: 384,
  		left: 384
  	})
*/
  
		
  
  }

  
});

