// AutoWipe Input ---------------------------------------------------------------------
function clearField(obj,def_str){
	if(obj.value == def_str){
	  obj.value = "";
	}
}
function showDefault(obj,def_str){
	if(obj.value == ""){
	  obj.value = def_str;
	}
}

function adjustStyle(height) {
    height = parseInt(height);
    if (height < 1001) {
        $("#size-stylesheet").attr("href", "assets/css/small.css");
    } else {
        $("#size-stylesheet").attr("href", "css/blank.css");
    }
}


$(function() {

//$("img.b").hide();
//$("img.b").fadeIn();	


	// Fancy Box ###############################################################
	if($("a#single_image").length){
		$("a#single_image").fancybox({
			'zoomOpacity' : true,
			'zoomSpeedIn': 400,
			'zoomSpeedOut': 400,
			'overlayOpacity': 0.7,
			'overlayColor': '#000',
			'overlayShow': true
		}); 
	}
	
	if($("a#inline800").length){
		$("a#inline800").fancybox({
			'hideOnContentClick': true,
			'overlayColor': '#000',
			'overlayOpacity': 0.7,
			'frameWidth': 800,
			'frameHeight': 600
		}); 
	}
	
	if($("a.group").length){
		$("a.group").fancybox({
			'zoomOpacity' : true,
			'overlayColor': '#000',
			'overlayOpacity': 0.7,
			'zoomSpeedIn': 400,
			'zoomSpeedOut': 400,
			'overlayShow': true
		}); 
	}
	
	if($("a.lightBox").length){
		$('a').lightBox(); // Select all links in the page
	}
	
	
	$(window).resize(function() {
		adjustStyle($(this).height());
	});
	adjustStyle(window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight);
		
});












