// JavaScript Document

jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
    this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
    return this;
}



function confirm_delete(del_url,message) {
    if(!message){
		message = 'Are you sure?';
    }
  	if (confirm(message)) {
    document.location = del_url;
  }
}

function adjust_page_height() {
    if ($('#main_body_div').height() <= $('#cart_box').height()) {
    //alert($('#page_wrapper').height());
    $('#main_body_div').height(($('#cart_box').height() + 10));
    $('#page_wrapper').height(($('#main_body_div').height() + 195));
            
    }

}



$(document).ready(function(){
	//$('#page_wrapper').center();
	$('#featured_cycle').cycle();         
});


$(window).resize(function() {
    // $('#page_wrapper').center(); 
});




