// Rotating Images Variables
var iint;
var icur;

// On Page Load
$(document).ready(function(){
	// Start Rotating Images
	iint = setInterval(rotateImages,4000);
//	aint = setInterval(alertInfo,6000);
	// Fix Page Height
	// $("#pageend").remove();
	// $("body:first").css("background","#de7 url(../images/bg.png) top center repeat-y");
	// if($("#bgwrap").height()<$(window).height()) $("#bgwrap").height($(window).height());
	// $(window).bind("resize",function(){ $("#bgwrap").adjustSize(); });
});

// Resize Page on Window Resize
// jQuery.fn.adjustSize = function(){
	// $(this).height($("#container").height());
	// $("body").height(600);
	// if($(this).height()<$(window).height())
		// $(this).height($(window).height());
	// if($(this).height()<600)
		// $(this).height(600);
// }

// function alertInfo(){
	// alert("window: "+$(window).height()+"\nbgwrap: "+$("#bgwrap").height()+"\ncontainer: "+$("#container").height());
// }

// Rotate Promises
function rotateImages(){
	if(icur==6) icur=1; else icur++;
	$("#images").fadeOut("slow",function(){ $(this).attr('class','images'+icur).fadeIn("slow") });
}

