$(document).ready(function(){


// Home text
$(".home_text_edit").editInPlace({
    url: "operations/edit_text.php?id=1",
    params: "id=1",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});



// Front page features eip

$("#feature_url_edit_1").editInPlace({
    url: "operations/feature_url_edit.php",
    params: "id=1",
    field_type: "text",
    show_buttons: true,
    default_text: "(Click here to link this image)"
});

$("#feature_url_edit_2").editInPlace({
    url: "operations/feature_url_edit.php",
    params: "id=2",
    field_type: "text",
    show_buttons: true,
    default_text: "(Click here to link this image)"
});

$("#feature_url_edit_3").editInPlace({
    url: "operations/feature_url_edit.php",
    params: "id=3",
    field_type: "text",
    show_buttons: true,
    default_text: "(Click here to link this image)"
});

$("#feature_url_edit_4").editInPlace({
    url: "operations/feature_url_edit.php",
    params: "id=4",
    field_type: "text",
    show_buttons: true,
    default_text: "(Click here to link this image)"
});












/*


// Microsite eip
$(".microsite_edit_1").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=1",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_2").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=2",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_3").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=3",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_4").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=4",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_5").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=5",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_6").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=6",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_7").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=7",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_8").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=8",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_9").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=9",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_10").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=10",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

$(".microsite_edit_11").editInPlace({
    url: "operations/edit_microsite.php",
    params: "id=11",
    field_type: "textarea",
    textarea_rows: 20,
    textarea_cols: 65,
    show_buttons: true
});

*/





$('#uploadify').fileUpload({
    'uploader': 'includes/js/uploadify/uploader.swf',
    'script': 'includes/js/uploadify/upload.php?folder=uploads',
    'folder': '/uploads',
    'cancelImg': 'images/icons/error.gif',
    'auto': true,
    'multi': true
});



});





function changePic(id){
    alert('whoa there!');
}

function editText(id){
    window.location='edit_text.php?id='+id;
}