 var coordinates = new Array(); var xSpace; var ySpace;
 var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
 // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
 
//start the random stuff
xSpace = (viewportwidth-100)/50;ySpace = (viewportheight-150)/50;
var footSpace = (parseInt(ySpace))*50 + 126;

for (var i=0; i<ySpace; i++){	for(var j=0; j<xSpace; j++){		var xy = {xaxis:(25+(j*50)), yaxis:(75+(i*50))};		coordinates.push(xy);	}}
gridShuffle(coordinates);
function gridShuffle(arry) {	for (i=0; i<arry.length; i++) {		var tmp = arry[i];		var randomNum = Math.random()*arry.length;		arry[i] = arry[parseInt(randomNum)];		arry[parseInt(randomNum)] = tmp;	}}

//jquery stuff
var $j = jQuery.noConflict();
$j(document).ready(function(){
	var count = 0;
	var count2 = 0;
	$j('.law_guzman_thumb').ready(function() {
		$j('.law_guzman_thumb').css('top', function(index){
			return index + (coordinates[count++].yaxis - (count-1));
		});
		$j('.law_guzman_thumb').css('left', function(index){
			return index + (coordinates[count2++].xaxis - (count2-1));
		});
	});
	$j('#law_guzman_footer').ready(function(){
		$j('#law_guzman_footer').css('top', function(index){
			return index + footSpace;
		});
	});
});



